X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetLayout.h;h=4706a6d42f4612e046f2dc42511edcd77cf42f08;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=08cab983d405366a584cae9e78b5850f2192ef9e;hpb=a8317afc4ba90c421208933d68b93e56ff25a0e4;p=lyx.git diff --git a/src/insets/InsetLayout.h b/src/insets/InsetLayout.h index 08cab983d4..4706a6d42f 100644 --- a/src/insets/InsetLayout.h +++ b/src/insets/InsetLayout.h @@ -23,20 +23,30 @@ 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,13 @@ public: bool isForceLtr() const { return forceltr_; }; private: /// - std::string name_; + docstring name_; /// std::string lyxtype_; /// docstring labelstring_; /// - std::string decoration_; + InsetDecoration decoration_; /// std::string latextype_; /// @@ -102,9 +112,6 @@ private: bool keepempty_; /// bool forceltr_; - - //FIXME This will be removed. - friend class TextClass; }; } // namespace lyx