Subversion Repositories Scribus

Compare Revisions

Regard whitespace Rev 22987 → Rev 22986

/trunk/Scribus/scribus/pdflib_core.cpp
113,7 → 113,6
 
class PdfPainter: public TextLayoutPainter
{
QByteArray m_backBuffer;
QByteArray m_glyphBuffer;
QByteArray m_pathBuffer;
// PageItem* m_item;
132,7 → 131,6
 
public:
PdfPainter(PageItem *ite, PDFLibCore *pdf, uint num, const ScPage* pag) :
m_backBuffer(),
m_glyphBuffer(),
m_pathBuffer(),
// m_item(ite),
476,7 → 474,7
 
QByteArray getBuffer()
{
return m_backBuffer + "BT\n" + m_glyphBuffer + "ET\n" + m_pathBuffer;
return "BT\n" + m_glyphBuffer + "ET\n" + m_pathBuffer;
}
 
void drawRect(QRectF rect)
485,17 → 483,17
// transform.translate(x(), y());
double rectX = x() + rect.x();
double rectY = -y() - rect.y();
m_backBuffer += "q\n";
m_backBuffer += transformToStr(transform) + " cm\n";
m_backBuffer += "n\n";
m_backBuffer += m_pdf->putColor(fillColor().color, fillColor().shade, true);
m_backBuffer += m_pdf->putColor(strokeColor().color, strokeColor().shade, false);
m_backBuffer += FToStr(rectX) + " " + FToStr(rectY) + " m\n";
m_backBuffer += FToStr(rectX + rect.width()) + " " + FToStr(rectY) + " l\n";
m_backBuffer += FToStr(rectX + rect.width()) + " " + FToStr(rectY - rect.height()) + " l\n";
m_backBuffer += FToStr(rectX) + " " + FToStr(rectY - rect.height()) + " l\n";
m_backBuffer += "h\nf\n";
m_backBuffer += "Q\n";
m_glyphBuffer += "q\n";
m_glyphBuffer += transformToStr(transform) + " cm\n";
m_glyphBuffer += "n\n";
m_glyphBuffer += m_pdf->putColor(fillColor().color, fillColor().shade, true);
m_glyphBuffer += m_pdf->putColor(strokeColor().color, strokeColor().shade, false);
m_glyphBuffer += FToStr(rectX) + " " + FToStr(rectY) + " m\n";
m_glyphBuffer += FToStr(rectX + rect.width()) + " " + FToStr(rectY) + " l\n";
m_glyphBuffer += FToStr(rectX + rect.width()) + " " + FToStr(rectY - rect.height()) + " l\n";
m_glyphBuffer += FToStr(rectX) + " " + FToStr(rectY - rect.height()) + " l\n";
m_glyphBuffer += "h\nf\n";
m_glyphBuffer += "Q\n";
}
 
void drawObject(PageItem* embedded)