diff options
author | Timothy Pearson <[email protected]> | 2011-12-19 11:38:41 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-19 11:38:41 -0600 |
commit | f0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (patch) | |
tree | 1fc538e179833e62caec21956bfe47a252be5a72 /filters/kpresenter | |
parent | 11191ef0b9908604d1d7aaca382b011ef22c454c (diff) | |
download | koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.tar.gz koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'filters/kpresenter')
-rwxr-xr-x | filters/kpresenter/magicpoint/mgp2kpr.py | 16 | ||||
-rw-r--r-- | filters/kpresenter/ooimpress/ooimpressexport.cc | 46 | ||||
-rw-r--r-- | filters/kpresenter/ooimpress/ooimpressimport.cc | 24 | ||||
-rw-r--r-- | filters/kpresenter/ooimpress/status.html | 4 | ||||
-rw-r--r-- | filters/kpresenter/ooimpress/stylefactory.cc | 48 | ||||
-rw-r--r-- | filters/kpresenter/powerpoint/import/powerpointimport.cc | 306 | ||||
-rw-r--r-- | filters/kpresenter/powerpoint/libppt/objects.cpp | 10 | ||||
-rw-r--r-- | filters/kpresenter/powerpoint/libppt/objects.h | 4 | ||||
-rw-r--r-- | filters/kpresenter/powerpoint/libppt/pole.cpp | 22 | ||||
-rw-r--r-- | filters/kpresenter/powerpoint/libppt/powerpoint.cpp | 14 | ||||
-rw-r--r-- | filters/kpresenter/powerpoint/libppt/powerpoint.h | 12 |
11 files changed, 253 insertions, 253 deletions
diff --git a/filters/kpresenter/magicpoint/mgp2kpr.py b/filters/kpresenter/magicpoint/mgp2kpr.py index e2e5b50a..c0609de6 100755 --- a/filters/kpresenter/magicpoint/mgp2kpr.py +++ b/filters/kpresenter/magicpoint/mgp2kpr.py @@ -56,7 +56,7 @@ class MgpImporter: self.__reset() #init properties def __reset(self): - self.tqalignment="1" #text tqalignment, left + self.alignment="1" #text alignment, left self.vgap=1 #line spacing #font properties @@ -167,14 +167,14 @@ class MgpImporter: def __setAlign(self,command): tokens=string.split(command,' ') if (tokens[0]=='leftfill'): #justify - self.tqalignment="8" + self.alignment="8" elif (tokens[0]=='right'): - self.tqalignment="2" + self.alignment="2" elif (tokens[0]=='center'): - self.tqalignment="4" + self.alignment="4" else: - self.tqalignment="1" #left - #print self.tqalignment + self.alignment="1" #left + #print self.alignment def __setBackground(self,parent): pageElem=self.document.createElement("PAGE") @@ -233,7 +233,7 @@ class MgpImporter: indent=-1 pElem=self.document.createElement("P") #paragraph - pElem.setAttribute("align", self.tqalignment) + pElem.setAttribute("align", self.alignment) elem=self.document.createElement("NAME") #style name elem.setAttribute("value", "Standard") ###is this needed at all? @@ -377,7 +377,7 @@ class MgpImporter: self.__setFontSize(command) elif (command.startswith('left') or command.startswith('center') or - command.startswith('right')): #text tqalignment + command.startswith('right')): #text alignment self.__setAlign(command) elif (command.startswith('charset')): #charset self.__setCharset(command) diff --git a/filters/kpresenter/ooimpress/ooimpressexport.cc b/filters/kpresenter/ooimpress/ooimpressexport.cc index be986d92..55a3e265 100644 --- a/filters/kpresenter/ooimpress/ooimpressexport.cc +++ b/filters/kpresenter/ooimpress/ooimpressexport.cc @@ -558,7 +558,7 @@ void OoImpressExport::createHelpLine( TQDomNode &helpline ) TQString str( "P%1,%2" ); int tmpX = ( int ) ( KoUnit::toMM( helplines.attribute("posX").toDouble() )*100 ); int tmpY = ( int ) ( KoUnit::toMM( helplines.attribute("posY").toDouble() )*100 ); - m_helpLine+=str.tqarg( TQString::number( tmpX ) ).tqarg( TQString::number( tmpY ) ); + m_helpLine+=str.arg( TQString::number( tmpX ) ).arg( TQString::number( tmpY ) ); } } } @@ -780,7 +780,7 @@ void OoImpressExport::appendTextbox( TQDomDocument & doc, TQDomElement & source, TQString gs = m_styleFactory.createGraphicStyle( source ); textbox.setAttribute( "draw:style-name", gs ); - // set the tqgeometry + // set the geometry set2DGeometry( source, textbox ); // parse every paragraph @@ -876,7 +876,7 @@ void OoImpressExport::appendPicture( TQDomDocument & doc, TQDomElement & source, image.setAttribute( "draw:style-name", gs ); TQDomElement key = source.namedItem( "KEY" ).toElement(); - TQString pictureName = TQString( "Picture/Picture%1" ).tqarg( m_pictureIndex ); + TQString pictureName = TQString( "Picture/Picture%1" ).arg( m_pictureIndex ); image.setAttribute( "xlink:type", "simple" ); image.setAttribute( "xlink:show", "embed" ); @@ -909,7 +909,7 @@ void OoImpressExport::appendPicture( TQDomDocument & doc, TQDomElement & source, } image.setAttribute( "xlink:href", "#" + pictureName ); -// set the tqgeometry +// set the geometry set2DGeometry( source, image ); target.appendChild( image ); @@ -927,7 +927,7 @@ void OoImpressExport::appendLine( TQDomDocument & doc, TQDomElement & source, TQ TQString gs = m_styleFactory.createGraphicStyle( source ); line.setAttribute( "draw:style-name", gs ); - // set the tqgeometry + // set the geometry setLineGeometry( source, line ); target.appendChild( line ); @@ -941,7 +941,7 @@ void OoImpressExport::appendRectangle( TQDomDocument & doc, TQDomElement & sourc TQString gs = m_styleFactory.createGraphicStyle( source ); rectangle.setAttribute( "draw:style-name", gs ); - // set the tqgeometry + // set the geometry set2DGeometry( source, rectangle ); target.appendChild( rectangle ); @@ -955,7 +955,7 @@ void OoImpressExport::appendPolyline( TQDomDocument & doc, TQDomElement & source TQString gs = m_styleFactory.createGraphicStyle( source ); polyline.setAttribute( "draw:style-name", gs ); - // set the tqgeometry + // set the geometry set2DGeometry( source, polyline, false, true /*multipoint*/ ); target.appendChild( polyline ); @@ -974,7 +974,7 @@ void OoImpressExport::appendEllipse( TQDomDocument & doc, TQDomElement & source, TQString gs = m_styleFactory.createGraphicStyle( source ); ellipse.setAttribute( "draw:style-name", gs ); - // set the tqgeometry + // set the geometry set2DGeometry( source, ellipse, pieObject ); target.appendChild( ellipse ); @@ -998,7 +998,7 @@ void OoImpressExport::set2DGeometry( TQDomElement & source, TQDomElement & targe target.setAttribute( "draw:id", TQString::number( m_objectIndex ) ); target.setAttribute( "svg:x", StyleFactory::toCM( orig.attribute( "x" ) ) ); - target.setAttribute( "svg:y", TQString( "%1cm" ).tqarg( KoUnit::toCM( y ) ) ); + target.setAttribute( "svg:y", TQString( "%1cm" ).arg( KoUnit::toCM( y ) ) ); target.setAttribute( "svg:width", StyleFactory::toCM( size.attribute( "width" ) ) ); target.setAttribute( "svg:height", StyleFactory::toCM( size.attribute( "height" ) ) ); TQString nameStr = name.attribute("objectName"); @@ -1073,16 +1073,16 @@ void OoImpressExport::set2DGeometry( TQDomElement & source, TQDomElement & targe if( elemPoint.hasAttribute( "point_y" ) ) tmpY = ( int ) ( KoUnit::toMM(elemPoint.attribute( "point_y" ).toDouble() )*100 ); if ( !listOfPoint.isEmpty() ) - listOfPoint += TQString( " %1,%2" ).tqarg( tmpX ).tqarg( tmpY ); + listOfPoint += TQString( " %1,%2" ).arg( tmpX ).arg( tmpY ); else - listOfPoint = TQString( "%1,%2" ).tqarg( tmpX ).tqarg( tmpY ); + listOfPoint = TQString( "%1,%2" ).arg( tmpX ).arg( tmpY ); maxX = TQMAX( maxX, tmpX ); maxY = TQMAX( maxY, tmpY ); } elemPoint = elemPoint.nextSibling().toElement(); } target.setAttribute( "draw:points", listOfPoint ); - target.setAttribute( "svg:viewBox", TQString( "0 0 %1 %2" ).tqarg( maxX ).tqarg( maxY ) ); + target.setAttribute( "svg:viewBox", TQString( "0 0 %1 %2" ).arg( maxX ).arg( maxY ) ); } } } @@ -1093,7 +1093,7 @@ TQString OoImpressExport::rotateValue( double val ) if ( val!=0.0 ) { double value = -1 * ( ( double )val* M_PI )/180.0; - str=TQString( "rotate (%1)" ).tqarg( value ); + str=TQString( "rotate (%1)" ).arg( value ); } return str; } @@ -1125,29 +1125,29 @@ void OoImpressExport::setLineGeometry( TQDomElement & source, TQDomElement & tar target.setAttribute( "draw:id", TQString::number( m_objectIndex ) ); TQString xpos1 = StyleFactory::toCM( orig.attribute( "x" ) ); - TQString xpos2 = TQString( "%1cm" ).tqarg( KoUnit::toCM( x2 ) ); + TQString xpos2 = TQString( "%1cm" ).arg( KoUnit::toCM( x2 ) ); if ( type == 0 ) { - target.setAttribute( "svg:y1", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2/2.0 ) ) ); - target.setAttribute( "svg:y2", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2/2.0 ) ) ); + target.setAttribute( "svg:y1", TQString( "%1cm" ).arg( KoUnit::toCM( y2/2.0 ) ) ); + target.setAttribute( "svg:y2", TQString( "%1cm" ).arg( KoUnit::toCM( y2/2.0 ) ) ); } else if ( type == 1 ) { - target.setAttribute( "svg:y1", TQString( "%1cm" ).tqarg( KoUnit::toCM( y1 ) ) ); - target.setAttribute( "svg:y2", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2 ) ) ); - xpos1 = TQString( "%1cm" ).tqarg( KoUnit::toCM( x1/2.0 ) ); + target.setAttribute( "svg:y1", TQString( "%1cm" ).arg( KoUnit::toCM( y1 ) ) ); + target.setAttribute( "svg:y2", TQString( "%1cm" ).arg( KoUnit::toCM( y2 ) ) ); + xpos1 = TQString( "%1cm" ).arg( KoUnit::toCM( x1/2.0 ) ); xpos2 = xpos1; } else if ( type == 3 ) // from left bottom to right top { - target.setAttribute( "svg:y1", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2 ) ) ); - target.setAttribute( "svg:y2", TQString( "%1cm" ).tqarg( KoUnit::toCM( y1 ) ) ); + target.setAttribute( "svg:y1", TQString( "%1cm" ).arg( KoUnit::toCM( y2 ) ) ); + target.setAttribute( "svg:y2", TQString( "%1cm" ).arg( KoUnit::toCM( y1 ) ) ); } else // from left top to right bottom { - target.setAttribute( "svg:y1", TQString( "%1cm" ).tqarg( KoUnit::toCM( y1 ) ) ); - target.setAttribute( "svg:y2", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2 ) ) ); + target.setAttribute( "svg:y1", TQString( "%1cm" ).arg( KoUnit::toCM( y1 ) ) ); + target.setAttribute( "svg:y2", TQString( "%1cm" ).arg( KoUnit::toCM( y2 ) ) ); } target.setAttribute( "svg:x1", xpos1 ); target.setAttribute( "svg:x2", xpos2 ); diff --git a/filters/kpresenter/ooimpress/ooimpressimport.cc b/filters/kpresenter/ooimpress/ooimpressimport.cc index f7322342..77e1f38c 100644 --- a/filters/kpresenter/ooimpress/ooimpressimport.cc +++ b/filters/kpresenter/ooimpress/ooimpressimport.cc @@ -1498,15 +1498,15 @@ TQDomElement OoImpressImport::parseTextBox( TQDomDocument& doc, const TQDomEleme TQDomElement textObjectElement = doc.createElement( "TEXTOBJ" ); appendTextObjectMargin( doc, textObjectElement ); - // vertical tqalignment + // vertical alignment if ( m_styleStack.hasAttributeNS( ooNS::draw, "textarea-vertical-align" ) ) { - TQString tqalignment = m_styleStack.attributeNS( ooNS::draw, "textarea-vertical-align" ); - if ( tqalignment == "top" ) + TQString alignment = m_styleStack.attributeNS( ooNS::draw, "textarea-vertical-align" ); + if ( alignment == "top" ) textObjectElement.setAttribute( "verticalAlign", "top" ); - else if ( tqalignment == "middle" ) + else if ( alignment == "middle" ) textObjectElement.setAttribute( "verticalAlign", "center" ); - else if ( tqalignment == "bottom" ) + else if ( alignment == "bottom" ) textObjectElement.setAttribute( "verticalAlign", "bottom" ); textObjectElement.setAttribute("verticalValue", 0.0); @@ -1663,7 +1663,7 @@ TQDomElement OoImpressImport::parseParagraph( TQDomDocument& doc, const TQDomEle p.appendChild(nameElem); } - // Paragraph tqalignment + // Paragraph alignment if ( m_styleStack.hasAttributeNS( ooNS::fo, "text-align" ) ) { TQString align = m_styleStack.attributeNS( ooNS::fo, "text-align" ); @@ -2046,7 +2046,7 @@ TQString OoImpressImport::storeImage( const TQDomElement& object ) KArchiveFile* file = (KArchiveFile*) m_zip->directory()->entry( url ); TQString extension = url.mid( url.find( '.' ) ); - TQString fileName = TQString( "picture%1" ).tqarg( m_numPicture++ ) + extension; + TQString fileName = TQString( "picture%1" ).arg( m_numPicture++ ) + extension; KoStoreDevice* out = m_chain->storageFile( "pictures/" + fileName, KoStore::Write ); if ( file && out ) @@ -2072,7 +2072,7 @@ TQString OoImpressImport::storeSound(const TQDomElement & object, TQDomElement & return TQString(); TQString extension = url.mid( url.find( '.' ) ); - TQString fileName = TQString( "sound%1" ).tqarg( m_numSound++ ) + extension; + TQString fileName = TQString( "sound%1" ).arg( m_numSound++ ) + extension; fileName = "sounds/" + fileName; KoStoreDevice* out = m_chain->storageFile( fileName, KoStore::Write ); @@ -2314,9 +2314,9 @@ void OoImpressImport::createPresentationAnimation(const TQDomElement& element) { const TQString localName = e.localName(); const TQString ns = e.namespaceURI(); - if ( ns == ooNS::presentation && localName == "show-tqshape" && e.hasAttributeNS( ooNS::draw, "tqshape-id" ) ) + if ( ns == ooNS::presentation && localName == "show-shape" && e.hasAttributeNS( ooNS::draw, "shape-id" ) ) { - TQString name = e.attributeNS( ooNS::draw, "tqshape-id", TQString() ); + TQString name = e.attributeNS( ooNS::draw, "shape-id", TQString() ); //kdDebug(30518)<<" insert animation style : name :"<<name<<endl; animationList *lst = new animationList; TQDomElement* ep = new TQDomElement( e ); @@ -2342,8 +2342,8 @@ TQDomElement OoImpressImport::findAnimationByObjectID(const TQString & id, int { TQDomElement e = node.toElement(); order = animation->order; - kdDebug(30518)<<"e.tagName() :"<<e.tagName()<<" e.attribute(draw:tqshape-id) :"<<e.attributeNS( ooNS::draw, "tqshape-id", TQString())<<endl; - if (e.tagName()=="presentation:show-tqshape" && e.attributeNS( ooNS::draw, "tqshape-id", TQString())==id) + kdDebug(30518)<<"e.tagName() :"<<e.tagName()<<" e.attribute(draw:shape-id) :"<<e.attributeNS( ooNS::draw, "shape-id", TQString())<<endl; + if (e.tagName()=="presentation:show-shape" && e.attributeNS( ooNS::draw, "shape-id", TQString())==id) return e; } diff --git a/filters/kpresenter/ooimpress/status.html b/filters/kpresenter/ooimpress/status.html index f64a38b0..8c34c4d1 100644 --- a/filters/kpresenter/ooimpress/status.html +++ b/filters/kpresenter/ooimpress/status.html @@ -61,7 +61,7 @@ - Rounding (for rectangles)<br> - Shadow<br> - Text margins<br> - -Qt::Vertical tqalignment for text<br> + -Qt::Vertical alignment for text<br> - Text style (underline, sub/super script, bold, italic, strikeout, background color)<br> - Paragraph style (line spacing, offset before/after paragraph, indent first/right/left, borders)<br> - Presentation settings<br> @@ -168,7 +168,7 @@ - Settings element (snap line drawing)<br> - Export Transparency<br> - Export Group Object<br> - -Qt::Vertical tqalignment for text<br> + -Qt::Vertical alignment for text<br> - Text margins<br> - Export title/keyword/subject<br> - Custom Slide Show<br> diff --git a/filters/kpresenter/ooimpress/stylefactory.cc b/filters/kpresenter/ooimpress/stylefactory.cc index a25ba52a..e50b652e 100644 --- a/filters/kpresenter/ooimpress/stylefactory.cc +++ b/filters/kpresenter/ooimpress/stylefactory.cc @@ -362,7 +362,7 @@ void StrokeDashStyle::toXML( TQDomDocument & doc, TQDomElement & e ) const GradientStyle::GradientStyle( TQDomElement & gradient, int index ) { - m_name = TQString( "Gradient %1" ).tqarg( index ); + m_name = TQString( "Gradient %1" ).arg( index ); m_start_intensity = "100%"; m_end_intensity = "100%"; m_border = "0%"; @@ -393,8 +393,8 @@ GradientStyle::GradientStyle( TQDomElement & gradient, int index ) { int cx = bGradient.attribute( "xfactor" ).toInt(); int cy = bGradient.attribute( "yfactor" ).toInt(); - m_cx = TQString( "%1%" ).tqarg( cx / 4 + 50 ); - m_cy = TQString( "%1%" ).tqarg( cy / 4 + 50 ); + m_cx = TQString( "%1%" ).arg( cx / 4 + 50 ); + m_cy = TQString( "%1%" ).arg( cy / 4 + 50 ); } } @@ -419,8 +419,8 @@ GradientStyle::GradientStyle( TQDomElement & gradient, int index ) { int cx = gradient.attribute( "xfactor" ).toInt(); int cy = gradient.attribute( "yfactor" ).toInt(); - m_cx = TQString( "%1%" ).tqarg( cx / 4 + 50 ); - m_cy = TQString( "%1%" ).tqarg( cy / 4 + 50 ); + m_cx = TQString( "%1%" ).arg( cx / 4 + 50 ); + m_cy = TQString( "%1%" ).arg( cy / 4 + 50 ); } } @@ -615,8 +615,8 @@ PageMasterStyle::PageMasterStyle( TQDomElement & e, const uint index ) TQDomNode borders = e.namedItem( "PAPERBORDERS" ); TQDomElement b = borders.toElement(); - m_name = TQString( "PM%1" ).tqarg( index ); - m_style = TQString( "Default%1" ).tqarg( index ); + m_name = TQString( "PM%1" ).arg( index ); + m_style = TQString( "Default%1" ).arg( index ); m_margin_top = StyleFactory::toCM( b.attribute( "ptTop" ) ); m_margin_bottom = StyleFactory::toCM( b.attribute( "ptBottom" ) ); m_margin_left = StyleFactory::toCM( b.attribute( "ptLeft" ) ); @@ -675,7 +675,7 @@ PageStyle::PageStyle( StyleFactory * styleFactory, TQDomElement & e, const uint m_bg_objects_visible = "true"; } - m_name = TQString( "dp%1" ).tqarg( index ); + m_name = TQString( "dp%1" ).arg( index ); // check if this is an empty page tag if ( !e.hasChildNodes() ) @@ -718,7 +718,7 @@ PageStyle::PageStyle( StyleFactory * styleFactory, TQDomElement & e, const uint //ISO8601 chapter 5.5.3.2 //TQDate doesn't encode it as this format. - m_page_duration = TQString( "PT%1H%2M%3S" ).tqarg( hours ).tqarg( ms ).tqarg( sec ); + m_page_duration = TQString( "PT%1H%2M%3S" ).arg( hours ).arg( ms ).arg( sec ); } TQDomElement pageEffect = e.namedItem( "PGEFFECT" ).toElement(); @@ -899,11 +899,11 @@ bool PageStyle::operator==( const PageStyle & pageStyle ) const TextStyle::TextStyle( TQDomElement & e, const uint index ) { - m_name = TQString( "T%1" ).tqarg( index ); + m_name = TQString( "T%1" ).arg( index ); if ( e.hasAttribute( "family" ) ) m_font_family = e.attribute( "family" ); if ( e.hasAttribute( "pointSize" ) ) - m_font_size = TQString( "%1pt" ).tqarg( e.attribute( "pointSize" ) ); + m_font_size = TQString( "%1pt" ).arg( e.attribute( "pointSize" ) ); if ( e.hasAttribute( "color" ) ) m_color = e.attribute( "color" ); if ( e.hasAttribute( "bold" ) && e.attribute( "bold" ) == "1" ) @@ -1017,25 +1017,25 @@ GraphicStyle::GraphicStyle( StyleFactory * styleFactory, TQDomElement & e, const } if ( textObjectElement.hasAttribute( "bleftpt" ) ) { - m_textMarginLeft = TQString( "%1pt" ).tqarg( textObjectElement.attribute( "bleftpt" ) ); + m_textMarginLeft = TQString( "%1pt" ).arg( textObjectElement.attribute( "bleftpt" ) ); } if ( textObjectElement.hasAttribute( "bbottompt" ) ) { - m_textMarginBottom = TQString( "%1pt" ).tqarg( textObjectElement.attribute( "bbottompt" ) ); + m_textMarginBottom = TQString( "%1pt" ).arg( textObjectElement.attribute( "bbottompt" ) ); } if ( textObjectElement.hasAttribute( "btoppt" ) ) { - m_textMarginTop = TQString( "%1pt" ).tqarg( textObjectElement.attribute( "btoppt" ) ); + m_textMarginTop = TQString( "%1pt" ).arg( textObjectElement.attribute( "btoppt" ) ); } if ( textObjectElement.hasAttribute( "brightpt" ) ) { - m_textMarginRight = TQString( "%1pt" ).tqarg( textObjectElement.attribute( "brightpt" ) ); + m_textMarginRight = TQString( "%1pt" ).arg( textObjectElement.attribute( "brightpt" ) ); } } - kdDebug(30518)<<" tqalignment :"<<m_textAlignment<<endl; + kdDebug(30518)<<" alignment :"<<m_textAlignment<<endl; - m_name = TQString( "gr%1" ).tqarg( index ); + m_name = TQString( "gr%1" ).arg( index ); if ( !pen.isNull() ) { TQDomElement p = pen.toElement(); @@ -1352,7 +1352,7 @@ ParagraphStyle::ParagraphStyle( TQDomElement & e, const uint index ) TQDomNode lineSpacing = e.namedItem( "LINESPACING" ); TQDomNode counter = e.namedItem( "COUNTER" ); - m_name = TQString( "P%1" ).tqarg( index ); + m_name = TQString( "P%1" ).arg( index ); if ( e.hasAttribute( "align" ) ) { int align = e.attribute( "align" ).toInt(); @@ -1376,7 +1376,7 @@ ParagraphStyle::ParagraphStyle( TQDomElement & e, const uint index ) if ( !shadow.isNull() ) { TQDomElement s = shadow.toElement(); - TQString distance = TQString( "%1pt" ).tqarg( s.attribute( "distance" ) ); + TQString distance = TQString( "%1pt" ).arg( s.attribute( "distance" ) ); m_text_shadow = distance + " " + distance; } @@ -1416,7 +1416,7 @@ ParagraphStyle::ParagraphStyle( TQDomElement & e, const uint index ) else if ( type == "double" ) m_line_height = "200%"; else if ( type == "multiple" ) - m_line_height = TQString( "%1%" ).tqarg( l.attribute( "spacingvalue" ).toInt() * 100 ); + m_line_height = TQString( "%1%" ).arg( l.attribute( "spacingvalue" ).toInt() * 100 ); else if ( type == "custom" ) m_line_spacing = StyleFactory::toCM( l.attribute( "spacingvalue" ) ); else if ( type == "atleast" ) @@ -1503,7 +1503,7 @@ TQString ParagraphStyle::parseBorder( TQDomElement e ) e.attribute( "green" ).toInt(), e.attribute( "blue" ).toInt() ); - return TQString( "%1 %2 %3" ).tqarg( width ).tqarg( style ).tqarg( color.name() ); + return TQString( "%1 %2 %3" ).arg( width ).arg( style ).arg( color.name() ); } ListStyle::ListStyle( TQDomElement & e, const uint index ) @@ -1513,7 +1513,7 @@ ListStyle::ListStyle( TQDomElement & e, const uint index ) m_color = "#000000"; m_font_size = "100%"; - m_name = TQString( "L%1" ).tqarg( index ); + m_name = TQString( "L%1" ).arg( index ); if ( e.hasAttribute( "type" ) ) { @@ -1598,9 +1598,9 @@ void ListStyle::toXML( TQDomDocument & doc, TQDomElement & e ) const if ( level > 1 ) { properties.setAttribute( "text:min-label-width", - TQString( "%1cm" ).tqarg( m_min_label_width ) ); + TQString( "%1cm" ).arg( m_min_label_width ) ); properties.setAttribute( "text:space-before", - TQString( "%1cm" ).tqarg( m_min_label_width * ( level - 1 ) ) ); + TQString( "%1cm" ).arg( m_min_label_width * ( level - 1 ) ) ); } if ( !m_color.isNull() ) diff --git a/filters/kpresenter/powerpoint/import/powerpointimport.cc b/filters/kpresenter/powerpoint/import/powerpointimport.cc index 0b89e187..8b9d1e77 100644 --- a/filters/kpresenter/powerpoint/import/powerpointimport.cc +++ b/filters/kpresenter/powerpoint/import/powerpointimport.cc @@ -156,8 +156,8 @@ TQByteArray PowerPointImport::createStyles() TQByteArray stylesData; TQBuffer stylesBuffer( stylesData ); - TQString pageWidth = TQString("%1pt").tqarg( d->presentation->masterSlide()->pageWidth() ); - TQString pageHeight = TQString("%1pt").tqarg( d->presentation->masterSlide()->pageHeight() ); + TQString pageWidth = TQString("%1pt").arg( d->presentation->masterSlide()->pageWidth() ); + TQString pageHeight = TQString("%1pt").arg( d->presentation->masterSlide()->pageHeight() ); stylesBuffer.open( IO_WriteOnly ); stylesWriter = new KoXmlWriter( &stylesBuffer ); @@ -351,11 +351,11 @@ void PowerPointImport::processEllipse (DrawObject* drawObject, KoXmlWriter* xmlW { if( !drawObject || !xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); xmlWriter->startElement( "draw:ellipse" ); xmlWriter->addAttribute( "draw:style-name", styleName ); @@ -372,11 +372,11 @@ void PowerPointImport::processRectangle (DrawObject* drawObject, KoXmlWriter* xm if( !drawObject ) return; if( !xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); xmlWriter->startElement( "draw:rect" ); xmlWriter->addAttribute( "draw:style-name", styleName ); @@ -393,7 +393,7 @@ void PowerPointImport::processRectangle (DrawObject* drawObject, KoXmlWriter* xm double xNew = xVec*cos(rotAngle) - yVec*sin(rotAngle); double yNew = xVec*sin(rotAngle) + yVec*cos(rotAngle); - TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").tqarg(rotAngle).tqarg(xNew+xMid).tqarg(yMid-yNew); + TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").arg(rotAngle).arg(xNew+xMid).arg(yMid-yNew); xmlWriter->addAttribute( "draw:transform", rot ); } else @@ -409,13 +409,13 @@ void PowerPointImport::processRoundRectangle (DrawObject* drawObject, KoXmlWrite { if( !drawObject || !xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); - xmlWriter->startElement( "draw:custom-tqshape" ); + xmlWriter->startElement( "draw:custom-shape" ); xmlWriter->addAttribute( "draw:style-name", styleName ); @@ -435,7 +435,7 @@ void PowerPointImport::processRoundRectangle (DrawObject* drawObject, KoXmlWrite double xNew = xVec*cos(rotAngle) - yVec*sin(rotAngle); double yNew = xVec*sin(rotAngle) + yVec*cos(rotAngle); - TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").tqarg(rotAngle).tqarg(xNew+xMid).tqarg(yMid+yNew); + TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").arg(rotAngle).arg(xNew+xMid).arg(yMid+yNew); xmlWriter->addAttribute( "draw:transform", rot ); } else @@ -448,7 +448,7 @@ void PowerPointImport::processRoundRectangle (DrawObject* drawObject, KoXmlWrite double xNew = xVec*cos(rotAngle) - yVec*sin(rotAngle); double yNew = xVec*sin(rotAngle) + yVec*cos(rotAngle); - TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").tqarg(rotAngle).tqarg(xNew+xMid).tqarg(yMid-yNew); + TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").arg(rotAngle).arg(xNew+xMid).arg(yMid-yNew); xmlWriter->addAttribute( "draw:transform", rot ); } @@ -464,7 +464,7 @@ void PowerPointImport::processRoundRectangle (DrawObject* drawObject, KoXmlWrite // xmlWriter->addAttribute( "svg:y", yStr ); xmlWriter->addAttribute( "draw:layer", "tqlayout" ); - xmlWriter->startElement( "draw:enhanced-tqgeometry" ); + xmlWriter->startElement( "draw:enhanced-geometry" ); xmlWriter->addAttribute( "draw:type", "round-rectangle"); xmlWriter->startElement( "draw:equation" ); xmlWriter->addAttribute( "draw:formula", "$0 /3" ); @@ -486,21 +486,21 @@ void PowerPointImport::processRoundRectangle (DrawObject* drawObject, KoXmlWrite xmlWriter->addAttribute( "draw:formula", "top+?f0 " ); xmlWriter->addAttribute( "draw:name", "f4" ); xmlWriter->endElement(); // draw:equation - xmlWriter->endElement(); // draw:enhanced-tqgeometry - xmlWriter->endElement(); // draw:custom-tqshape + xmlWriter->endElement(); // draw:enhanced-geometry + xmlWriter->endElement(); // draw:custom-shape } void PowerPointImport::processDiamond (DrawObject* drawObject, KoXmlWriter* xmlWriter ) { if( !drawObject || !xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); - xmlWriter->startElement( "draw:custom-tqshape" ); + xmlWriter->startElement( "draw:custom-shape" ); xmlWriter->addAttribute( "draw:style-name", styleName ); xmlWriter->addAttribute( "svg:width", widthStr ); xmlWriter->addAttribute( "svg:height", heightStr ); @@ -522,7 +522,7 @@ void PowerPointImport::processDiamond (DrawObject* drawObject, KoXmlWriter* xmlW xmlWriter->addAttribute( "svg:x", 10 ); xmlWriter->addAttribute( "svg:y", 5 ); xmlWriter->endElement(); - xmlWriter->startElement( "draw:enhanced-tqgeometry" ); + xmlWriter->startElement( "draw:enhanced-geometry" ); xmlWriter->addAttribute( "draw:type", "diamond"); xmlWriter->endElement(); xmlWriter->addAttribute( "draw:layer", "tqlayout" ); @@ -533,14 +533,14 @@ void PowerPointImport::processTriangle (DrawObject* drawObject, KoXmlWriter* xml { if( !drawObject || !xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); /* draw IsocelesTriangle or RightTriangle */ - xmlWriter->startElement( "draw:custom-tqshape" ); + xmlWriter->startElement( "draw:custom-shape" ); xmlWriter->addAttribute( "draw:style-name", styleName ); xmlWriter->addAttribute( "svg:width", widthStr ); xmlWriter->addAttribute( "svg:height", heightStr ); @@ -572,7 +572,7 @@ void PowerPointImport::processTriangle (DrawObject* drawObject, KoXmlWriter* xml xmlWriter->addAttribute( "svg:y", 5 ); xmlWriter->endElement(); - xmlWriter->startElement( "draw:enhanced-tqgeometry" ); + xmlWriter->startElement( "draw:enhanced-geometry" ); if (drawObject->hasProperty("draw:mirror-vertical")) { @@ -588,14 +588,14 @@ void PowerPointImport::processTriangle (DrawObject* drawObject, KoXmlWriter* xml double rotAngle = drawObject->getDoubleProperty("libppt:rotation" ); double xMid = ( drawObject->left() + 0.5*drawObject->width() ); double yMid = ( drawObject->top() + 0.5*drawObject->height() ); - TQString rot = TQString("rotate (%1) translate (%2cm %3cm)").tqarg(rotAngle).tqarg(xMid).tqarg(yMid); + TQString rot = TQString("rotate (%1) translate (%2cm %3cm)").arg(rotAngle).arg(xMid).arg(yMid); xmlWriter->addAttribute( "draw:transform", rot ); } - if (drawObject->tqshape() == DrawObject::RightTriangle) + if (drawObject->shape() == DrawObject::RightTriangle) { xmlWriter->addAttribute( "draw:type", "right-triangle"); } - else if (drawObject->tqshape() == DrawObject::IsoscelesTriangle) + else if (drawObject->shape() == DrawObject::IsoscelesTriangle) { xmlWriter->addAttribute( "draw:type", "isosceles-triangle"); xmlWriter->startElement( "draw:equation" ); @@ -637,21 +637,21 @@ void PowerPointImport::processTriangle (DrawObject* drawObject, KoXmlWriter* xml xmlWriter->endElement(); } - xmlWriter->endElement(); // enhanced-tqgeometry - xmlWriter->endElement(); // custom-tqshape + xmlWriter->endElement(); // enhanced-geometry + xmlWriter->endElement(); // custom-shape } void PowerPointImport::processTrapezoid (DrawObject* drawObject, KoXmlWriter* xmlWriter ) { if( !drawObject || !xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); - xmlWriter->startElement( "draw:custom-tqshape" ); + xmlWriter->startElement( "draw:custom-shape" ); xmlWriter->addAttribute( "draw:style-name", styleName ); xmlWriter->addAttribute( "svg:width", widthStr ); xmlWriter->addAttribute( "svg:height", heightStr ); @@ -675,7 +675,7 @@ void PowerPointImport::processTrapezoid (DrawObject* drawObject, KoXmlWriter* xm xmlWriter->addAttribute( "svg:x", 5 ); xmlWriter->addAttribute( "svg:y", 10 ); xmlWriter->endElement(); - xmlWriter->startElement( "draw:enhanced-tqgeometry" ); + xmlWriter->startElement( "draw:enhanced-geometry" ); if ( drawObject->hasProperty("draw:mirror-vertical") ) { xmlWriter->addAttribute("draw:mirror-vertical","true"); @@ -718,21 +718,21 @@ void PowerPointImport::processTrapezoid (DrawObject* drawObject, KoXmlWriter* xm xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0); xmlWriter->addAttribute("draw:handle-position","$0 bottom"); xmlWriter->endElement(); - xmlWriter->endElement(); // enhanced-tqgeometry - xmlWriter->endElement(); // custom-tqshape + xmlWriter->endElement(); // enhanced-geometry + xmlWriter->endElement(); // custom-shape } void PowerPointImport::processParallelogram (DrawObject* drawObject, KoXmlWriter* xmlWriter ) { if( !drawObject || !xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); - xmlWriter->startElement( "draw:custom-tqshape" ); + xmlWriter->startElement( "draw:custom-shape" ); xmlWriter->addAttribute( "draw:style-name", styleName ); xmlWriter->addAttribute( "svg:width", widthStr ); xmlWriter->addAttribute( "svg:height", heightStr ); @@ -763,7 +763,7 @@ void PowerPointImport::processParallelogram (DrawObject* drawObject, KoXmlWriter xmlWriter->addAttribute( "svg:x", 1.25 ); xmlWriter->addAttribute( "svg:y", 5 ); xmlWriter->endElement(); - xmlWriter->startElement( "draw:enhanced-tqgeometry" ); + xmlWriter->startElement( "draw:enhanced-geometry" ); if (drawObject->hasProperty("draw:mirror-vertical")) { xmlWriter->addAttribute("draw:mirror-vertical","true"); @@ -834,21 +834,21 @@ void PowerPointImport::processParallelogram (DrawObject* drawObject, KoXmlWriter xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0); xmlWriter->addAttribute("draw:handle-position","$0 top"); xmlWriter->endElement(); - xmlWriter->endElement(); // enhanced-tqgeometry - xmlWriter->endElement(); // custom-tqshape + xmlWriter->endElement(); // enhanced-geometry + xmlWriter->endElement(); // custom-shape } void PowerPointImport::processHexagon (DrawObject* drawObject, KoXmlWriter* xmlWriter ) { if( !drawObject || !xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); - xmlWriter->startElement( "draw:custom-tqshape" ); + xmlWriter->startElement( "draw:custom-shape" ); xmlWriter->addAttribute( "draw:style-name", styleName ); xmlWriter->addAttribute( "svg:width", widthStr ); xmlWriter->addAttribute( "svg:height", heightStr ); @@ -871,7 +871,7 @@ void PowerPointImport::processHexagon (DrawObject* drawObject, KoXmlWriter* xmlW xmlWriter->addAttribute( "svg:x", 10 ); xmlWriter->addAttribute( "svg:y", 5 ); xmlWriter->endElement(); - xmlWriter->startElement( "draw:enhanced-tqgeometry" ); + xmlWriter->startElement( "draw:enhanced-geometry" ); xmlWriter->addAttribute( "draw:type", "hexagon" ); xmlWriter->startElement( "draw:equation" ); xmlWriter->addAttribute( "draw:formula", "$0 " ); @@ -898,21 +898,21 @@ void PowerPointImport::processHexagon (DrawObject* drawObject, KoXmlWriter* xmlW xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0); xmlWriter->addAttribute("draw:handle-position","$0 top"); xmlWriter->endElement(); - xmlWriter->endElement(); // enhanced-tqgeometry - xmlWriter->endElement(); // custom-tqshape + xmlWriter->endElement(); // enhanced-geometry + xmlWriter->endElement(); // custom-shape } void PowerPointImport::processOctagon (DrawObject* drawObject, KoXmlWriter* xmlWriter ) { if( !drawObject || !xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); - xmlWriter->startElement( "draw:custom-tqshape" ); + xmlWriter->startElement( "draw:custom-shape" ); xmlWriter->addAttribute( "draw:style-name", styleName ); xmlWriter->addAttribute( "svg:width", widthStr ); xmlWriter->addAttribute( "svg:height", heightStr ); @@ -935,7 +935,7 @@ void PowerPointImport::processOctagon (DrawObject* drawObject, KoXmlWriter* xmlW xmlWriter->addAttribute( "svg:x", 10 ); xmlWriter->addAttribute( "svg:y", 4.782 ); xmlWriter->endElement(); - xmlWriter->startElement( "draw:enhanced-tqgeometry" ); + xmlWriter->startElement( "draw:enhanced-geometry" ); xmlWriter->addAttribute( "draw:type", "octagon" ); xmlWriter->startElement( "draw:equation" ); xmlWriter->addAttribute( "draw:formula", "left+$0 " ); @@ -978,36 +978,36 @@ void PowerPointImport::processOctagon (DrawObject* drawObject, KoXmlWriter* xmlW xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0); xmlWriter->addAttribute("draw:handle-position","$0 top"); xmlWriter->endElement(); - xmlWriter->endElement(); // enhanced-tqgeometry - xmlWriter->endElement(); // custom-tqshape + xmlWriter->endElement(); // enhanced-geometry + xmlWriter->endElement(); // custom-shape } void PowerPointImport::processArrow (DrawObject* drawObject, KoXmlWriter* xmlWriter ) { if( !drawObject || !xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); - xmlWriter->startElement( "draw:custom-tqshape" ); + xmlWriter->startElement( "draw:custom-shape" ); xmlWriter->addAttribute( "draw:style-name", styleName ); xmlWriter->addAttribute( "svg:width", widthStr ); xmlWriter->addAttribute( "svg:height", heightStr ); xmlWriter->addAttribute( "svg:x", xStr ); xmlWriter->addAttribute( "svg:y", yStr ); xmlWriter->addAttribute( "draw:layer", "tqlayout" ); - xmlWriter->startElement( "draw:enhanced-tqgeometry" ); + xmlWriter->startElement( "draw:enhanced-geometry" ); - if (drawObject->tqshape() == DrawObject::RightArrow) + if (drawObject->shape() == DrawObject::RightArrow) xmlWriter->addAttribute( "draw:type", "right-arrow" ); - else if (drawObject->tqshape() == DrawObject::LeftArrow) + else if (drawObject->shape() == DrawObject::LeftArrow) xmlWriter->addAttribute( "draw:type", "left-arrow" ); - else if (drawObject->tqshape() == DrawObject::UpArrow) + else if (drawObject->shape() == DrawObject::UpArrow) xmlWriter->addAttribute( "draw:type", "up-arrow" ); - else if (drawObject->tqshape() == DrawObject::DownArrow) + else if (drawObject->shape() == DrawObject::DownArrow) xmlWriter->addAttribute( "draw:type", "down-arrow" ); xmlWriter->startElement( "draw:equation" ); xmlWriter->addAttribute( "draw:formula","$1"); @@ -1042,7 +1042,7 @@ void PowerPointImport::processArrow (DrawObject* drawObject, KoXmlWriter* xmlWri xmlWriter->addAttribute( "draw:name","f7"); xmlWriter->endElement(); // draw:equation xmlWriter->startElement( "draw:handle" ); - if ( drawObject->tqshape() == DrawObject::RightArrow | drawObject->tqshape() == DrawObject::LeftArrow ) + if ( drawObject->shape() == DrawObject::RightArrow | drawObject->shape() == DrawObject::LeftArrow ) { xmlWriter->addAttribute( "draw:handle-range-x-maximum", 21600); xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0); @@ -1050,7 +1050,7 @@ void PowerPointImport::processArrow (DrawObject* drawObject, KoXmlWriter* xmlWri xmlWriter->addAttribute("draw:handle-range-y-maximum",10800); xmlWriter->addAttribute("draw:handle-range-y-minimum",0); } - else if ( drawObject->tqshape() == DrawObject::UpArrow | drawObject->tqshape() == DrawObject::DownArrow ) + else if ( drawObject->shape() == DrawObject::UpArrow | drawObject->shape() == DrawObject::DownArrow ) { xmlWriter->addAttribute( "draw:handle-range-x-maximum", 10800); xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0); @@ -1059,19 +1059,19 @@ void PowerPointImport::processArrow (DrawObject* drawObject, KoXmlWriter* xmlWri xmlWriter->addAttribute("draw:handle-range-y-minimum",0); } xmlWriter->endElement(); // draw:handle - xmlWriter->endElement(); // draw:enhanced-tqgeometry - xmlWriter->endElement(); // draw:custom-tqshape + xmlWriter->endElement(); // draw:enhanced-geometry + xmlWriter->endElement(); // draw:custom-shape } void PowerPointImport::processLine (DrawObject* drawObject, KoXmlWriter* xmlWriter ) { if( !drawObject || !xmlWriter) return; - TQString x1Str = TQString("%1mm").tqarg( drawObject->left() ); - TQString y1Str = TQString("%1mm").tqarg( drawObject->top() ); - TQString x2Str = TQString("%1mm").tqarg( drawObject->left() + drawObject->width() ); - TQString y2Str = TQString("%1mm").tqarg( drawObject->top() + drawObject->height() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString x1Str = TQString("%1mm").arg( drawObject->left() ); + TQString y1Str = TQString("%1mm").arg( drawObject->top() ); + TQString x2Str = TQString("%1mm").arg( drawObject->left() + drawObject->width() ); + TQString y2Str = TQString("%1mm").arg( drawObject->top() + drawObject->height() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); if ( drawObject->hasProperty("draw:mirror-vertical") ) { TQString temp = y1Str; @@ -1099,13 +1099,13 @@ void PowerPointImport::processSmiley (DrawObject* drawObject, KoXmlWriter* xmlWr { if( !drawObject ||!xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); - xmlWriter->startElement( "draw:custom-tqshape" ); + xmlWriter->startElement( "draw:custom-shape" ); xmlWriter->addAttribute( "draw:style-name", styleName ); xmlWriter->addAttribute( "svg:width", widthStr ); xmlWriter->addAttribute( "svg:height", heightStr ); @@ -1136,7 +1136,7 @@ void PowerPointImport::processSmiley (DrawObject* drawObject, KoXmlWriter* xmlWr xmlWriter->addAttribute( "svg:x", 8.536 ); xmlWriter->addAttribute( "svg:y", 1.461 ); xmlWriter->endElement(); - xmlWriter->startElement( "draw:enhanced-tqgeometry" ); + xmlWriter->startElement( "draw:enhanced-geometry" ); xmlWriter->addAttribute( "draw:type", "smiley" ); xmlWriter->startElement( "draw:equation" ); xmlWriter->addAttribute( "draw:formula", "$0-15510 " ); @@ -1156,21 +1156,21 @@ void PowerPointImport::processSmiley (DrawObject* drawObject, KoXmlWriter* xmlWr xmlWriter->addAttribute( "draw:handle-range-y-minimum", 15510); xmlWriter->addAttribute("draw:handle-position","$0 top"); xmlWriter->endElement(); - xmlWriter->endElement(); // enhanced-tqgeometry - xmlWriter->endElement(); // custom-tqshape + xmlWriter->endElement(); // enhanced-geometry + xmlWriter->endElement(); // custom-shape } void PowerPointImport::processHeart (DrawObject* drawObject, KoXmlWriter* xmlWriter ) { if( !drawObject || !xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); - xmlWriter->startElement( "draw:custom-tqshape" ); + xmlWriter->startElement( "draw:custom-shape" ); xmlWriter->addAttribute( "draw:style-name", styleName ); xmlWriter->addAttribute( "svg:width", widthStr ); xmlWriter->addAttribute( "svg:height", heightStr ); @@ -1193,22 +1193,22 @@ void PowerPointImport::processHeart (DrawObject* drawObject, KoXmlWriter* xmlWri xmlWriter->addAttribute( "svg:x", 8.553 ); xmlWriter->addAttribute( "svg:y", 5 ); xmlWriter->endElement(); - xmlWriter->startElement( "draw:enhanced-tqgeometry" ); + xmlWriter->startElement( "draw:enhanced-geometry" ); xmlWriter->addAttribute( "draw:type", "heart" ); - xmlWriter->endElement(); // enhanced-tqgeometry - xmlWriter->endElement(); // custom-tqshape + xmlWriter->endElement(); // enhanced-geometry + xmlWriter->endElement(); // custom-shape } void PowerPointImport::processFreeLine (DrawObject* drawObject, KoXmlWriter* xmlWriter) { if( !drawObject ||!xmlWriter ) return; - TQString widthStr = TQString("%1mm").tqarg( drawObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( drawObject->height() ); - TQString xStr = TQString("%1mm").tqarg( drawObject->left() ); - TQString yStr = TQString("%1mm").tqarg( drawObject->top() ); - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString widthStr = TQString("%1mm").arg( drawObject->width() ); + TQString heightStr = TQString("%1mm").arg( drawObject->height() ); + TQString xStr = TQString("%1mm").arg( drawObject->left() ); + TQString yStr = TQString("%1mm").arg( drawObject->top() ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); xmlWriter->startElement( "draw:path" ); xmlWriter->addAttribute( "draw:style-name", styleName ); @@ -1228,63 +1228,63 @@ void PowerPointImport::processDrawingObjectForBody( DrawObject* drawObject, KoXm drawingObjectCounter++; - if (drawObject->tqshape() == DrawObject::Ellipse) + if (drawObject->shape() == DrawObject::Ellipse) { processEllipse (drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::Rectangle) + else if (drawObject->shape() == DrawObject::Rectangle) { processRectangle (drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::RoundRectangle) + else if (drawObject->shape() == DrawObject::RoundRectangle) { processRoundRectangle (drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::Diamond) + else if (drawObject->shape() == DrawObject::Diamond) { processDiamond (drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::IsoscelesTriangle | - drawObject->tqshape() == DrawObject::RightTriangle) + else if (drawObject->shape() == DrawObject::IsoscelesTriangle | + drawObject->shape() == DrawObject::RightTriangle) { processTriangle (drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::Trapezoid) + else if (drawObject->shape() == DrawObject::Trapezoid) { processTrapezoid (drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::Parallelogram) + else if (drawObject->shape() == DrawObject::Parallelogram) { processParallelogram( drawObject, xmlWriter); } - else if (drawObject->tqshape() == DrawObject::Hexagon) + else if (drawObject->shape() == DrawObject::Hexagon) { processHexagon ( drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::Octagon) + else if (drawObject->shape() == DrawObject::Octagon) { processOctagon ( drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::RightArrow | - drawObject->tqshape() == DrawObject::LeftArrow | - drawObject->tqshape() == DrawObject::UpArrow | - drawObject->tqshape() == DrawObject::DownArrow ) + else if (drawObject->shape() == DrawObject::RightArrow | + drawObject->shape() == DrawObject::LeftArrow | + drawObject->shape() == DrawObject::UpArrow | + drawObject->shape() == DrawObject::DownArrow ) { processArrow ( drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::Line) + else if (drawObject->shape() == DrawObject::Line) { processLine ( drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::Smiley) + else if (drawObject->shape() == DrawObject::Smiley) { processSmiley (drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::Heart) + else if (drawObject->shape() == DrawObject::Heart) { processHeart (drawObject, xmlWriter ); } - else if (drawObject->tqshape() == DrawObject::FreeLine) + else if (drawObject->shape() == DrawObject::FreeLine) { processFreeLine (drawObject, xmlWriter ); } @@ -1317,10 +1317,10 @@ void PowerPointImport::processTextObjectForBody( TextObject* textObject, KoXmlWr // TQString pStr = string( textObject->text() ).string(); TQString pStr; - TQString widthStr = TQString("%1mm").tqarg( textObject->width() ); - TQString heightStr = TQString("%1mm").tqarg( textObject->height() ); - TQString xStr = TQString("%1mm").tqarg( textObject->left() ); - TQString yStr = TQString("%1mm").tqarg( textObject->top() ); + TQString widthStr = TQString("%1mm").arg( textObject->width() ); + TQString heightStr = TQString("%1mm").arg( textObject->height() ); + TQString xStr = TQString("%1mm").arg( textObject->left() ); + TQString yStr = TQString("%1mm").arg( textObject->top() ); xmlWriter->startElement( "draw:frame" ); xmlWriter->addAttribute( "presentation:style-name", "pr1" ); @@ -1381,9 +1381,9 @@ void PowerPointImport::processSlideForBody( unsigned slideNo, Slide* slide, KoXm TQString nameStr = Libppt::string( slide->title() ).string(); if( nameStr.isEmpty() ) - nameStr = TQString("page%1").tqarg(slideNo+1); + nameStr = TQString("page%1").arg(slideNo+1); - TQString styleNameStr = TQString("dp%1").tqarg(slideNo+1); + TQString styleNameStr = TQString("dp%1").arg(slideNo+1); xmlWriter->startElement( "draw:page" ); xmlWriter->addAttribute( "draw:master-page-name", "Default" ); @@ -1450,7 +1450,7 @@ void PowerPointImport::processDrawingObjectForStyle( DrawObject* drawObject, KoX if( !drawObject || !xmlWriter) return; drawingObjectCounter++; - TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter ); + TQString styleName = TQString("gr%1").arg( drawingObjectCounter ); xmlWriter->startElement( "style:style" ); xmlWriter->addAttribute( "style:name", styleName ); @@ -1490,7 +1490,7 @@ void PowerPointImport::processDrawingObjectForStyle( DrawObject* drawObject, KoX if( drawObject->hasProperty( "svg:stroke-width" ) ) { double strokeWidth = drawObject->getDoubleProperty("svg:stroke-width" ); - xmlWriter->addAttribute( "svg:stroke-width",TQString("%1mm").tqarg( strokeWidth ) ); + xmlWriter->addAttribute( "svg:stroke-width",TQString("%1mm").arg( strokeWidth ) ); } if( drawObject->hasProperty( "svg:stroke-color" ) ) @@ -1528,14 +1528,14 @@ void PowerPointImport::processDrawingObjectForStyle( DrawObject* drawObject, KoX { double strokeWidth = drawObject->getDoubleProperty("svg:stroke-width" ); double arrowWidth = (drawObject->getDoubleProperty("draw:marker-start-width") * strokeWidth); - xmlWriter->addAttribute( "draw:marker-start-width",TQString("%1cm").tqarg( arrowWidth ) ); + xmlWriter->addAttribute( "draw:marker-start-width",TQString("%1cm").arg( arrowWidth ) ); } if( drawObject->hasProperty( "draw:marker-end-width" ) ) { double strokeWidth = drawObject->getDoubleProperty("svg:stroke-width" ); double arrowWidth = (drawObject->getDoubleProperty("draw:marker-end-width") * strokeWidth); - xmlWriter->addAttribute( "draw:marker-end-width",TQString("%1cm").tqarg( arrowWidth ) ); + xmlWriter->addAttribute( "draw:marker-end-width",TQString("%1cm").arg( arrowWidth ) ); } @@ -1569,19 +1569,19 @@ void PowerPointImport::processDrawingObjectForStyle( DrawObject* drawObject, KoX if( drawObject->hasProperty( "draw:shadow-opacity" ) ) { double opacity = drawObject->getDoubleProperty("draw:shadow-opacity") ; - xmlWriter->addAttribute( "draw:shadow-opacity",TQString("%1%").tqarg( opacity ) ); + xmlWriter->addAttribute( "draw:shadow-opacity",TQString("%1%").arg( opacity ) ); } if( drawObject->hasProperty( "draw:shadow-offset-x" ) ) { double offset = drawObject->getDoubleProperty("draw:shadow-offset-x") ; - xmlWriter->addAttribute( "draw:shadow-offset-x",TQString("%1cm").tqarg( offset ) ); + xmlWriter->addAttribute( "draw:shadow-offset-x",TQString("%1cm").arg( offset ) ); } if( drawObject->hasProperty( "draw:shadow-offset-y" ) ) { double offset = drawObject->getDoubleProperty("draw:shadow-offset-y"); - xmlWriter->addAttribute( "draw:shadow-offset-y",TQString("%1cm").tqarg( offset ) ); + xmlWriter->addAttribute( "draw:shadow-offset-y",TQString("%1cm").arg( offset ) ); } diff --git a/filters/kpresenter/powerpoint/libppt/objects.cpp b/filters/kpresenter/powerpoint/libppt/objects.cpp index d0343b43..29870cbd 100644 --- a/filters/kpresenter/powerpoint/libppt/objects.cpp +++ b/filters/kpresenter/powerpoint/libppt/objects.cpp @@ -379,7 +379,7 @@ void GroupObject::takeObject( Object* object ) class DrawObject::Private { public: - unsigned tqshape; + unsigned shape; bool isVerFlip; bool isHorFlip; }; @@ -387,7 +387,7 @@ public: DrawObject::DrawObject() { d = new Private; - d->tqshape = None; + d->shape = None; } DrawObject::~DrawObject() @@ -395,14 +395,14 @@ DrawObject::~DrawObject() delete d; } -unsigned DrawObject::tqshape() const +unsigned DrawObject::shape() const { - return d->tqshape; + return d->shape; } void DrawObject::setShape( unsigned s ) { - d->tqshape = s; + d->shape = s; } bool DrawObject::isVerFlip() const diff --git a/filters/kpresenter/powerpoint/libppt/objects.h b/filters/kpresenter/powerpoint/libppt/objects.h index a9160897..823e2a75 100644 --- a/filters/kpresenter/powerpoint/libppt/objects.h +++ b/filters/kpresenter/powerpoint/libppt/objects.h @@ -103,7 +103,7 @@ public: Body = 1, Notes = 2, NotUsed = 3, - Other = 4, // text in a tqshape + Other = 4, // text in a shape CenterBody = 5, // subtitle in title slide CenterTitle = 6, // title in title slide HalfBody = 7, // body in two-column slide @@ -184,7 +184,7 @@ public: virtual ~DrawObject(); virtual bool isDrawing() const { return true; } - unsigned tqshape() const; + unsigned shape() const; void setShape( unsigned s ); bool isVerFlip() const; diff --git a/filters/kpresenter/powerpoint/libppt/pole.cpp b/filters/kpresenter/powerpoint/libppt/pole.cpp index b905539d..abfa9385 100644 --- a/filters/kpresenter/powerpoint/libppt/pole.cpp +++ b/filters/kpresenter/powerpoint/libppt/pole.cpp @@ -115,7 +115,7 @@ class DirTree int indexOf( DirEntry* e ); int parent( unsigned index ); std::string fullName( unsigned index ); - std::vector<unsigned> tqchildren( unsigned index ); + std::vector<unsigned> children( unsigned index ); void load( unsigned char* buffer, unsigned len ); void save( unsigned char* buffer ); unsigned size(); @@ -505,11 +505,11 @@ int DirTree::indexOf( DirEntry* e ) int DirTree::parent( unsigned index ) { - // brute-force, basically we iterate for each entries, find its tqchildren - // and check if one of the tqchildren is 'index' + // brute-force, basically we iterate for each entries, find its children + // and check if one of the children is 'index' for( unsigned j=0; j<entryCount(); j++ ) { - std::vector<unsigned> chi = tqchildren( j ); + std::vector<unsigned> chi = children( j ); for( unsigned i=0; i<chi.size();i++ ) if( chi[i] == index ) return j; @@ -573,8 +573,8 @@ DirEntry* DirTree::entry( const std::string& name, bool create ) for( it = names.begin(); it != names.end(); ++it ) { - // find among the tqchildren of index - std::vector<unsigned> chi = tqchildren( index ); + // find among the children of index + std::vector<unsigned> chi = children( index ); unsigned child = 0; for( unsigned i = 0; i < chi.size(); i++ ) { @@ -589,7 +589,7 @@ DirEntry* DirTree::entry( const std::string& name, bool create ) if( child > 0 ) index = child; else { - // not found among tqchildren + // not found among children if( !create ) return (DirEntry*)0; // create a new entry @@ -646,7 +646,7 @@ void dirtree_find_siblings( DirTree* dirtree, std::vector<unsigned>& result, } } -std::vector<unsigned> DirTree::tqchildren( unsigned index ) +std::vector<unsigned> DirTree::children( unsigned index ) { std::vector<unsigned> result; @@ -1249,9 +1249,9 @@ std::list<std::string> Storage::entries( const std::string& path ) if( e && e->dir ) { unsigned parent = dt->indexOf( e ); - std::vector<unsigned> tqchildren = dt->tqchildren( parent ); - for( unsigned i = 0; i < tqchildren.size(); i++ ) - result.push_back( dt->entry( tqchildren[i] )->name ); + std::vector<unsigned> children = dt->children( parent ); + for( unsigned i = 0; i < children.size(); i++ ) + result.push_back( dt->entry( children[i] )->name ); } return result; diff --git a/filters/kpresenter/powerpoint/libppt/powerpoint.cpp b/filters/kpresenter/powerpoint/libppt/powerpoint.cpp index bf3fc51f..af035c69 100644 --- a/filters/kpresenter/powerpoint/libppt/powerpoint.cpp +++ b/filters/kpresenter/powerpoint/libppt/powerpoint.cpp @@ -4105,7 +4105,7 @@ const unsigned int msofbtSpAtom::id = 61450; /* F00A */ class msofbtSpAtom::Private { public: - unsigned long tqshapeId; + unsigned long shapeId; unsigned long persistentFlag; bool background; bool hFlip; @@ -4115,7 +4115,7 @@ public: msofbtSpAtom ::msofbtSpAtom () { d = new Private; - d->tqshapeId = 0; + d->shapeId = 0; d->persistentFlag = 0; d->background = false; d->hFlip = false; @@ -4127,17 +4127,17 @@ msofbtSpAtom ::~msofbtSpAtom () delete d; } -unsigned long msofbtSpAtom::tqshapeId() const +unsigned long msofbtSpAtom::shapeId() const { - return d->tqshapeId; + return d->shapeId; } void msofbtSpAtom::setShapeId( unsigned long id ) { - d->tqshapeId = id; + d->shapeId = id; } -const char* msofbtSpAtom::tqshapeTypeAsString() const +const char* msofbtSpAtom::shapeTypeAsString() const { switch( instance() ) { @@ -5821,7 +5821,7 @@ void PPTReader::handleEscherGroupAtom( msofbtSpgrAtom* atom ) // set rect bound of current group - // this is tqshape for the group, no need to + // this is shape for the group, no need to d->isShapeGroup = true; } diff --git a/filters/kpresenter/powerpoint/libppt/powerpoint.h b/filters/kpresenter/powerpoint/libppt/powerpoint.h index 6eec1564..b2a0f649 100644 --- a/filters/kpresenter/powerpoint/libppt/powerpoint.h +++ b/filters/kpresenter/powerpoint/libppt/powerpoint.h @@ -1901,9 +1901,9 @@ public: msofbtSpAtom (); ~msofbtSpAtom (); - unsigned long tqshapeId() const; + unsigned long shapeId() const; void setShapeId( unsigned long id ); - const char* tqshapeTypeAsString() const; + const char* shapeTypeAsString() const; unsigned long persistentFlag() const; void setPersistentFlag( unsigned long persistentFlag ); @@ -1957,10 +1957,10 @@ public: FillSolid, // Fill with a solid color FillPattern, // Fill with a pattern (bitmap) FillTexture, // A texture (pattern with its own color map) - FillPicture, // Center a picture in the tqshape + FillPicture, // Center a picture in the shape FillShade, // Shade from start to end points FillShadeCenter, // Shade from bounding rectangle to end point - FillShadeShape, // Shade from tqshape outline to end point + FillShadeShape, // Shade from shape outline to end point FillShadeScale, // Similar to msofillShade, but the fillAngle FillShadeTitle, // special type - shade to title --- for PP FillBackground // Use the background fill color/pattern @@ -2385,9 +2385,9 @@ public: int ruid() const; // rule ID void setRuid( int ruid ); int align() const; - void setAlign( int align );// tqalignment + void setAlign( int align );// alignment int cProxies() const; - void setCProxies( int cProxies );// number of tqshapes governed by rule + void setCProxies( int cProxies );// number of shapes governed by rule void setData( unsigned size, const unsigned char* data ); const char* name(){ return "msofbtAlignRuleAtom "; } |