]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.h
pimpl not needed here
[lyx.git] / src / TextClass.h
index 951d9a8aaedba8ef478fe2144a1bd8153477717c..a6b0bbb13d786fa7f1b7b9f0aef1a2c4db2dace2 100644 (file)
 #ifndef LYXTEXTCLASS_H
 #define LYXTEXTCLASS_H
 
-#include "Color.h"
-#include "Layout.h"
-#include "lyxlayout_ptr_fwd.h"
+#include "ColorCode.h"
+#include "FontInfo.h"
+#include "LayoutEnums.h"
+#include "LayoutPtr.h"
+
+#include "support/docstring.h"
 
 #include <boost/shared_ptr.hpp>
 
@@ -24,6 +27,7 @@ namespace lyx {
 
 namespace support { class FileName; }
 
+class Layout;
 class Lexer;
 class Counters;
 class FloatList;
@@ -39,10 +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;
 };
 
 
@@ -169,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;
@@ -178,7 +188,7 @@ public:
        docstring const & rightmargin() const;
 
        /// The type of command used to produce a title
-       LYX_TITLE_LATEX_TYPES titletype() const;
+       TitleLatexType titletype() const;
        /// The name of the title command
        std::string const & titlename() const;
 
@@ -232,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_;
 
@@ -243,7 +253,7 @@ private:
        docstring rightmargin_;
 
        /// The type of command used to produce a title
-       LYX_TITLE_LATEX_TYPES titletype_;
+       TitleLatexType titletype_;
        /// The name of the title command
        std::string titlename_;