diff options
Diffstat (limited to 'kword/KWTextImage.cpp')
-rw-r--r-- | kword/KWTextImage.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kword/KWTextImage.cpp b/kword/KWTextImage.cpp index 0a036d87..981ce1cb 100644 --- a/kword/KWTextImage.cpp +++ b/kword/KWTextImage.cpp @@ -95,35 +95,35 @@ void KWTextImage::drawCustomItem( TQPainter* p, int x, int y, int wpix, int hpix } } -void KWTextImage::save( TQDomElement & tqparentElem ) +void KWTextImage::save( TQDomElement & parentElem ) { // This code is similar to KWPictureFrameSet::save KWDocument * doc = static_cast<KWTextDocument *>(tqparent)->textFrameSet()->kWordDocument(); - TQDomElement imageElem = tqparentElem.ownerDocument().createElement( "PICTURE" ); - tqparentElem.appendChild( imageElem ); + TQDomElement imageElem = parentElem.ownerDocument().createElement( "PICTURE" ); + parentElem.appendChild( imageElem ); //imageElem.setAttribute( "keepAspectRatio", "true" ); - TQDomElement elem = tqparentElem.ownerDocument().createElement( "KEY" ); + TQDomElement elem = parentElem.ownerDocument().createElement( "KEY" ); imageElem.appendChild( elem ); image().getKey().saveAttributes( elem ); // Now we must take care that a <KEY> element will be written as a child of <PICTURES> doc->addTextImageRequest( this ); } -void KWTextImage::load( TQDomElement & tqparentElem ) +void KWTextImage::load( TQDomElement & parentElem ) { // This code is similar to KWPictureFrameSet::load KWDocument * doc = static_cast<KWTextDocument *>(tqparent)->textFrameSet()->kWordDocument(); // <IMAGE> (KOffice 1.0) or <PICTURE> (KWord 1.2) - TQDomNode node=tqparentElem.namedItem( "PICTURE" ); + TQDomNode node=parentElem.namedItem( "PICTURE" ); if ( node.isNull() ) { - node=tqparentElem.namedItem( "IMAGE" ); + node=parentElem.namedItem( "IMAGE" ); } TQDomElement image = node.toElement(); if ( image.isNull() ) - image = tqparentElem; // The data is directly child of <FORMAT> + image = parentElem; // The data is directly child of <FORMAT> // <KEY> TQDomElement keyElement = image.namedItem( "KEY" ).toElement(); if ( !keyElement.isNull() ) |