Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/svg/SvgWriter.cpp
Context not available. | |||||
119 | << "\""; | 119 | << "\""; | ||
---|---|---|---|---|---|
120 | svgStream << ">" << endl; | 120 | svgStream << ">" << endl; | ||
121 | 121 | | |||
122 | if (!m_documentTitle.isNull() && !m_documentTitle.isEmpty()) { | ||||
123 | svgStream << "<title>" << m_documentTitle << "</title>" << endl; | ||||
124 | } | ||||
125 | | ||||
126 | if (!m_documentDescription.isNull() && !m_documentDescription.isEmpty()) { | ||||
127 | svgStream << "<desc>" << m_documentDescription << "</desc>" << endl; | ||||
128 | } | ||||
129 | | ||||
122 | { | 130 | { | ||
123 | SvgSavingContext savingContext(outputDevice, m_writeInlineImages); | 131 | SvgSavingContext savingContext(outputDevice, m_writeInlineImages); | ||
124 | saveShapes(m_toplevelShapes, savingContext); | 132 | saveShapes(m_toplevelShapes, savingContext); | ||
Context not available. | |||||
300 | // TODO: once we support saving single (flat) odf files | 308 | // TODO: once we support saving single (flat) odf files | ||
301 | // we can embed these here to have full support for generic shapes | 309 | // we can embed these here to have full support for generic shapes | ||
302 | } | 310 | } | ||
311 | | ||||
312 | void SvgWriter::setDocumentTitle(QString title) | ||||
313 | { | ||||
314 | m_documentTitle = title; | ||||
315 | } | ||||
316 | | ||||
317 | void SvgWriter::setDocumentDescription(QString description) | ||||
318 | { | ||||
319 | m_documentDescription = description; | ||||
320 | } | ||||
321 | | ||||
Context not available. |