Add "U8" character code table for binary STL.
[libsub.git] / src / subtitle.h
index f4295a2ccec6b872c99fc83370b6b759d8974d4d..fba0cf40543b75079e7e71235f216503c65b5acd 100644 (file)
@@ -29,7 +29,7 @@
 #include "raw_subtitle.h"
 #include <boost/optional.hpp>
 #include <string>
-#include <list>
+#include <vector>
 
 namespace sub {
 
@@ -78,8 +78,9 @@ class Line
 {
 public:
        Line ()
-               : horizontal_position (CENTRE)
-       {}
+       {
+               horizontal_position.reference = HORIZONTAL_CENTRE_OF_SCREEN;
+       }
 
        /** Construct a Line taking any relevant information from a RawSubtitle */
        Line (RawSubtitle s);
@@ -89,7 +90,7 @@ public:
        /** vertical position of the baseline of the text */
        VerticalPosition vertical_position;
 
-       std::list<Block> blocks;
+       std::vector<Block> blocks;
 
        bool same_metadata (RawSubtitle) const;
 };
@@ -119,7 +120,7 @@ public:
        boost::optional<Time> fade_up;
        boost::optional<Time> fade_down;
 
-       std::list<Line> lines;
+       std::vector<Line> lines;
 
        bool same_metadata (RawSubtitle) const;
 };