diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-21 16:00:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-21 16:00:16 +0100 |
| commit | f902811342bb9f72bb11e2658aea14cfe8b04c64 (patch) | |
| tree | 542b519f20bca1aae38f6f77dbc3de895699bd9f /src/subtitle_asset.h | |
| parent | 3053ecfbb9d50a07593ebd4cebdb0de5ca0ca88e (diff) | |
Recursively scan font tags in subtitles.
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index 038ff1fa..6a04bed3 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -55,6 +55,7 @@ public: int size; std::list<boost::shared_ptr<SubtitleNode> > subtitle_nodes; + std::list<boost::shared_ptr<FontNode> > font_nodes; }; class LoadFontNode : public XMLNode @@ -128,12 +129,16 @@ public: std::list<boost::shared_ptr<Subtitle> > subtitles_at (Time t) const; private: - std::string font_id_to_name (std::string id, std::list<boost::shared_ptr<LoadFontNode> > const & load_font_nodes) const; + 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); + std::string id_from_font_nodes (std::list<boost::shared_ptr<FontNode> > const & font_nodes) const; + int size_from_font_nodes (std::list<boost::shared_ptr<FontNode> > const & font_nodes) const; std::string _subtitle_id; std::string _movie_title; int64_t _reel_number; std::string _language; + std::list<boost::shared_ptr<LoadFontNode> > _load_font_nodes; std::list<boost::shared_ptr<Subtitle> > _subtitles; }; |
