summaryrefslogtreecommitdiffstats
path: root/kspread/kspread_sheetprint.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitb6edfe41c9395f2e20784cbf0e630af6426950a3 (patch)
tree56ed9b871d4296e6c15949c24e16420be1b28697 /kspread/kspread_sheetprint.cc
parentef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff)
downloadkoffice-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 'kspread/kspread_sheetprint.cc')
-rw-r--r--kspread/kspread_sheetprint.cc62
1 files changed, 31 insertions, 31 deletions
diff --git a/kspread/kspread_sheetprint.cc b/kspread/kspread_sheetprint.cc
index 6bb577f6..c3c12117 100644
--- a/kspread/kspread_sheetprint.cc
+++ b/kspread/kspread_sheetprint.cc
@@ -705,7 +705,7 @@ bool SheetPrint::isOnNewPageX( int _column )
}
//Now check if we find the column already in the list
- if ( m_lnewPageListX.tqfindIndex( _column ) != -1 )
+ if ( m_lnewPageListX.findIndex( _column ) != -1 )
{
if( _column > m_maxCheckedNewPageX )
m_maxCheckedNewPageX = _column;
@@ -820,7 +820,7 @@ bool SheetPrint::isOnNewPageY( int _row )
}
//Now check if we find the row already in the list
- if ( m_lnewPageListY.tqfindIndex( _row ) != -1 )
+ if ( m_lnewPageListY.findIndex( _row ) != -1 )
{
if( _row > m_maxCheckedNewPageY )
m_maxCheckedNewPageY = _row;
@@ -934,11 +934,11 @@ void SheetPrint::updateNewPageListX( int _col )
{
//Find the page entry for this column
TQValueList<PrintNewPageEntry>::iterator it;
- it = m_lnewPageListX.tqfind( _col );
+ it = m_lnewPageListX.find( _col );
while ( ( it == m_lnewPageListX.end() ) && _col > 0 )
{
_col--;
- it = m_lnewPageListX.tqfind( _col );
+ it = m_lnewPageListX.find( _col );
}
//Remove later pages
@@ -969,11 +969,11 @@ void SheetPrint::updateNewPageListY( int _row )
{
//Find the page entry for this row
TQValueList<PrintNewPageEntry>::iterator it;
- it = m_lnewPageListY.tqfind( _row );
+ it = m_lnewPageListY.find( _row );
while ( ( it == m_lnewPageListY.end() ) && _row > 0 )
{
_row--;
- it = m_lnewPageListY.tqfind( _row );
+ it = m_lnewPageListY.find( _row );
}
//Remove later pages
@@ -1005,10 +1005,10 @@ void SheetPrint::resetPrintRange ()
setPrintRange( TQRect( TQPoint( 1, 1 ), TQPoint( KS_colMax, KS_rowMax ) ) );
}
-void SheetPrint::replaceHeadFootLineMacro ( TQString &_text, const TQString &_search, const TQString &_tqreplace )
+void SheetPrint::replaceHeadFootLineMacro ( TQString &_text, const TQString &_search, const TQString &_replace )
{
- if ( _search != _tqreplace )
- _text.tqreplace ( TQString( "<" + _search + ">" ), "<" + _tqreplace + ">" );
+ if ( _search != _replace )
+ _text.replace ( TQString( "<" + _search + ">" ), "<" + _replace + ">" );
}
TQString SheetPrint::localizeHeadFootLine ( const TQString &_text )
@@ -1172,7 +1172,7 @@ void SheetPrint::setPaperLayout( float _leftBorder, float _topBorder,
TQString paper( _paper );
if ( paper[0].isDigit() ) // Custom format
{
- const int i = paper.tqfind( 'x' );
+ const int i = paper.find( 'x' );
if ( i < 0 )
{
// We have nothing useful, so assume ISO A4
@@ -1218,7 +1218,7 @@ TQValueList<PrintNewPageEntry>::iterator SheetPrint::findNewPageColumn( int col
}
return it;
// TQValueList<PrintNewPageEntry>::iterator it;
-// it = m_lnewPageListX.tqfind( startCol );
+// it = m_lnewPageListX.find( startCol );
}
TQValueList<PrintNewPageEntry>::iterator SheetPrint::findNewPageRow( int row )
@@ -1307,35 +1307,35 @@ TQString SheetPrint::completeHeading( const TQString &_data, int _page, const TQ
tmp = _data;
int pos = 0;
- while ( ( pos = tmp.tqfind( "<page>", pos ) ) != -1 )
- tmp.tqreplace( pos, 6, page );
+ while ( ( pos = tmp.find( "<page>", pos ) ) != -1 )
+ tmp.replace( pos, 6, page );
pos = 0;
- while ( ( pos = tmp.tqfind( "<pages>", pos ) ) != -1 )
- tmp.tqreplace( pos, 7, pages );
+ while ( ( pos = tmp.find( "<pages>", pos ) ) != -1 )
+ tmp.replace( pos, 7, pages );
pos = 0;
- while ( ( pos = tmp.tqfind( "<file>", pos ) ) != -1 )
- tmp.tqreplace( pos, 6, pathFileName );
+ while ( ( pos = tmp.find( "<file>", pos ) ) != -1 )
+ tmp.replace( pos, 6, pathFileName );
pos = 0;
- while ( ( pos = tmp.tqfind( "<name>", pos ) ) != -1 )
- tmp.tqreplace( pos, 6, fileName );
+ while ( ( pos = tmp.find( "<name>", pos ) ) != -1 )
+ tmp.replace( pos, 6, fileName );
pos = 0;
- while ( ( pos = tmp.tqfind( "<time>", pos ) ) != -1 )
- tmp.tqreplace( pos, 6, t );
+ while ( ( pos = tmp.find( "<time>", pos ) ) != -1 )
+ tmp.replace( pos, 6, t );
pos = 0;
- while ( ( pos = tmp.tqfind( "<date>", pos ) ) != -1 )
- tmp.tqreplace( pos, 6, d );
+ while ( ( pos = tmp.find( "<date>", pos ) ) != -1 )
+ tmp.replace( pos, 6, d );
pos = 0;
- while ( ( pos = tmp.tqfind( "<author>", pos ) ) != -1 )
- tmp.tqreplace( pos, 8, full_name );
+ while ( ( pos = tmp.find( "<author>", pos ) ) != -1 )
+ tmp.replace( pos, 8, full_name );
pos = 0;
- while ( ( pos = tmp.tqfind( "<email>", pos ) ) != -1 )
- tmp.tqreplace( pos, 7, email_addr );
+ while ( ( pos = tmp.find( "<email>", pos ) ) != -1 )
+ tmp.replace( pos, 7, email_addr );
pos = 0;
- while ( ( pos = tmp.tqfind( "<org>", pos ) ) != -1 )
- tmp.tqreplace( pos, 5, organization );
+ while ( ( pos = tmp.find( "<org>", pos ) ) != -1 )
+ tmp.replace( pos, 5, organization );
pos = 0;
- while ( ( pos = tmp.tqfind( "<sheet>", pos ) ) != -1 )
- tmp.tqreplace( pos, 7, ta );
+ while ( ( pos = tmp.find( "<sheet>", pos ) ) != -1 )
+ tmp.replace( pos, 7, ta );
return tmp;
}