summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoParagStyle.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-09 02:23:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-09 02:23:29 +0000
commit7c71ab86d1f7e387fc3df63b48df07231f111862 (patch)
tree30ba2d2f840ff5fd458b6113e9c3f2e8a71d510d /lib/kotext/KoParagStyle.cpp
parentafbfdc507bfaafc8824a9808311d57a9ece87510 (diff)
downloadkoffice-7c71ab86d1f7e387fc3df63b48df07231f111862.tar.gz
koffice-7c71ab86d1f7e387fc3df63b48df07231f111862.zip
Remove the tq in front of these incorrectly TQt4-converted methods/data members:
tqrepaint[...] tqinvalidate[...] tqparent[...] tqmask[...] tqlayout[...] tqalignment[...] git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kotext/KoParagStyle.cpp')
-rw-r--r--lib/kotext/KoParagStyle.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/kotext/KoParagStyle.cpp b/lib/kotext/KoParagStyle.cpp
index e3bf15e9..f44bcd59 100644
--- a/lib/kotext/KoParagStyle.cpp
+++ b/lib/kotext/KoParagStyle.cpp
@@ -86,32 +86,32 @@ void KoParagStyle::setFollowingStyle( KoParagStyle *fst )
m_followingStyle = fst;
}
-void KoParagStyle::saveStyle( TQDomElement & tqparentElem )
+void KoParagStyle::saveStyle( TQDomElement & parentElem )
{
- m_paragLayout.saveParagLayout( tqparentElem, m_paragLayout.tqalignment );
+ m_paragLayout.saveParagLayout( parentElem, m_paragLayout.tqalignment );
if ( followingStyle() )
{
- TQDomElement element = tqparentElem.ownerDocument().createElement( "FOLLOWING" );
- tqparentElem.appendChild( element );
+ TQDomElement element = parentElem.ownerDocument().createElement( "FOLLOWING" );
+ parentElem.appendChild( element );
element.setAttribute( "name", followingStyle()->displayName() );
}
// TODO save tqparent style, and inherited flags.
- tqparentElem.setAttribute( "outline", m_bOutline ? "true" : "false" );
+ parentElem.setAttribute( "outline", m_bOutline ? "true" : "false" );
}
-void KoParagStyle::loadStyle( TQDomElement & tqparentElem, int docVersion )
+void KoParagStyle::loadStyle( TQDomElement & parentElem, int docVersion )
{
KoParagLayout tqlayout;
- KoParagLayout::loadParagLayout( tqlayout, tqparentElem, docVersion );
+ KoParagLayout::loadParagLayout( tqlayout, parentElem, docVersion );
// This way, KoTextParag::setParagLayout also sets the style pointer, to this style
tqlayout.style = this;
m_paragLayout = tqlayout;
// Load name
- TQDomElement nameElem = tqparentElem.namedItem("NAME").toElement();
+ TQDomElement nameElem = parentElem.namedItem("NAME").toElement();
if ( !nameElem.isNull() ) {
m_name = nameElem.attribute("value");
m_displayName = i18n( "Style name", m_name.utf8() );
@@ -120,7 +120,7 @@ void KoParagStyle::loadStyle( TQDomElement & tqparentElem, int docVersion )
// The followingStyle stuff has to be done after loading all styles.
- m_bOutline = tqparentElem.attribute( "outline" ) == "true";
+ m_bOutline = parentElem.attribute( "outline" ) == "true";
}
void KoParagStyle::loadStyle( TQDomElement & styleElem, KoOasisContext& context )
@@ -137,7 +137,7 @@ void KoParagStyle::loadStyle( TQDomElement & styleElem, KoOasisContext& context
m_bOutline = styleElem.hasAttributeNS( KoXmlNS::style, "default-outline-level" );
context.styleStack().save();
- context.addStyles( &styleElem, "paragraph" ); // Load all tqparents - only because we don't support inheritance.
+ context.addStyles( &styleElem, "paragraph" ); // Load all parents - only because we don't support inheritance.
KoParagLayout tqlayout;
KoParagLayout::loadOasisParagLayout( tqlayout, context );
@@ -187,9 +187,9 @@ void KoParagStyle::loadStyle( TQDomElement & styleElem, KoOasisContext& context
context.styleStack().restore();
}
-TQString KoParagStyle::saveStyle( KoGenStyles& genStyles, int styleType, const TQString& tqparentStyleName, KoSavingContext& context ) const
+TQString KoParagStyle::saveStyle( KoGenStyles& genStyles, int styleType, const TQString& parentStyleName, KoSavingContext& context ) const
{
- KoGenStyle gs( styleType, "paragraph", tqparentStyleName );
+ KoGenStyle gs( styleType, "paragraph", parentStyleName );
gs.addAttribute( "style:display-name", m_displayName );
if ( m_paragLayout.counter ) {