summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoGenStyles.cpp
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 /lib/kofficecore/KoGenStyles.cpp
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 'lib/kofficecore/KoGenStyles.cpp')
-rw-r--r--lib/kofficecore/KoGenStyles.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kofficecore/KoGenStyles.cpp b/lib/kofficecore/KoGenStyles.cpp
index 68b8477a..221288df 100644
--- a/lib/kofficecore/KoGenStyles.cpp
+++ b/lib/kofficecore/KoGenStyles.cpp
@@ -31,7 +31,7 @@ KoGenStyles::~KoGenStyles()
TQString KoGenStyles::lookup( const KoGenStyle& style, const TQString& name, int flags )
{
- StyleMap::iterator it = m_styleMap.tqfind( style );
+ StyleMap::iterator it = m_styleMap.find( style );
if ( it == m_styleMap.end() ) {
// Not found, try if this style is in fact equal to its tqparent (the find above
// wouldn't have found it, due to m_parentName being set).
@@ -52,7 +52,7 @@ TQString KoGenStyles::lookup( const KoGenStyle& style, const TQString& name, int
testStyle.m_type = parentStyle->m_type;
// Also it's ok to not have the display name of the tqparent style
// in the auto style
- TQMap<TQString, TQString>::const_iterator it = parentStyle->m_attributes.tqfind( "style:display-name" );
+ TQMap<TQString, TQString>::const_iterator it = parentStyle->m_attributes.find( "style:display-name" );
if ( it != parentStyle->m_attributes.end() )
testStyle.addAttribute( "style:display-name", *it );
@@ -84,16 +84,16 @@ TQString KoGenStyles::makeUniqueName( const TQString& base, int flags ) const
{
// If this name is not used yet, and numbering isn't forced, then the given name is ok.
if ( ( flags & DontForceNumbering )
- && m_autoStylesInStylesDotXml.tqfind( base ) == m_autoStylesInStylesDotXml.end()
- && m_styleNames.tqfind( base ) == m_styleNames.end() )
+ && m_autoStylesInStylesDotXml.find( base ) == m_autoStylesInStylesDotXml.end()
+ && m_styleNames.find( base ) == m_styleNames.end() )
return base;
int num = 1;
TQString name;
do {
name = base;
name += TQString::number( num++ );
- } while ( m_autoStylesInStylesDotXml.tqfind( name ) != m_autoStylesInStylesDotXml.end()
- || m_styleNames.tqfind( name ) != m_styleNames.end() );
+ } while ( m_autoStylesInStylesDotXml.find( name ) != m_autoStylesInStylesDotXml.end()
+ || m_styleNames.find( name ) != m_styleNames.end() );
return name;
}
@@ -105,7 +105,7 @@ TQValueList<KoGenStyles::NamedStyle> KoGenStyles::styles( int type, bool markedF
const StyleArray::const_iterator end = m_styleArray.end();
for ( ; it != end ; ++it ) {
// Look up if it's marked for styles.xml or not by looking up in the corresponding style map.
- if ( (*it).style->type() == type && nameMap.tqfind((*it).name) != nameMap.end() ) {
+ if ( (*it).style->type() == type && nameMap.find((*it).name) != nameMap.end() ) {
lst.append( *it );
}
}
@@ -130,7 +130,7 @@ KoGenStyle* KoGenStyles::styleForModification( const TQString& name )
void KoGenStyles::markStyleForStylesXml( const TQString& name )
{
- Q_ASSERT( m_styleNames.tqfind( name ) != m_styleNames.end() );
+ Q_ASSERT( m_styleNames.find( name ) != m_styleNames.end() );
m_styleNames.remove( name );
m_autoStylesInStylesDotXml.insert( name, true );
styleForModification( name )->setAutoStyleInStylesDotXml( true );