85 Text(
const Element &el);
146 Styles(
const Element &el);
148 std::map<Id, std::unique_ptr<Text> > textStyles;
149 std::map<Id, std::unique_ptr<Paragraph> > parStyles;
155 #error you cannot include this file directly
void SetFontStyle(FontStyle fs)
Paragraph & operator=(const Paragraph &)=default
std::vector< Id > GetTextStyles() const
Returns the ids of the text styles.
void SetFontWidth(FontWidth fw)
List of styles used in the document.
Styles & operator=(const Styles &)=delete
Styles(const Styles &)=delete
std::vector< Id > GetParagraphStyles() const
Returns the ids of the paragraph styles.
Option< FontWidth > GetFontWidth() const
void SetRightIndent(double i)
Option< uint32_t > GetFontColor() const
Option< StringUTF8 > GetFontFamily() const
Option< Align > GetAlign() const
Text(const Text &)=default
Paragraph(const Paragraph &)=default
Option< FontType > GetFontType() const
void SetLeftIndent(double i)
void SetFirstLineIndent(double i)
Paragraph & AddParagraphStyle(const Id &id_)
Adds a paragraph style.
virtual ~Styles() override
Text & operator=(const Text &)=default
void SetFontSize(double fs)
void SetLineSpace(double i)
Option< FontStyle > GetFontStyle() const
Text & AddTextStyle(const Id &id_, double size)
Adds a text style.
void UnsetFirstLineIndent()
Option< double > GetRightIndent() const
void SetFontColor(uint32_t fc)
void SetFontFamily(const StringUTF8 &ff)
double GetFontSize() const
Option< double > GetLeftIndent() const
virtual ~Paragraph() override
Option< double > GetLineSpace() const
const Text & GetTextStyle(const Id &id_) const
Returns a text style.
const Paragraph & GetParagraphStyle(const Id &id_) const
Returns a paragraph style.
void SetFontType(FontType ft)
Option< double > GetFirstLineIndent() const