26 class KDReports::FramePrivate
55 , d(new FramePrivate(*other.d))
71 d->m_widthUnit = unit;
77 d->m_heightUnit = unit;
82 d->m_padding = padding;
123 QTextFrameFormat format;
126 format.setWidth(QTextLength(QTextLength::FixedLength,
mmToPixels(d->m_width)));
128 format.setWidth(QTextLength(QTextLength::PercentageLength, d->m_width));
133 format.setHeight(QTextLength(QTextLength::FixedLength,
mmToPixels(d->m_height)));
135 format.setHeight(QTextLength(QTextLength::PercentageLength, d->m_height));
140 format.setBorder(d->m_border);
142 format.setPosition(QTextFrameFormat::InFlow);
144 QTextCursor &textDocCursor = builder.
cursor();
146 QTextFrame *frame = textDocCursor.insertFrame(format);
148 QTextCursor contentsCursor = frame->firstCursorPosition();
167 textDocCursor.movePosition(QTextCursor::End);
172 return new Frame(*
this);