]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetLayout.cpp
Introduce a RefPrefix tag for Style, InsetLayout, and Float, that
[features.git] / src / insets / InsetLayout.cpp
index ba1bbfb3e507220f647579d5cc9916f88287f49c..3aba74eef0a0d844af6d5e795b6e1fd0bdf7c57e 100644 (file)
@@ -106,6 +106,7 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
                IL_PREAMBLE,
                IL_REQUIRES,
                IL_SPELLCHECK,
+               IL_REFPREFIX,
                IL_END
        };
 
@@ -143,6 +144,7 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
                { "needprotect", IL_NEEDPROTECT },
                { "passthru", IL_PASSTHRU },
                { "preamble", IL_PREAMBLE },
+               { "refprefix", IL_REFPREFIX },
                { "requires", IL_REQUIRES },
                { "spellcheck", IL_SPELLCHECK }
        };
@@ -290,6 +292,9 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
                case IL_PREAMBLE:
                        preamble_ = from_utf8(lex.getLongString("EndPreamble"));
                        break;
+               case IL_REFPREFIX:
+                       lex >> refprefix_;
+                       break;
                case IL_HTMLTAG:
                        lex >> htmltag_;
                        break;