InsetQuotes::InsetQuotes(string const & str)
{
parseString(str);
+ setInsetName("InsetQuotes");
}
InsetQuotes::InsetQuotes(quote_language l, quote_side s, quote_times t)
: language_(l), side_(s), times_(t)
-{}
+{
+ setInsetName("InsetQuotes");
+}
InsetQuotes::InsetQuotes(char_type c, BufferParams const & params)
: language_(params.quotes_language), times_(params.quotes_times)
{
getPosition(c);
+ setInsetName("InsetQuotes");
}
: language_(l), times_(t)
{
getPosition(c);
+ setInsetName("InsetQuotes");
}
docstring dtext(text.begin(), text.end());
pi.pain.text(x, y, dtext, pi.base.font);
}
+ setPosCache(pi, x, y);
}
#include "vspace.h"
#include "frontends/FontMetrics.h"
-#include "frontends/nullpainter.h"
#include "frontends/Painter.h"
#include "insets/insettext.h"
namespace lyx {
using frontend::Painter;
-using frontend::NullPainter;
using frontend::FontMetrics;
using std::endl;
bool repaintAll)
{
// lyxerr << " paintPar: pit: " << pit << " at y: " << y << endl;
- static NullPainter nop;
- static PainterInfo nullpi(pi.base.bv, nop);
int const ww = pi.base.bv->workHeight();
pi.base.bv->coordCache().parPos()[&text][pit] = Point(x, y);
bool const inside = (y + rit->descent() >= 0
&& y - rit->ascent() < ww);
- RowPainter rp(inside ? pi : nullpi, text, pit, *rit, x, y);
+ RowPainter rp(pi, text, pit, *rit, x, y);
// Clear background of this row
// (if paragraph background was not cleared)
if (!repaintAll &&