]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetLayout.cpp
AutoInsert option also for flex insets
[features.git] / src / insets / InsetLayout.cpp
index 3fee6fb009e25abc22224c23da65416d4a83ffd0..b6dcf582dd51a9eb6578ba0c16276b2545a573f8 100644 (file)
@@ -511,6 +511,7 @@ void InsetLayout::readArgument(Lexer & lex)
 {
        Layout::latexarg arg;
        arg.mandatory = false;
+       arg.autoinsert = false;
        bool error = false;
        bool finished = false;
        arg.font = inherit_font;
@@ -534,6 +535,9 @@ void InsetLayout::readArgument(Lexer & lex)
                } else if (tok == "mandatory") {
                        lex.next();
                        arg.mandatory = lex.getBool();
+               } else if (tok == "autoinsert") {
+                       lex.next();
+                       arg.autoinsert = lex.getBool();
                } else if (tok == "leftdelim") {
                        lex.next();
                        arg.ldelim = lex.getDocString();