#include "LColor.h"
#include "lyxrc.h"
#include "lyxrow.h"
-#include "lyxrow_funcs.h"
#include "metricsinfo.h"
#include "paragraph.h"
#include "paragraph_funcs.h"
#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;
str += par_.getChar(pos);
#else
std::vector<char_type> str;
+ str.reserve(100);
str.push_back(par_.getChar(pos));
#endif
if (arabic) {
pain_.line(int(x_), y1, int(x_), y0, LColor::added_space);
- if (hfillExpansion(par_, row_, pos)) {
+ if (par_.hfillExpansion(row_, pos)) {
int const y2 = (y0 + y1) / 2;
if (pos >= body_pos) {
{
boost::crc_32_type crc;
for (pos_type i = row.pos(); i < row.endpos(); ++i) {
- const unsigned char b[] = { par.getChar(i) };
+ char_type const b[] = { par.getChar(i) };
crc.process_bytes(b, 1);
}
- const unsigned char b[] = { x, y, row.width() };
+ char_type const b[] = { x, y, row.width() };
crc.process_bytes(b, 3);
return crc.checksum();
}
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 &&