summaryrefslogtreecommitdiffstats
path: root/kword/KWDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kword/KWDocument.cpp')
-rw-r--r--kword/KWDocument.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kword/KWDocument.cpp b/kword/KWDocument.cpp
index 138cf92a..72fd0555 100644
--- a/kword/KWDocument.cpp
+++ b/kword/KWDocument.cpp
@@ -151,8 +151,8 @@ public:
const int KWDocument::CURRENT_SYNTAX_VERSION = 3;
-KWDocument::KWDocument(TQWidget *tqparentWidget, const char *widname, TQObject* tqparent, const char* name, bool singleViewMode )
- : KoDocument( tqparentWidget, widname, tqparent, name, singleViewMode ),
+KWDocument::KWDocument(TQWidget *parentWidget, const char *widname, TQObject* tqparent, const char* name, bool singleViewMode )
+ : KoDocument( parentWidget, widname, tqparent, name, singleViewMode ),
m_urlIntern()
{
KWStatisticVariable::setExtendedType( true );
@@ -492,7 +492,7 @@ void KWDocument::newZoomAndResolution( bool updateViews, bool forPrint )
}
}
-bool KWDocument::initDoc(InitDocFlags flags, TQWidget* tqparentWidget)
+bool KWDocument::initDoc(InitDocFlags flags, TQWidget* parentWidget)
{
m_pageColumns.columns = 1;
m_pageColumns.ptColumnSpacing = m_defaultColumnSpacing;
@@ -539,7 +539,7 @@ bool KWDocument::initDoc(InitDocFlags flags, TQWidget* tqparentWidget)
TQString file;
KoTemplateChooseDia::ReturnType ret = KoTemplateChooseDia::choose(
KWFactory::instance(), file,
- dlgtype, "kword_template", tqparentWidget );
+ dlgtype, "kword_template", parentWidget );
if ( ret == KoTemplateChooseDia::Template ) {
resetURL();
ok = loadNativeFormat( file );
@@ -2572,7 +2572,7 @@ void KWDocument::pasteFrames( TQDomElement topElem, KMacroCommand * macroCmd, bo
KWFrameSet * fs = 0L;
if ( elem.tagName() == "FRAME" )
{
- TQString frameSetName = frameElem.attribute( "tqparentFrameset" );
+ TQString frameSetName = frameElem.attribute( "parentFrameset" );
fs = frameSetByName( frameSetName );
if ( !fs )
{
@@ -3073,13 +3073,13 @@ void KWDocument::saveSelectedFrames( KoXmlWriter& bodyWriter, KoSavingContext& s
else if ( !isTable ) {
#if 0
// Save the frame information
- TQDomElement frameElem = tqparentElem.ownerDocument().createElement( "FRAME" );
- tqparentElem.appendChild( frameElem );
+ TQDomElement frameElem = parentElem.ownerDocument().createElement( "FRAME" );
+ parentElem.appendChild( frameElem );
frame->save( frameElem );
if ( frame != firstFrame )
{
// Frame saved alone -> remember which frameset it's part of
- frameElem.setAttribute( "tqparentFrameset", fs->name() );
+ frameElem.setAttribute( "parentFrameset", fs->name() );
}
#endif
}
@@ -3606,17 +3606,17 @@ TQDomDocument KWDocument::saveXML()
}
// KWord-1.3 format
-void KWDocument::saveEmbeddedObjects( TQDomElement& tqparentElem, const TQPtrList<KoDocumentChild>& childList )
+void KWDocument::saveEmbeddedObjects( TQDomElement& parentElem, const TQPtrList<KoDocumentChild>& childList )
{
// Write "OBJECT" tag for every child, appending "EMBEDDING" tags to the main XML
TQPtrListIterator<KoDocumentChild> chl( childList );
- TQDomDocument doc = tqparentElem.ownerDocument();
+ TQDomDocument doc = parentElem.ownerDocument();
for( ; chl.current(); ++chl ) {
KWDocumentChild* curr = static_cast<KWDocumentChild*>(chl.current());
if ( !curr->isDeleted() )
{
TQDomElement embeddedElem = doc.createElement( "EMBEDDED" );
- tqparentElem.appendChild( embeddedElem );
+ parentElem.appendChild( embeddedElem );
TQDomElement objectElem = curr->save( doc, true );
embeddedElem.appendChild( objectElem );
@@ -3630,11 +3630,11 @@ void KWDocument::saveEmbeddedObjects( TQDomElement& tqparentElem, const TQPtrLis
}
// KWord-1.3 format
-void KWDocument::saveStyle( KoParagStyle *sty, TQDomElement tqparentElem )
+void KWDocument::saveStyle( KoParagStyle *sty, TQDomElement parentElem )
{
- TQDomDocument doc = tqparentElem.ownerDocument();
+ TQDomDocument doc = parentElem.ownerDocument();
TQDomElement styleElem = doc.createElement( "STYLE" );
- tqparentElem.appendChild( styleElem );
+ parentElem.appendChild( styleElem );
sty->saveStyle( styleElem );
@@ -3643,21 +3643,21 @@ void KWDocument::saveStyle( KoParagStyle *sty, TQDomElement tqparentElem )
}
// KWord-1.3 format
-void KWDocument::saveFrameStyle( KWFrameStyle *sty, TQDomElement tqparentElem )
+void KWDocument::saveFrameStyle( KWFrameStyle *sty, TQDomElement parentElem )
{
- TQDomDocument doc = tqparentElem.ownerDocument();
+ TQDomDocument doc = parentElem.ownerDocument();
TQDomElement frameStyleElem = doc.createElement( "FRAMESTYLE" );
- tqparentElem.appendChild( frameStyleElem );
+ parentElem.appendChild( frameStyleElem );
sty->saveFrameStyle( frameStyleElem );
}
// KWord-1.3 format
-void KWDocument::saveTableStyle( KWTableStyle *sty, TQDomElement tqparentElem )
+void KWDocument::saveTableStyle( KWTableStyle *sty, TQDomElement parentElem )
{
- TQDomDocument doc = tqparentElem.ownerDocument();
+ TQDomDocument doc = parentElem.ownerDocument();
TQDomElement tableStyleElem = doc.createElement( "TABLESTYLE" );
- tqparentElem.appendChild( tableStyleElem );
+ parentElem.appendChild( tableStyleElem );
sty->saveTableStyle( tableStyleElem );
}
@@ -3867,12 +3867,12 @@ KWDocumentChild* KWDocument::createChildDoc( const KoRect& rect, KoDocument* chi
return ch;
}
-KWPartFrameSet* KWDocument::insertObject( const KoRect& rect, KoDocumentEntry& e, TQWidget* tqparentWidget )
+KWPartFrameSet* KWDocument::insertObject( const KoRect& rect, KoDocumentEntry& e, TQWidget* parentWidget )
{
KoDocument* doc = e.createDoc( this );
if ( !doc )
return 0;
- if ( !doc->showEmbedInitDialog( tqparentWidget ) )
+ if ( !doc->showEmbedInitDialog( parentWidget ) )
return 0;
KWDocumentChild* ch = createChildDoc( rect, doc );