]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSubstack.cpp
InsetMathHull.cpp: whitespace
[lyx.git] / src / mathed / InsetMathSubstack.cpp
index 8d72d4798ad225e7537079a15ec97b94718618cc..059e02955149ba69177645ecc1977db4881da83a 100644 (file)
 
 #include "FuncRequest.h"
 #include "FuncStatus.h"
-#include "gettext.h"
+#include "support/gettext.h"
 
 #include "support/lstrings.h"
 
 #include <ostream>
 
+using namespace std;
+
 namespace lyx {
 
 using support::bformat;
 
-using std::string;
 
 InsetMathSubstack::InsetMathSubstack()
        : InsetMathGrid(1, 1)
@@ -69,7 +70,7 @@ bool InsetMathSubstack::getStatus(Cursor & cur, FuncRequest const & cmd,
                        flag.message(bformat(
                                from_utf8(N_("Can't add vertical grid lines in '%1$s'")),
                                from_utf8(name)));
-                       flag.enabled(false);
+                       flag.setEnabled(false);
                        return true;
                }
                return InsetMathGrid::getStatus(cur, cmd, flag);
@@ -88,6 +89,7 @@ void InsetMathSubstack::infoize(odocstream & os) const
 
 void InsetMathSubstack::write(WriteStream & os) const
 {
+       MathEnsurer ensurer(os);
        os << "\\substack{";
        InsetMathGrid::write(os);
        os << "}\n";