]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formulamacro.C
fix #1073
[lyx.git] / src / mathed / formulamacro.C
index 8bc0531c0b544ece3105c86647c31e6fe82979eb..5cbf21b179ca26fb1c6979ff8e60e6ece72530da 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "formulamacro.h"
-#include "commandtags.h"
+#include "lfuns.h"
 #include "math_cursor.h"
 #include "math_parser.h"
 #include "math_macro.h"
 #include "math_macrotable.h"
 #include "math_macrotemplate.h"
-#include "math_metricsinfo.h"
+#include "metricsinfo.h"
 #include "math_support.h"
 #include "math_mathmlstream.h"
 #include "BufferView.h"
@@ -40,6 +37,8 @@
 
 #include "Lsstream.h"
 
+#include "support/BoostFormat.h"
+
 using std::ostream;
 
 extern MathCursor * mathcursor;
@@ -126,7 +125,11 @@ void InsetFormulaMacro::read(std::istream & is)
 
 string InsetFormulaMacro::prefix() const
 {
-       return string(" ") + _("Macro: ") + getInsetName() + ": ";
+#if USE_BOOST_FORMAT
+       return boost::io::str(boost::format(_(" Macro: %s: ")) % getInsetName());
+#else
+       return _(" Macro: ") + getInsetName() + ": ";
+#endif
 }
 
 
@@ -168,13 +171,13 @@ Inset::Code InsetFormulaMacro::lyxCode() const
 
 
 void InsetFormulaMacro::draw(BufferView * bv, LyXFont const & f,
-                            int y, float & xx, bool /*cleared*/) const
+                            int y, float & xx) const
 {
        // label
        LyXFont font(f);
        font.setColor(LColor::math);
 
-       MathPainterInfo pi = MathPainterInfo(bv->painter());
+       PainterInfo pi = PainterInfo(bv->painter());
        pi.base.style = LM_ST_TEXT;
        pi.base.font  = font;