diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-22 15:00:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-22 15:00:33 +0100 |
| commit | 8b8bce8d2a83739f96e02a48b77d352414361c43 (patch) | |
| tree | 08abcadb9fa0ba92a6e75d6f6a21383341ba656f /src/subtitle_asset.h | |
| parent | a3bbf59dd06dda14f070e99aaee32bb29a13f51a (diff) | |
Allow <Font> nodes inside <Subtitle> nodes.
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index 607b054d..662f85f1 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -24,6 +24,8 @@ namespace libdcp { +class FontNode; + class TextNode : public XMLNode { public: @@ -49,6 +51,7 @@ public: Time in; Time out; + std::list<boost::shared_ptr<FontNode> > font_nodes; std::list<boost::shared_ptr<TextNode> > text_nodes; }; @@ -68,6 +71,7 @@ public: std::list<boost::shared_ptr<SubtitleNode> > subtitle_nodes; std::list<boost::shared_ptr<FontNode> > font_nodes; + std::list<boost::shared_ptr<TextNode> > text_nodes; }; class LoadFontNode : public XMLNode @@ -184,7 +188,18 @@ public: private: std::string font_id_to_name (std::string id) const; - void examine_font_node (boost::shared_ptr<FontNode> font_node, std::list<boost::shared_ptr<FontNode> >& current_font_nodes); + + void examine_font_nodes ( + std::list<boost::shared_ptr<FontNode> > const & font_nodes, + std::list<boost::shared_ptr<FontNode> >& current_font_nodes, + std::list<boost::shared_ptr<SubtitleNode> >& current_subtitle_nodes + ); + + void examine_text_nodes ( + boost::shared_ptr<SubtitleNode> subtitle_node, + std::list<boost::shared_ptr<TextNode> > const & text_nodes, + std::list<boost::shared_ptr<FontNode> >& current_font_nodes + ); std::string _subtitle_id; std::string _movie_title; |
