X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextClass.h;h=a6b0bbb13d786fa7f1b7b9f0aef1a2c4db2dace2;hb=09df753df4c24470617c64d25eae6df2db85dfed;hp=4f50311df3caa7791d2a8dc5712eb0e916191fca;hpb=5a2deb94c3a9ea1cd73b183f0891a382df9d6dbc;p=lyx.git diff --git a/src/TextClass.h b/src/TextClass.h index 4f50311df3..a6b0bbb13d 100644 --- a/src/TextClass.h +++ b/src/TextClass.h @@ -10,10 +10,12 @@ #ifndef LYXTEXTCLASS_H #define LYXTEXTCLASS_H -#include "Color.h" -#include "Font.h" +#include "ColorCode.h" +#include "FontInfo.h" #include "LayoutEnums.h" -#include "lyxlayout_ptr_fwd.h" +#include "LayoutPtr.h" + +#include "support/docstring.h" #include @@ -41,11 +43,16 @@ public: std::string latextype; std::string latexname; std::string latexparam; - Font font; - Font labelfont; - Color::color bgcolor; + FontInfo font; + FontInfo labelfont; + ColorCode bgcolor; std::string preamble; bool multipar; + bool passthru; + bool needprotect; + bool freespacing; + bool keepempty; + bool forceltr; }; @@ -172,7 +179,7 @@ public: OutputType outputType() const; /// - Font const & defaultfont() const; + FontInfo const & defaultfont() const; /// Text that dictates how wide the left margin is on the screen docstring const & leftmargin() const; @@ -235,10 +242,10 @@ private: OutputType outputType_; /** Base font. The paragraph and layout fonts are resolved against this font. This has to be fully instantiated. Attributes - Font::INHERIT, Font::IGNORE, and Font::TOGGLE are + FONT_INHERIT, FONT_IGNORE, and FONT_TOGGLE are extremely illegal. */ - Font defaultfont_; + FontInfo defaultfont_; /// Text that dictates how wide the left margin is on the screen docstring leftmargin_;