#include "raw_subtitle.h"
#include <boost/optional.hpp>
#include <string>
-#include <list>
+#include <vector>
namespace sub {
{
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);
/** vertical position of the baseline of the text */
VerticalPosition vertical_position;
- std::list<Block> blocks;
+ std::vector<Block> blocks;
bool same_metadata (RawSubtitle) const;
};
boost::optional<Time> fade_up;
boost::optional<Time> fade_down;
- std::list<Line> lines;
+ std::vector<Line> lines;
bool same_metadata (RawSubtitle) const;
};