X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ffont.h;h=a2589be4a934ac52de14ef229b49a73cc35b6382;hb=491ac453512ac1982f62fc0d2a310586427601d7;hp=1b29e570116184cf8f99ac37caa4897f8e107973;hpb=ac265d3d008328b9bdaf00c39ebcd86f263605c7;p=libdcp.git diff --git a/src/font.h b/src/font.h index 1b29e570..a2589be4 100644 --- a/src/font.h +++ b/src/font.h @@ -17,18 +17,22 @@ */ +/** @file src/font.h + * @brief Font class + */ + #include "types.h" #include "subtitle.h" +#include #include #include #include -namespace cxml { - class Node; -} - namespace dcp { - + +/** @class Font + * @brief Helper class for parsing subtitle XML. + */ class Font { public: @@ -36,16 +40,16 @@ public: : size (0) {} - Font (boost::shared_ptr node); + Font (cxml::ConstNodePtr node, int tcr); Font (std::list > const & font_nodes); std::string text; - std::string id; + boost::optional id; int size; boost::optional italic; - boost::optional color; + boost::optional colour; boost::optional effect; - boost::optional effect_color; + boost::optional effect_colour; std::list > subtitle_nodes; std::list > font_nodes;