diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /filters/kpresenter/ooimpress | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'filters/kpresenter/ooimpress')
-rw-r--r-- | filters/kpresenter/ooimpress/ooimpressexport.cc | 2 | ||||
-rw-r--r-- | filters/kpresenter/ooimpress/ooimpressimport.cc | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/filters/kpresenter/ooimpress/ooimpressexport.cc b/filters/kpresenter/ooimpress/ooimpressexport.cc index 3e54a05f..0e4771cf 100644 --- a/filters/kpresenter/ooimpress/ooimpressexport.cc +++ b/filters/kpresenter/ooimpress/ooimpressexport.cc @@ -886,7 +886,7 @@ void OoImpressExport::appendPicture( TQDomDocument & doc, TQDomElement & source, { TQString str = pictureKey( key ); TQString returnstr = m_kpresenterPictureLst[str]; - const int pos=returnstr.tqfindRev('.'); + const int pos=returnstr.findRev('.'); if (pos!=-1) { const TQString extension( returnstr.mid(pos+1) ); diff --git a/filters/kpresenter/ooimpress/ooimpressimport.cc b/filters/kpresenter/ooimpress/ooimpressimport.cc index 0c286fb5..cf853dea 100644 --- a/filters/kpresenter/ooimpress/ooimpressimport.cc +++ b/filters/kpresenter/ooimpress/ooimpressimport.cc @@ -828,11 +828,11 @@ void OoImpressImport::append2DGeometry( TQDomDocument& doc, TQDomElement& e, con kdDebug(30518)<<" object transform \n"; //todo parse it TQString transform = object.attributeNS( ooNS::draw, "transform", TQString() ); - if( transform.tqcontains("rotate (")) + if( transform.contains("rotate (")) { //kdDebug(30518)<<" rotate object \n"; transform = transform.remove("rotate (" ); - transform = transform.left(transform.tqfind(")")); + transform = transform.left(transform.find(")")); //kdDebug(30518)<<" transform :"<<transform<<endl; bool ok; double radian = transform.toDouble(&ok); @@ -1353,7 +1353,7 @@ void OoImpressImport::appendShadow( TQDomDocument& doc, TQDomElement& e ) // use the shadow attribute to indicate a text-shadow TQDomElement shadow = doc.createElement( "SHADOW" ); TQString distance = m_styleStack.attributeNS( ooNS::fo, "text-shadow" ); - distance.truncate( distance.tqfind( ' ' ) ); + distance.truncate( distance.find( ' ' ) ); shadow.setAttribute( "distance", KoUnit::parseValue( distance ) ); shadow.setAttribute( "direction", 5 ); shadow.setAttribute( "color", "#a0a0a0" ); @@ -2045,7 +2045,7 @@ TQString OoImpressImport::storeImage( const TQDomElement& object ) TQString url = object.attributeNS( ooNS::xlink, "href", TQString() ).remove( '#' ); KArchiveFile* file = (KArchiveFile*) m_zip->directory()->entry( url ); - TQString extension = url.mid( url.tqfind( '.' ) ); + TQString extension = url.mid( url.find( '.' ) ); TQString fileName = TQString( "picture%1" ).tqarg( m_numPicture++ ) + extension; KoStoreDevice* out = m_chain->storageFile( "pictures/" + fileName, KoStore::Write ); @@ -2071,7 +2071,7 @@ TQString OoImpressImport::storeSound(const TQDomElement & object, TQDomElement & if (!file.exists()) return TQString(); - TQString extension = url.mid( url.tqfind( '.' ) ); + TQString extension = url.mid( url.find( '.' ) ); TQString fileName = TQString( "sound%1" ).tqarg( m_numSound++ ) + extension; fileName = "sounds/" + fileName; KoStoreDevice* out = m_chain->storageFile( fileName, KoStore::Write ); |