/*
- Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "types.h"
#include <boost/shared_ptr.hpp>
+#include <boost/optional.hpp>
#include <list>
namespace cxml {
class Font;
+/** @class Text
+ * @brief Parser for Text nodes from subtitle XML.
+ */
class Text
{
public:
+ /** Construct a default text node */
Text ()
: v_position (0)
, v_align (TOP)
{}
- Text (boost::shared_ptr<const cxml::Node> node);
+ Text (boost::shared_ptr<const cxml::Node> node, int tcr);
float v_position;
VAlign v_align;