]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLayout.h
- Simplify prefs, graphics and external display options which are now true or false.
[lyx.git] / src / insets / InsetLayout.h
index 08cab983d405366a584cae9e78b5850f2192ef9e..0d6ad2ae4fd670a16a70029ac699b6038ad49834 100644 (file)
 
 namespace lyx {
 
+class Lexer;
+
 ///
 class InsetLayout {
 public:
        ///
        InsetLayout();
        ///
-       std::string name() const { return name_; };
+       enum InsetDecoration {
+               Classic,
+               Minimalistic,
+               Conglomerate,
+               Default
+       };
+       ///
+       bool read(Lexer & lexrc);
+       ///
+       docstring name() const { return name_; };
        ///
        std::string lyxtype() const { return lyxtype_; };
        ///
        docstring labelstring() const { return labelstring_; };
        ///
-       //FIXME This could be an enum
-       std::string decoration() const { return decoration_; };
+       InsetDecoration decoration() const { return decoration_; };
        ///
        std::string latextype() const { return latextype_; };
        ///
@@ -67,13 +77,17 @@ public:
        bool isForceLtr() const { return forceltr_; };
 private:
        ///
-       std::string name_;
-       ///
+       docstring name_;
+       /**
+               * This is only used (at present) to decide where to put them on the menus.
+               * Values are 'charstyle', 'custom' (things that by default look like a
+               * footnote), 'element' (docbook), 'standard'.
+               */
        std::string lyxtype_;
        ///
        docstring labelstring_;
        ///
-       std::string decoration_;
+       InsetDecoration decoration_;
        ///
        std::string latextype_;
        ///
@@ -102,9 +116,6 @@ private:
        bool keepempty_;
        ///
        bool forceltr_;
-       
-       //FIXME This will be removed.
-       friend class TextClass;
 };
 
 } // namespace lyx