#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"
#include "Lsstream.h"
+#include "support/BoostFormat.h"
+
using std::ostream;
extern MathCursor * mathcursor;
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
}
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;