bool PictureShape::loadOdf(const KoXmlElement &element, KoShapeLoadingContext &context) { loadOdfAttributes(element, context, OdfAllAttributes); if (loadOdfFrame(element, context)) { // load contour (clip) KoImageData *imageData = qobject_cast<KoImageData*>(userData()); QSizeF scaleFactor(size().width() / imageData->imageSize().width(), size().height() / imageData->imageSize().height()); loadOdfClipContour(element, context, scaleFactor); // this is needed so that the image is already normalized when calling waitUntilReady e.g. by cstester m_clippingRect.normalize(imageData->imageSize()); return true; } return false; }
bool VideoShape::loadOdf(const KoXmlElement &element, KoShapeLoadingContext &context) { loadOdfAttributes(element, context, OdfAllAttributes); return loadOdfFrame(element, context); }
bool KoFormulaShape::loadOdf( const KoXmlElement& element, KoShapeLoadingContext &context ) { kDebug() <<"Loading ODF in Formula"; loadOdfAttributes(element, context, OdfAllAttributes); return loadOdfFrame(element, context); }