#include "raw_convert.h"
#include "types.h"
#include "dcp_time.h"
+#include "data.h"
#include <libxml++/libxml++.h>
#include <boost/foreach.hpp>
public:
Font () {}
- Font (SubtitleString const & s, Standard standard);
+ Font (boost::shared_ptr<SubtitleString> s, Standard standard);
xmlpp::Element* as_xml (xmlpp::Element* parent, Context& context) const;
Time _fade_down;
};
+class Image : public Part
+{
+public:
+ Image (boost::shared_ptr<Part> parent, std::string id, Data png_data, HAlign h_align, float h_position, VAlign v_align, float v_position)
+ : Part (parent)
+ , _png_data (png_data)
+ , _id (id)
+ , _h_align (h_align)
+ , _h_position (h_position)
+ , _v_align (v_align)
+ , _v_position (v_position)
+ {}
+
+ xmlpp::Element* as_xml (xmlpp::Element* parent, Context& context) const;
+
+private:
+ Data _png_data;
+ std::string _id; ///< the ID of this image
+ HAlign _h_align;
+ float _h_position;
+ VAlign _v_align;
+ float _v_position;
+};
+
}
+
}
#endif