38
38
* Return the bounding rectangle for this object.
41
ODrawToOdf::getRect(const OfficeArtFSPGR &r)
40
QRectF ODrawToOdf::getRect(const OfficeArtFSPGR &r)
43
42
return QRect(r.xLeft, r.yTop, r.xRight - r.xLeft, r.yBottom - r.yTop);
402
400
// fo:padding-left
403
402
// fo:padding-right
405
404
if (!ds.fAutoTextMargin() && ds.iTxid()) {
406
// Internal margins only make sense for shapes that contain text.
407
// TODO: Else the containing shape SHOULD use a set of default internal
408
// margins for text on shapes (test files required)
409
style.addPropertyPt("fo:padding-bottom", EMU_TO_POINT(ds.dyTextBottom()), gt);
405
// internal margins only make sense for shapes containing text
410
406
style.addPropertyPt("fo:padding-left", EMU_TO_POINT(ds.dxTextLeft()), gt);
407
style.addPropertyPt("fo:padding-top", EMU_TO_POINT(ds.dyTextTop()), gt);
411
408
style.addPropertyPt("fo:padding-right", EMU_TO_POINT(ds.dxTextRight()), gt);
412
style.addPropertyPt("fo:padding-top", EMU_TO_POINT(ds.dyTextTop()), gt);
409
style.addPropertyPt("fo:padding-bottom", EMU_TO_POINT(ds.dyTextBottom()), gt);
411
// default internal margins for text on shapes
412
style.addPropertyPt("fo:padding-left", EMU_TO_POINT(0x00016530), gt);
413
style.addPropertyPt("fo:padding-top", EMU_TO_POINT(0x0000B298), gt);
414
style.addPropertyPt("fo:padding-right", EMU_TO_POINT(0x00016530), gt);
415
style.addPropertyPt("fo:padding-bottom", EMU_TO_POINT(0x0000B298), gt);
414
417
// fo:wrap-option
415
418
// style:background-transparency