Changeset View
Changeset View
Standalone View
Standalone View
plugins/flake/textshape/TextShape.cpp
Show First 20 Lines • Show All 251 Lines • ▼ Show 20 Line(s) | |||||
252 | void TextShape::saveOdf(KoShapeSavingContext &context) const | 252 | void TextShape::saveOdf(KoShapeSavingContext &context) const | ||
253 | { | 253 | { | ||
254 | KoXmlWriter &writer = context.xmlWriter(); | 254 | KoXmlWriter &writer = context.xmlWriter(); | ||
255 | 255 | | |||
256 | QString textHeight = additionalAttribute("fo:min-height"); | 256 | QString textHeight = additionalAttribute("fo:min-height"); | ||
257 | const_cast<TextShape *>(this)->removeAdditionalAttribute("fo:min-height"); | 257 | const_cast<TextShape *>(this)->removeAdditionalAttribute("fo:min-height"); | ||
258 | writer.startElement("draw:frame"); | 258 | writer.startElement("draw:frame"); | ||
259 | // if the TextShape is wrapped in a shrink to fit container we need to save the geometry of the container as | 259 | // if the TextShape is wrapped in a shrink to fit container we need to save the geometry of the container as | ||
260 | // the geomerty of the shape might have been changed. | 260 | // the geometry of the shape might have been changed. | ||
261 | if (ShrinkToFitShapeContainer *stf = dynamic_cast<ShrinkToFitShapeContainer *>(this->parent())) { | 261 | if (ShrinkToFitShapeContainer *stf = dynamic_cast<ShrinkToFitShapeContainer *>(this->parent())) { | ||
262 | stf->saveOdfAttributes(context, OdfSize | OdfPosition | OdfTransformation); | 262 | stf->saveOdfAttributes(context, OdfSize | OdfPosition | OdfTransformation); | ||
263 | saveOdfAttributes(context, OdfAdditionalAttributes | OdfMandatories | OdfCommonChildElements); | 263 | saveOdfAttributes(context, OdfAdditionalAttributes | OdfMandatories | OdfCommonChildElements); | ||
264 | } else { | 264 | } else { | ||
265 | saveOdfAttributes(context, OdfAllAttributes); | 265 | saveOdfAttributes(context, OdfAllAttributes); | ||
266 | } | 266 | } | ||
267 | 267 | | |||
268 | writer.startElement("draw:text-box"); | 268 | writer.startElement("draw:text-box"); | ||
▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines |