]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.cpp
Stupid bug fix.
[lyx.git] / src / insets / InsetBox.cpp
index b716e7dab456bffa9d3b5312719c0ddd6d0cc8ea..01a343149173b5bd7adc687a55ab0876393ead3e 100644 (file)
 #include "DispatchResult.h"
 #include "FuncStatus.h"
 #include "FuncRequest.h"
-#include "support/gettext.h"
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
 #include "MetricsInfo.h"
 #include "TextClass.h"
 
 #include "support/debug.h"
+#include "support/gettext.h"
 #include "support/Translator.h"
 
 #include "frontends/Application.h"
@@ -96,7 +96,7 @@ BoxTranslatorLoc const & boxtranslator_loc()
 InsetBox::InsetBox(Buffer const & buffer, string const & label)
        : InsetCollapsable(buffer), params_(label)
 {
-       if (forceEmptyLayout())
+       if (forcePlainLayout())
                paragraphs().back().setLayout(buffer.params().documentClass().emptyLayout());
 }
 
@@ -176,7 +176,7 @@ void InsetBox::metrics(MetricsInfo & m, Dimension & dim) const
 }
 
 
-bool InsetBox::forceEmptyLayout(idx_type) const
+bool InsetBox::forcePlainLayout(idx_type) const
 {
        return !params_.inner_box && params_.type != "Framed";
 }
@@ -223,17 +223,17 @@ bool InsetBox::getStatus(Cursor & cur, FuncRequest const & cmd,
        case LFUN_INSET_MODIFY:
                if (cmd.getArg(0) == "changetype")
                        flag.setOnOff(cmd.getArg(1) == params_.type);
-               flag.enabled(true);
+               flag.setEnabled(true);
                return true;
 
        case LFUN_INSET_DIALOG_UPDATE:
-               flag.enabled(true);
+               flag.setEnabled(true);
                return true;
 
        case LFUN_BREAK_PARAGRAPH:
                if (params_.inner_box || params_.type == "Framed")
                        return InsetCollapsable::getStatus(cur, cmd, flag);
-               flag.enabled(false);
+               flag.setEnabled(false);
                return true;
 
        default: