]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLayout.h
Move isMultiCell() to Cursor, and use it.
[lyx.git] / src / insets / InsetLayout.h
index 27eae62e563cf5dd25b2b0096fb05477be4c4202..3107338e0d3faca9dff281b124d92f19c38550a3 100644 (file)
 namespace lyx {
 
 class Lexer;
-
-///
-enum InsetDecoration {
-       Deco_Classic,
-       Deco_Minimalistic,
-       Deco_Conglomerate,
-       Deco_Default
-};
+class TextClass;
 
 ///
 class InsetLayout {
@@ -39,7 +32,14 @@ public:
        ///
        InsetLayout();
        ///
-       bool read(Lexer & lexrc);
+       enum InsetDecoration {
+               Classic,
+               Minimalistic,
+               Conglomerate,
+               Default
+       };
+       ///
+       bool read(Lexer & lexrc, TextClass & tclass);
        ///
        docstring name() const { return name_; };
        ///
@@ -79,7 +79,11 @@ public:
 private:
        ///
        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_;