summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-22 23:29:50 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-22 23:29:50 +0000
commitf5cc57f11946e1e269df25db434c5f8efe953a68 (patch)
tree47e7348bbf8d5077dec505c926af0d631c158b2b /src/subtitle_asset.h
parent4707ffd992e01a42e978b90b2cdcfc50d36e1513 (diff)
More various fixes to subtitle XML writing.
Diffstat (limited to 'src/subtitle_asset.h')
-rw-r--r--src/subtitle_asset.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h
index 5d996c7a..71ae42fc 100644
--- a/src/subtitle_asset.h
+++ b/src/subtitle_asset.h
@@ -202,11 +202,12 @@ public:
void add (boost::shared_ptr<Subtitle>);
void read_xml (std::string);
- void write_xml ();
- void write_xml (std::ostream& s);
+ void write_xml () const;
+ void write_xml (std::ostream& s) const;
private:
std::string font_id_to_name (std::string id) const;
+ std::string escape (std::string) const;
struct ParseState {
std::list<boost::shared_ptr<FontNode> > font_nodes;
@@ -235,6 +236,7 @@ private:
std::list<boost::shared_ptr<LoadFontNode> > _load_font_nodes;
std::list<boost::shared_ptr<Subtitle> > _subtitles;
+ bool _need_sort;
};
}