diff options
Diffstat (limited to 'src/text_asset_internal.h')
| -rw-r--r-- | src/text_asset_internal.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/text_asset_internal.h b/src/text_asset_internal.h index 2dfccce9..be22719d 100644 --- a/src/text_asset_internal.h +++ b/src/text_asset_internal.h @@ -46,6 +46,7 @@ #include "h_align.h" #include "load_variable_z.h" #include "raw_convert.h" +#include "ruby.h" #include "v_align.h" #include "warnings.h" LIBDCP_DISABLE_WARNINGS @@ -144,6 +145,21 @@ private: }; +class Ruby : public Part +{ +public: + Ruby(std::shared_ptr<Part> parent, Font font, dcp::Ruby ruby) + : Part(parent, font) + , _ruby(ruby) + {} + + virtual xmlpp::Element* as_xml(xmlpp::Element* parent, Context &) const override; + +private: + dcp::Ruby _ruby; +}; + + class Text : public Part { public: @@ -155,8 +171,7 @@ public: float v_position, float z_position, boost::optional<std::string> variable_z, - Direction direction, - std::vector<Ruby> rubies + Direction direction ) : Part (parent) , _h_align (h_align) @@ -166,7 +181,6 @@ public: , _z_position(z_position) , _variable_z(variable_z) , _direction (direction) - , _rubies(rubies) {} xmlpp::Element* as_xml (xmlpp::Element* parent, Context& context) const override; @@ -183,7 +197,6 @@ private: float _z_position; boost::optional<std::string> _variable_z; Direction _direction; - std::vector<Ruby> _rubies; }; |
