X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FMetricsInfo.cpp;h=02a458dbeb04c1dc603176335780df1ada16893c;hb=3f7d2a66f522a45583e0a8b0ba734bb71f0ddde0;hp=ff03e6214e8478cdcc604ad1b5b526218f442b5c;hpb=e1941582590eccc4071affe395f3d9a4db2de30b;p=lyx.git diff --git a/src/MetricsInfo.cpp b/src/MetricsInfo.cpp index ff03e6214e..02a458dbeb 100644 --- a/src/MetricsInfo.cpp +++ b/src/MetricsInfo.cpp @@ -18,13 +18,14 @@ #include "frontends/Painter.h" +#include "support/docstring.h" + #include +using namespace std; namespace lyx { -using std::string; - MetricsBase::MetricsBase() : bv(0), font(), style(LM_ST_TEXT), fontname("mathnormal"), @@ -38,17 +39,12 @@ MetricsBase::MetricsBase(BufferView * b, FontInfo const & f, int w) {} - -MetricsInfo::MetricsInfo() -{} - - -MetricsInfo::MetricsInfo(BufferView * bv, FontInfo const & font, int textwidth) - : base(bv, font, textwidth) +MetricsInfo::MetricsInfo(BufferView * bv, FontInfo const & font, int textwidth, + MacroContext const & mc) + : base(bv, font, textwidth), macrocontext(mc) {} - PainterInfo::PainterInfo(BufferView * bv, lyx::frontend::Painter & painter) : pain(painter), ltr_pos(false), erased_(false), full_repaint(true), background_color(Color_background) @@ -114,7 +110,6 @@ ArrayChanger::ArrayChanger(MetricsBase & mb) {} - ShapeChanger::ShapeChanger(FontInfo & font, FontShape shape) : Changer(font) {