summaryrefslogtreecommitdiffstats
path: root/kword/KWFrameStyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kword/KWFrameStyle.cpp')
-rw-r--r--kword/KWFrameStyle.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kword/KWFrameStyle.cpp b/kword/KWFrameStyle.cpp
index 44b83c56..fd6fd26a 100644
--- a/kword/KWFrameStyle.cpp
+++ b/kword/KWFrameStyle.cpp
@@ -99,46 +99,46 @@ KWFrameStyle::KWFrameStyle( const TQString & name, KWFrame * frame )
m_borderBottom = frame->bottomBorder();
}
-KWFrameStyle::KWFrameStyle( TQDomElement & tqparentElem, int /*docVersion=2*/ )
+KWFrameStyle::KWFrameStyle( TQDomElement & parentElem, int /*docVersion=2*/ )
: KoUserStyle( TQString() )
{
- TQDomElement element = tqparentElem.namedItem( "NAME" ).toElement();
+ TQDomElement element = parentElem.namedItem( "NAME" ).toElement();
if ( ( !element.isNull() ) && ( element.hasAttribute("value") ) ) {
m_name = element.attribute( "value" );
m_displayName = i18n( "Style name", m_name.utf8() );
} else
kdWarning() << "No NAME tag in frame style!" << endl;
- element = tqparentElem.namedItem( "LEFTBORDER" ).toElement();
+ element = parentElem.namedItem( "LEFTBORDER" ).toElement();
if ( !element.isNull() )
m_borderLeft = KoBorder::loadBorder( element );
else
m_borderLeft.setPenWidth( 0 );
- element = tqparentElem.namedItem( "RIGHTBORDER" ).toElement();
+ element = parentElem.namedItem( "RIGHTBORDER" ).toElement();
if ( !element.isNull() )
m_borderRight = KoBorder::loadBorder( element );
else
m_borderRight.setPenWidth( 0 );
- element = tqparentElem.namedItem( "TOPBORDER" ).toElement();
+ element = parentElem.namedItem( "TOPBORDER" ).toElement();
if ( !element.isNull() )
m_borderTop = KoBorder::loadBorder( element );
else
m_borderTop.setPenWidth( 0 );
- element = tqparentElem.namedItem( "BOTTOMBORDER" ).toElement();
+ element = parentElem.namedItem( "BOTTOMBORDER" ).toElement();
if ( !element.isNull() )
m_borderBottom = KoBorder::loadBorder( element );
else
m_borderBottom.setPenWidth( 0 );
TQColor c("white");
- if ( tqparentElem.hasAttribute("red") )
+ if ( parentElem.hasAttribute("red") )
c.setRgb(
- KWDocument::getAttribute( tqparentElem, "red", 0 ),
- KWDocument::getAttribute( tqparentElem, "green", 0 ),
- KWDocument::getAttribute( tqparentElem, "blue", 0 ) );
+ KWDocument::getAttribute( parentElem, "red", 0 ),
+ KWDocument::getAttribute( parentElem, "green", 0 ),
+ KWDocument::getAttribute( parentElem, "blue", 0 ) );
m_backgroundColor = TQBrush( c );
}
@@ -174,49 +174,49 @@ int KWFrameStyle::compare( const KWFrameStyle & frameStyle ) const
}
-void KWFrameStyle::saveFrameStyle( TQDomElement & tqparentElem )
+void KWFrameStyle::saveFrameStyle( TQDomElement & parentElem )
{
- TQDomDocument doc = tqparentElem.ownerDocument();
+ TQDomDocument doc = parentElem.ownerDocument();
TQDomElement element = doc.createElement( "NAME" );
- tqparentElem.appendChild( element );
+ parentElem.appendChild( element );
element.setAttribute( "value", displayName() );
if ( m_borderLeft.width() > 0 )
{
element = doc.createElement( "LEFTBORDER" );
- tqparentElem.appendChild( element );
+ parentElem.appendChild( element );
m_borderLeft.save( element );
}
if ( m_borderRight.width() > 0 )
{
element = doc.createElement( "RIGHTBORDER" );
- tqparentElem.appendChild( element );
+ parentElem.appendChild( element );
m_borderRight.save( element );
}
if ( m_borderTop.width() > 0 )
{
element = doc.createElement( "TOPBORDER" );
- tqparentElem.appendChild( element );
+ parentElem.appendChild( element );
m_borderTop.save( element );
}
if ( m_borderBottom.width() > 0 )
{
element = doc.createElement( "BOTTOMBORDER" );
- tqparentElem.appendChild( element );
+ parentElem.appendChild( element );
m_borderBottom.save( element );
}
if(m_backgroundColor.color().isValid())
{
- tqparentElem.setAttribute( "red", m_backgroundColor.color().red() );
- tqparentElem.setAttribute( "green", m_backgroundColor.color().green() );
- tqparentElem.setAttribute( "blue", m_backgroundColor.color().blue() );
+ parentElem.setAttribute( "red", m_backgroundColor.color().red() );
+ parentElem.setAttribute( "green", m_backgroundColor.color().green() );
+ parentElem.setAttribute( "blue", m_backgroundColor.color().blue() );
}
}
-KWFrameStyle *KWFrameStyle::loadStyle( TQDomElement & tqparentElem, int docVersion )
+KWFrameStyle *KWFrameStyle::loadStyle( TQDomElement & parentElem, int docVersion )
{
- return new KWFrameStyle( tqparentElem, docVersion );
+ return new KWFrameStyle( parentElem, docVersion );
}
void KWFrameStyle::saveOasis( KoGenStyles& mainStyles, KoSavingContext& savingContext ) const
@@ -270,7 +270,7 @@ void KWFrameStyle::loadOasis( TQDomElement & styleElem, KoOasisContext& context
styleStack.setTypeProperties( "graphic" );
styleStack.save();
- context.addStyles( &styleElem, "graphic" ); // Load all tqparents - only because we don't support inheritance.
+ context.addStyles( &styleElem, "graphic" ); // Load all parents - only because we don't support inheritance.
if ( styleStack.hasAttributeNS( KoXmlNS::fo, "background-color" ) ) {
TQString color = styleStack.attributeNS( KoXmlNS::fo, "background-color" );