2 Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 class Text : public XMLNode
31 Text (xmlpp::Node const * node);
33 float v_position () const {
37 std::string text () const {
46 class Subtitle : public XMLNode
50 Subtitle (xmlpp::Node const * node);
60 std::list<boost::shared_ptr<Text> > texts () const {
65 std::list<boost::shared_ptr<Text> > _texts;
70 class Font : public XMLNode
74 Font (xmlpp::Node const * node);
76 std::list<boost::shared_ptr<Subtitle> > subtitles () const {
81 std::list<boost::shared_ptr<Subtitle> > _subtitles;
84 class SubtitleAsset : public Asset, public XMLFile
87 SubtitleAsset (std::string directory, std::string xml);
89 void write_to_cpl (std::ostream&) const {}
90 virtual std::list<std::string> equals (boost::shared_ptr<const Asset>, EqualityOptions) const {
91 return std::list<std::string> ();
94 std::string language () const {
98 std::list<boost::shared_ptr<Font> > fonts () const {
103 std::string _subtitle_id;
104 std::string _movie_title;
105 int64_t _reel_number;
106 std::string _language;
107 std::list<boost::shared_ptr<Font> > _fonts;