From c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:56:31 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 94844816550ad672ccfcdc25659c625546239998. --- filters/kword/abiword/ImportField.cc | 2 +- filters/kword/abiword/ImportFormatting.cc | 2 +- filters/kword/abiword/ImportStyle.cc | 2 +- filters/kword/abiword/abiwordexport.cc | 124 +++++----- filters/kword/abiword/abiwordexport.h | 2 +- filters/kword/abiword/abiwordimport.cc | 22 +- filters/kword/abiword/abiwordimport.h | 2 +- filters/kword/amipro/FileFormat.txt | 10 +- filters/kword/amipro/amiproexport.cc | 14 +- filters/kword/amipro/amiproexport.h | 2 +- filters/kword/amipro/amiproimport.cc | 60 ++--- filters/kword/amipro/amiproimport.h | 2 +- filters/kword/amipro/amiproparser.cpp | 10 +- filters/kword/amipro/amiproparser.h | 4 +- filters/kword/applixword/applixwordimport.cc | 6 +- filters/kword/applixword/applixwordimport.h | 4 +- filters/kword/ascii/ExportDialog.cc | 14 +- filters/kword/ascii/ExportDialogUI.ui | 6 +- filters/kword/ascii/ImportDialog.cc | 14 +- filters/kword/ascii/ImportDialogUI.ui | 6 +- filters/kword/ascii/asciiexport.cc | 36 +-- filters/kword/ascii/asciiexport.h | 2 +- filters/kword/ascii/asciiimport.cc | 10 +- filters/kword/ascii/asciiimport.h | 2 +- filters/kword/docbook/docbookexport.cc | 20 +- filters/kword/docbook/docbookexport.h | 2 +- filters/kword/hancomword/hancomwordimport.cpp | 4 +- filters/kword/hancomword/hancomwordimport.h | 2 +- filters/kword/hancomword/pole.cpp | 24 +- filters/kword/html/export/ExportBasic.cc | 20 +- filters/kword/html/export/ExportBasic.h | 4 +- filters/kword/html/export/ExportCss.cc | 114 +++++----- filters/kword/html/export/ExportCss.h | 8 +- filters/kword/html/export/ExportDialog.cc | 10 +- filters/kword/html/export/ExportDialogUI.ui | 12 +- filters/kword/html/export/ExportDocStruct.cc | 10 +- filters/kword/html/export/ExportDocStruct.h | 4 +- filters/kword/html/export/ExportFilter.cc | 44 ++-- filters/kword/html/export/ExportFilter.h | 8 +- filters/kword/html/export/htmlexport.cc | 6 +- filters/kword/html/export/htmlexport.h | 4 +- filters/kword/html/import/htmlimport.cpp | 2 +- filters/kword/html/import/htmlimport.h | 2 +- filters/kword/html/import/khtmlreader.cpp | 60 ++--- filters/kword/html/import/khtmlreader.h | 6 +- filters/kword/html/import/kwdwriter.cpp | 34 +-- filters/kword/html/import/kwdwriter.h | 12 +- filters/kword/kword1.3/import/kword13formatone.cpp | 2 +- filters/kword/kword1.3/import/kword13formatone.h | 6 +- filters/kword/kword1.3/import/kword13import.cpp | 4 +- filters/kword/kword1.3/import/kword13import.h | 2 +- filters/kword/kword1.3/import/kword13layout.cpp | 6 +- .../kword1.3/import/kword13oasisgenerator.cpp | 50 ++--- .../kword/kword1.3/import/kword13oasisgenerator.h | 8 +- filters/kword/kword1.3/import/kword13parser.cpp | 12 +- filters/kword/kword1.3/import/kword13parser.h | 8 +- filters/kword/kword1.3/import/kword13utils.cpp | 2 +- filters/kword/latex/export/config.h | 6 +- filters/kword/latex/export/document.h | 2 +- filters/kword/latex/export/element.h | 2 +- filters/kword/latex/export/fileheader.cc | 4 +- filters/kword/latex/export/fileheader.h | 2 +- filters/kword/latex/export/format.h | 2 +- filters/kword/latex/export/formula.h | 2 +- filters/kword/latex/export/kwordlatexexportdia.cc | 4 +- filters/kword/latex/export/latexexport.cc | 4 +- filters/kword/latex/export/latexexport.h | 4 +- filters/kword/latex/export/latexexportdia.ui | 2 +- filters/kword/latex/export/layout.cc | 4 +- filters/kword/latex/export/layout.h | 4 +- filters/kword/latex/export/para.cc | 6 +- filters/kword/latex/export/para.h | 2 +- filters/kword/latex/export/texlauncher.cc | 2 +- filters/kword/latex/export/textFrame.cc | 2 +- filters/kword/latex/export/textzone.cc | 14 +- filters/kword/latex/export/textzone.h | 4 +- filters/kword/latex/export/variablezone.cc | 2 +- filters/kword/latex/export/variablezone.h | 2 +- filters/kword/latex/export/xml2latexparser.h | 2 +- filters/kword/latex/export/xmlparser.cc | 12 +- filters/kword/latex/import/generator/document.cc | 2 +- filters/kword/latex/import/lateximport.cc | 4 +- filters/kword/latex/import/lateximport.h | 4 +- filters/kword/latex/import/lateximportdia.cc | 8 +- filters/kword/latex/import/lateximportdia.h | 4 +- filters/kword/latex/import/parser/env.cc | 8 +- filters/kword/latex/import/parser/env.h | 2 +- filters/kword/latex/status.html | 8 +- filters/kword/libexport/KWEFBaseWorker.cc | 2 +- filters/kword/libexport/KWEFBaseWorker.h | 4 +- filters/kword/libexport/KWEFKWordLeader.cc | 22 +- filters/kword/libexport/KWEFKWordLeader.h | 4 +- filters/kword/libexport/KWEFStructures.h | 6 +- filters/kword/libexport/KWEFUtil.cc | 6 +- filters/kword/libexport/ProcessDocument.cc | 130 +++++------ filters/kword/msword/conversion.cpp | 2 +- filters/kword/msword/conversion.h | 4 +- filters/kword/msword/document.cpp | 6 +- filters/kword/msword/mswordimport.cpp | 2 +- filters/kword/msword/mswordimport.h | 2 +- filters/kword/msword/texthandler.cpp | 22 +- filters/kword/msword/texthandler.h | 2 +- filters/kword/mswrite/ImportDialog.cc | 4 +- filters/kword/mswrite/ImportDialogUI.ui | 10 +- filters/kword/mswrite/mswriteexport.cc | 68 +++--- filters/kword/mswrite/mswriteexport.h | 2 +- filters/kword/mswrite/mswriteimport.cc | 6 +- filters/kword/mswrite/mswriteimport.h | 2 +- filters/kword/mswrite/status.html | 4 +- filters/kword/mswrite/structures.h | 2 +- filters/kword/mswrite/structures_generated.cpp | 14 +- filters/kword/mswrite/structures_generated.h | 8 +- filters/kword/oowriter/ExportFilter.cc | 130 +++++------ filters/kword/oowriter/ExportFilter.h | 6 +- filters/kword/oowriter/conversion.cc | 8 +- filters/kword/oowriter/conversion.h | 2 +- filters/kword/oowriter/oowriterexport.cc | 4 +- filters/kword/oowriter/oowriterexport.h | 2 +- filters/kword/oowriter/oowriterimport.cc | 50 ++--- filters/kword/oowriter/oowriterimport.h | 6 +- filters/kword/palmdoc/palmdb.cpp | 20 +- filters/kword/palmdoc/palmdoc.cpp | 4 +- filters/kword/palmdoc/palmdocexport.cc | 10 +- filters/kword/palmdoc/palmdocexport.h | 2 +- filters/kword/palmdoc/palmdocimport.cc | 52 ++--- filters/kword/palmdoc/palmdocimport.h | 2 +- filters/kword/pdf/FilterDevice.cpp | 4 +- filters/kword/pdf/FilterPage.cpp | 22 +- filters/kword/pdf/data.cpp | 12 +- filters/kword/pdf/dialog.cpp | 10 +- filters/kword/pdf/fstring.cpp | 4 +- filters/kword/pdf/fstring.h | 4 +- filters/kword/pdf/misc.cpp | 6 +- filters/kword/pdf/pdfdocument.cpp | 2 +- filters/kword/pdf/pdfdocument.h | 2 +- filters/kword/pdf/pdfimport.cpp | 6 +- filters/kword/pdf/pdfimport.h | 2 +- filters/kword/pdf/xpdf/xpdf/FTFont.cc | 10 +- filters/kword/pdf/xpdf/xpdf/FontFile.cc | 10 +- filters/kword/pdf/xpdf/xpdf/GlobalParams.cc | 20 +- filters/kword/pdf/xpdf/xpdf/GlobalParams.h | 6 +- filters/kword/pdf/xpdf/xpdf/TTFont.cc | 10 +- filters/kword/pdf/xpdf/xpdf/UnicodeMap.cc | 38 ++-- filters/kword/pdf/xpdf/xpdf/UnicodeMap.h | 18 +- filters/kword/pdf/xpdf/xpdf/XPDFApp.cc | 14 +- filters/kword/pdf/xpdf/xpdf/XPDFApp.h | 4 +- filters/kword/pdf/xpdf/xpdf/XPDFTree.cc | 134 +++++------ filters/kword/pdf/xpdf/xpdf/XPDFTreeP.h | 6 +- filters/kword/pdf/xpdf/xpdf/XPDFViewer.cc | 8 +- filters/kword/pdf/xpdf/xpdf/xpdf.cc | 6 +- filters/kword/rtf/export/ExportFilter.cc | 202 ++++++++--------- filters/kword/rtf/export/ExportFilter.h | 8 +- filters/kword/rtf/export/rtfexport.cc | 4 +- filters/kword/rtf/export/rtfexport.h | 4 +- filters/kword/rtf/import/rtfimport.cpp | 250 ++++++++++----------- filters/kword/rtf/import/rtfimport.h | 22 +- filters/kword/rtf/import/rtfimport_dom.cpp | 4 +- filters/kword/rtf/status.html | 8 +- filters/kword/starwriter/pole.cpp | 24 +- filters/kword/starwriter/starwriterimport.cc | 10 +- filters/kword/starwriter/starwriterimport.h | 2 +- filters/kword/starwriter/status.html | 2 +- filters/kword/wml/wmlexport.cc | 14 +- filters/kword/wml/wmlexport.h | 2 +- filters/kword/wml/wmlimport.cc | 14 +- filters/kword/wml/wmlimport.h | 2 +- filters/kword/wml/wmlparser.cpp | 2 +- filters/kword/wordperfect/export/wp5.cc | 10 +- filters/kword/wordperfect/export/wp5.h | 2 +- filters/kword/wordperfect/export/wp6.cc | 20 +- filters/kword/wordperfect/export/wp6.h | 2 +- filters/kword/wordperfect/export/wpexport.cc | 8 +- filters/kword/wordperfect/export/wpexport.h | 2 +- filters/kword/wordperfect/import/kwordfilter.cpp | 48 ++-- filters/kword/wordperfect/import/parser.cpp | 2 +- filters/kword/wordperfect/import/wpimport.cc | 2 +- filters/kword/wordperfect/import/wpimport.h | 2 +- filters/kword/wordperfect/status_old.html | 2 +- 178 files changed, 1332 insertions(+), 1332 deletions(-) (limited to 'filters/kword') diff --git a/filters/kword/abiword/ImportField.cc b/filters/kword/abiword/ImportField.cc index 5e875ecd..dfba826d 100644 --- a/filters/kword/abiword/ImportField.cc +++ b/filters/kword/abiword/ImportField.cc @@ -26,7 +26,7 @@ TQString getFootnoteFramesetName(const TQString& id) { - return i18n("Frameset name","Footnote %1").arg(id); + return i18n("Frameset name","Footnote %1").tqarg(id); } static void InsertTimeVariable(TQDomDocument& mainDocument, diff --git a/filters/kword/abiword/ImportFormatting.cc b/filters/kword/abiword/ImportFormatting.cc index 7c45f07a..1687e958 100644 --- a/filters/kword/abiword/ImportFormatting.cc +++ b/filters/kword/abiword/ImportFormatting.cc @@ -208,7 +208,7 @@ void AddLayout(const TQString& strStyleName, TQDomElement& layoutElement, followingElement.setAttribute("name","Normal"); layoutElement.appendChild(followingElement); } - // Else: we are a layout, so we leave the work to KWord (from the style) + // Else: we are a tqlayout, so we leave the work to KWord (from the style) } else { diff --git a/filters/kword/abiword/ImportStyle.cc b/filters/kword/abiword/ImportStyle.cc index 5a08cf0d..4f84a8e4 100644 --- a/filters/kword/abiword/ImportStyle.cc +++ b/filters/kword/abiword/ImportStyle.cc @@ -121,7 +121,7 @@ void StyleDataMap::defineDefaultStyles(void) defineNewStyle("Block Text",-1,"margin-left: 1in; margin-right: 1in; margin-bottom: 6pt"); TQFontInfo fixedInfo(KGlobalSettings::fixedFont()); TQString strPlainText=TQString("font-family: %1") - .arg(fixedInfo.family()); // TODO: should be "Courier New" + .tqarg(fixedInfo.family()); // TODO: should be "Courier New" kdDebug(30506) << "Plain Text: " << strPlainText << endl; defineNewStyle("Plain Text",-1,strPlainText); // TODO: all list and numbered types diff --git a/filters/kword/abiword/abiwordexport.cc b/filters/kword/abiword/abiwordexport.cc index d52fa1c8..717611cd 100644 --- a/filters/kword/abiword/abiwordexport.cc +++ b/filters/kword/abiword/abiwordexport.cc @@ -32,7 +32,7 @@ #include #include -#include +#include #include #include @@ -84,7 +84,7 @@ public: virtual bool doCloseFile(void); // Close file in normal conditions virtual bool doOpenDocument(void); virtual bool doCloseDocument(void); - virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout, + virtual bool doFullParagraph(const TQString& paraText, const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList); virtual bool doOpenTextFrameSet(void); // AbiWord's
virtual bool doCloseTextFrameSet(void); // AbiWord's
@@ -95,7 +95,7 @@ public: virtual bool doCloseHead(void); // Write virtual bool doOpenStyles(void); // AbiWord's virtual bool doCloseStyles(void); // AbiWord's - virtual bool doFullDefineStyle(LayoutData& layout); // AbiWord's + virtual bool doFullDefineStyle(LayoutData& tqlayout); // AbiWord's virtual bool doOpenSpellCheckIgnoreList (void); // AbiWord's virtual bool doCloseSpellCheckIgnoreList (void); // AbiWord's virtual bool doFullSpellCheckIgnoreWord (const TQString& ignoreword); // AbiWord's @@ -116,7 +116,7 @@ private: TQString textFormatToAbiProps(const TextFormatting& formatOrigin, const TextFormatting& formatData, const bool force) const; TQString layoutToCss(const LayoutData& layoutOrigin, - const LayoutData& layout, const bool force) const; + const LayoutData& tqlayout, const bool force) const; TQString escapeAbiWordText(const TQString& strText) const; bool makeTable(const FrameAnchor& anchor); bool makePicture(const FrameAnchor& anchor); @@ -649,7 +649,7 @@ void AbiWordWorker::processVariable ( const TQString&, TQString fstr; TQValueList::ConstIterator it; for (it=paraList->begin();it!=paraList->end();it++) - fstr += ProcessParagraphData( (*it).text, (*it).layout,(*it).formattingList); + fstr += ProcessParagraphData( (*it).text, (*it).tqlayout,(*it).formattingList); str += "{\\super "; str += automatic ? "\\chftn " : value; str += "{\\footnote "; @@ -719,50 +719,50 @@ void AbiWordWorker::processParagraphData ( const TQString ¶Text, } TQString AbiWordWorker::layoutToCss(const LayoutData& layoutOrigin, - const LayoutData& layout, const bool force) const + const LayoutData& tqlayout, const bool force) const { TQString props; - if (force || (layoutOrigin.alignment!=layout.alignment)) + if (force || (layoutOrigin.tqalignment!=tqlayout.tqalignment)) { - // Check if the current alignment is a valid one for AbiWord. - if ((layout.alignment == "left") || (layout.alignment == "right") - || (layout.alignment == "center") || (layout.alignment == "justify")) + // Check if the current tqalignment is a valid one for AbiWord. + if ((tqlayout.tqalignment == "left") || (tqlayout.tqalignment == "right") + || (tqlayout.tqalignment == "center") || (tqlayout.tqalignment == "justify")) { props += "text-align:"; - props += layout.alignment; + props += tqlayout.tqalignment; props += "; "; } - else if (layout.alignment == "auto") + else if (tqlayout.tqalignment == "auto") { - // We assume a left alignment as AbiWord is not really bi-di (and this filter even less.) + // We assume a left tqalignment as AbiWord is not really bi-di (and this filter even less.) props += "text-align:left; "; } else { - kdWarning(30506) << "Unknown alignment: " << layout.alignment << endl; + kdWarning(30506) << "Unknown tqalignment: " << tqlayout.tqalignment << endl; } } // TODO/FIXME: what if all tabulators must be erased? #if 0 // DEPRECATED! - if (!layout.tabulator.isEmpty() - && (force || (layoutOrigin.tabulator!=layout.tabulator))) + if (!tqlayout.tabulator.isEmpty() + && (force || (layoutOrigin.tabulator!=tqlayout.tabulator))) { props += "tabstops:"; - props += layout.tabulator; + props += tqlayout.tabulator; props += "; "; } #endif - if (!layout.tabulatorList.isEmpty() - && (force || (layoutOrigin.tabulatorList!=layout.tabulatorList) )) + if (!tqlayout.tabulatorList.isEmpty() + && (force || (layoutOrigin.tabulatorList!=tqlayout.tabulatorList) )) { props += "tabstops:"; bool first=true; TabulatorList::ConstIterator it; - TabulatorList::ConstIterator end(layout.tabulatorList.end()); - for (it=layout.tabulatorList.begin();it!=end;++it) + TabulatorList::ConstIterator end(tqlayout.tabulatorList.end()); + for (it=tqlayout.tabulatorList.begin();it!=end;++it) { if (first) { @@ -789,48 +789,48 @@ TQString AbiWordWorker::layoutToCss(const LayoutData& layoutOrigin, props += "; "; } - if ((layout.indentLeft>=0.0) - && (force || (layoutOrigin.indentLeft!=layout.indentLeft))) + if ((tqlayout.indentLeft>=0.0) + && (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft))) { - props += TQString("margin-left:%1pt; ").arg(layout.indentLeft); + props += TQString("margin-left:%1pt; ").tqarg(tqlayout.indentLeft); } - if ((layout.indentRight>=0.0) - && (force || (layoutOrigin.indentRight!=layout.indentRight))) + if ((tqlayout.indentRight>=0.0) + && (force || (layoutOrigin.indentRight!=tqlayout.indentRight))) { - props += TQString("margin-right:%1pt; ").arg(layout.indentRight); + props += TQString("margin-right:%1pt; ").tqarg(tqlayout.indentRight); } - if (force || (layoutOrigin.indentLeft!=layout.indentLeft)) + if (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft)) { props += "text-indent: "; - props += TQString::number(layout.indentFirst); + props += TQString::number(tqlayout.indentFirst); props += "pt; "; } - if ((layout.marginBottom>=0.0) - && ( force || ( layoutOrigin.marginBottom != layout.marginBottom ) ) ) + if ((tqlayout.marginBottom>=0.0) + && ( force || ( layoutOrigin.marginBottom != tqlayout.marginBottom ) ) ) { - props += TQString("margin-bottom:%1pt; ").arg(layout.marginBottom); + props += TQString("margin-bottom:%1pt; ").tqarg(tqlayout.marginBottom); } - if ((layout.marginTop>=0.0) - && ( force || ( layoutOrigin.marginTop != layout.marginTop ) ) ) + if ((tqlayout.marginTop>=0.0) + && ( force || ( layoutOrigin.marginTop != tqlayout.marginTop ) ) ) { - props += TQString("margin-top:%1pt; ").arg(layout.marginTop); + props += TQString("margin-top:%1pt; ").tqarg(tqlayout.marginTop); } if (force - || ( layoutOrigin.lineSpacingType != layout.lineSpacingType ) - || ( layoutOrigin.lineSpacing != layout.lineSpacing ) ) + || ( layoutOrigin.lineSpacingType != tqlayout.lineSpacingType ) + || ( layoutOrigin.lineSpacing != tqlayout.lineSpacing ) ) { - switch ( layout.lineSpacingType ) + switch ( tqlayout.lineSpacingType ) { case LayoutData::LS_CUSTOM: { // We have a custom line spacing (in points). However AbiWord cannot do it, so transform in "at-least" props += "line-height=:"; - props += TQString::number( layout.lineSpacing ); // ### TODO: rounding? + props += TQString::number( tqlayout.lineSpacing ); // ### TODO: rounding? props += "pt+; "; break; } @@ -852,7 +852,7 @@ TQString AbiWordWorker::layoutToCss(const LayoutData& layoutOrigin, case LayoutData::LS_MULTIPLE: { props += "line-height:"; - props += TQString::number( layout.lineSpacing ); // ### TODO: rounding? + props += TQString::number( tqlayout.lineSpacing ); // ### TODO: rounding? props += "; "; break; } @@ -860,7 +860,7 @@ TQString AbiWordWorker::layoutToCss(const LayoutData& layoutOrigin, { // We have a fixed line height (in points) props += "line-height:"; - props += TQString::number( layout.lineSpacing ); // ### TODO: rounding? + props += TQString::number( tqlayout.lineSpacing ); // ### TODO: rounding? props += "pt; "; break; } @@ -868,32 +868,32 @@ TQString AbiWordWorker::layoutToCss(const LayoutData& layoutOrigin, { // We have an "at-least" line height (in points) props += "line-height=:"; - props += TQString::number( layout.lineSpacing ); // ### TODO: rounding? + props += TQString::number( tqlayout.lineSpacing ); // ### TODO: rounding? props += "pt+; "; // The + makes the difference break; } default: { - kdWarning(30506) << "Unsupported lineSpacingType: " << layout.lineSpacingType << " (Ignoring!)" << endl; + kdWarning(30506) << "Unsupported lineSpacingType: " << tqlayout.lineSpacingType << " (Ignoring!)" << endl; break; } } } // Add all AbiWord properties collected in the element - props += textFormatToAbiProps(layoutOrigin.formatData.text,layout.formatData.text,force); + props += textFormatToAbiProps(layoutOrigin.formatData.text,tqlayout.formatData.text,force); return props; } -bool AbiWordWorker::doFullParagraph(const TQString& paraText, const LayoutData& layout, +bool AbiWordWorker::doFullParagraph(const TQString& paraText, const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList) { - TQString style=layout.styleName; + TQString style=tqlayout.styleName; const LayoutData& styleLayout=m_styleMap[style]; - TQString props=layoutToCss(styleLayout,layout,false); + TQString props=layoutToCss(styleLayout,tqlayout,false); *m_streamOut << ""; //Warning: No trailing white space or else it's in the text!!! // Before processing the text, test if we have a page break - if (layout.pageBreakBefore) + if (tqlayout.pageBreakBefore) { // We have a page break before the paragraph *m_streamOut << ""; } - processParagraphData(paraText, layout.formatData.text, paraFormatDataList); + processParagraphData(paraText, tqlayout.formatData.text, paraFormatDataList); // Before closing the paragraph, test if we have a page break - if (layout.pageBreakAfter) + if (tqlayout.pageBreakAfter) { // We have a page break after the paragraph *m_streamOut << ""; @@ -935,26 +935,26 @@ bool AbiWordWorker::doFullParagraph(const TQString& paraText, const LayoutData& return true; } -bool AbiWordWorker::doFullDefineStyle(LayoutData& layout) +bool AbiWordWorker::doFullDefineStyle(LayoutData& tqlayout) { //Register style in the style map - m_styleMap[layout.styleName]=layout; + m_styleMap[tqlayout.styleName]=tqlayout; *m_streamOut << "=0) @@ -1041,7 +1041,7 @@ bool AbiWordWorker::doFullPaperFormat(const int format, } else { // We prefer to use inches, as to limit rounding errors (page size is in points!) - outputText += TQString("pagetype=\"Custom\" width=\"%1\" height=\"%2\" units=\"inch\" ").arg(width/72.0).arg(height/72.0); + outputText += TQString("pagetype=\"Custom\" width=\"%1\" height=\"%2\" units=\"inch\" ").tqarg(width/72.0).tqarg(height/72.0); } break; } @@ -1208,7 +1208,7 @@ bool AbiWordWorker::doFullDocumentInfo(const KWEFDocumentInfo& docInfo) *m_streamOut << "\n"; - TQDateTime now (TQDateTime::currentDateTime(Qt::UTC)); // current time in UTC + TQDateTime now (TQDateTime::tqcurrentDateTime(Qt::UTC)); // current time in UTC *m_streamOut << "" << escapeAbiWordText(transformToTextDate(now)) << "\n"; @@ -1225,7 +1225,7 @@ ABIWORDExport::ABIWORDExport(KoFilter */*parent*/, const char */*name*/, const T KoFilter() { } -KoFilter::ConversionStatus ABIWORDExport::convert( const TQCString& from, const TQCString& to ) +KoFilter::ConversiontqStatus ABIWORDExport::convert( const TQCString& from, const TQCString& to ) { if ( to != "application/x-abiword" || from != "application/x-kword" ) { @@ -1252,7 +1252,7 @@ KoFilter::ConversionStatus ABIWORDExport::convert( const TQCString& from, const return KoFilter::StupidError; } - KoFilter::ConversionStatus result=leader->convert(m_chain,from,to); + KoFilter::ConversiontqStatus result=leader->convert(m_chain,from,to); delete leader; delete worker; diff --git a/filters/kword/abiword/abiwordexport.h b/filters/kword/abiword/abiwordexport.h index 656283f8..550b7682 100644 --- a/filters/kword/abiword/abiwordexport.h +++ b/filters/kword/abiword/abiwordexport.h @@ -47,6 +47,6 @@ public: ABIWORDExport(KoFilter *parent, const char *name, const TQStringList &); virtual ~ABIWORDExport() {} - virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to ); + virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to ); }; #endif // ABIWORDEXPORT_H diff --git a/filters/kword/abiword/abiwordimport.cc b/filters/kword/abiword/abiwordimport.cc index 2c7e4d3f..4815d02c 100644 --- a/filters/kword/abiword/abiwordimport.cc +++ b/filters/kword/abiword/abiwordimport.cc @@ -72,7 +72,7 @@ class StructureParser : public TQXmlDefaultHandler public: StructureParser(KoFilterChain* chain) : m_chain(chain), m_pictureNumber(0), m_pictureFrameNumber(0), m_tableGroupNumber(0), - m_timepoint(TQDateTime::currentDateTime(Qt::UTC)), m_fatalerror(false) + m_timepoint(TQDateTime::tqcurrentDateTime(Qt::UTC)), m_fatalerror(false) { createDocument(); structureStack.setAutoDelete(true); @@ -363,7 +363,7 @@ bool StartElementP(StackItem* stackItem, StackItem* stackCurrent, stackItem->stackElementFormatsPlural=formatsPluralElementOut; // stackItem->pos=0; // No text characters yet - // Now we populate the layout + // Now we populate the tqlayout TQDomElement layoutElement=mainDocument.createElement("LAYOUT"); paragraphElementOut.appendChild(layoutElement); @@ -527,7 +527,7 @@ bool StructureParser::StartElementImage(StackItem* stackItem, StackItem* stackCu kdDebug(30506) << "Image: " << strDataId << endl; } - TQString strPictureFrameName(i18n("Frameset name","Picture %1").arg(++m_pictureFrameNumber)); + TQString strPictureFrameName(i18n("Frameset name","Picture %1").tqarg(++m_pictureFrameNumber)); // Create the frame set of the image @@ -817,7 +817,7 @@ static bool StartElementPBR(StackItem* /*stackItem*/, StackItem* stackCurrent, TQDomElement formatsPluralElementOut=mainDocument.createElement("FORMATS"); paragraphElementOut.appendChild(formatsPluralElementOut); - // We must now copy/clone the layout of elementText. + // We must now copy/clone the tqlayout of elementText. TQDomNodeList nodeList=stackCurrent->stackElementParagraph.elementsByTagName("LAYOUT"); @@ -1127,7 +1127,7 @@ bool StructureParser::StartElementTable(StackItem* stackItem, StackItem* stackCu // ### TODO: in case of automatic column widths, we have not any width given by AbiWord const uint tableNumber(++m_tableGroupNumber); - const TQString tableName(i18n("Table %1").arg(tableNumber)); + const TQString tableName(i18n("Table %1").tqarg(tableNumber)); TQDomElement elementText=stackCurrent->stackElementText; TQDomElement paragraphElementOut=mainDocument.createElement("PARAGRAPH"); @@ -1159,7 +1159,7 @@ bool StructureParser::StartElementTable(StackItem* stackItem, StackItem* stackCu stackItem->strTemp2=TQString::number(tableNumber); // needed as I18N does not allow adding phrases stackItem->pos=1; // Just # - // Now we populate the layout + // Now we populate the tqlayout TQDomElement layoutElement=mainDocument.createElement("LAYOUT"); paragraphElementOut.appendChild(layoutElement); @@ -1211,7 +1211,7 @@ bool StructureParser::StartElementCell(StackItem* stackItem, StackItem* stackCur } const TQString frameName(i18n("Frameset name","Table %3, row %1, column %2") - .arg(row).arg(col).arg(stackCurrent->strTemp2)); // As the stack could be wrong, be careful and use the string as last! + .tqarg(row).tqarg(col).tqarg(stackCurrent->strTemp2)); // As the stack could be wrong, be careful and use the string as last! // We need to create a frameset for the cell TQDomElement framesetElement(mainDocument.createElement("FRAMESET")); @@ -1638,8 +1638,8 @@ bool StructureParser::fatalError (const TQXmlParseException& exception) << " col " << exception.columnNumber() << " message: " << exception.message() << endl; m_fatalerror=true; KMessageBox::error(NULL, i18n("An error has occurred while parsing the AbiWord file.\nAt line: %1, column %2\nError message: %3") - .arg(exception.lineNumber()).arg(exception.columnNumber()) - .arg( i18n( "TQXml", exception.message().utf8() ) ), + .tqarg(exception.lineNumber()).tqarg(exception.columnNumber()) + .tqarg( i18n( "TQXml", exception.message().utf8() ) ), i18n("AbiWord Import Filter"),0); return false; // Stop parsing now, we do not need further errors. } @@ -1757,7 +1757,7 @@ ABIWORDImport::ABIWORDImport(KoFilter */*parent*/, const char */*name*/, const T KoFilter() { } -KoFilter::ConversionStatus ABIWORDImport::convert( const TQCString& from, const TQCString& to ) +KoFilter::ConversiontqStatus ABIWORDImport::convert( const TQCString& from, const TQCString& to ) { if ((to != "application/x-kword") || (from != "application/x-abiword")) return KoFilter::NotImplemented; @@ -1825,7 +1825,7 @@ KoFilter::ConversionStatus ABIWORDImport::convert( const TQCString& from, const if (!handler.wasFatalError()) { // As the parsing was stopped for something else than a fatal error, we have not yet get an error message. (Can it really happen?) - KMessageBox::error(NULL, i18n("An error occurred during the load of the AbiWord file: %1").arg(from.data()), + KMessageBox::error(NULL, i18n("An error occurred during the load of the AbiWord file: %1").tqarg(from.data()), i18n("AbiWord Import Filter"),0); } return KoFilter::ParsingError; diff --git a/filters/kword/abiword/abiwordimport.h b/filters/kword/abiword/abiwordimport.h index 8b8349b7..9ff4d764 100644 --- a/filters/kword/abiword/abiwordimport.h +++ b/filters/kword/abiword/abiwordimport.h @@ -50,6 +50,6 @@ public: ABIWORDImport(); virtual ~ABIWORDImport() {} - virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to ); + virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to ); }; #endif // ABIWORDIMPORT_H diff --git a/filters/kword/amipro/FileFormat.txt b/filters/kword/amipro/FileFormat.txt index 15f20037..f795b56c 100644 --- a/filters/kword/amipro/FileFormat.txt +++ b/filters/kword/amipro/FileFormat.txt @@ -43,9 +43,9 @@ Note: Word underline is just like underline, except that spaces between words are not underlined. Paragraph align is also encoded using tag, here it the list: - <+@> left alignment - <+A> right alignment - <+B> center alignment + <+@> left tqalignment + <+A> right tqalignment + <+B> center tqalignment <+C> justified Linespacing is encoded using tag: @@ -81,7 +81,7 @@ example below: 0 font color (see below) 16385 formatting flag (see below) [algn] - 4 alignment flag (see below) + 4 tqalignment flag (see below) 1 216 indent, 216/20 = 10.8 pt 144 first line indent, 144/20 = 7.2 pt @@ -185,7 +185,7 @@ Normally this appears in beginning of paragraph. 5 Page Layout ------------- -Page layout is defined in section [lay]. Here is the format, +Page tqlayout is defined in section [lay]. Here is the format, along with an example: [lay] diff --git a/filters/kword/amipro/amiproexport.cc b/filters/kword/amipro/amiproexport.cc index 22bc741e..dd4550b8 100644 --- a/filters/kword/amipro/amiproexport.cc +++ b/filters/kword/amipro/amiproexport.cc @@ -23,10 +23,10 @@ #include #endif -#include +#include #include #include -#include +#include #include #include @@ -50,7 +50,7 @@ class AmiProWorker : public KWEFBaseWorker virtual bool doCloseFile(void); virtual bool doOpenDocument(void); virtual bool doCloseDocument(void); - virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout, + virtual bool doFullParagraph(const TQString& paraText, const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList); private: TQString filename; @@ -116,7 +116,7 @@ static TQString AmiProEscape( const TQString& text ) for( unsigned i=0; i': result += "<;>"; break; @@ -131,7 +131,7 @@ static TQString AmiProEscape( const TQString& text ) } bool AmiProWorker::doFullParagraph(const TQString& paraText, - const LayoutData& /*layout*/, const ValueListFormatData& paraFormatDataList) + const LayoutData& /*tqlayout*/, const ValueListFormatData& paraFormatDataList) { TQString amiproText = ""; TQString text = paraText; @@ -180,7 +180,7 @@ AmiProExport::AmiProExport( KoFilter *, const char *, const TQStringList& ): { } -KoFilter::ConversionStatus +KoFilter::ConversiontqStatus AmiProExport::convert( const TQCString& from, const TQCString& to ) { @@ -191,7 +191,7 @@ AmiProExport::convert( const TQCString& from, AmiProWorker* worker = new AmiProWorker(); KWEFKWordLeader* leader = new KWEFKWordLeader( worker ); - KoFilter::ConversionStatus result; + KoFilter::ConversiontqStatus result; result = leader->convert( m_chain, from, to ); delete worker; diff --git a/filters/kword/amipro/amiproexport.h b/filters/kword/amipro/amiproexport.h index bffb4362..c9e1f5d9 100644 --- a/filters/kword/amipro/amiproexport.h +++ b/filters/kword/amipro/amiproexport.h @@ -35,7 +35,7 @@ class AmiProExport : public KoFilter virtual ~AmiProExport() {} - virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to ); + virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to ); }; #endif // __AMIPROEXPORT_H diff --git a/filters/kword/amipro/amiproimport.cc b/filters/kword/amipro/amiproimport.cc index fe45ca18..7f37746c 100644 --- a/filters/kword/amipro/amiproimport.cc +++ b/filters/kword/amipro/amiproimport.cc @@ -124,43 +124,43 @@ static TQString AmiProFormatListAsXML( AmiProFormatList& formatList ) return result; } -// helper function to convert AmiPro paragraph layout to KWord's LAYOUT -static TQString AmiProLayoutAsXML( const AmiProLayout& layout ) +// helper function to convert AmiPro paragraph tqlayout to KWord's LAYOUT +static TQString AmiProLayoutAsXML( const AmiProLayout& tqlayout ) { TQString result; - TQString referredStyle = layout.name; + TQString referredStyle = tqlayout.name; if( referredStyle.isEmpty() ) referredStyle = "Standard"; - TQString fontname = layout.fontFamily; + TQString fontname = tqlayout.fontFamily; if( fontname.isEmpty() ) fontname = KoGlobal::defaultFont().family(); - TQString fontsize = TQString::number( layout.fontSize ); - TQString fontcolor = "red=\"" + TQString::number( layout.fontColor.red() ) + - "\" green=\"" + TQString::number( layout.fontColor.green() ) + - "\" blue=\"" + TQString::number( layout.fontColor.blue() ) + "\""; - TQString boldness = layout.bold ? "75" : "50"; - TQString italic = layout.italic ? "1" : "0"; - TQString strikeout = layout.strikethrough ? "1" : "0"; - TQString vertalign = layout.superscript ? "2" : layout.subscript ? "1" : "0"; - TQString underline = layout.double_underline ? "double" : - layout.underline|layout.word_underline ? "1" : "0"; + TQString fontsize = TQString::number( tqlayout.fontSize ); + TQString fontcolor = "red=\"" + TQString::number( tqlayout.fontColor.red() ) + + "\" green=\"" + TQString::number( tqlayout.fontColor.green() ) + + "\" blue=\"" + TQString::number( tqlayout.fontColor.blue() ) + "\""; + TQString boldness = tqlayout.bold ? "75" : "50"; + TQString italic = tqlayout.italic ? "1" : "0"; + TQString strikeout = tqlayout.strikethrough ? "1" : "0"; + TQString vertalign = tqlayout.superscript ? "2" : tqlayout.subscript ? "1" : "0"; + TQString underline = tqlayout.double_underline ? "double" : + tqlayout.underline|tqlayout.word_underline ? "1" : "0"; TQString align; - align = layout.align==TQt::AlignLeft ? "left" : - layout.align==TQt::AlignRight ? "right" : - layout.align==TQt::AlignCenter ? "center" : - layout.align==TQt::AlignJustify ? "justify" : + align = tqlayout.align==TQt::AlignLeft ? "left" : + tqlayout.align==TQt::AlignRight ? "right" : + tqlayout.align==TQt::AlignCenter ? "center" : + tqlayout.align==TQt::AlignJustify ? "justify" : "left"; TQString offsets; - offsets = "before=\"" + TQString::number(layout.spaceBefore) + - "\" after=\"" + TQString::number(layout.spaceAfter) + "\""; + offsets = "before=\"" + TQString::number(tqlayout.spaceBefore) + + "\" after=\"" + TQString::number(tqlayout.spaceAfter) + "\""; TQString linespacing; - linespacing = layout.linespace==AmiPro::LS_Single ? TQString::fromLatin1( "0" ) : - layout.linespace==AmiPro::LS_OneAndHalf ? TQString::fromLatin1( "oneandhalf" ) : - layout.linespace==AmiPro::LS_Double ? TQString::fromLatin1( "double" ) : - TQString::number( layout.linespace ); + linespacing = tqlayout.linespace==AmiPro::LS_Single ? TQString::tqfromLatin1( "0" ) : + tqlayout.linespace==AmiPro::LS_OneAndHalf ? TQString::tqfromLatin1( "oneandhalf" ) : + tqlayout.linespace==AmiPro::LS_Double ? TQString::tqfromLatin1( "double" ) : + TQString::number( tqlayout.linespace ); result.append( "\n" ); result.append( " \n" ); @@ -213,9 +213,9 @@ static TQString AmiProStyleAsXML( const AmiProStyle& style ) "left"; TQString linespacing; - linespacing = style.linespace==AmiPro::LS_Single ? TQString::fromLatin1( "0" ) : - style.linespace==AmiPro::LS_OneAndHalf ? TQString::fromLatin1( "oneandhalf" ) : - style.linespace==AmiPro::LS_Double ? TQString::fromLatin1( "double" ) : + linespacing = style.linespace==AmiPro::LS_Single ? TQString::tqfromLatin1( "0" ) : + style.linespace==AmiPro::LS_OneAndHalf ? TQString::tqfromLatin1( "oneandhalf" ) : + style.linespace==AmiPro::LS_Double ? TQString::tqfromLatin1( "double" ) : TQString::number( style.linespace ); TQString offsets; @@ -308,18 +308,18 @@ bool AmiProConverter::doDefineStyle( const AmiProStyle& style ) } bool AmiProConverter::doParagraph( const TQString& text, AmiProFormatList formatList, - AmiProLayout& layout ) + AmiProLayout& tqlayout ) { root.append( "\n" ); root.append( "" + XMLEscape( text ) + "\n" ); root.append( AmiProFormatListAsXML( formatList ) ); - root.append( AmiProLayoutAsXML( layout ) ); + root.append( AmiProLayoutAsXML( tqlayout ) ); root.append( "\n" ); return true; } -KoFilter::ConversionStatus AmiProImport::convert( const TQCString& from, const TQCString& to ) +KoFilter::ConversiontqStatus AmiProImport::convert( const TQCString& from, const TQCString& to ) { // check for proper conversion if( to!= "application/x-kword" || from != "application/x-amipro" ) diff --git a/filters/kword/amipro/amiproimport.h b/filters/kword/amipro/amiproimport.h index 45c8cc2b..ad078543 100644 --- a/filters/kword/amipro/amiproimport.h +++ b/filters/kword/amipro/amiproimport.h @@ -37,7 +37,7 @@ class AmiProImport : public KoFilter virtual ~AmiProImport() {} - virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to ); + virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to ); }; #endif // __AMIPROIMPORT_H diff --git a/filters/kword/amipro/amiproparser.cpp b/filters/kword/amipro/amiproparser.cpp index 14a0084b..fdae97e6 100644 --- a/filters/kword/amipro/amiproparser.cpp +++ b/filters/kword/amipro/amiproparser.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include const float AmiPro::LS_Single = -1; const float AmiPro::LS_OneAndHalf = -1.5; @@ -83,7 +83,7 @@ static TQString AmiProUnescape( const TQString& str ) else { result.truncate( result.length() - 1 ); // remove the '<' - result.append( TQChar(str[i+2].unicode() + 0x40 ) ); + result.append( TQChar(str[i+2].tqunicode() + 0x40 ) ); i += 3; } } @@ -92,7 +92,7 @@ static TQString AmiProUnescape( const TQString& str ) if( str[i+1] == '\\' ) { result.truncate( result.length() - 1 ); // remove the '<' - result.append( TQChar(str[i+2].unicode() | 0x80 ) ); + result.append( TQChar(str[i+2].tqunicode() | 0x80 ) ); i += 3; } @@ -344,7 +344,7 @@ bool AmiProParser::parseStyle( const TQStringList& lines ) style.word_underline = flag & 8; style.double_underline = flag & 64; - // alignment + // tqalignment if( lines[7].stripWhiteSpace() != "[algn]" ) return true; unsigned align_flag = lines[8].stripWhiteSpace().toUInt(); if( align_flag & 1 ) style.align = TQt::AlignLeft; @@ -628,7 +628,7 @@ void AmiProFormat::applyStyle( const AmiProStyle& style ) strikethrough = style.strikethrough; } -// paragraph layout +// paragraph tqlayout AmiProLayout::AmiProLayout() { name = ""; diff --git a/filters/kword/amipro/amiproparser.h b/filters/kword/amipro/amiproparser.h index b6f07753..40a8f82b 100644 --- a/filters/kword/amipro/amiproparser.h +++ b/filters/kword/amipro/amiproparser.h @@ -104,7 +104,7 @@ class AmiProListener virtual bool doCloseDocument(); virtual bool doDefineStyle( const AmiProStyle& style ); virtual bool doParagraph( const TQString& text, AmiProFormatList formatList, - AmiProLayout& layout ); + AmiProLayout& tqlayout ); }; class AmiProParser @@ -144,7 +144,7 @@ class AmiProParser bool processOpenDocument(); bool processCloseDocument(); bool processParagraph( const TQString& text, AmiProFormatList formatList, - AmiProLayout& layout ); + AmiProLayout& tqlayout ); }; diff --git a/filters/kword/applixword/applixwordimport.cc b/filters/kword/applixword/applixwordimport.cc index 89bf5541..d7acc7ed 100644 --- a/filters/kword/applixword/applixwordimport.cc +++ b/filters/kword/applixword/applixwordimport.cc @@ -85,7 +85,7 @@ APPLIXWORDImport::nextLine (TQTextStream & stream) * * * * ******************************************************************************/ -KoFilter::ConversionStatus APPLIXWORDImport::convert( const TQCString& from, const TQCString& to ) +KoFilter::ConversiontqStatus APPLIXWORDImport::convert( const TQCString& from, const TQCString& to ) { if (to!="application/x-kword" || from!="application/x-applixword") @@ -780,10 +780,10 @@ APPLIXWORDImport::readHeader (TQTextStream &stream, TQFile &in) TQMessageBox::critical (0L, "Applixword header problem", TQString ("The Applixword header is not correct. " "May be it is not an applixword file!
" - "This is the header line I did read:
%1").arg(mystr.latin1()), + "This is the header line I did read:
%1").tqarg(mystr.latin1()), "Okay"); - // i18n( "What is the separator used in this file ? First line is \n%1" ).arg(firstLine), + // i18n( "What is the separator used in this file ? First line is \n%1" ).tqarg(firstLine), return false; } else return true; diff --git a/filters/kword/applixword/applixwordimport.h b/filters/kword/applixword/applixwordimport.h index 957e4058..ccd80df7 100644 --- a/filters/kword/applixword/applixwordimport.h +++ b/filters/kword/applixword/applixwordimport.h @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include @@ -50,7 +50,7 @@ public: APPLIXWORDImport(KoFilter *parent, const char *name, const TQStringList&); virtual ~APPLIXWORDImport() {} - virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to ); + virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to ); protected: TQChar specCharfind (TQChar , TQChar ); diff --git a/filters/kword/ascii/ExportDialog.cc b/filters/kword/ascii/ExportDialog.cc index f4bddc03..138618b2 100644 --- a/filters/kword/ascii/ExportDialog.cc +++ b/filters/kword/ascii/ExportDialog.cc @@ -18,7 +18,7 @@ * Boston, MA 02110-1301, USA. */ -#include +#include #include #include @@ -41,14 +41,14 @@ AsciiExportDialog :: AsciiExportDialog(TQWidget* parent) kapp->restoreOverrideCursor(); TQStringList encodings; - encodings << i18n( "Descriptive encoding name", "Recommended ( %1 )" ).arg( "UTF-8" ); - encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).arg( TQTextCodec::codecForLocale()->name() ); + encodings << i18n( "Descriptive encoding name", "Recommended ( %1 )" ).tqarg( "UTF-8" ); + encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).tqarg( TQTextCodec::codecForLocale()->name() ); encodings += KGlobal::charsets()->descriptiveEncodingNames(); // Add a few non-standard encodings, which might be useful for text files const TQString description(i18n("Descriptive encoding name","Other ( %1 )")); - encodings << description.arg("Apple Roman"); // Apple - encodings << description.arg("IBM 850") << description.arg("IBM 866"); // MS DOS - encodings << description.arg("CP 1258"); // Windows + encodings << description.tqarg("Apple Roman"); // Apple + encodings << description.tqarg("IBM 850") << description.tqarg("IBM 866"); // MS DOS + encodings << description.tqarg("CP 1258"); // Windows m_dialog->comboBoxEncoding->insertStringList(encodings); @@ -85,7 +85,7 @@ TQTextCodec* AsciiExportDialog::getCodec(void) const // Default: UTF-8 kdWarning(30502) << "Cannot find encoding:" << strCodec << endl; // ### TODO: what parent to use? - KMessageBox::error( 0, i18n("Cannot find encoding: %1").arg( strCodec ) ); + KMessageBox::error( 0, i18n("Cannot find encoding: %1").tqarg( strCodec ) ); return 0; } diff --git a/filters/kword/ascii/ExportDialogUI.ui b/filters/kword/ascii/ExportDialogUI.ui index 9345a64c..8f66942c 100644 --- a/filters/kword/ascii/ExportDialogUI.ui +++ b/filters/kword/ascii/ExportDialogUI.ui @@ -29,7 +29,7 @@ - layout3 + tqlayout3 @@ -67,7 +67,7 @@ Expanding - + 106 20 @@ -138,7 +138,7 @@ Expanding - + 20 20 diff --git a/filters/kword/ascii/ImportDialog.cc b/filters/kword/ascii/ImportDialog.cc index c11753bc..adb345b1 100644 --- a/filters/kword/ascii/ImportDialog.cc +++ b/filters/kword/ascii/ImportDialog.cc @@ -18,7 +18,7 @@ * Boston, MA 02110-1301, USA. */ -#include +#include #include #include @@ -41,14 +41,14 @@ AsciiImportDialog :: AsciiImportDialog(TQWidget* parent) kapp->restoreOverrideCursor(); TQStringList encodings; - encodings << i18n( "Descriptive encoding name", "Recommended ( %1 )" ).arg( "UTF-8" ); - encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).arg( TQTextCodec::codecForLocale()->name() ); + encodings << i18n( "Descriptive encoding name", "Recommended ( %1 )" ).tqarg( "UTF-8" ); + encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).tqarg( TQTextCodec::codecForLocale()->name() ); encodings += KGlobal::charsets()->descriptiveEncodingNames(); // Add a few non-standard encodings, which might be useful for text files const TQString description(i18n("Descriptive encoding name","Other ( %1 )")); - encodings << description.arg("Apple Roman"); // Apple - encodings << description.arg("IBM 850") << description.arg("IBM 866"); // MS DOS - encodings << description.arg("CP 1258"); // Windows + encodings << description.tqarg("Apple Roman"); // Apple + encodings << description.tqarg("IBM 850") << description.tqarg("IBM 866"); // MS DOS + encodings << description.tqarg("CP 1258"); // Windows m_dialog->comboBoxEncoding->insertStringList(encodings); @@ -84,7 +84,7 @@ TQTextCodec* AsciiImportDialog::getCodec(void) const // Default: UTF-8 kdWarning(30502) << "Cannot find encoding:" << strCodec << endl; // ### TODO: what parent to use? - KMessageBox::error( 0, i18n("Cannot find encoding: %1").arg( strCodec ) ); + KMessageBox::error( 0, i18n("Cannot find encoding: %1").tqarg( strCodec ) ); return 0; } diff --git a/filters/kword/ascii/ImportDialogUI.ui b/filters/kword/ascii/ImportDialogUI.ui index 4b32a441..fd124062 100644 --- a/filters/kword/ascii/ImportDialogUI.ui +++ b/filters/kword/ascii/ImportDialogUI.ui @@ -29,7 +29,7 @@ - layout3 + tqlayout3 @@ -67,7 +67,7 @@ Expanding - + 106 20 @@ -132,7 +132,7 @@ Expanding - + 20 20 diff --git a/filters/kword/ascii/asciiexport.cc b/filters/kword/ascii/asciiexport.cc index 3748e8e7..4f4fbb06 100644 --- a/filters/kword/ascii/asciiexport.cc +++ b/filters/kword/ascii/asciiexport.cc @@ -28,8 +28,8 @@ #include #include #include -#include -#include +#include +#include #include #include @@ -86,7 +86,7 @@ public: virtual bool doFullParagraphList(const TQValueList& paraList); virtual bool doFullParagraph(const ParaData& para); virtual bool doFullParagraph(const TQString& paraText, - const LayoutData& layout, + const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList); public: @@ -204,10 +204,10 @@ bool ASCIIWorker::doFullParagraphList(const TQValueList& paraList) bool ASCIIWorker::doFullParagraph(const ParaData& para) { - return doFullParagraph(para.text, para.layout, para.formattingList); + return doFullParagraph(para.text, para.tqlayout, para.formattingList); } -bool ASCIIWorker::doFullParagraph(const TQString& paraText, const LayoutData& layout, +bool ASCIIWorker::doFullParagraph(const TQString& paraText, const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList) { kdDebug(30502) << "Entering ASCIIWorker::doFullParagraph" << endl; @@ -216,15 +216,15 @@ bool ASCIIWorker::doFullParagraph(const TQString& paraText, const LayoutData& la // As KWord has only one depth of lists, we can process lists very simply. // -- // Not anymore - Clarence - if ( layout.counter.numbering == CounterData::NUM_LIST ) + if ( tqlayout.counter.numbering == CounterData::NUM_LIST ) { // Are we still in a list of the right type? - if (!m_inList || (layout.counter.style!=m_typeList)) + if (!m_inList || (tqlayout.counter.style!=m_typeList)) { // We are not yet part of a list m_inList=true; m_counterList=1; // Start numbering - m_typeList=layout.counter.style; + m_typeList=tqlayout.counter.style; } switch (m_typeList) @@ -307,26 +307,26 @@ bool ASCIIWorker::doFullParagraph(const TQString& paraText, const LayoutData& la else { m_inList=false; // Close an eventual list - if ( layout.counter.numbering == CounterData::NUM_CHAPTER ) + if ( tqlayout.counter.numbering == CounterData::NUM_CHAPTER ) { - if (!layout.counter.depth) + if (!tqlayout.counter.depth) { // HEAD 1 *m_streamOut << "###################################" << m_eol; *m_streamOut << "# "; ProcessParagraphData ( paraText, paraFormatDataList); *m_streamOut << "###################################" << m_eol; } - else if (layout.counter.depth==1) + else if (tqlayout.counter.depth==1) { // HEAD 2 *m_streamOut << "#### "; ProcessParagraphData ( paraText, paraFormatDataList); } - else if (layout.counter.depth==2) + else if (tqlayout.counter.depth==2) { // HEAD 3 *m_streamOut << "## "; ProcessParagraphData ( paraText, paraFormatDataList); } - else if (layout.counter.depth==3) + else if (tqlayout.counter.depth==3) { // HEAD 4 *m_streamOut << "# "; ProcessParagraphData ( paraText, paraFormatDataList); @@ -342,8 +342,8 @@ bool ASCIIWorker::doFullParagraph(const TQString& paraText, const LayoutData& la } } #else - if (!layout.counter.text.isEmpty()) - *m_streamOut << layout.counter.text << " "; + if (!tqlayout.counter.text.isEmpty()) + *m_streamOut << tqlayout.counter.text << " "; if (!ProcessParagraphData(paraText, paraFormatDataList)) return false; #endif @@ -357,7 +357,7 @@ bool ASCIIWorker::ProcessTable(const Table& table) { kdDebug(30502) << "processTable CALLED!" << endl; - // just dump the table out (no layout for now) + // just dump the table out (no tqlayout for now) for (TQValueList::ConstIterator it = table.cellList.begin(); it != table.cellList.end(); it++) @@ -474,7 +474,7 @@ ASCIIExport::ASCIIExport(KoFilter*, const char*, const TQStringList&) { } -KoFilter::ConversionStatus ASCIIExport::convert(const TQCString& from, const TQCString& to) +KoFilter::ConversiontqStatus ASCIIExport::convert(const TQCString& from, const TQCString& to) { if (to != "text/plain" || from != "application/x-kword") { @@ -534,7 +534,7 @@ KoFilter::ConversionStatus ASCIIExport::convert(const TQCString& from, const TQC return KoFilter::StupidError; } - KoFilter::ConversionStatus result = leader->convert(m_chain,from,to); + KoFilter::ConversiontqStatus result = leader->convert(m_chain,from,to); delete leader; delete worker; diff --git a/filters/kword/ascii/asciiexport.h b/filters/kword/ascii/asciiexport.h index 429ad6c8..af1e2e04 100644 --- a/filters/kword/ascii/asciiexport.h +++ b/filters/kword/ascii/asciiexport.h @@ -31,7 +31,7 @@ public: ASCIIExport(KoFilter* parent, const char* name, const TQStringList&); virtual ~ASCIIExport() {} - virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to); + virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to); }; #endif // ASCIIEXPORT_H diff --git a/filters/kword/ascii/asciiimport.cc b/filters/kword/ascii/asciiimport.cc index 52c5c4d9..f2a6e039 100644 --- a/filters/kword/ascii/asciiimport.cc +++ b/filters/kword/ascii/asciiimport.cc @@ -28,9 +28,9 @@ #include #include // #include // Currently not needed (due to disabled code) -#include +#include #include -#include +#include #include #include @@ -195,7 +195,7 @@ void ASCIIImport::prepareDocument(TQDomDocument& mainDocument, TQDomElement& mai } -KoFilter::ConversionStatus ASCIIImport::convert( const TQCString& from, const TQCString& to ) +KoFilter::ConversiontqStatus ASCIIImport::convert( const TQCString& from, const TQCString& to ) { if (to!="application/x-kword" || from!="text/plain") return KoFilter::NotImplemented; @@ -310,9 +310,9 @@ void ASCIIImport::oldWayConvert(TQTextStream& stream, TQDomDocument& mainDocumen } const int length = strLine.length(); - if (strLine.at(length-1) == '-') + if (strLine.tqat(length-1) == '-') // replace the hard hyphen - at line end by a soft hyphen - strLine.at(length-1)=TQChar(173); + strLine.tqat(length-1)=TQChar(173); else strLine += ' '; // add space to end of line diff --git a/filters/kword/ascii/asciiimport.h b/filters/kword/ascii/asciiimport.h index b2cfcbdd..4d332776 100644 --- a/filters/kword/ascii/asciiimport.h +++ b/filters/kword/ascii/asciiimport.h @@ -65,7 +65,7 @@ public: ASCIIImport(); virtual ~ASCIIImport() {} - virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to ); + virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to ); private: // not yet changed #if 0 void WriteOutTableCell( int table_no, int row, int col, Position *pos, diff --git a/filters/kword/docbook/docbookexport.cc b/filters/kword/docbook/docbookexport.cc index f54bec6b..db9c754a 100644 --- a/filters/kword/docbook/docbookexport.cc +++ b/filters/kword/docbook/docbookexport.cc @@ -296,12 +296,12 @@ void DocBookWorker::ProcessParagraphData ( const ParaData ¶, fixedFont = true; } - if ( (*formattingIt).text.italic && !para.layout.formatData.text.italic ) + if ( (*formattingIt).text.italic && !para.tqlayout.formatData.text.italic ) { outputText += ""; } - if ( (*formattingIt).text.weight > para.layout.formatData.text.weight ) + if ( (*formattingIt).text.weight > para.tqlayout.formatData.text.weight ) { outputText += ""; } @@ -318,12 +318,12 @@ void DocBookWorker::ProcessParagraphData ( const ParaData ¶, outputText += ""; } - if ( (*formattingIt).text.weight > para.layout.formatData.text.weight ) + if ( (*formattingIt).text.weight > para.tqlayout.formatData.text.weight ) { outputText += ""; } - if ( (*formattingIt).text.italic && !para.layout.formatData.text.italic ) + if ( (*formattingIt).text.italic && !para.tqlayout.formatData.text.italic ) { outputText += ""; } @@ -516,10 +516,10 @@ bool DocBookWorker::doFullDocument ( const TQValueList ¶List ) TQValueList::ConstIterator end(paraList.end ()); for ( paraIt = paraList.begin (); paraIt != end ; ++paraIt ) { - switch ( (*paraIt).layout.counter.numbering ) + switch ( (*paraIt).tqlayout.counter.numbering ) { case CounterData::NUM_LIST: - switch ( (*paraIt).layout.counter.style ) + switch ( (*paraIt).tqlayout.counter.style ) { case CounterData::STYLE_CUSTOMBULLET: case CounterData::STYLE_CIRCLEBULLET: @@ -581,7 +581,7 @@ bool DocBookWorker::doFullDocument ( const TQValueList ¶List ) break; default: - kdError (30507) << "Unknown counter style " << (*paraIt).layout.counter.style << "!" << endl; + kdError (30507) << "Unknown counter style " << (*paraIt).tqlayout.counter.style << "!" << endl; CloseLists (); OpenArticleUnlessHead1 (); ProcessParagraphData (*paraIt, "PARA" ); @@ -590,7 +590,7 @@ bool DocBookWorker::doFullDocument ( const TQValueList ¶List ) break; case CounterData::NUM_CHAPTER: - switch ( (*paraIt).layout.counter.depth ) + switch ( (*paraIt).tqlayout.counter.depth ) { case 0: CloseHead1AndArticle (); @@ -629,7 +629,7 @@ bool DocBookWorker::doFullDocument ( const TQValueList ¶List ) break; default: - kdError (30507) << "Unexpected chapter depth " << (*paraIt).layout.counter.depth << "!" << endl; + kdError (30507) << "Unexpected chapter depth " << (*paraIt).tqlayout.counter.depth << "!" << endl; CloseLists (); OpenArticleUnlessHead1 (); ProcessParagraphData (*paraIt, "PARA" ); @@ -782,7 +782,7 @@ bool DocBookWorker::doFullDocumentInfo ( const KWEFDocumentInfo &docInfo ) } -KoFilter::ConversionStatus DocBookExport::convert( const TQCString& from, const TQCString& to ) +KoFilter::ConversiontqStatus DocBookExport::convert( const TQCString& from, const TQCString& to ) { #if 0 kdError (30507) << "to = " << to << ", from = " << from << endl; diff --git a/filters/kword/docbook/docbookexport.h b/filters/kword/docbook/docbookexport.h index 29362aaa..cf7ec804 100644 --- a/filters/kword/docbook/docbookexport.h +++ b/filters/kword/docbook/docbookexport.h @@ -38,6 +38,6 @@ public: DocBookExport (KoFilter *parent, const char *name, const TQStringList & ); virtual ~DocBookExport() {} - virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to ); + virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to ); }; #endif // DOCBOOKEXPORT_H diff --git a/filters/kword/hancomword/hancomwordimport.cpp b/filters/kword/hancomword/hancomwordimport.cpp index 47191bc7..6fc353e5 100644 --- a/filters/kword/hancomword/hancomwordimport.cpp +++ b/filters/kword/hancomword/hancomwordimport.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include @@ -82,7 +82,7 @@ static inline unsigned long readU16( const void* p ) } -KoFilter::ConversionStatus HancomWordImport::convert( const TQCString& from, const TQCString& to ) +KoFilter::ConversiontqStatus HancomWordImport::convert( const TQCString& from, const TQCString& to ) { if ( from != "application/x-hancomword" ) return KoFilter::NotImplemented; diff --git a/filters/kword/hancomword/hancomwordimport.h b/filters/kword/hancomword/hancomwordimport.h index f78c3a47..64d279a8 100644 --- a/filters/kword/hancomword/hancomwordimport.h +++ b/filters/kword/hancomword/hancomwordimport.h @@ -35,7 +35,7 @@ public: HancomWordImport ( TQObject *parent, const char* name, const TQStringList& ); virtual ~HancomWordImport(); - virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to ); + virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to ); private: class Private; diff --git a/filters/kword/hancomword/pole.cpp b/filters/kword/hancomword/pole.cpp index cb3771f5..f712f0e1 100644 --- a/filters/kword/hancomword/pole.cpp +++ b/filters/kword/hancomword/pole.cpp @@ -96,7 +96,7 @@ class DirEntry { public: bool valid; // false if invalid (should be skipped) - std::string name; // the name, not in unicode anymore + std::string name; // the name, not in tqunicode anymore bool dir; // true if directory unsigned long size; // size (not valid if directory) unsigned long start; // starting block @@ -117,7 +117,7 @@ class DirTree int indexOf( DirEntry* e ); int parent( unsigned index ); std::string fullName( unsigned index ); - std::vector children( unsigned index ); + std::vector tqchildren( unsigned index ); void load( unsigned char* buffer, unsigned len ); void save( unsigned char* buffer ); unsigned size(); @@ -507,11 +507,11 @@ int DirTree::indexOf( DirEntry* e ) int DirTree::parent( unsigned index ) { - // brute-force, basically we iterate for each entries, find its children - // and check if one of the children is 'index' + // brute-force, basically we iterate for each entries, find its tqchildren + // and check if one of the tqchildren is 'index' for( unsigned j=0; j chi = children( j ); + std::vector chi = tqchildren( j ); for( unsigned i=0; i chi = children( index ); + // find among the tqchildren of index + std::vector chi = tqchildren( index ); unsigned child = 0; for( unsigned i = 0; i < chi.size(); i++ ) { @@ -591,7 +591,7 @@ DirEntry* DirTree::entry( const std::string& name, bool create ) if( child > 0 ) index = child; else { - // not found among children + // not found among tqchildren if( !create ) return (DirEntry*)0; // create a new entry @@ -648,7 +648,7 @@ void dirtree_find_siblings( DirTree* dirtree, std::vector& result, } } -std::vector DirTree::children( unsigned index ) +std::vector DirTree::tqchildren( unsigned index ) { std::vector result; @@ -1249,9 +1249,9 @@ std::list Storage::entries( const std::string& path ) if( e && e->dir ) { unsigned parent = dt->indexOf( e ); - std::vector children = dt->children( parent ); - for( unsigned i = 0; i < children.size(); i++ ) - result.push_back( dt->entry( children[i] )->name ); + std::vector tqchildren = dt->tqchildren( parent ); + for( unsigned i = 0; i < tqchildren.size(); i++ ) + result.push_back( dt->entry( tqchildren[i] )->name ); } return result; diff --git a/filters/kword/html/export/ExportBasic.cc b/filters/kword/html/export/ExportBasic.cc index 673b035a..13864d7a 100644 --- a/filters/kword/html/export/ExportBasic.cc +++ b/filters/kword/html/export/ExportBasic.cc @@ -19,7 +19,7 @@ */ #include -#include +#include #include #include @@ -308,37 +308,37 @@ void HtmlBasicWorker::closeFormatData(const FormatData& formatOrigin, } void HtmlBasicWorker::openParagraph(const TQString& strTag, - const LayoutData& layout, TQChar::Direction direction) + const LayoutData& tqlayout, TQChar::Direction direction) { *m_streamOut << '<' << strTag; - if ( (layout.alignment=="left") || (layout.alignment== "right") - || (layout.alignment=="center") || (layout.alignment=="justify")) + if ( (tqlayout.tqalignment=="left") || (tqlayout.tqalignment== "right") + || (tqlayout.tqalignment=="center") || (tqlayout.tqalignment=="justify")) { - *m_streamOut << " align=\"" << layout.alignment << "\""; + *m_streamOut << " align=\"" << tqlayout.tqalignment << "\""; if ( (direction == TQChar::DirRLE) || (direction == TQChar::DirRLO) ) *m_streamOut << " dir=\"rtl\""; } - else if ( layout.alignment=="auto") + else if ( tqlayout.tqalignment=="auto") { // Do nothing, the user-agent should be more intelligent than us. } else { - kdWarning(30503) << "Unknown alignment: " << layout.alignment << endl; + kdWarning(30503) << "Unknown tqalignment: " << tqlayout.tqalignment << endl; } *m_streamOut << ">"; // Allow bold only if tag is not a heading! - openFormatData(layout.formatData,layout.formatData,true,(strTag[0]!='h')); + openFormatData(tqlayout.formatData,tqlayout.formatData,true,(strTag[0]!='h')); } void HtmlBasicWorker::closeParagraph(const TQString& strTag, - const LayoutData& layout) + const LayoutData& tqlayout) { // Allow bold only if tag is not a heading! - closeFormatData(layout.formatData,layout.formatData,true,(strTag[0]!='h')); + closeFormatData(tqlayout.formatData,tqlayout.formatData,true,(strTag[0]!='h')); *m_streamOut << "\n"; } diff --git a/filters/kword/html/export/ExportBasic.h b/filters/kword/html/export/ExportBasic.h index c8f2864c..a6de0082 100644 --- a/filters/kword/html/export/ExportBasic.h +++ b/filters/kword/html/export/ExportBasic.h @@ -33,9 +33,9 @@ public: protected: virtual TQString getStartOfListOpeningTag(const CounterData::Style typeList, bool& ordered); virtual void openParagraph(const TQString& strTag, - const LayoutData& layout,TQChar::Direction direction=TQChar::DirL); + const LayoutData& tqlayout,TQChar::Direction direction=TQChar::DirL); virtual void closeParagraph(const TQString& strTag, - const LayoutData& layout); + const LayoutData& tqlayout); virtual void openSpan(const FormatData& formatOrigin, const FormatData& format); virtual void closeSpan(const FormatData& formatOrigin, const FormatData& format); virtual bool doOpenBody(void); ///< HTML's \ diff --git a/filters/kword/html/export/ExportCss.cc b/filters/kword/html/export/ExportCss.cc index 58f2860e..49abcf79 100644 --- a/filters/kword/html/export/ExportCss.cc +++ b/filters/kword/html/export/ExportCss.cc @@ -19,7 +19,7 @@ */ #include -#include +#include #include #include @@ -52,7 +52,7 @@ TQString HtmlCssWorker::escapeCssIdentifier(const TQString& strText) const for (uint i=0; i='a') && (ch<='z')) || ((ch>='A') && (ch<='Z')) @@ -309,68 +309,68 @@ TQString HtmlCssWorker::getStartOfListOpeningTag(const CounterData::Style typeLi } TQString HtmlCssWorker::layoutToCss(const LayoutData& layoutOrigin, - const LayoutData& layout, const bool force) const + const LayoutData& tqlayout, const bool force) const { TQString strLayout; - if (force || (layoutOrigin.alignment!=layout.alignment)) + if (force || (layoutOrigin.tqalignment!=tqlayout.tqalignment)) { - if ( (layout.alignment=="left") || (layout.alignment== "right") - || (layout.alignment=="center") || (layout.alignment=="justify")) + if ( (tqlayout.tqalignment=="left") || (tqlayout.tqalignment== "right") + || (tqlayout.tqalignment=="center") || (tqlayout.tqalignment=="justify")) { - strLayout += TQString("text-align:%1; ").arg(layout.alignment); + strLayout += TQString("text-align:%1; ").tqarg(tqlayout.tqalignment); } - else if ( layout.alignment=="auto") + else if ( tqlayout.tqalignment=="auto") { // Do nothing, the user-agent should be more intelligent than us. } else { - kdWarning(30503) << "Unknown alignment: " << layout.alignment << endl; + kdWarning(30503) << "Unknown tqalignment: " << tqlayout.tqalignment << endl; } } - if ((layout.indentLeft>=0.0) - && (force || (layoutOrigin.indentLeft!=layout.indentLeft))) + if ((tqlayout.indentLeft>=0.0) + && (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft))) { - strLayout += TQString("margin-left:%1pt; ").arg(layout.indentLeft); + strLayout += TQString("margin-left:%1pt; ").tqarg(tqlayout.indentLeft); } - if ((layout.indentRight>=0.0) - && (force || (layoutOrigin.indentRight!=layout.indentRight))) + if ((tqlayout.indentRight>=0.0) + && (force || (layoutOrigin.indentRight!=tqlayout.indentRight))) { - strLayout += TQString("margin-right:%1pt; ").arg(layout.indentRight); + strLayout += TQString("margin-right:%1pt; ").tqarg(tqlayout.indentRight); } - if (force || (layoutOrigin.indentLeft!=layout.indentLeft)) + if (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft)) { - strLayout += TQString("text-indent:%1pt; ").arg(layout.indentFirst); + strLayout += TQString("text-indent:%1pt; ").tqarg(tqlayout.indentFirst); } - if ((layout.marginBottom>=0.0) - && ( force || ( layoutOrigin.marginBottom != layout.marginBottom ) ) ) + if ((tqlayout.marginBottom>=0.0) + && ( force || ( layoutOrigin.marginBottom != tqlayout.marginBottom ) ) ) { - strLayout += TQString("margin-bottom:%1pt; ").arg(layout.marginBottom); + strLayout += TQString("margin-bottom:%1pt; ").tqarg(tqlayout.marginBottom); } - if ((layout.marginTop>=0.0) - && ( force || ( layoutOrigin.marginTop != layout.marginTop ) ) ) + if ((tqlayout.marginTop>=0.0) + && ( force || ( layoutOrigin.marginTop != tqlayout.marginTop ) ) ) { - strLayout += TQString("margin-top:%1pt; ").arg(layout.marginTop); + strLayout += TQString("margin-top:%1pt; ").tqarg(tqlayout.marginTop); } if (force - || ( layoutOrigin.lineSpacingType != layout.lineSpacingType ) - || ( layoutOrigin.lineSpacing != layout.lineSpacing ) ) + || ( layoutOrigin.lineSpacingType != tqlayout.lineSpacingType ) + || ( layoutOrigin.lineSpacing != tqlayout.lineSpacing ) ) { - switch ( layout.lineSpacingType ) + switch ( tqlayout.lineSpacingType ) { case LayoutData::LS_CUSTOM: { // ### TODO: CSS 2 does not known "at-least". #if 0 // We have a custom line spacing (in points) - const TQString height ( TQString::number(layout.lineSpacing) ); // ### TODO: rounding? + const TQString height ( TQString::number(tqlayout.lineSpacing) ); // ### TODO: rounding? strLayout += "style:line-spacing:"; strLayout += height; strLayout += "pt; "; @@ -394,7 +394,7 @@ TQString HtmlCssWorker::layoutToCss(const LayoutData& layoutOrigin, } case LayoutData::LS_MULTIPLE: { - const TQString mult ( TQString::number( tqRound( layout.lineSpacing * 100 ) ) ); + const TQString mult ( TQString::number( tqRound( tqlayout.lineSpacing * 100 ) ) ); strLayout += "line-height:"; strLayout += mult; strLayout += "%; "; @@ -403,7 +403,7 @@ TQString HtmlCssWorker::layoutToCss(const LayoutData& layoutOrigin, case LayoutData::LS_FIXED: { // We have a fixed line height (in points) - const TQString height ( TQString::number(layout.lineSpacing) ); // ### TODO: rounding? + const TQString height ( TQString::number(tqlayout.lineSpacing) ); // ### TODO: rounding? strLayout += "line-height:"; strLayout += height; strLayout += "pt; "; @@ -414,7 +414,7 @@ TQString HtmlCssWorker::layoutToCss(const LayoutData& layoutOrigin, // ### TODO: CSS 2 does not known "at-least". // ### TODO: however draft CCS3 (module 'line') has 'line-stacking-strategy' to tweak this behaviour // We have a at-least line height (in points) - const TQString height ( TQString::number(layout.lineSpacing) ); // ### TODO: rounding? + const TQString height ( TQString::number(tqlayout.lineSpacing) ); // ### TODO: rounding? strLayout += "line-height:"; strLayout += height; strLayout += "pt; "; @@ -422,7 +422,7 @@ TQString HtmlCssWorker::layoutToCss(const LayoutData& layoutOrigin, } default: { - kdWarning(30503) << "Unsupported lineSpacingType: " << layout.lineSpacingType << " (Ignoring!)" << endl; + kdWarning(30503) << "Unsupported lineSpacingType: " << tqlayout.lineSpacingType << " (Ignoring!)" << endl; break; } } @@ -430,12 +430,12 @@ TQString HtmlCssWorker::layoutToCss(const LayoutData& layoutOrigin, // TODO: Konqueror/KHTML does not support "text-shadow" if (!force - && ( layoutOrigin.shadowDirection == layout.shadowDirection ) - && ( layoutOrigin.shadowDistance == layout.shadowDistance ) ) + && ( layoutOrigin.shadowDirection == tqlayout.shadowDirection ) + && ( layoutOrigin.shadowDistance == tqlayout.shadowDistance ) ) { // Do nothing! } - else if ((!layout.shadowDirection) || (!layout.shadowDistance)) + else if ((!tqlayout.shadowDirection) || (!tqlayout.shadowDistance)) { strLayout += "text-shadow:"; strLayout+="none; "; @@ -443,8 +443,8 @@ TQString HtmlCssWorker::layoutToCss(const LayoutData& layoutOrigin, else { double xDistance,yDistance; - const double distance=layout.shadowDistance; - switch (layout.shadowDirection) + const double distance=tqlayout.shadowDistance; + switch (tqlayout.shadowDirection) { case 1: // SD_LEFT_UP { @@ -509,8 +509,8 @@ TQString HtmlCssWorker::layoutToCss(const LayoutData& layoutOrigin, else { strLayout += "text-shadow:"; - strLayout+=TQString("%1 %2pt %3pt; ").arg(layout.shadowColor.name()) - .arg(xDistance,0,'f',0).arg(yDistance,0,'f',0); + strLayout+=TQString("%1 %2pt %3pt; ").tqarg(tqlayout.shadowColor.name()) + .tqarg(xDistance,0,'f',0).tqarg(yDistance,0,'f',0); // We do not want any scientific notation or any decimal } } @@ -519,60 +519,60 @@ TQString HtmlCssWorker::layoutToCss(const LayoutData& layoutOrigin, // This must remain last, as the last property does not have a semi-colon strLayout+=textFormatToCss(layoutOrigin.formatData.text, - layout.formatData.text,force); + tqlayout.formatData.text,force); return strLayout; } void HtmlCssWorker::openParagraph(const TQString& strTag, - const LayoutData& layout, TQChar::Direction direction) + const LayoutData& tqlayout, TQChar::Direction direction) { - const LayoutData& styleLayout=m_styleMap[layout.styleName]; + const LayoutData& styleLayout=m_styleMap[tqlayout.styleName]; *m_streamOut << '<' << strTag; // Opening elements - *m_streamOut << " class=\"" << escapeCssIdentifier(layout.styleName); + *m_streamOut << " class=\"" << escapeCssIdentifier(tqlayout.styleName); *m_streamOut << "\""; - TQString strStyle=layoutToCss(styleLayout,layout,false); + TQString strStyle=layoutToCss(styleLayout,tqlayout,false); if (!strStyle.isEmpty()) { *m_streamOut << " style=\"" << strStyle; if (direction == TQChar::DirRLE) { - *m_streamOut << "direction: rtl; unicode-bidi: embed; "; + *m_streamOut << "direction: rtl; tqunicode-bidi: embed; "; } else if (direction == TQChar::DirRLO) { - *m_streamOut << "direction: rtl; unicode-bidi: override; "; + *m_streamOut << "direction: rtl; tqunicode-bidi: override; "; } *m_streamOut<< "\""; } *m_streamOut << ">"; - if ( 1==layout.formatData.text.verticalAlignment ) + if ( 1==tqlayout.formatData.text.verticalAlignment ) { *m_streamOut << ""; //Subscript } - else if ( 2==layout.formatData.text.verticalAlignment ) + else if ( 2==tqlayout.formatData.text.verticalAlignment ) { *m_streamOut << ""; //Superscript } - if ( layout.alignment == "center" ) *m_streamOut << "
"; + if ( tqlayout.tqalignment == "center" ) *m_streamOut << "
"; } void HtmlCssWorker::closeParagraph(const TQString& strTag, - const LayoutData& layout) + const LayoutData& tqlayout) { - if ( 2==layout.formatData.text.verticalAlignment ) + if ( 2==tqlayout.formatData.text.verticalAlignment ) { *m_streamOut << ""; //Superscript } - else if ( 1==layout.formatData.text.verticalAlignment ) + else if ( 1==tqlayout.formatData.text.verticalAlignment ) { *m_streamOut << ""; //Subscript } - if ( layout.alignment == "center" ) *m_streamOut << "
"; + if ( tqlayout.tqalignment == "center" ) *m_streamOut << "
"; *m_streamOut << "\n"; } @@ -680,16 +680,16 @@ bool HtmlCssWorker::doOpenStyles(void) return true; } -bool HtmlCssWorker::doFullDefineStyle(LayoutData& layout) +bool HtmlCssWorker::doFullDefineStyle(LayoutData& tqlayout) { //Register style in the style map - m_styleMap[layout.styleName]=layout; + m_styleMap[tqlayout.styleName]=tqlayout; // We do not limit (anymore) any style to

...

, because - // the style could be forced on

by the layout. + // the style could be forced on

by the tqlayout. - *m_streamOut << "." << escapeCssIdentifier(layout.styleName); - *m_streamOut << "\n{\n " << layoutToCss(layout,layout,true) << "\n}\n"; + *m_streamOut << "." << escapeCssIdentifier(tqlayout.styleName); + *m_streamOut << "\n{\n " << layoutToCss(tqlayout,tqlayout,true) << "\n}\n"; return true; } diff --git a/filters/kword/html/export/ExportCss.h b/filters/kword/html/export/ExportCss.h index a33a0049..358ea688 100644 --- a/filters/kword/html/export/ExportCss.h +++ b/filters/kword/html/export/ExportCss.h @@ -41,20 +41,20 @@ public: public: virtual bool doOpenStyles(void); ///< HTML's \ virtual bool doCloseStyles(void); ///< HTML's \ - virtual bool doFullDefineStyle(LayoutData& layout); + virtual bool doFullDefineStyle(LayoutData& tqlayout); virtual bool doFullPaperFormat(const int format, const double width, const double height, const int orientation); virtual bool doFullPaperBorders (const double top, const double left, const double bottom, const double right); ///< Like KWord's \ protected: virtual TQString getStartOfListOpeningTag(const CounterData::Style typeList, bool& ordered); - virtual void openParagraph(const TQString& strTag, const LayoutData& layout, + virtual void openParagraph(const TQString& strTag, const LayoutData& tqlayout, TQChar::Direction direction=TQChar::DirL); - virtual void closeParagraph(const TQString& strTag, const LayoutData& layout); + virtual void closeParagraph(const TQString& strTag, const LayoutData& tqlayout); virtual void openSpan(const FormatData& formatOrigin, const FormatData& format); virtual void closeSpan(const FormatData& formatOrigin, const FormatData& format); private: - TQString layoutToCss(const LayoutData& layoutOrigin,const LayoutData& layout, + TQString layoutToCss(const LayoutData& layoutOrigin,const LayoutData& tqlayout, const bool force) const; TQString escapeCssIdentifier(const TQString& strText) const; TQString textFormatToCss(const TextFormatting& formatOrigin, diff --git a/filters/kword/html/export/ExportDialog.cc b/filters/kword/html/export/ExportDialog.cc index 7e005538..20c7069b 100644 --- a/filters/kword/html/export/ExportDialog.cc +++ b/filters/kword/html/export/ExportDialog.cc @@ -18,7 +18,7 @@ * Boston, MA 02110-1301, USA. */ -#include +#include #include #include @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include #include @@ -46,8 +46,8 @@ HtmlExportDialog :: HtmlExportDialog(TQWidget* parent) TQStringList encodingList; - encodingList += i18n( "Descriptive encoding name", "Recommended ( %1 )" ).arg( "UTF-8" ); - encodingList += i18n( "Descriptive encoding name", "Locale ( %1 )" ).arg( TQTextCodec::codecForLocale()->name() ); + encodingList += i18n( "Descriptive encoding name", "Recommended ( %1 )" ).tqarg( "UTF-8" ); + encodingList += i18n( "Descriptive encoding name", "Locale ( %1 )" ).tqarg( TQTextCodec::codecForLocale()->name() ); encodingList += KGlobal::charsets()->descriptiveEncodingNames(); m_dialog->comboBoxEncoding->insertStringList( encodingList ); @@ -106,7 +106,7 @@ TQTextCodec* HtmlExportDialog::getCodec(void) const // Default: UTF-8 kdWarning(30503) << "Cannot find encoding:" << strCodec << endl; // ### TODO: what parent to use? - KMessageBox::error( 0, i18n("Cannot find encoding: %1").arg( strCodec ) ); + KMessageBox::error( 0, i18n("Cannot find encoding: %1").tqarg( strCodec ) ); return 0; } diff --git a/filters/kword/html/export/ExportDialogUI.ui b/filters/kword/html/export/ExportDialogUI.ui index a6683c04..cbdc4fc2 100644 --- a/filters/kword/html/export/ExportDialogUI.ui +++ b/filters/kword/html/export/ExportDialogUI.ui @@ -29,7 +29,7 @@ - layout3 + tqlayout3 @@ -67,7 +67,7 @@ Expanding - + 106 20 @@ -196,7 +196,7 @@ - layout6 + tqlayout6 @@ -212,7 +212,7 @@ Fixed - + 16 20 @@ -221,7 +221,7 @@ - layout5 + tqlayout5 @@ -262,7 +262,7 @@ Expanding - + 20 90 diff --git a/filters/kword/html/export/ExportDocStruct.cc b/filters/kword/html/export/ExportDocStruct.cc index 0cb6339e..f0e4b3aa 100644 --- a/filters/kword/html/export/ExportDocStruct.cc +++ b/filters/kword/html/export/ExportDocStruct.cc @@ -19,7 +19,7 @@ */ #include -#include +#include #include #include @@ -140,16 +140,16 @@ void HtmlDocStructWorker::closeFormatData(const FormatData& formatOrigin, } void HtmlDocStructWorker::openParagraph(const TQString& strTag, - const LayoutData& layout,TQChar::Direction /*direction*/) + const LayoutData& tqlayout,TQChar::Direction /*direction*/) { *m_streamOut << '<' << strTag << ">"; - openFormatData(layout.formatData,layout.formatData,true,(strTag[0]!='h')); + openFormatData(tqlayout.formatData,tqlayout.formatData,true,(strTag[0]!='h')); } void HtmlDocStructWorker::closeParagraph(const TQString& strTag, - const LayoutData& layout) + const LayoutData& tqlayout) { - closeFormatData(layout.formatData,layout.formatData,true,(strTag[0]!='h')); + closeFormatData(tqlayout.formatData,tqlayout.formatData,true,(strTag[0]!='h')); *m_streamOut << "\n"; } diff --git a/filters/kword/html/export/ExportDocStruct.h b/filters/kword/html/export/ExportDocStruct.h index 6e963183..43b1e76a 100644 --- a/filters/kword/html/export/ExportDocStruct.h +++ b/filters/kword/html/export/ExportDocStruct.h @@ -33,9 +33,9 @@ public: protected: virtual TQString getStartOfListOpeningTag(const CounterData::Style typeList, bool& ordered); virtual void openParagraph(const TQString& strTag, - const LayoutData& layout,TQChar::Direction direction=TQChar::DirL); + const LayoutData& tqlayout,TQChar::Direction direction=TQChar::DirL); virtual void closeParagraph(const TQString& strTag, - const LayoutData& layout); + const LayoutData& tqlayout); virtual void openSpan(const FormatData& formatOrigin, const FormatData& format); virtual void closeSpan(const FormatData& formatOrigin, const FormatData& format); private: diff --git a/filters/kword/html/export/ExportFilter.cc b/filters/kword/html/export/ExportFilter.cc index ecaba65c..aa1b1817 100644 --- a/filters/kword/html/export/ExportFilter.cc +++ b/filters/kword/html/export/ExportFilter.cc @@ -19,7 +19,7 @@ */ #include -#include +#include #include #include #include @@ -275,13 +275,13 @@ void HtmlWorker::formatTextParagraph(const TQString& strText, } void HtmlWorker::ProcessParagraphData (const TQString& strTag, const TQString ¶Text, - const LayoutData& layout, const ValueListFormatData ¶FormatDataList) + const LayoutData& tqlayout, const ValueListFormatData ¶FormatDataList) { if (paraText.isEmpty() && paraFormatDataList.first().id != 6) { - openParagraph(strTag,layout); + openParagraph(strTag,tqlayout); *m_streamOut << " " ; // A paragraph can never be empty in HTML - closeParagraph(strTag,layout); + closeParagraph(strTag,tqlayout); } else { @@ -302,17 +302,17 @@ void HtmlWorker::ProcessParagraphData (const TQString& strTag, const TQString &p // For normal text, we need an opened paragraph if (paragraphNotOpened) { - openParagraph(strTag,layout,partialText.ref(0).direction()); + openParagraph(strTag,tqlayout,partialText.ref(0).direction()); paragraphNotOpened=false; } - formatTextParagraph(partialText,layout.formatData,*paraFormatDataIt); + formatTextParagraph(partialText,tqlayout.formatData,*paraFormatDataIt); } else if (4==(*paraFormatDataIt).id) { // For variables, we need an opened paragraph if (paragraphNotOpened) { - openParagraph(strTag,layout); + openParagraph(strTag,tqlayout); paragraphNotOpened=false; } if (9==(*paraFormatDataIt).variable.m_type) @@ -341,7 +341,7 @@ void HtmlWorker::ProcessParagraphData (const TQString& strTag, const TQString &p if (!paragraphNotOpened) { // The paragraph was opened, so close it. - closeParagraph(strTag,layout); + closeParagraph(strTag,tqlayout); } makeTable((*paraFormatDataIt).frameAnchor); // The paragraph will need to be opened again @@ -355,7 +355,7 @@ void HtmlWorker::ProcessParagraphData (const TQString& strTag, const TQString &p // and need to be in a paragraph if (paragraphNotOpened) { - openParagraph( strTag, layout,partialText.ref(0). direction() ); + openParagraph( strTag, tqlayout,partialText.ref(0). direction() ); paragraphNotOpened=false; } makeImage((*paraFormatDataIt).frameAnchor); @@ -370,30 +370,30 @@ void HtmlWorker::ProcessParagraphData (const TQString& strTag, const TQString &p if (!paragraphNotOpened) { // The paragraph was opened, so close it. - closeParagraph(strTag,layout); + closeParagraph(strTag,tqlayout); } } } bool HtmlWorker::doFullParagraph(const TQString& paraText, - const LayoutData& layout, const ValueListFormatData& paraFormatDataList) + const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList) { kdDebug(30503) << "Entering HtmlWorker::doFullParagraph" << endl << paraText << endl; TQString strParaText=paraText; TQString strTag; // Tag that will be written. - if ( layout.counter.numbering == CounterData::NUM_LIST ) + if ( tqlayout.counter.numbering == CounterData::NUM_LIST ) { - const uint layoutDepth=layout.counter.depth+1; // Word's depth starts at 0! + const uint layoutDepth=tqlayout.counter.depth+1; // Word's depth starts at 0! const uint listDepth=m_listStack.size(); // We are in a list, but has it the right depth? if (layoutDepth>listDepth) { ListInfo newList; - newList.m_typeList=layout.counter.style; + newList.m_typeList=tqlayout.counter.style; for (uint i=listDepth; i\n"; } ListInfo newList; - *m_streamOut << getStartOfListOpeningTag(layout.counter.style,newList.m_orderedList); - newList.m_typeList=layout.counter.style; + *m_streamOut << getStartOfListOpeningTag(tqlayout.counter.style,newList.m_orderedList); + newList.m_typeList=tqlayout.counter.style; m_listStack.push(newList); } @@ -453,10 +453,10 @@ bool HtmlWorker::doFullParagraph(const TQString& paraText, } } } - if ( (layout.counter.numbering == CounterData::NUM_CHAPTER) - && (layout.counter.depth<6) ) + if ( (tqlayout.counter.numbering == CounterData::NUM_CHAPTER) + && (tqlayout.counter.depth<6) ) { - strTag=TQString("h%1").arg(layout.counter.depth + 1); // H1 ... H6 + strTag=TQString("h%1").tqarg(tqlayout.counter.depth + 1); // H1 ... H6 } else { @@ -464,7 +464,7 @@ bool HtmlWorker::doFullParagraph(const TQString& paraText, } } - ProcessParagraphData(strTag, strParaText, layout, paraFormatDataList); + ProcessParagraphData(strTag, strParaText, tqlayout, paraFormatDataList); kdDebug(30503) << "Quiting HtmlWorker::doFullParagraph" << endl; return true; diff --git a/filters/kword/html/export/ExportFilter.h b/filters/kword/html/export/ExportFilter.h index 04d3129f..f8446c1b 100644 --- a/filters/kword/html/export/ExportFilter.h +++ b/filters/kword/html/export/ExportFilter.h @@ -42,7 +42,7 @@ public: virtual bool doCloseFile(void); // Close file in normal conditions virtual bool doOpenDocument(void); virtual bool doCloseDocument(void); - virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout, + virtual bool doFullParagraph(const TQString& paraText, const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList); virtual bool doFullDocumentInfo(const KWEFDocumentInfo& docInfo); virtual bool doOpenTextFrameSet(void); @@ -58,9 +58,9 @@ protected: * be detected from the actual string data */ virtual void openParagraph(const TQString& strTag, - const LayoutData& layout, TQChar::Direction direction=TQChar::DirL)=0; + const LayoutData& tqlayout, TQChar::Direction direction=TQChar::DirL)=0; virtual void closeParagraph(const TQString& strTag, - const LayoutData& layout)=0; + const LayoutData& tqlayout)=0; virtual void openSpan(const FormatData& formatOrigin, const FormatData& format)=0; virtual void closeSpan(const FormatData& formatOrigin, const FormatData& format)=0; virtual void writeDocType(void); @@ -84,7 +84,7 @@ protected: TQString getAdditionalFileName(const TQString& additionalName); private: void ProcessParagraphData ( const TQString& strTag, const TQString ¶Text, - const LayoutData& layout, const ValueListFormatData ¶FormatDataList); + const LayoutData& tqlayout, const ValueListFormatData ¶FormatDataList); void formatTextParagraph(const TQString& strText, const FormatData& formatOrigin, const FormatData& format); bool makeTable(const FrameAnchor& anchor); diff --git a/filters/kword/html/export/htmlexport.cc b/filters/kword/html/export/htmlexport.cc index 013fb7ff..f8af8e3e 100644 --- a/filters/kword/html/export/htmlexport.cc +++ b/filters/kword/html/export/htmlexport.cc @@ -31,7 +31,7 @@ License version 2. */ -#include +#include #include #include @@ -61,7 +61,7 @@ HTMLExport::HTMLExport(KoFilter *, const char *, const TQStringList &) : KoFilter() { } -KoFilter::ConversionStatus HTMLExport::convert( const TQCString& from, const TQCString& to ) +KoFilter::ConversiontqStatus HTMLExport::convert( const TQCString& from, const TQCString& to ) { if ((from != "application/x-kword") || (to != "text/html")) { @@ -118,7 +118,7 @@ KoFilter::ConversionStatus HTMLExport::convert( const TQCString& from, const TQC delete worker; return KoFilter::StupidError; } - KoFilter::ConversionStatus result=leader->convert(m_chain,from,to); + KoFilter::ConversiontqStatus result=leader->convert(m_chain,from,to); delete leader; delete worker; diff --git a/filters/kword/html/export/htmlexport.h b/filters/kword/html/export/htmlexport.h index 5b62781a..5de5ef6a 100644 --- a/filters/kword/html/export/htmlexport.h +++ b/filters/kword/html/export/htmlexport.h @@ -22,7 +22,7 @@ #define HTMLEXPORT_H #include -#include +#include #include #include @@ -39,7 +39,7 @@ public: HTMLExport(KoFilter *parent, const char *name, const TQStringList &); virtual ~HTMLExport() {} - virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to ); + virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to ); }; #endif // HTMLEXPORT_H diff --git a/filters/kword/html/import/htmlimport.cpp b/filters/kword/html/import/htmlimport.cpp index 9b29320d..2c403b2f 100644 --- a/filters/kword/html/import/htmlimport.cpp +++ b/filters/kword/html/import/htmlimport.cpp @@ -39,7 +39,7 @@ HTMLImport::HTMLImport(KoFilter *, const char*, const TQStringList &) : // 123 } -KoFilter::ConversionStatus HTMLImport::convert( const TQCString& from, const TQCString& to ) +KoFilter::ConversiontqStatus HTMLImport::convert( const TQCString& from, const TQCString& to ) { if(to!="application/x-kword" || from!="text/html") return KoFilter::NotImplemented; diff --git a/filters/kword/html/import/htmlimport.h b/filters/kword/html/import/htmlimport.h index ab2a293c..f7c61a41 100644 --- a/filters/kword/html/import/htmlimport.h +++ b/filters/kword/html/import/htmlimport.h @@ -37,7 +37,7 @@ public: HTMLImport(KoFilter *parent, const char *name, const TQStringList &); virtual ~HTMLImport() {} - virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to ); + virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to ); }; #endif // HTMLIMPORT_H diff --git a/filters/kword/html/import/khtmlreader.cpp b/filters/kword/html/import/khtmlreader.cpp index 8545fb0d..6e134e38 100644 --- a/filters/kword/html/import/khtmlreader.cpp +++ b/filters/kword/html/import/khtmlreader.cpp @@ -80,7 +80,7 @@ HTMLReader_state *KHTMLReader::state() s->frameset=_writer->mainFrameset(); s->paragraph = _writer->addParagraph(s->frameset); s->format=_writer->currentFormat(s->paragraph,true); - s->layout=_writer->currentLayout(s->paragraph); + s->tqlayout=_writer->currentLayout(s->paragraph); s->in_pre_mode = false; _state.push(s); } @@ -93,7 +93,7 @@ HTMLReader_state *KHTMLReader::pushNewState() s->frameset=state()->frameset; s->paragraph=state()->paragraph; s->format=state()->format; - s->layout=state()->layout; + s->tqlayout=state()->tqlayout; s->in_pre_mode=state()->in_pre_mode; _writer->cleanUpParagraph(s->paragraph); _state.push(s); @@ -118,9 +118,9 @@ void KHTMLReader::popState() if (s->frameset == state()->frameset) { state()->paragraph=s->paragraph; - if ((state()->layout != s->layout)) + if ((state()->tqlayout != s->tqlayout)) { - if (_writer->getText(state()->paragraph).length()!=0) startNewLayout(false,state()->layout); + if (_writer->getText(state()->paragraph).length()!=0) startNewLayout(false,state()->tqlayout); } state()->format=_writer->startFormat(state()->paragraph, state()->format); } @@ -129,15 +129,15 @@ void KHTMLReader::popState() void KHTMLReader::startNewLayout(bool startNewFormat) { - TQDomElement layout; - startNewLayout(startNewFormat,layout); + TQDomElement tqlayout; + startNewLayout(startNewFormat,tqlayout); } -void KHTMLReader::startNewLayout(bool startNewFormat, TQDomElement layout) +void KHTMLReader::startNewLayout(bool startNewFormat, TQDomElement tqlayout) { kdDebug() << "entering startNewLayout" << endl; startNewParagraph(startNewFormat,true); - state()->layout=_writer->setLayout(state()->paragraph,layout); + state()->tqlayout=_writer->setLayout(state()->paragraph,tqlayout); } void KHTMLReader::completed() @@ -178,12 +178,12 @@ void KHTMLReader::parseNode(DOM::Node node) if (!t.isNull()) { _writer->addText(state()->paragraph,t.data().string(),1,state()->in_pre_mode); - return; // no children anymore... + return; // no tqchildren anymore... } // is this really needed ? it can't do harm anyway. state()->format=_writer->currentFormat(state()->paragraph,true); - state()->layout=_writer->currentLayout(state()->paragraph); + state()->tqlayout=_writer->currentLayout(state()->paragraph); pushNewState(); DOM::Element e=node; @@ -227,13 +227,13 @@ void KHTMLReader::parse_head(DOM::Element e) } \ } -// the state->layout=_writer->setLayout is meant to tell popState something changed in the layout, and a new -// layout should probably be started after closing. +// the state->tqlayout=_writer->setLayout is meant to tell popState something changed in the tqlayout, and a new +// tqlayout should probably be started after closing. #define _PL(x,a,b,c) { \ if (e.tagName().lower() == #x) \ { \ - state()->layout=_writer->setLayout(state()->paragraph,state()->layout);\ + state()->tqlayout=_writer->setLayout(state()->paragraph,state()->tqlayout);\ if (!(_writer->getText(state()->paragraph).isEmpty())) \ startNewParagraph(false,false); \ _writer->layoutAttribute(state()->paragraph, #a,#b,#c); \ @@ -283,20 +283,20 @@ bool KHTMLReader::parseTag(DOM::Element e) return true; } -void KHTMLReader::startNewParagraph(bool startnewformat, bool startnewlayout) +void KHTMLReader::startNewParagraph(bool startnewformat, bool startnewtqlayout) { kdDebug() << "Entering startNewParagraph" << endl; TQDomElement qf=state()->format; - TQDomElement ql=state()->layout; + TQDomElement ql=state()->tqlayout; _writer->cleanUpParagraph(state()->paragraph); - if ((startnewlayout==true) || ql.isNull()) + if ((startnewtqlayout==true) || ql.isNull()) {state()->paragraph=_writer->addParagraph(state()->frameset);} else {state()->paragraph= - _writer->addParagraph(state()->frameset,state()->layout);} + _writer->addParagraph(state()->frameset,state()->tqlayout);} @@ -321,7 +321,7 @@ void KHTMLReader::startNewParagraph(bool startnewformat, bool startnewlayout) _writer->layoutAttribute(state()->paragraph,"COUNTER","numberingtype","0"); _writer->layoutAttribute(state()->paragraph,"COUNTER","righttext",""); int currdepth=(_writer->getLayoutAttribute(state()->paragraph,"COUNTER","depth")).toInt(); - _writer->layoutAttribute(state()->paragraph,"COUNTER","depth",TQString("%1").arg(currdepth+1)); + _writer->layoutAttribute(state()->paragraph,"COUNTER","depth",TQString("%1").tqarg(currdepth+1)); } } @@ -403,7 +403,7 @@ bool KHTMLReader::parse_hr(DOM::Element /*e*/) bool KHTMLReader::parse_br(DOM::Element /*e*/) { - startNewParagraph(false,false); //keep the current format and layout + startNewParagraph(false,false); //keep the current format and tqlayout return false; // a BR tag has no childs. } @@ -508,7 +508,7 @@ void KHTMLReader::parseStyle(DOM::Element e) // process e.g. this is in the center if ( s1.getPropertyValue("text-align").string() != TQString() && s1.getPropertyValue("text-align").string() != TQString("left") ) { - state()->layout=_writer->setLayout(state()->paragraph,state()->layout); + state()->tqlayout=_writer->setLayout(state()->paragraph,state()->tqlayout); _writer->layoutAttribute(state()->paragraph, "FLOW","align",s1.getPropertyValue("text-align").string()); } // done @@ -520,11 +520,11 @@ void KHTMLReader::parseStyle(DOM::Element e) // debugging code. kdDebug(30503) << "e.style()" << endl; for (unsigned int i=0;iaddText(state()->paragraph,htmlelement.innerHTML().string(),1); startNewParagraph(); //popState(); - return false; // children are already handled. + return false; // tqchildren are already handled. #else pushNewState(); state()->in_pre_mode=true; @@ -640,7 +640,7 @@ bool KHTMLReader::parse_pre(DOM::Element e) } popState(); _writer->formatAttribute(state()->paragraph,"FONT","name",face); - return false; // children are already handled. + return false; // tqchildren are already handled. #endif } @@ -668,11 +668,11 @@ bool KHTMLReader::parse_font(DOM::Element e) _writer->formatAttribute(state()->paragraph,"FONT","name",face); if ((isize>=0) && (isize != 12)) - _writer->formatAttribute(state()->paragraph,"SIZE","value",TQString("%1").arg(isize)); + _writer->formatAttribute(state()->paragraph,"SIZE","value",TQString("%1").tqarg(isize)); - _writer->formatAttribute(state()->paragraph,"COLOR","red",TQString("%1").arg(color.red())); - _writer->formatAttribute(state()->paragraph,"COLOR","green",TQString("%1").arg(color.green())); - _writer->formatAttribute(state()->paragraph,"COLOR","blue",TQString("%1").arg(color.blue())); + _writer->formatAttribute(state()->paragraph,"COLOR","red",TQString("%1").tqarg(color.red())); + _writer->formatAttribute(state()->paragraph,"COLOR","green",TQString("%1").tqarg(color.green())); + _writer->formatAttribute(state()->paragraph,"COLOR","blue",TQString("%1").tqarg(color.blue())); return true; } @@ -684,7 +684,7 @@ bool KHTMLReader::parse_ul(DOM::Element e) _list_depth++; if (e.firstChild().nodeName().string().lower() == "#text") // e.g.
    this is indented
  • first listitem
{ - _writer->layoutAttribute(state()->paragraph,"COUNTER","depth",TQString("%1").arg(_list_depth-1)); // indent + _writer->layoutAttribute(state()->paragraph,"COUNTER","depth",TQString("%1").tqarg(_list_depth-1)); // indent startNewLayout(); } for (DOM::Node items=e.firstChild();!items.isNull();items=items.nextSibling()) @@ -706,7 +706,7 @@ bool KHTMLReader::parse_ul(DOM::Element e) _writer->layoutAttribute(state()->paragraph,"COUNTER","numberingtype",""); _writer->layoutAttribute(state()->paragraph,"COUNTER","righttext",""); } - _writer->layoutAttribute(state()->paragraph,"COUNTER","depth",TQString("%1").arg(_list_depth-1)); // indent + _writer->layoutAttribute(state()->paragraph,"COUNTER","depth",TQString("%1").tqarg(_list_depth-1)); // indent } parseNode(items); } diff --git a/filters/kword/html/import/khtmlreader.h b/filters/kword/html/import/khtmlreader.h index db93531a..9987a589 100644 --- a/filters/kword/html/import/khtmlreader.h +++ b/filters/kword/html/import/khtmlreader.h @@ -39,7 +39,7 @@ struct HTMLReader_state { TQDomElement format; TQDomElement frameset; TQDomElement paragraph; - TQDomElement layout; + TQDomElement tqlayout; bool in_pre_mode; // keep formatting as is. }; @@ -77,8 +77,8 @@ private: KWDWriter *_writer; void startNewLayout(bool startNewFormat=false); - void startNewLayout(bool startNewFormat, TQDomElement layout); - void startNewParagraph(bool startnewformat=true, bool startnewlayout=true); + void startNewLayout(bool startNewFormat, TQDomElement tqlayout); + void startNewParagraph(bool startnewformat=true, bool startnewtqlayout=true); bool _it_worked; // ----------------------------------------------------- int _list_depth; diff --git a/filters/kword/html/import/kwdwriter.cpp b/filters/kword/html/import/kwdwriter.cpp index a194b219..56568be9 100644 --- a/filters/kword/html/import/kwdwriter.cpp +++ b/filters/kword/html/import/kwdwriter.cpp @@ -173,9 +173,9 @@ TQDomElement KWDWriter::createTableCell(int tableno, int nrow, TQDomElement parent=docroot().elementsByTagName("FRAMESETS").item(0).toElement(); TQDomElement fs=addFrameSet(parent,1,0, - TQString("Table %1 - %2,%3").arg(tableno).arg(nrow).arg(ncol), + TQString("Table %1 - %2,%3").tqarg(tableno).tqarg(nrow).tqarg(ncol), 1); - fs.setAttribute("grpMgr",TQString("Table %1").arg(tableno)); + fs.setAttribute("grpMgr",TQString("Table %1").tqarg(tableno)); fs.setAttribute("row",nrow); fs.setAttribute("col",ncol); fs.setAttribute("cols",colspan); // FIXME do colspan in finishTable @@ -189,9 +189,9 @@ TQDomElement KWDWriter::fetchTableCell(int tableno, int rowno, int colno) { TQDomNodeList e=docroot().elementsByTagName("FRAMESET"); for (unsigned int i=0;icreateElement("LAYOUT"); else - theLayout=layout.cloneNode().toElement(); + theLayout=tqlayout.cloneNode().toElement(); TQDomElement oldLayout=currentLayout(paragraph); paragraph.removeChild(oldLayout); paragraph.appendChild(theLayout); @@ -357,12 +357,12 @@ TQDomElement KWDWriter::addParagraph(TQDomElement parent, TQDomElement layoutToC TQDomElement paragraph=_doc->createElement("PARAGRAPH"); TQDomElement formats=_doc->createElement("FORMATS"); - TQDomElement layout; + TQDomElement tqlayout; if (layoutToClone.isNull()) { - layout=_doc->createElement("LAYOUT"); + tqlayout=_doc->createElement("LAYOUT"); } else { - layout=layoutToClone.cloneNode().toElement(); + tqlayout=layoutToClone.cloneNode().toElement(); } TQDomElement text=_doc->createElement("TEXT"); TQDomText t=_doc->createTextNode(TQString("")); @@ -370,7 +370,7 @@ TQDomElement KWDWriter::addParagraph(TQDomElement parent, TQDomElement layoutToC paragraph.appendChild(formats); paragraph.appendChild(text); parent.appendChild(paragraph); - paragraph.appendChild(layout); + paragraph.appendChild(tqlayout); layoutAttribute(paragraph,"NAME","value","Standard"); return paragraph; } @@ -460,8 +460,8 @@ void KWDWriter::addText(TQDomElement paragraph, TQString text, int format_id, bo TQDomElement lastformat=currentFormat(paragraph,true); if (lastformat.attribute("id").isEmpty()) // keep old id value, e.g. for LINK URL lastformat.setAttribute("id",format_id); - lastformat.setAttribute("pos",TQString("%1").arg(oldLength)); - lastformat.setAttribute("len",TQString("%1").arg(newLength)); + lastformat.setAttribute("pos",TQString("%1").tqarg(oldLength)); + lastformat.setAttribute("len",TQString("%1").tqarg(newLength)); } TQString KWDWriter::getText(TQDomElement paragraph) { diff --git a/filters/kword/html/import/kwdwriter.h b/filters/kword/html/import/kwdwriter.h index 2942f22a..542a1748 100644 --- a/filters/kword/html/import/kwdwriter.h +++ b/filters/kword/html/import/kwdwriter.h @@ -93,7 +93,7 @@ public: /** - * create a horizontal ruler layout + * create a horizontal ruler tqlayout **/ void createHR(TQDomElement paragraph, int width=1); @@ -115,7 +115,7 @@ public: * adds a paragraph **/ TQDomElement addParagraph(TQDomElement parent); - TQDomElement addParagraph(TQDomElement parent, TQDomElement layout); + TQDomElement addParagraph(TQDomElement parent, TQDomElement tqlayout); /** * adds/changes an attribute to/of the current format @@ -123,13 +123,13 @@ public: TQDomElement formatAttribute(TQDomElement paragraph, TQString name, TQString attrName, TQString attr); /** - * get a layout attribute + * get a tqlayout attribute **/ TQString getLayoutAttribute(TQDomElement paragraph, TQString name, TQString attrName); /** - * adds/changes an attribute to/of the current layout + * adds/changes an attribute to/of the current tqlayout **/ TQDomElement layoutAttribute(TQDomElement paragraph, TQString name, TQString attrName, TQString attr); @@ -164,9 +164,9 @@ public: TQDomElement createLink(TQDomElement paragraph, TQString linkName, TQString hrefName); /** - * copy the given layout, and set it as layout of the given paragraph + * copy the given tqlayout, and set it as tqlayout of the given paragraph **/ - TQDomElement setLayout(TQDomElement paragraph, TQDomElement layout); + TQDomElement setLayout(TQDomElement paragraph, TQDomElement tqlayout); /** * returns the text of this paragraph. diff --git a/filters/kword/kword1.3/import/kword13formatone.cpp b/filters/kword/kword1.3/import/kword13formatone.cpp index 5d1d2fe3..9a658e41 100644 --- a/filters/kword/kword1.3/import/kword13formatone.cpp +++ b/filters/kword/kword1.3/import/kword13formatone.cpp @@ -1,4 +1,4 @@ -#include +#include #include "kword13utils.h" #include "kword13formatone.h" diff --git a/filters/kword/kword1.3/import/kword13formatone.h b/filters/kword/kword1.3/import/kword13formatone.h index 682ef887..e4cc7f38 100644 --- a/filters/kword/kword1.3/import/kword13formatone.h +++ b/filters/kword/kword1.3/import/kword13formatone.h @@ -29,8 +29,8 @@ class TQTextStream; #include "kword13format.h" /** - * Contains the data of the \ children - * also the grand-children of \ and \ + * Contains the data of the \ tqchildren + * also the grand-tqchildren of \ and \ */ class KWord13FormatOneData { @@ -75,7 +75,7 @@ public: virtual KWord13FormatOneData* getFormatOneData(void); public: int m_length; ///< Length of format - KWord13FormatOneData m_formatOne; ///< Data of children of \ + KWord13FormatOneData m_formatOne; ///< Data of tqchildren of \ }; #endif // KWORD_1_3_FORMAT_ONE diff --git a/filters/kword/kword1.3/import/kword13import.cpp b/filters/kword/kword1.3/import/kword13import.cpp index 47eed1e7..ebcf3f6a 100644 --- a/filters/kword/kword1.3/import/kword13import.cpp +++ b/filters/kword/kword1.3/import/kword13import.cpp @@ -59,7 +59,7 @@ bool KWord13Import::parseInfo( TQIODevice* io, KWord13Document& kwordDocument ) return false; } TQDomElement docElement( doc.documentElement() ); - // In documentinfo.xml, the text data is in the grand-children of the document element + // In documentinfo.xml, the text data is in the grand-tqchildren of the document element for ( TQDomNode node = docElement.firstChild(); !node.isNull(); node = node.nextSibling() ) { kdDebug(30520) << "Child " << node.nodeName() << endl; @@ -104,7 +104,7 @@ bool KWord13Import::postParse( KoStore* store, KWord13Document& doc ) return post.postParse( store, doc ); } -KoFilter::ConversionStatus KWord13Import::convert( const TQCString& from, const TQCString& to ) +KoFilter::ConversiontqStatus KWord13Import::convert( const TQCString& from, const TQCString& to ) { if ( to != "application/vnd.oasis.opendocument.text" || from != "application/x-kword" ) diff --git a/filters/kword/kword1.3/import/kword13import.h b/filters/kword/kword1.3/import/kword13import.h index 77c05c23..7d60dd89 100644 --- a/filters/kword/kword1.3/import/kword13import.h +++ b/filters/kword/kword1.3/import/kword13import.h @@ -39,7 +39,7 @@ public: KWord13Import(KoFilter *parent, const char *name, const TQStringList &); virtual ~KWord13Import() {} - virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to ); + virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to ); protected: bool parseInfo( TQIODevice* io, KWord13Document& kwordDocument ); bool parseRoot( TQIODevice* io, KWord13Document& kwordDocument ); diff --git a/filters/kword/kword1.3/import/kword13layout.cpp b/filters/kword/kword1.3/import/kword13layout.cpp index f72dd5f8..cc8a7046 100644 --- a/filters/kword/kword1.3/import/kword13layout.cpp +++ b/filters/kword/kword1.3/import/kword13layout.cpp @@ -1,4 +1,4 @@ -#include +#include #include "kword13utils.h" #include "kword13layout.h" @@ -13,7 +13,7 @@ KWord13Layout::~KWord13Layout( void ) void KWord13Layout::xmldump( TQTextStream& iostream ) { - iostream << " \n"; for ( TQMap::ConstIterator it = m_layoutProperties.begin(); @@ -25,7 +25,7 @@ void KWord13Layout::xmldump( TQTextStream& iostream ) m_format.xmldump( iostream ); - iostream << " \n"; + iostream << " \n"; } TQString KWord13Layout::key( void ) const diff --git a/filters/kword/kword1.3/import/kword13oasisgenerator.cpp b/filters/kword/kword1.3/import/kword13oasisgenerator.cpp index 7f246cad..00b899f9 100644 --- a/filters/kword/kword1.3/import/kword13oasisgenerator.cpp +++ b/filters/kword/kword1.3/import/kword13oasisgenerator.cpp @@ -178,11 +178,11 @@ double KWord13OasisGenerator::positiveNumberOrNull( const TQString& str ) const } // Inspired by KoParagStyle::saveStyle -void KWord13OasisGenerator::declareLayout( KWord13Layout& layout ) +void KWord13OasisGenerator::declareLayout( KWord13Layout& tqlayout ) { - KoGenStyle gs( KoGenStyle::STYLE_AUTO, "paragraph", layout.m_name ); + KoGenStyle gs( KoGenStyle::STYLE_AUTO, "paragraph", tqlayout.m_name ); - // ### TODO: any display name? gs.addAttribute( "style:display-name", layout.m_name ); + // ### TODO: any display name? gs.addAttribute( "style:display-name", tqlayout.m_name ); #if 0 // TODO: check that this is correct if ( m_paragLayout.counter && m_paragLayout.counter->depth() ) { @@ -192,21 +192,21 @@ void KWord13OasisGenerator::declareLayout( KWord13Layout& layout ) gs.addAttribute( "style:default-level", (int)m_paragLayout.counter->depth() + 1 ); } #endif - fillGenStyleWithLayout( layout, gs, false ); - fillGenStyleWithFormatOne( layout.m_format , gs, false ); + fillGenStyleWithLayout( tqlayout, gs, false ); + fillGenStyleWithFormatOne( tqlayout.m_format , gs, false ); - layout.m_autoStyleName = m_oasisGenStyles.lookup( gs, "P", true ); + tqlayout.m_autoStyleName = m_oasisGenStyles.lookup( gs, "P", true ); - kdDebug(30520) << "Layout: Parent " << layout.m_name << " => " << layout.m_autoStyleName << endl; + kdDebug(30520) << "Layout: Parent " << tqlayout.m_name << " => " << tqlayout.m_autoStyleName << endl; } // Inspired by KoParagStyle::saveStyle -void KWord13OasisGenerator::declareStyle( KWord13Layout& layout ) +void KWord13OasisGenerator::declareStyle( KWord13Layout& tqlayout ) { KoGenStyle gs( KoGenStyle::STYLE_USER, "paragraph", TQString() ); - gs.addAttribute( "style:display-name", layout.m_name ); + gs.addAttribute( "style:display-name", tqlayout.m_name ); #if 0 // TODO: check that this is correct if ( m_paragLayout.counter && m_paragLayout.counter->depth() ) { @@ -216,12 +216,12 @@ void KWord13OasisGenerator::declareStyle( KWord13Layout& layout ) gs.addAttribute( "style:default-level", (int)m_paragLayout.counter->depth() + 1 ); } #endif - fillGenStyleWithLayout( layout, gs, true ); - fillGenStyleWithFormatOne( layout.m_format , gs, true ); + fillGenStyleWithLayout( tqlayout, gs, true ); + fillGenStyleWithFormatOne( tqlayout.m_format , gs, true ); - layout.m_autoStyleName = m_oasisGenStyles.lookup( gs, layout.m_name, false ); + tqlayout.m_autoStyleName = m_oasisGenStyles.lookup( gs, tqlayout.m_name, false ); - kdDebug(30520) << "Style: " << layout.m_name << " => " << layout.m_autoStyleName << endl; + kdDebug(30520) << "Style: " << tqlayout.m_name << " => " << tqlayout.m_autoStyleName << endl; } @@ -341,13 +341,13 @@ void KWord13OasisGenerator::fillGenStyleWithFormatOne( const KWord13FormatOneDat } // Inspired from KoParagLayout::saveOasis but we have not the same data to start with. -void KWord13OasisGenerator::fillGenStyleWithLayout( const KWord13Layout& layout, KoGenStyle& gs, const bool style ) const +void KWord13OasisGenerator::fillGenStyleWithLayout( const KWord13Layout& tqlayout, KoGenStyle& gs, const bool style ) const { // ### TODO syntaxVersion < 3 - TQString str; // Help string to store each KWord 1.3 layout property + TQString str; // Help string to store each KWord 1.3 tqlayout property - str = layout.getProperty( "FLOW:align" ); + str = tqlayout.getProperty( "FLOW:align" ); if ( str.isEmpty() && ! style) { // Nothing to do! @@ -361,7 +361,7 @@ void KWord13OasisGenerator::fillGenStyleWithLayout( const KWord13Layout& layout, gs.addProperty( "fo:text-align", "start" ); // i.e. direction-dependent } - str = layout.getProperty( "FLOW:dir" ); + str = tqlayout.getProperty( "FLOW:dir" ); if ( str == "R" ) // ### TODO: check the right value { gs.addProperty( "style:writing-mode", "rl-tb" ); // right-to-left, top-to-bottom @@ -372,11 +372,11 @@ void KWord13OasisGenerator::fillGenStyleWithLayout( const KWord13Layout& layout, } // ### TODO: do not define if it does not exist and ! style - gs.addPropertyPt( "fo:margin-left", numberOrNull( layout.getProperty( "INDENTS:left" ) ) ); - gs.addPropertyPt( "fo:margin-right", numberOrNull( layout.getProperty( "INDENTS:right" ) ) ); - gs.addPropertyPt( "fo:text-indent", numberOrNull( layout.getProperty( "INDENTS:first" ) ) ); - gs.addPropertyPt( "fo:margin-top", numberOrNull( layout.getProperty( "OFFSETS:before" ) ) ); - gs.addPropertyPt( "fo:margin-bottom", numberOrNull( layout.getProperty( "OFFSETS:after" ) ) ); + gs.addPropertyPt( "fo:margin-left", numberOrNull( tqlayout.getProperty( "INDENTS:left" ) ) ); + gs.addPropertyPt( "fo:margin-right", numberOrNull( tqlayout.getProperty( "INDENTS:right" ) ) ); + gs.addPropertyPt( "fo:text-indent", numberOrNull( tqlayout.getProperty( "INDENTS:first" ) ) ); + gs.addPropertyPt( "fo:margin-top", numberOrNull( tqlayout.getProperty( "OFFSETS:before" ) ) ); + gs.addPropertyPt( "fo:margin-bottom", numberOrNull( tqlayout.getProperty( "OFFSETS:after" ) ) ); #if 0 switch ( lineSpacingType ) { @@ -425,7 +425,7 @@ void KWord13OasisGenerator::fillGenStyleWithLayout( const KWord13Layout& layout, case T_RIGHT: tabsWriter.addAttribute( "style:type", "right" ); break; - case T_DEC_PNT: // "alignment on decimal point" + case T_DEC_PNT: // "tqalignment on decimal point" tabsWriter.addAttribute( "style:type", "char" ); tabsWriter.addAttribute( "style:char", TQString( (*it).alignChar ) ); break; @@ -614,7 +614,7 @@ void KWord13OasisGenerator::writeStylesXml( void ) Q_ASSERT( styles.count() == 1 ); it = styles.begin(); for ( ; it != styles.end() ; ++it ) { - (*it).style->writeStyle( stylesWriter, m_oasisGenStyles, "style:page-layout", (*it).name, "style:page-layout-properties", false /*don't close*/ ); + (*it).style->writeStyle( stylesWriter, m_oasisGenStyles, "style:page-tqlayout", (*it).name, "style:page-tqlayout-properties", false /*don't close*/ ); //if ( m_pageLayout.columns > 1 ) TODO add columns element. This is a bit of a hack, // which only works as long as we have only one page master stylesWriter->endElement(); @@ -629,7 +629,7 @@ void KWord13OasisGenerator::writeStylesXml( void ) stylesWriter->startElement( "office:master-styles" ); stylesWriter->startElement( "style:master-page" ); stylesWriter->addAttribute( "style:name", "Standard" ); - stylesWriter->addAttribute( "style:page-layout-name", pageLayoutName ); + stylesWriter->addAttribute( "style:page-tqlayout-name", pageLayoutName ); stylesWriter->endElement(); stylesWriter->endElement(); // office:master-styles diff --git a/filters/kword/kword1.3/import/kword13oasisgenerator.h b/filters/kword/kword1.3/import/kword13oasisgenerator.h index 3db989f2..39bc232a 100644 --- a/filters/kword/kword1.3/import/kword13oasisgenerator.h +++ b/filters/kword/kword1.3/import/kword13oasisgenerator.h @@ -49,17 +49,17 @@ protected: // Generating phase void writePreviewFile(void); void writePictures( void ); protected: // Preparing phase - /// Preparing page layout + /// Preparing page tqlayout void preparePageLayout( void ); void prepareTextFrameset( KWordTextFrameset* frameset ); /// Also sets the name of the automatical style - void declareLayout( KWord13Layout& layout ); + void declareLayout( KWord13Layout& tqlayout ); /// Also sets the name of the automatical style - void declareStyle( KWord13Layout& layout ); + void declareStyle( KWord13Layout& tqlayout ); double numberOrNull( const TQString& str ) const; double positiveNumberOrNull( const TQString& str ) const; void fillGenStyleWithFormatOne( const KWord13FormatOneData& one, KoGenStyle& gs, const bool style ) const; - void fillGenStyleWithLayout( const KWord13Layout& layout, KoGenStyle& gs, const bool style ) const; + void fillGenStyleWithLayout( const KWord13Layout& tqlayout, KoGenStyle& gs, const bool style ) const; protected: KWord13Document* m_kwordDocument; KoStore* m_store; diff --git a/filters/kword/kword1.3/import/kword13parser.cpp b/filters/kword/kword1.3/import/kword13parser.cpp index a3e22290..e3958b45 100644 --- a/filters/kword/kword1.3/import/kword13parser.cpp +++ b/filters/kword/kword1.3/import/kword13parser.cpp @@ -133,7 +133,7 @@ bool KWord13Parser::startElementLayoutProperty( const TQString& name, const TQXm } else { - kdError(30520) << "No current layout for storing property: " << name << endl; + kdError(30520) << "No current tqlayout for storing property: " << name << endl; return false; } } @@ -166,7 +166,7 @@ bool KWord13Parser::startElementFormat( const TQString&, const TQXmlAttributes& else if ( stackItem->elementType == KWord13TypeLayout ) { stackItem->elementType = KWord13TypeLayoutFormatOne; - return true; // Everything is done directly on the layout + return true; // Everything is done directly on the tqlayout } else if ( stackItem->elementType != KWord13TypeFormatsPlural ) { @@ -247,7 +247,7 @@ bool KWord13Parser::startElementLayout( const TQString&, const TQXmlAttributes& if ( m_currentLayout ) { // Delete an eventually already existing paragraph (should not happen) - kdWarning(30520) << "Current layout already defined!" << endl; + kdWarning(30520) << "Current tqlayout already defined!" << endl; delete m_currentLayout; } @@ -625,13 +625,13 @@ bool KWord13Parser::startElement( const TQString&, const TQString&, const TQStri } else if ( name == "FRAMESTYLE" ) { - // ### TODO, but some of the