#include "content_part.h"
#include "dcp_text_track.h"
#include <libcxml/cxml.h>
#include "content_part.h"
#include "dcp_text_track.h"
#include <libcxml/cxml.h>
- TextContent (Content* parent, std::vector<boost::shared_ptr<Content> >);
+ TextContent (Content* parent, std::vector<std::shared_ptr<Content>>);
+ TextContent (Content* parent, cxml::ConstNodePtr, int version, std::list<std::string>& notes);
void set_y_offset (double);
void set_x_scale (double);
void set_y_scale (double);
void set_y_offset (double);
void set_x_scale (double);
void set_y_scale (double);
void set_effect_colour (dcp::Colour);
void unset_effect_colour ();
void set_line_spacing (double s);
void set_effect_colour (dcp::Colour);
void unset_effect_colour ();
void set_line_spacing (double s);
void set_outline_width (int);
void unset_fade_out ();
void set_type (TextType type);
void set_dcp_track (DCPTextTrack track);
void unset_dcp_track ();
void set_outline_width (int);
void unset_fade_out ();
void set_type (TextType type);
void set_dcp_track (DCPTextTrack track);
void unset_dcp_track ();
- static std::list<boost::shared_ptr<TextContent> > from_xml (Content* parent, cxml::ConstNodePtr, int version);
+ boost::optional<dcp::LanguageTag> language () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _language;
+ }
+
+ bool language_is_additional () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _language_is_additional;
+ }
boost::optional<dcp::Colour> _colour;
boost::optional<dcp::Effect> _effect;
boost::optional<dcp::Colour> _effect_colour;
/** scaling factor for line spacing; 1 is "standard", < 1 is closer together, > 1 is further apart */
double _line_spacing;
boost::optional<dcp::Colour> _colour;
boost::optional<dcp::Effect> _effect;
boost::optional<dcp::Colour> _effect_colour;
/** scaling factor for line spacing; 1 is "standard", < 1 is closer together, > 1 is further apart */
double _line_spacing;
TextType _original_type;
/** the track of closed captions that this content should be put in, or empty to put in the default (only) track */
boost::optional<DCPTextTrack> _dcp_track;
TextType _original_type;
/** the track of closed captions that this content should be put in, or empty to put in the default (only) track */
boost::optional<DCPTextTrack> _dcp_track;