]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathCases.cpp
Coding style
[lyx.git] / src / mathed / InsetMathCases.cpp
index c38e91fda036c6848b36700abcf8b639f3c6f53f..15f7c0e43cd03cbf8767610b89f1e88f561b0dea 100644 (file)
 #include <ostream>
 
 using namespace std;
+using namespace lyx::support;
 
 namespace lyx {
 
-using support::bformat;
-
 
 InsetMathCases::InsetMathCases(row_type n)
        : InsetMathGrid(2, n, 'c', from_ascii("ll"))
@@ -93,7 +92,7 @@ bool InsetMathCases::getStatus(Cursor & cur, FuncRequest const & cmd,
        case LFUN_TABULAR_FEATURE: {
                docstring const & s = cmd.argument();
                if (s == "add-vline-left" || s == "add-vline-right") {
-                       flag.enabled(false);
+                       flag.setEnabled(false);
                        flag.message(bformat(
                                from_utf8(N_("No vertical grid lines in 'cases': feature %1$s")),
                                s));
@@ -108,6 +107,7 @@ bool InsetMathCases::getStatus(Cursor & cur, FuncRequest const & cmd,
 
 void InsetMathCases::write(WriteStream & os) const
 {
+       MathEnsurer ensurer(os);
        if (os.fragile())
                os << "\\protect";
        os << "\\begin{cases}\n";