summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoParagStyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoParagStyle.cpp')
-rw-r--r--lib/kotext/KoParagStyle.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/kotext/KoParagStyle.cpp b/lib/kotext/KoParagStyle.cpp
index b09fe90e..fcae882c 100644
--- a/lib/kotext/KoParagStyle.cpp
+++ b/lib/kotext/KoParagStyle.cpp
@@ -103,12 +103,12 @@ void KoParagStyle::saveStyle( TQDomElement & parentElem )
void KoParagStyle::loadStyle( TQDomElement & parentElem, int docVersion )
{
- KoParagLayout tqlayout;
- KoParagLayout::loadParagLayout( tqlayout, parentElem, docVersion );
+ KoParagLayout layout;
+ KoParagLayout::loadParagLayout( layout, parentElem, docVersion );
// This way, KoTextParag::setParagLayout also sets the style pointer, to this style
- tqlayout.style = this;
- m_paragLayout = tqlayout;
+ layout.style = this;
+ m_paragLayout = layout;
// Load name
TQDomElement nameElem = parentElem.namedItem("NAME").toElement();
@@ -138,8 +138,8 @@ void KoParagStyle::loadStyle( TQDomElement & styleElem, KoOasisContext& context
context.styleStack().save();
context.addStyles( &styleElem, "paragraph" ); // Load all parents - only because we don't support inheritance.
- KoParagLayout tqlayout;
- KoParagLayout::loadOasisParagLayout( tqlayout, context );
+ KoParagLayout layout;
+ KoParagLayout::loadOasisParagLayout( layout, context );
// loadOasisParagLayout doesn't load the counter. It's modelled differently for parags and for styles.
int level = 0;
@@ -172,15 +172,15 @@ void KoParagStyle::loadStyle( TQDomElement & styleElem, KoOasisContext& context
const TQDomElement listStyle = context.listStyleStack().currentListStyle();
// The tag is either text:list-level-style-number or text:list-level-style-bullet
const bool ordered = listStyle.localName() == "list-level-style-number";
- Q_ASSERT( !tqlayout.counter );
- tqlayout.counter = new KoParagCounter;
- tqlayout.counter->loadOasis( context, -1, ordered, m_bOutline, level, true );
+ Q_ASSERT( !layout.counter );
+ layout.counter = new KoParagCounter;
+ layout.counter->loadOasis( context, -1, ordered, m_bOutline, level, true );
context.listStyleStack().pop();
}
// This way, KoTextParag::setParagLayout also sets the style pointer, to this style
- tqlayout.style = this;
- m_paragLayout = tqlayout;
+ layout.style = this;
+ m_paragLayout = layout;
m_format.load( context );
@@ -269,9 +269,9 @@ void KoParagStyle::propagateChanges( int paragLayoutFlag, int /*formatFlag*/ )
#if 0
if ( paragLayoutFlag == KoParagLayout::All )
{
- setDirection( static_cast<TQChar::Direction>(tqlayout.direction) );
+ setDirection( static_cast<TQChar::Direction>(layout.direction) );
// Don't call applyStyle from here, it would overwrite any paragraph-specific settings
- setStyle( tqlayout.style );
+ setStyle( layout.style );
}
#endif
// TODO a flag for the "is outline" bool? Otherwise we have no way to inherit