Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/odtframe/KoOdtFrameReportLine.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 48 | { | |||
---|---|---|---|---|---|
71 | 71 | | |||
72 | m_frameStyleName = coll->insert(gs, "F"); | 72 | m_frameStyleName = coll->insert(gs, "F"); | ||
73 | //kreportDebug()<<*coll; | 73 | //kreportDebug()<<*coll; | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | void KoOdtFrameReportLine::createBody(KoXmlWriter *bodyWriter) const | 76 | void KoOdtFrameReportLine::createBody(KoXmlWriter *bodyWriter) const | ||
77 | { | 77 | { | ||
78 | // convert to inches | 78 | // convert to inches | ||
79 | qreal sx = INCH_TO_POINT(line()->startPoint().x() / KReportDpi::dpiX()); | 79 | qreal sx = INCH_TO_POINT(line()->startPoint().x() / KReportPrivate::dpiX()); | ||
80 | qreal sy = INCH_TO_POINT(line()->startPoint().y() / KReportDpi::dpiY()); | 80 | qreal sy = INCH_TO_POINT(line()->startPoint().y() / KReportPrivate::dpiY()); | ||
81 | qreal ex = INCH_TO_POINT(line()->endPoint().x() / KReportDpi::dpiX()); | 81 | qreal ex = INCH_TO_POINT(line()->endPoint().x() / KReportPrivate::dpiX()); | ||
82 | qreal ey = INCH_TO_POINT(line()->endPoint().y() / KReportDpi::dpiY()); | 82 | qreal ey = INCH_TO_POINT(line()->endPoint().y() / KReportPrivate::dpiY()); | ||
83 | qreal width = ex - sx; | 83 | qreal width = ex - sx; | ||
84 | qreal height = ey - sy; | 84 | qreal height = ey - sy; | ||
85 | 85 | | |||
86 | //kreportDebug()<<line()->startPoint()<<line()->endPoint(); | 86 | //kreportDebug()<<line()->startPoint()<<line()->endPoint(); | ||
87 | 87 | | |||
88 | bodyWriter->startElement("draw:rect"); | 88 | bodyWriter->startElement("draw:rect"); | ||
89 | bodyWriter->addAttribute("draw:id", itemName()); | 89 | bodyWriter->addAttribute("draw:id", itemName()); | ||
90 | bodyWriter->addAttribute("xml:id", itemName()); | 90 | bodyWriter->addAttribute("xml:id", itemName()); | ||
Show All 25 Lines |