diff options
Diffstat (limited to 'kword/KWTextParag.cpp')
-rw-r--r-- | kword/KWTextParag.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kword/KWTextParag.cpp b/kword/KWTextParag.cpp index 41d1749a..d50e98a0 100644 --- a/kword/KWTextParag.cpp +++ b/kword/KWTextParag.cpp @@ -109,9 +109,9 @@ void KWTextParag::drawFormattingChars( TQPainter &painter, int start, int len, void KWTextParag::setPageBreaking( int pb ) { m_layout.pageBreaking = pb; - invalidate(0); + tqinvalidate(0); if ( next() && ( pb & KoParagLayout::HardFrameBreakAfter ) ) - next()->invalidate(0); + next()->tqinvalidate(0); } KWTextDocument * KWTextParag::kwTextDocument() const @@ -385,7 +385,7 @@ void KWTextParag::save( TQDomElement &parentElem, int from /* default 0 */, TQDomElement layoutElem = doc.createElement( "LAYOUT" ); paragElem.appendChild( layoutElem ); - // save with the real alignment (left or right, not auto) + // save with the real tqalignment (left or right, not auto) m_layout.saveParagLayout( layoutElem, resolveAlignment() ); // Paragraph's format @@ -552,16 +552,16 @@ KoTextFormat KWTextParag::loadFormat( TQDomElement &formatElem, KoTextFormat * r void KWTextParag::loadLayout( TQDomElement & attributes ) { - TQDomElement layout = attributes.namedItem( "LAYOUT" ).toElement(); - if ( !layout.isNull() ) + TQDomElement tqlayout = attributes.namedItem( "LAYOUT" ).toElement(); + if ( !tqlayout.isNull() ) { KWDocument * doc = kwTextDocument()->textFrameSet()->kWordDocument(); - KoParagLayout paragLayout = loadParagLayout( layout, doc, true ); + KoParagLayout paragLayout = loadParagLayout( tqlayout, doc, true ); setParagLayout( paragLayout ); // Load default format from style. KoTextFormat *defaultFormat = style() ? &style()->format() : 0L; - TQDomElement formatElem = layout.namedItem( "FORMAT" ).toElement(); + TQDomElement formatElem = tqlayout.namedItem( "FORMAT" ).toElement(); if ( !formatElem.isNull() ) { // Load paragraph format @@ -577,7 +577,7 @@ void KWTextParag::loadLayout( TQDomElement & attributes ) else { // Even the simplest import filter should do <LAYOUT><NAME value="Standard"/></LAYOUT> - kdWarning(32001) << "No LAYOUT tag in PARAGRAPH, dunno what layout to apply" << endl; + kdWarning(32001) << "No LAYOUT tag in PARAGRAPH, dunno what tqlayout to apply" << endl; } } @@ -601,7 +601,7 @@ void KWTextParag::load( TQDomElement &attributes ) loadFormatting( attributes ); setChanged( true ); - invalidate( 0 ); + tqinvalidate( 0 ); } void KWTextParag::loadFormatting( TQDomElement &attributes, int offset, bool loadFootNote ) @@ -639,7 +639,7 @@ void KWTextParag::loadFormatting( TQDomElement &attributes, int offset, bool loa // However, as it is an invalid XML character, we must replace it // or it will be written out while save the file. KoTextStringChar& ch = string()->at(index); - if (ch.c.unicode()==1) + if (ch.c.tqunicode()==1) { kdDebug() << "Replacing TQChar(1) (in KWTextParag::loadFormatting)" << endl; ch.c='#'; @@ -740,12 +740,12 @@ void KWTextParag::loadFormatting( TQDomElement &attributes, int offset, bool loa } } -void KWTextParag::setParagLayout( const KoParagLayout & layout, int flags, int marginIndex ) +void KWTextParag::setParagLayout( const KoParagLayout & tqlayout, int flags, int marginIndex ) { - KoTextParag::setParagLayout( layout, flags, marginIndex ); + KoTextParag::setParagLayout( tqlayout, flags, marginIndex ); if ( flags & KoParagLayout::PageBreaking ) - setPageBreaking( layout.pageBreaking ); + setPageBreaking( tqlayout.pageBreaking ); } ////////// @@ -753,7 +753,7 @@ void KWTextParag::setParagLayout( const KoParagLayout & layout, int flags, int m // Create a KoParagLayout from XML. KoParagLayout KWTextParag::loadParagLayout( TQDomElement & parentElem, KWDocument *doc, bool findStyle ) { - KoParagLayout layout; + KoParagLayout tqlayout; // Only when loading paragraphs, not when loading styles if ( findStyle ) @@ -779,12 +779,12 @@ KoParagLayout KWTextParag::loadParagLayout( TQDomElement & parentElem, KWDocumen style = doc->styleCollection()->findStyle( "Standard" ); } Q_ASSERT(style); - layout.style = style; + tqlayout.style = style; } - KoParagLayout::loadParagLayout( layout, parentElem, doc->syntaxVersion() ); + KoParagLayout::loadParagLayout( tqlayout, parentElem, doc->syntaxVersion() ); - return layout; + return tqlayout; } void KWTextParag::join( KoTextParag *parag ) @@ -808,10 +808,10 @@ void KWTextParag::loadOasis( const TQDomElement& paragElement, KoOasisContext& c const TQDomElement* paragraphStyle = context.oasisStyles().findStyle( styleName, "paragraph" ); TQString masterPageName = paragraphStyle ? paragraphStyle->attributeNS( KoXmlNS::style, "master-page-name", TQString() ) : TQString(); - // In KWord we don't support sections so the first paragraph is the one that determines the page layout. + // In KWord we don't support sections so the first paragraph is the one that determines the page tqlayout. if ( prev() == 0 ) { if ( masterPageName.isEmpty() ) - masterPageName = "Standard"; // Seems to be a builtin name for the default layout... + masterPageName = "Standard"; // Seems to be a builtin name for the default tqlayout... currentMasterPageRef = masterPageName; // do this first to avoid recursion context.styleStack().save(); context.styleStack().setTypeProperties( "paragraph" ); @@ -822,18 +822,18 @@ void KWTextParag::loadOasis( const TQDomElement& paragElement, KoOasisContext& c doc->variableCollection()->variableSetting()->setStartingPageNumber( pageNumber.toInt() ); context.styleStack().restore(); - doc->loadOasisPageLayout( masterPageName, context ); // page layout + doc->loadOasisPageLayout( masterPageName, context ); // page tqlayout } else if ( !masterPageName.isEmpty() // empty means no change && masterPageName != currentMasterPageRef ) { - // Detected a change in the master page -> this means we have to use a new page layout + // Detected a change in the master page -> this means we have to use a new page tqlayout // and insert a frame break if not on the first paragraph. kdDebug(32001) << "KWTextParag::loadOasis: change of master page detected: from " << currentMasterPageRef << " to " << masterPageName << " -> inserting page break" << endl; currentMasterPageRef = masterPageName; // [see also KoParagLayout for the 'normal' way to insert page breaks] m_layout.pageBreaking |= KoParagLayout::HardFrameBreakBefore; - // We have no way to load/use the new page layout, KWord doesn't have "sections". + // We have no way to load/use the new page tqlayout, KWord doesn't have "sections". } } } |