diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-13 14:20:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-13 14:20:36 +0100 |
| commit | 797916ae28d976f3c5be62d37b45864219af6098 (patch) | |
| tree | a9bf9231987085c0eb9b6c3ce7427e1489929ec8 /src/subtitle_asset.h | |
| parent | d77d0d1bd972f6343752ca45a3d5e0a0924e2d50 (diff) | |
Use libcxml. Lump all static configuration flags into one.
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index 1e31df2b..591985d1 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -26,11 +26,11 @@ namespace libdcp class FontNode; -class TextNode : public XMLNode +class TextNode { public: TextNode () {} - TextNode (xmlpp::Node const * node); + TextNode (boost::shared_ptr<const cxml::Node> node); float v_position; VAlign v_align; @@ -38,11 +38,11 @@ public: std::list<boost::shared_ptr<FontNode> > font_nodes; }; -class SubtitleNode : public XMLNode +class SubtitleNode { public: SubtitleNode () {} - SubtitleNode (xmlpp::Node const * node); + SubtitleNode (boost::shared_ptr<const cxml::Node> node); Time in; Time out; @@ -52,14 +52,14 @@ public: std::list<boost::shared_ptr<TextNode> > text_nodes; private: - Time fade_time (std::string name); + Time fade_time (boost::shared_ptr<const cxml::Node>, std::string name); }; -class FontNode : public XMLNode +class FontNode { public: FontNode () {} - FontNode (xmlpp::Node const * node); + FontNode (boost::shared_ptr<const cxml::Node> node); FontNode (std::list<boost::shared_ptr<FontNode> > const & font_nodes); std::string text; @@ -75,11 +75,11 @@ public: std::list<boost::shared_ptr<TextNode> > text_nodes; }; -class LoadFontNode : public XMLNode +class LoadFontNode { public: LoadFontNode () {} - LoadFontNode (xmlpp::Node const * node); + LoadFontNode (boost::shared_ptr<const cxml::Node> node); std::string id; std::string uri; @@ -218,13 +218,13 @@ private: void maybe_add_subtitle (std::string text, ParseState const & parse_state); void examine_font_nodes ( - boost::shared_ptr<XMLFile> xml, + boost::shared_ptr<const cxml::Node> xml, std::list<boost::shared_ptr<FontNode> > const & font_nodes, ParseState& parse_state ); void examine_text_nodes ( - boost::shared_ptr<XMLFile> xml, + boost::shared_ptr<const cxml::Node> xml, std::list<boost::shared_ptr<TextNode> > const & text_nodes, ParseState& parse_state ); |
