Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/odtframe/KoOdtFrameReportPrimitive.cpp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | |||||
83 | void KoOdtFrameReportPrimitive::createBody(KoXmlWriter *bodyWriter) const | 83 | void KoOdtFrameReportPrimitive::createBody(KoXmlWriter *bodyWriter) const | ||
84 | { | 84 | { | ||
85 | Q_UNUSED(bodyWriter); | 85 | Q_UNUSED(bodyWriter); | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | void KoOdtFrameReportPrimitive::commonAttributes(KoXmlWriter *bodyWriter) const | 88 | void KoOdtFrameReportPrimitive::commonAttributes(KoXmlWriter *bodyWriter) const | ||
89 | { | 89 | { | ||
90 | // convert to inches | 90 | // convert to inches | ||
91 | qreal x = m_primitive->position().x() / KReportDpi::dpiX(); | 91 | qreal x = m_primitive->position().x() / KReportPrivate::dpiX(); | ||
92 | qreal y = m_primitive->position().y() / KReportDpi::dpiX(); | 92 | qreal y = m_primitive->position().y() / KReportPrivate::dpiX(); | ||
93 | qreal w = m_primitive->size().width() / KReportDpi::dpiX(); | 93 | qreal w = m_primitive->size().width() / KReportPrivate::dpiX(); | ||
94 | qreal h = m_primitive->size().height() / KReportDpi::dpiY(); | 94 | qreal h = m_primitive->size().height() / KReportPrivate::dpiY(); | ||
95 | 95 | | |||
96 | bodyWriter->addAttribute("svg:x", QString("%1in").arg(x)); | 96 | bodyWriter->addAttribute("svg:x", QString("%1in").arg(x)); | ||
97 | bodyWriter->addAttribute("svg:y", QString("%1in").arg(y)); | 97 | bodyWriter->addAttribute("svg:y", QString("%1in").arg(y)); | ||
98 | bodyWriter->addAttribute("svg:width", QString("%1in").arg(w)); | 98 | bodyWriter->addAttribute("svg:width", QString("%1in").arg(w)); | ||
99 | bodyWriter->addAttribute("svg:height", QString("%1in").arg(h)); | 99 | bodyWriter->addAttribute("svg:height", QString("%1in").arg(h)); | ||
100 | bodyWriter->addAttribute("draw:z-index", "3"); | 100 | bodyWriter->addAttribute("draw:z-index", "3"); | ||
101 | } | 101 | } | ||
102 | 102 | | |||
103 | bool KoOdtFrameReportPrimitive::saveData(KoStore */*store*/, KoXmlWriter*) const | 103 | bool KoOdtFrameReportPrimitive::saveData(KoStore */*store*/, KoXmlWriter*) const | ||
104 | { | 104 | { | ||
105 | return true; | 105 | return true; | ||
106 | } | 106 | } | ||
107 | 107 | |