diff options
Diffstat (limited to 'kword/KWVariable.cpp')
-rw-r--r-- | kword/KWVariable.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kword/KWVariable.cpp b/kword/KWVariable.cpp index 1b463878..45fa37cd 100644 --- a/kword/KWVariable.cpp +++ b/kword/KWVariable.cpp @@ -92,15 +92,15 @@ void KWVariableSettings::loadNoteConfiguration( const TQDomElement& tqparent ) } } -void KWVariableSettings::save( TQDomElement &tqparentElem ) +void KWVariableSettings::save( TQDomElement &parentElem ) { - KoVariableSettings::save( tqparentElem ); - TQDomDocument doc = tqparentElem.ownerDocument(); + KoVariableSettings::save( parentElem ); + TQDomDocument doc = parentElem.ownerDocument(); TQDomElement footNoteSettingElem = doc.createElement( "FOOTNOTESETTING" ); - tqparentElem.appendChild( footNoteSettingElem ); + parentElem.appendChild( footNoteSettingElem ); m_footNoteCounter.save( footNoteSettingElem ); TQDomElement endNoteSettingElem = doc.createElement( "ENDNOTESETTING" ); - tqparentElem.appendChild( endNoteSettingElem ); + parentElem.appendChild( endNoteSettingElem ); m_endNoteCounter.save( endNoteSettingElem ); } @@ -197,7 +197,7 @@ KWPgNumVariable::KWPgNumVariable( KoTextDocument *textdoc, int subtype, KoVariab void KWPgNumVariable::recalc() { - if ( !m_doc->tqlayoutViewMode()->hasPages() ) // ModeText + if ( !m_doc->layoutViewMode()->hasPages() ) // ModeText { //necessary to resize it in this mode because in this mode //we don't call KWTextFrameSet::drawFrame() @@ -221,7 +221,7 @@ TQString KWPgNumVariable::text(bool realValue) if (m_varColl->variableSetting()->displayFieldCode()&& !realValue) return fieldCode(); // #### ??? What? - else if ( m_subtype != VST_CURRENT_SECTION && !m_doc->tqlayoutViewMode()->hasPages() && !realValue) + else if ( m_subtype != VST_CURRENT_SECTION && !m_doc->layoutViewMode()->hasPages() && !realValue) return fieldCode(); else return m_varFormat->convert( m_varValue ); @@ -367,10 +367,10 @@ void KWFootNoteVariable::saveOasis( KoXmlWriter& writer, KoSavingContext& contex writer.endElement(); } -void KWFootNoteVariable::saveVariable( TQDomElement &tqparentElem ) +void KWFootNoteVariable::saveVariable( TQDomElement &parentElem ) { - TQDomElement footnoteElem = tqparentElem.ownerDocument().createElement( "FOOTNOTE" ); - tqparentElem.appendChild( footnoteElem ); + TQDomElement footnoteElem = parentElem.ownerDocument().createElement( "FOOTNOTE" ); + parentElem.appendChild( footnoteElem ); //footnoteElem.setAttribute( "subtype", 0 ); if ( m_numberingType == Auto ) footnoteElem.setAttribute( "value", m_numDisplay ); @@ -500,7 +500,7 @@ void KWFootNoteVariable::drawCustomItem( TQPainter* p, int x, int y, int wpix, i int offset = _offset; if ( offset == 0 ) { - int h = zh->tqlayoutUnitToPixelY( /*_y HACK,*/ height ); + int h = zh->layoutUnitToPixelY( /*_y HACK,*/ height ); offset = -( h - TQFontMetrics(font).height() ); } @@ -619,7 +619,7 @@ double KWFootNoteVariable::varY() const kdDebug(32001) << "KWFootNoteVariable::varY too early, no updateFrames yet" << endl; return 0; // this happens on loading - frame tqlayout is done before text tqlayout } - // What we need is "has never been formatted". Not "has just been tqinvalidated"... + // What we need is "has never been formatted". Not "has just been invalidated"... //if ( !paragraph()->isValid() ) //{ // kdDebug(32001) << "KWFootNoteVariable::varY called but paragraph " << paragraph()->paragId() << " not valid" << endl; |