summaryrefslogtreecommitdiffstats
path: root/filters
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
commitc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch)
tree1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /filters
parent94844816550ad672ccfcdc25659c625546239998 (diff)
downloadkoffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz
koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'filters')
-rw-r--r--filters/chalk/gmagick/kis_image_magick_converter.cc4
-rw-r--r--filters/chalk/gmagick/magickexport.cpp2
-rw-r--r--filters/chalk/gmagick/magickexport.h2
-rw-r--r--filters/chalk/gmagick/magickimport.cpp2
-rw-r--r--filters/chalk/gmagick/magickimport.h2
-rw-r--r--filters/chalk/jpeg/kis_jpeg_converter.cc2
-rw-r--r--filters/chalk/jpeg/kis_jpeg_export.cc2
-rw-r--r--filters/chalk/jpeg/kis_jpeg_export.h2
-rw-r--r--filters/chalk/jpeg/kis_jpeg_import.cc2
-rw-r--r--filters/chalk/jpeg/kis_jpeg_import.h2
-rw-r--r--filters/chalk/jpeg/kis_wdg_options_jpeg.ui12
-rw-r--r--filters/chalk/magick/kis_image_magick_converter.cc2
-rw-r--r--filters/chalk/magick/magickexport.cpp2
-rw-r--r--filters/chalk/magick/magickexport.h2
-rw-r--r--filters/chalk/magick/magickimport.cpp2
-rw-r--r--filters/chalk/magick/magickimport.h2
-rw-r--r--filters/chalk/openexr/kis_openexr_export.cpp2
-rw-r--r--filters/chalk/openexr/kis_openexr_export.h2
-rw-r--r--filters/chalk/openexr/kis_openexr_import.cpp2
-rw-r--r--filters/chalk/openexr/kis_openexr_import.h2
-rw-r--r--filters/chalk/pdf/kis_pdf_import.cpp4
-rw-r--r--filters/chalk/pdf/kis_pdf_import.h2
-rw-r--r--filters/chalk/pdf/pdfimportwidgetbase.ui16
-rw-r--r--filters/chalk/png/kis_png_converter.cc2
-rw-r--r--filters/chalk/png/kis_png_export.cc2
-rw-r--r--filters/chalk/png/kis_png_export.h2
-rw-r--r--filters/chalk/png/kis_png_import.cc2
-rw-r--r--filters/chalk/png/kis_png_import.h2
-rw-r--r--filters/chalk/png/kis_wdg_options_png.ui12
-rw-r--r--filters/chalk/raw/kis_raw_import.cpp4
-rw-r--r--filters/chalk/raw/kis_raw_import.h2
-rw-r--r--filters/chalk/raw/wdgrawimport.ui14
-rw-r--r--filters/chalk/tiff/kis_dlg_options_tiff.cpp2
-rw-r--r--filters/chalk/tiff/kis_tiff_export.cc2
-rw-r--r--filters/chalk/tiff/kis_tiff_export.h2
-rw-r--r--filters/chalk/tiff/kis_tiff_import.cc2
-rw-r--r--filters/chalk/tiff/kis_tiff_import.h2
-rw-r--r--filters/chalk/tiff/kis_tiff_writer_visitor.cpp2
-rw-r--r--filters/chalk/tiff/kis_wdg_options_tiff.ui30
-rw-r--r--filters/chalk/xcf/xcf/xcf-load.cc6
-rw-r--r--filters/chalk/xcf/xcf/xcf-save.cc10
-rw-r--r--filters/chalk/xcf/xcfexport.cpp2
-rw-r--r--filters/chalk/xcf/xcfexport.h2
-rw-r--r--filters/chalk/xcf/xcfimport.cpp2
-rw-r--r--filters/chalk/xcf/xcfimport.h2
-rw-r--r--filters/generic_wrapper/generic_filter.cc8
-rw-r--r--filters/generic_wrapper/generic_filter.h6
-rw-r--r--filters/karbon/ai/aielement.cc2
-rw-r--r--filters/karbon/ai/aiimport.cc2
-rw-r--r--filters/karbon/ai/aiimport.h2
-rw-r--r--filters/karbon/applixgraphics/applixgraphicimport.cc10
-rw-r--r--filters/karbon/applixgraphics/applixgraphicimport.h2
-rw-r--r--filters/karbon/eps/epsexport.cc6
-rw-r--r--filters/karbon/eps/epsexport.h2
-rw-r--r--filters/karbon/eps/epsimport.cc4
-rw-r--r--filters/karbon/eps/epsimport.h2
-rw-r--r--filters/karbon/kontour/kontourimport.cpp6
-rw-r--r--filters/karbon/kontour/kontourimport.h2
-rw-r--r--filters/karbon/msod/msod.cc78
-rw-r--r--filters/karbon/msod/msod.h12
-rw-r--r--filters/karbon/msod/msodimport.cc18
-rw-r--r--filters/karbon/msod/msodimport.h4
-rw-r--r--filters/karbon/oodraw/oodrawimport.cc14
-rw-r--r--filters/karbon/oodraw/oodrawimport.h6
-rw-r--r--filters/karbon/png/pngexport.cc2
-rw-r--r--filters/karbon/png/pngexport.h2
-rw-r--r--filters/karbon/svg/svgexport.cc8
-rw-r--r--filters/karbon/svg/svgexport.h2
-rw-r--r--filters/karbon/svg/svgimport.cc20
-rw-r--r--filters/karbon/svg/svgimport.h2
-rw-r--r--filters/karbon/wmf/wmfexport.cc2
-rw-r--r--filters/karbon/wmf/wmfexport.h4
-rw-r--r--filters/karbon/wmf/wmfimport.cc2
-rw-r--r--filters/karbon/wmf/wmfimport.h2
-rw-r--r--filters/karbon/xaml/xamlexport.cc4
-rw-r--r--filters/karbon/xaml/xamlexport.h2
-rw-r--r--filters/karbon/xaml/xamlimport.cc20
-rw-r--r--filters/karbon/xaml/xamlimport.h2
-rw-r--r--filters/karbon/xcf/xcfexport.cc60
-rw-r--r--filters/karbon/xcf/xcfexport.h2
-rw-r--r--filters/karbon/xfig/xfigimport.cc12
-rw-r--r--filters/kchart/libimageexport/imageexport.cpp2
-rw-r--r--filters/kchart/libimageexport/imageexport.h2
-rw-r--r--filters/kchart/svg/svgexport.cc2
-rw-r--r--filters/kchart/svg/svgexport.h2
-rw-r--r--filters/kformula/latex/latexexport.cc4
-rw-r--r--filters/kformula/latex/latexexport.h2
-rw-r--r--filters/kformula/mathml/mathmlexport.cc4
-rw-r--r--filters/kformula/mathml/mathmlexport.h2
-rw-r--r--filters/kformula/mathml/mathmlimport.cc8
-rw-r--r--filters/kformula/mathml/mathmlimport.h4
-rw-r--r--filters/kformula/png/pngexport.cc4
-rw-r--r--filters/kformula/png/pngexport.h2
-rw-r--r--filters/kformula/png/pngexportdia.cc28
-rw-r--r--filters/kformula/svg/svgexport.cc2
-rw-r--r--filters/kformula/svg/svgexport.h2
-rw-r--r--filters/kivio/imageexport/kivio_imageexport.cpp2
-rw-r--r--filters/kivio/imageexport/kivio_imageexport.h2
-rw-r--r--filters/kivio/imageexport/kivio_imageexportwidget.ui6
-rw-r--r--filters/kpresenter/kword/kprkword.cc2
-rw-r--r--filters/kpresenter/kword/kprkword.h2
-rw-r--r--filters/kpresenter/libimageexport/imageexport.cpp2
-rw-r--r--filters/kpresenter/libimageexport/imageexport.h2
-rwxr-xr-xfilters/kpresenter/magicpoint/mgp2kpr.py18
-rw-r--r--filters/kpresenter/ooimpress/ooimpressexport.cc58
-rw-r--r--filters/kpresenter/ooimpress/ooimpressexport.h4
-rw-r--r--filters/kpresenter/ooimpress/ooimpressimport.cc46
-rw-r--r--filters/kpresenter/ooimpress/ooimpressimport.h6
-rw-r--r--filters/kpresenter/ooimpress/status.html4
-rw-r--r--filters/kpresenter/ooimpress/stylefactory.cc48
-rw-r--r--filters/kpresenter/powerpoint/import/powerpointimport.cc352
-rw-r--r--filters/kpresenter/powerpoint/import/powerpointimport.h2
-rw-r--r--filters/kpresenter/powerpoint/libppt/objects.cpp10
-rw-r--r--filters/kpresenter/powerpoint/libppt/objects.h4
-rw-r--r--filters/kpresenter/powerpoint/libppt/pole.cpp24
-rw-r--r--filters/kpresenter/powerpoint/libppt/powerpoint.cpp14
-rw-r--r--filters/kpresenter/powerpoint/libppt/powerpoint.h12
-rw-r--r--filters/kpresenter/powerpoint/libppt/ustring.cpp6
-rw-r--r--filters/kpresenter/powerpoint/libppt/ustring.h4
-rw-r--r--filters/kpresenter/svg/svgexport.cc2
-rw-r--r--filters/kpresenter/svg/svgexport.h2
-rw-r--r--filters/kspread/applixspread/applixspreadimport.cc8
-rw-r--r--filters/kspread/applixspread/applixspreadimport.h4
-rw-r--r--filters/kspread/applixspread/status.html20
-rw-r--r--filters/kspread/csv/csvdialog.cpp18
-rw-r--r--filters/kspread/csv/csvexport.cc4
-rw-r--r--filters/kspread/csv/csvexport.h2
-rw-r--r--filters/kspread/csv/csvexportdialog.cpp16
-rw-r--r--filters/kspread/csv/csvimport.cc2
-rw-r--r--filters/kspread/csv/csvimport.h2
-rw-r--r--filters/kspread/csv/dialogui.ui24
-rw-r--r--filters/kspread/csv/exportdialogui.ui12
-rw-r--r--filters/kspread/csv/xmltree.h2
-rw-r--r--filters/kspread/dbase/dbase.cpp4
-rw-r--r--filters/kspread/dbase/dbaseimport.cc2
-rw-r--r--filters/kspread/dbase/dbaseimport.h2
-rw-r--r--filters/kspread/excel/excelexport.cc16
-rw-r--r--filters/kspread/excel/excelexport.h16
-rw-r--r--filters/kspread/excel/import/excelimport.cc28
-rw-r--r--filters/kspread/excel/import/excelimport.h2
-rw-r--r--filters/kspread/excel/sidewinder/excel.cpp64
-rw-r--r--filters/kspread/excel/sidewinder/excel.h16
-rw-r--r--filters/kspread/excel/sidewinder/format.cpp28
-rw-r--r--filters/kspread/excel/sidewinder/format.h36
-rw-r--r--filters/kspread/excel/sidewinder/pole.cpp24
-rw-r--r--filters/kspread/excel/sidewinder/ustring.cpp4
-rw-r--r--filters/kspread/excel/sidewinder/ustring.h4
-rw-r--r--filters/kspread/gnumeric/gnumeric.xsd10
-rw-r--r--filters/kspread/gnumeric/gnumericexport.cc8
-rw-r--r--filters/kspread/gnumeric/gnumericexport.h2
-rw-r--r--filters/kspread/gnumeric/gnumericimport.cc2
-rw-r--r--filters/kspread/gnumeric/gnumericimport.h2
-rw-r--r--filters/kspread/gnumeric/status.html2
-rw-r--r--filters/kspread/html/exportdialog.cc4
-rw-r--r--filters/kspread/html/exportwidget.ui14
-rw-r--r--filters/kspread/html/htmlexport.cc14
-rw-r--r--filters/kspread/html/htmlexport.h2
-rw-r--r--filters/kspread/kexi/kspread_kexiimport.cc2
-rw-r--r--filters/kspread/kexi/kspread_kexiimport.h2
-rw-r--r--filters/kspread/kexi/kspread_kexiimportdialog.cc2
-rw-r--r--filters/kspread/kexi/kspread_kexiimportdialogbase.ui8
-rw-r--r--filters/kspread/latex/export/config.h6
-rw-r--r--filters/kspread/latex/export/document.h2
-rw-r--r--filters/kspread/latex/export/fileheader.cc4
-rw-r--r--filters/kspread/latex/export/fileheader.h2
-rw-r--r--filters/kspread/latex/export/format.h2
-rw-r--r--filters/kspread/latex/export/formula.h2
-rw-r--r--filters/kspread/latex/export/kspreadlatexexportdiaImpl.cc4
-rw-r--r--filters/kspread/latex/export/latexexport.cc4
-rw-r--r--filters/kspread/latex/export/latexexport.h4
-rw-r--r--filters/kspread/latex/export/latexexportdia.ui2
-rw-r--r--filters/kspread/latex/export/map.cc2
-rw-r--r--filters/kspread/latex/export/pen.h2
-rw-r--r--filters/kspread/latex/export/spreadsheet.h2
-rw-r--r--filters/kspread/latex/export/xmlparser.cc12
-rw-r--r--filters/kspread/libkspreadexport/KSpreadBaseWorker.cc14
-rw-r--r--filters/kspread/libkspreadexport/KSpreadBaseWorker.h14
-rw-r--r--filters/kspread/libkspreadexport/KSpreadLeader.cc14
-rw-r--r--filters/kspread/libkspreadexport/KSpreadLeader.h10
-rw-r--r--filters/kspread/opencalc/opencalcexport.cc14
-rw-r--r--filters/kspread/opencalc/opencalcexport.h2
-rw-r--r--filters/kspread/opencalc/opencalcimport.cc204
-rw-r--r--filters/kspread/opencalc/opencalcimport.h14
-rw-r--r--filters/kspread/opencalc/opencalcstyleexport.cc18
-rw-r--r--filters/kspread/opencalc/status.html8
-rw-r--r--filters/kspread/qpro/qproimport.cc2
-rw-r--r--filters/kspread/qpro/qproimport.h2
-rw-r--r--filters/kugar/kugarnop/kugarnopimport.cpp2
-rw-r--r--filters/kugar/kugarnop/kugarnopimport.h2
-rw-r--r--filters/kword/abiword/ImportField.cc2
-rw-r--r--filters/kword/abiword/ImportFormatting.cc2
-rw-r--r--filters/kword/abiword/ImportStyle.cc2
-rw-r--r--filters/kword/abiword/abiwordexport.cc124
-rw-r--r--filters/kword/abiword/abiwordexport.h2
-rw-r--r--filters/kword/abiword/abiwordimport.cc22
-rw-r--r--filters/kword/abiword/abiwordimport.h2
-rw-r--r--filters/kword/amipro/FileFormat.txt10
-rw-r--r--filters/kword/amipro/amiproexport.cc14
-rw-r--r--filters/kword/amipro/amiproexport.h2
-rw-r--r--filters/kword/amipro/amiproimport.cc60
-rw-r--r--filters/kword/amipro/amiproimport.h2
-rw-r--r--filters/kword/amipro/amiproparser.cpp10
-rw-r--r--filters/kword/amipro/amiproparser.h4
-rw-r--r--filters/kword/applixword/applixwordimport.cc6
-rw-r--r--filters/kword/applixword/applixwordimport.h4
-rw-r--r--filters/kword/ascii/ExportDialog.cc14
-rw-r--r--filters/kword/ascii/ExportDialogUI.ui6
-rw-r--r--filters/kword/ascii/ImportDialog.cc14
-rw-r--r--filters/kword/ascii/ImportDialogUI.ui6
-rw-r--r--filters/kword/ascii/asciiexport.cc36
-rw-r--r--filters/kword/ascii/asciiexport.h2
-rw-r--r--filters/kword/ascii/asciiimport.cc10
-rw-r--r--filters/kword/ascii/asciiimport.h2
-rw-r--r--filters/kword/docbook/docbookexport.cc20
-rw-r--r--filters/kword/docbook/docbookexport.h2
-rw-r--r--filters/kword/hancomword/hancomwordimport.cpp4
-rw-r--r--filters/kword/hancomword/hancomwordimport.h2
-rw-r--r--filters/kword/hancomword/pole.cpp24
-rw-r--r--filters/kword/html/export/ExportBasic.cc20
-rw-r--r--filters/kword/html/export/ExportBasic.h4
-rw-r--r--filters/kword/html/export/ExportCss.cc114
-rw-r--r--filters/kword/html/export/ExportCss.h8
-rw-r--r--filters/kword/html/export/ExportDialog.cc10
-rw-r--r--filters/kword/html/export/ExportDialogUI.ui12
-rw-r--r--filters/kword/html/export/ExportDocStruct.cc10
-rw-r--r--filters/kword/html/export/ExportDocStruct.h4
-rw-r--r--filters/kword/html/export/ExportFilter.cc44
-rw-r--r--filters/kword/html/export/ExportFilter.h8
-rw-r--r--filters/kword/html/export/htmlexport.cc6
-rw-r--r--filters/kword/html/export/htmlexport.h4
-rw-r--r--filters/kword/html/import/htmlimport.cpp2
-rw-r--r--filters/kword/html/import/htmlimport.h2
-rw-r--r--filters/kword/html/import/khtmlreader.cpp60
-rw-r--r--filters/kword/html/import/khtmlreader.h6
-rw-r--r--filters/kword/html/import/kwdwriter.cpp34
-rw-r--r--filters/kword/html/import/kwdwriter.h12
-rw-r--r--filters/kword/kword1.3/import/kword13formatone.cpp2
-rw-r--r--filters/kword/kword1.3/import/kword13formatone.h6
-rw-r--r--filters/kword/kword1.3/import/kword13import.cpp4
-rw-r--r--filters/kword/kword1.3/import/kword13import.h2
-rw-r--r--filters/kword/kword1.3/import/kword13layout.cpp6
-rw-r--r--filters/kword/kword1.3/import/kword13oasisgenerator.cpp50
-rw-r--r--filters/kword/kword1.3/import/kword13oasisgenerator.h8
-rw-r--r--filters/kword/kword1.3/import/kword13parser.cpp12
-rw-r--r--filters/kword/kword1.3/import/kword13parser.h8
-rw-r--r--filters/kword/kword1.3/import/kword13utils.cpp2
-rw-r--r--filters/kword/latex/export/config.h6
-rw-r--r--filters/kword/latex/export/document.h2
-rw-r--r--filters/kword/latex/export/element.h2
-rw-r--r--filters/kword/latex/export/fileheader.cc4
-rw-r--r--filters/kword/latex/export/fileheader.h2
-rw-r--r--filters/kword/latex/export/format.h2
-rw-r--r--filters/kword/latex/export/formula.h2
-rw-r--r--filters/kword/latex/export/kwordlatexexportdia.cc4
-rw-r--r--filters/kword/latex/export/latexexport.cc4
-rw-r--r--filters/kword/latex/export/latexexport.h4
-rw-r--r--filters/kword/latex/export/latexexportdia.ui2
-rw-r--r--filters/kword/latex/export/layout.cc4
-rw-r--r--filters/kword/latex/export/layout.h4
-rw-r--r--filters/kword/latex/export/para.cc6
-rw-r--r--filters/kword/latex/export/para.h2
-rw-r--r--filters/kword/latex/export/texlauncher.cc2
-rw-r--r--filters/kword/latex/export/textFrame.cc2
-rw-r--r--filters/kword/latex/export/textzone.cc14
-rw-r--r--filters/kword/latex/export/textzone.h4
-rw-r--r--filters/kword/latex/export/variablezone.cc2
-rw-r--r--filters/kword/latex/export/variablezone.h2
-rw-r--r--filters/kword/latex/export/xml2latexparser.h2
-rw-r--r--filters/kword/latex/export/xmlparser.cc12
-rw-r--r--filters/kword/latex/import/generator/document.cc2
-rw-r--r--filters/kword/latex/import/lateximport.cc4
-rw-r--r--filters/kword/latex/import/lateximport.h4
-rw-r--r--filters/kword/latex/import/lateximportdia.cc8
-rw-r--r--filters/kword/latex/import/lateximportdia.h4
-rw-r--r--filters/kword/latex/import/parser/env.cc8
-rw-r--r--filters/kword/latex/import/parser/env.h2
-rw-r--r--filters/kword/latex/status.html8
-rw-r--r--filters/kword/libexport/KWEFBaseWorker.cc2
-rw-r--r--filters/kword/libexport/KWEFBaseWorker.h4
-rw-r--r--filters/kword/libexport/KWEFKWordLeader.cc22
-rw-r--r--filters/kword/libexport/KWEFKWordLeader.h4
-rw-r--r--filters/kword/libexport/KWEFStructures.h6
-rw-r--r--filters/kword/libexport/KWEFUtil.cc6
-rw-r--r--filters/kword/libexport/ProcessDocument.cc130
-rw-r--r--filters/kword/msword/conversion.cpp2
-rw-r--r--filters/kword/msword/conversion.h4
-rw-r--r--filters/kword/msword/document.cpp6
-rw-r--r--filters/kword/msword/mswordimport.cpp2
-rw-r--r--filters/kword/msword/mswordimport.h2
-rw-r--r--filters/kword/msword/texthandler.cpp22
-rw-r--r--filters/kword/msword/texthandler.h2
-rw-r--r--filters/kword/mswrite/ImportDialog.cc4
-rw-r--r--filters/kword/mswrite/ImportDialogUI.ui10
-rw-r--r--filters/kword/mswrite/mswriteexport.cc68
-rw-r--r--filters/kword/mswrite/mswriteexport.h2
-rw-r--r--filters/kword/mswrite/mswriteimport.cc6
-rw-r--r--filters/kword/mswrite/mswriteimport.h2
-rw-r--r--filters/kword/mswrite/status.html4
-rw-r--r--filters/kword/mswrite/structures.h2
-rw-r--r--filters/kword/mswrite/structures_generated.cpp14
-rw-r--r--filters/kword/mswrite/structures_generated.h8
-rw-r--r--filters/kword/oowriter/ExportFilter.cc130
-rw-r--r--filters/kword/oowriter/ExportFilter.h6
-rw-r--r--filters/kword/oowriter/conversion.cc8
-rw-r--r--filters/kword/oowriter/conversion.h2
-rw-r--r--filters/kword/oowriter/oowriterexport.cc4
-rw-r--r--filters/kword/oowriter/oowriterexport.h2
-rw-r--r--filters/kword/oowriter/oowriterimport.cc50
-rw-r--r--filters/kword/oowriter/oowriterimport.h6
-rw-r--r--filters/kword/palmdoc/palmdb.cpp20
-rw-r--r--filters/kword/palmdoc/palmdoc.cpp4
-rw-r--r--filters/kword/palmdoc/palmdocexport.cc10
-rw-r--r--filters/kword/palmdoc/palmdocexport.h2
-rw-r--r--filters/kword/palmdoc/palmdocimport.cc52
-rw-r--r--filters/kword/palmdoc/palmdocimport.h2
-rw-r--r--filters/kword/pdf/FilterDevice.cpp4
-rw-r--r--filters/kword/pdf/FilterPage.cpp22
-rw-r--r--filters/kword/pdf/data.cpp12
-rw-r--r--filters/kword/pdf/dialog.cpp10
-rw-r--r--filters/kword/pdf/fstring.cpp4
-rw-r--r--filters/kword/pdf/fstring.h4
-rw-r--r--filters/kword/pdf/misc.cpp6
-rw-r--r--filters/kword/pdf/pdfdocument.cpp2
-rw-r--r--filters/kword/pdf/pdfdocument.h2
-rw-r--r--filters/kword/pdf/pdfimport.cpp6
-rw-r--r--filters/kword/pdf/pdfimport.h2
-rw-r--r--filters/kword/pdf/xpdf/xpdf/FTFont.cc10
-rw-r--r--filters/kword/pdf/xpdf/xpdf/FontFile.cc10
-rw-r--r--filters/kword/pdf/xpdf/xpdf/GlobalParams.cc20
-rw-r--r--filters/kword/pdf/xpdf/xpdf/GlobalParams.h6
-rw-r--r--filters/kword/pdf/xpdf/xpdf/TTFont.cc10
-rw-r--r--filters/kword/pdf/xpdf/xpdf/UnicodeMap.cc38
-rw-r--r--filters/kword/pdf/xpdf/xpdf/UnicodeMap.h18
-rw-r--r--filters/kword/pdf/xpdf/xpdf/XPDFApp.cc14
-rw-r--r--filters/kword/pdf/xpdf/xpdf/XPDFApp.h4
-rw-r--r--filters/kword/pdf/xpdf/xpdf/XPDFTree.cc134
-rw-r--r--filters/kword/pdf/xpdf/xpdf/XPDFTreeP.h6
-rw-r--r--filters/kword/pdf/xpdf/xpdf/XPDFViewer.cc8
-rw-r--r--filters/kword/pdf/xpdf/xpdf/xpdf.cc6
-rw-r--r--filters/kword/rtf/export/ExportFilter.cc202
-rw-r--r--filters/kword/rtf/export/ExportFilter.h8
-rw-r--r--filters/kword/rtf/export/rtfexport.cc4
-rw-r--r--filters/kword/rtf/export/rtfexport.h4
-rw-r--r--filters/kword/rtf/import/rtfimport.cpp250
-rw-r--r--filters/kword/rtf/import/rtfimport.h22
-rw-r--r--filters/kword/rtf/import/rtfimport_dom.cpp4
-rw-r--r--filters/kword/rtf/status.html8
-rw-r--r--filters/kword/starwriter/pole.cpp24
-rw-r--r--filters/kword/starwriter/starwriterimport.cc10
-rw-r--r--filters/kword/starwriter/starwriterimport.h2
-rw-r--r--filters/kword/starwriter/status.html2
-rw-r--r--filters/kword/wml/wmlexport.cc14
-rw-r--r--filters/kword/wml/wmlexport.h2
-rw-r--r--filters/kword/wml/wmlimport.cc14
-rw-r--r--filters/kword/wml/wmlimport.h2
-rw-r--r--filters/kword/wml/wmlparser.cpp2
-rw-r--r--filters/kword/wordperfect/export/wp5.cc10
-rw-r--r--filters/kword/wordperfect/export/wp5.h2
-rw-r--r--filters/kword/wordperfect/export/wp6.cc20
-rw-r--r--filters/kword/wordperfect/export/wp6.h2
-rw-r--r--filters/kword/wordperfect/export/wpexport.cc8
-rw-r--r--filters/kword/wordperfect/export/wpexport.h2
-rw-r--r--filters/kword/wordperfect/import/kwordfilter.cpp48
-rw-r--r--filters/kword/wordperfect/import/parser.cpp2
-rw-r--r--filters/kword/wordperfect/import/wpimport.cc2
-rw-r--r--filters/kword/wordperfect/import/wpimport.h2
-rw-r--r--filters/kword/wordperfect/status_old.html2
-rw-r--r--filters/libdialogfilter/exportsizedia.cpp4
-rw-r--r--filters/liboofilter/ooutils.cc22
-rw-r--r--filters/liboofilter/ooutils.h8
-rw-r--r--filters/olefilters/olefilter.cc10
-rw-r--r--filters/olefilters/olefilter.h6
-rw-r--r--filters/olefilters/powerpoint97/powerpoint.cc8
-rw-r--r--filters/olefilters/powerpoint97/pptSlide.h2
-rw-r--r--filters/olefilters/powerpoint97/pptxml.cc2
-rw-r--r--filters/xsltfilter/export/xsl/kword/xslfo/main.xsl4
-rw-r--r--filters/xsltfilter/export/xsltdialog.ui6
-rw-r--r--filters/xsltfilter/export/xsltexport.cc2
-rw-r--r--filters/xsltfilter/export/xsltexport.h2
-rw-r--r--filters/xsltfilter/export/xsltexportdia.cc6
-rw-r--r--filters/xsltfilter/import/xsltdialog.ui6
-rw-r--r--filters/xsltfilter/import/xsltimport.cc4
-rw-r--r--filters/xsltfilter/import/xsltimport.h4
-rw-r--r--filters/xsltfilter/import/xsltimportdia.cc6
-rw-r--r--filters/xsltfilter/kword2xslfo.xsl4
385 files changed, 2397 insertions, 2397 deletions
diff --git a/filters/chalk/gmagick/kis_image_magick_converter.cc b/filters/chalk/gmagick/kis_image_magick_converter.cc
index 5bce37b2..2194831a 100644
--- a/filters/chalk/gmagick/kis_image_magick_converter.cc
+++ b/filters/chalk/gmagick/kis_image_magick_converter.cc
@@ -202,7 +202,7 @@ namespace {
rawdata.resize(len);
memcpy(rawdata.data(), imgAttr -> value, len);
- KisAnnotation* annotation = new KisAnnotation( TQString("chalk_attribute:%1").arg(TQString(imgAttr -> key)), "", rawdata );
+ KisAnnotation* annotation = new KisAnnotation( TQString("chalk_attribute:%1").tqarg(TQString(imgAttr -> key)), "", rawdata );
Q_CHECK_PTR(annotation);
image -> addAnnotation(annotation);
@@ -258,7 +258,7 @@ namespace {
memcpy(rawdata.data(), attr -> value, len);
annotation = new KisAnnotation(
- TQString("chalk_attribute:%1").arg(TQString(attr -> key)), "", rawdata);
+ TQString("chalk_attribute:%1").tqarg(TQString(attr -> key)), "", rawdata);
Q_CHECK_PTR(annotation);
image -> addAnnotation(annotation);
diff --git a/filters/chalk/gmagick/magickexport.cpp b/filters/chalk/gmagick/magickexport.cpp
index 2c49532a..e56f53d2 100644
--- a/filters/chalk/gmagick/magickexport.cpp
+++ b/filters/chalk/gmagick/magickexport.cpp
@@ -39,7 +39,7 @@ MagickExport::~MagickExport()
{
}
-KoFilter::ConversionStatus MagickExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus MagickExport::convert(const TQCString& from, const TQCString& to)
{
kdDebug(41008) << "magick export! From: " << from << ", To: " << to << "\n";
diff --git a/filters/chalk/gmagick/magickexport.h b/filters/chalk/gmagick/magickexport.h
index b1b73bb5..46a080f4 100644
--- a/filters/chalk/gmagick/magickexport.h
+++ b/filters/chalk/gmagick/magickexport.h
@@ -30,7 +30,7 @@ public:
virtual ~MagickExport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif // MAGICKEXPORT_H_
diff --git a/filters/chalk/gmagick/magickimport.cpp b/filters/chalk/gmagick/magickimport.cpp
index 9400c5bd..dbfe6da8 100644
--- a/filters/chalk/gmagick/magickimport.cpp
+++ b/filters/chalk/gmagick/magickimport.cpp
@@ -41,7 +41,7 @@ MagickImport::~MagickImport()
{
}
-KoFilter::ConversionStatus MagickImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversiontqStatus MagickImport::convert(const TQCString&, const TQCString& to)
{
kdDebug(41008) << "Importing using MagickImport!\n";
diff --git a/filters/chalk/gmagick/magickimport.h b/filters/chalk/gmagick/magickimport.h
index 6ade3a20..22bf3002 100644
--- a/filters/chalk/gmagick/magickimport.h
+++ b/filters/chalk/gmagick/magickimport.h
@@ -30,7 +30,7 @@ public:
virtual ~MagickImport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif // MAGICKIMPORT_H_
diff --git a/filters/chalk/jpeg/kis_jpeg_converter.cc b/filters/chalk/jpeg/kis_jpeg_converter.cc
index c9772d9a..5fa8e78a 100644
--- a/filters/chalk/jpeg/kis_jpeg_converter.cc
+++ b/filters/chalk/jpeg/kis_jpeg_converter.cc
@@ -73,7 +73,7 @@ namespace {
{
return JCS_CMYK;
}
- KMessageBox::error(0, i18n("Cannot export images in %1.\n").arg(cs->id().name()) ) ;
+ KMessageBox::error(0, i18n("Cannot export images in %1.\n").tqarg(cs->id().name()) ) ;
return JCS_UNKNOWN;
}
diff --git a/filters/chalk/jpeg/kis_jpeg_export.cc b/filters/chalk/jpeg/kis_jpeg_export.cc
index c0eef02d..edfbbc02 100644
--- a/filters/chalk/jpeg/kis_jpeg_export.cc
+++ b/filters/chalk/jpeg/kis_jpeg_export.cc
@@ -85,7 +85,7 @@ KisJPEGExport::~KisJPEGExport()
{
}
-KoFilter::ConversionStatus KisJPEGExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus KisJPEGExport::convert(const TQCString& from, const TQCString& to)
{
kdDebug(41008) << "JPEG export! From: " << from << ", To: " << to << "\n";
diff --git a/filters/chalk/jpeg/kis_jpeg_export.h b/filters/chalk/jpeg/kis_jpeg_export.h
index 918c44b5..ea55c12c 100644
--- a/filters/chalk/jpeg/kis_jpeg_export.h
+++ b/filters/chalk/jpeg/kis_jpeg_export.h
@@ -29,7 +29,7 @@ class KisJPEGExport : public KoFilter {
KisJPEGExport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~KisJPEGExport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif
diff --git a/filters/chalk/jpeg/kis_jpeg_import.cc b/filters/chalk/jpeg/kis_jpeg_import.cc
index bacec679..2ca7c4c2 100644
--- a/filters/chalk/jpeg/kis_jpeg_import.cc
+++ b/filters/chalk/jpeg/kis_jpeg_import.cc
@@ -41,7 +41,7 @@ KisJPEGImport::~KisJPEGImport()
{
}
-KoFilter::ConversionStatus KisJPEGImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversiontqStatus KisJPEGImport::convert(const TQCString&, const TQCString& to)
{
kdDebug(41008) << "Importing using JPEGImport!\n";
diff --git a/filters/chalk/jpeg/kis_jpeg_import.h b/filters/chalk/jpeg/kis_jpeg_import.h
index 9db52292..a32c367f 100644
--- a/filters/chalk/jpeg/kis_jpeg_import.h
+++ b/filters/chalk/jpeg/kis_jpeg_import.h
@@ -28,7 +28,7 @@ class KisJPEGImport : public KoFilter {
KisJPEGImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~KisJPEGImport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif
diff --git a/filters/chalk/jpeg/kis_wdg_options_jpeg.ui b/filters/chalk/jpeg/kis_wdg_options_jpeg.ui
index 456fc67a..cb405324 100644
--- a/filters/chalk/jpeg/kis_wdg_options_jpeg.ui
+++ b/filters/chalk/jpeg/kis_wdg_options_jpeg.ui
@@ -21,7 +21,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -34,13 +34,13 @@
<property name="text">
<string>Quality:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignTop</set>
</property>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<vbox>
<property name="name">
@@ -80,7 +80,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -101,7 +101,7 @@
<property name="text">
<string>Best</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -136,7 +136,7 @@ Enabling progressive will cause the image to be displayed by the browser even wh
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>61</height>
diff --git a/filters/chalk/magick/kis_image_magick_converter.cc b/filters/chalk/magick/kis_image_magick_converter.cc
index 880a52c6..dd16dd0e 100644
--- a/filters/chalk/magick/kis_image_magick_converter.cc
+++ b/filters/chalk/magick/kis_image_magick_converter.cc
@@ -206,7 +206,7 @@ namespace {
memcpy(rawdata.data(), attr -> value, len);
annotation = new KisAnnotation(
- TQString("chalk_attribute:%1").arg(TQString(attr -> key)), "", rawdata);
+ TQString("chalk_attribute:%1").tqarg(TQString(attr -> key)), "", rawdata);
Q_CHECK_PTR(annotation);
image -> addAnnotation(annotation);
diff --git a/filters/chalk/magick/magickexport.cpp b/filters/chalk/magick/magickexport.cpp
index 8c1e3365..09f351c1 100644
--- a/filters/chalk/magick/magickexport.cpp
+++ b/filters/chalk/magick/magickexport.cpp
@@ -39,7 +39,7 @@ MagickExport::~MagickExport()
{
}
-KoFilter::ConversionStatus MagickExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus MagickExport::convert(const TQCString& from, const TQCString& to)
{
kdDebug(41008) << "magick export! From: " << from << ", To: " << to << "\n";
diff --git a/filters/chalk/magick/magickexport.h b/filters/chalk/magick/magickexport.h
index b1b73bb5..46a080f4 100644
--- a/filters/chalk/magick/magickexport.h
+++ b/filters/chalk/magick/magickexport.h
@@ -30,7 +30,7 @@ public:
virtual ~MagickExport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif // MAGICKEXPORT_H_
diff --git a/filters/chalk/magick/magickimport.cpp b/filters/chalk/magick/magickimport.cpp
index d3e5bbb9..b5f73d19 100644
--- a/filters/chalk/magick/magickimport.cpp
+++ b/filters/chalk/magick/magickimport.cpp
@@ -41,7 +41,7 @@ MagickImport::~MagickImport()
{
}
-KoFilter::ConversionStatus MagickImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversiontqStatus MagickImport::convert(const TQCString&, const TQCString& to)
{
kdDebug(41008) << "Importing using MagickImport!\n";
diff --git a/filters/chalk/magick/magickimport.h b/filters/chalk/magick/magickimport.h
index 6ade3a20..22bf3002 100644
--- a/filters/chalk/magick/magickimport.h
+++ b/filters/chalk/magick/magickimport.h
@@ -30,7 +30,7 @@ public:
virtual ~MagickImport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif // MAGICKIMPORT_H_
diff --git a/filters/chalk/openexr/kis_openexr_export.cpp b/filters/chalk/openexr/kis_openexr_export.cpp
index 062a072f..4859f5d9 100644
--- a/filters/chalk/openexr/kis_openexr_export.cpp
+++ b/filters/chalk/openexr/kis_openexr_export.cpp
@@ -57,7 +57,7 @@ KisOpenEXRExport::~KisOpenEXRExport()
{
}
-KoFilter::ConversionStatus KisOpenEXRExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus KisOpenEXRExport::convert(const TQCString& from, const TQCString& to)
{
if (to != "image/x-exr" || from != "application/x-chalk") {
return KoFilter::NotImplemented;
diff --git a/filters/chalk/openexr/kis_openexr_export.h b/filters/chalk/openexr/kis_openexr_export.h
index ea62421c..7f0c71f9 100644
--- a/filters/chalk/openexr/kis_openexr_export.h
+++ b/filters/chalk/openexr/kis_openexr_export.h
@@ -31,7 +31,7 @@ public:
virtual ~KisOpenEXRExport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif // KIS_OPENEXR_EXPORT_H_
diff --git a/filters/chalk/openexr/kis_openexr_import.cpp b/filters/chalk/openexr/kis_openexr_import.cpp
index 8546edb2..974d4a67 100644
--- a/filters/chalk/openexr/kis_openexr_import.cpp
+++ b/filters/chalk/openexr/kis_openexr_import.cpp
@@ -62,7 +62,7 @@ KisOpenEXRImport::~KisOpenEXRImport()
{
}
-KoFilter::ConversionStatus KisOpenEXRImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus KisOpenEXRImport::convert(const TQCString& from, const TQCString& to)
{
if (from != "image/x-exr" || to != "application/x-chalk") {
return KoFilter::NotImplemented;
diff --git a/filters/chalk/openexr/kis_openexr_import.h b/filters/chalk/openexr/kis_openexr_import.h
index 8654df54..8bddb4f5 100644
--- a/filters/chalk/openexr/kis_openexr_import.h
+++ b/filters/chalk/openexr/kis_openexr_import.h
@@ -31,7 +31,7 @@ public:
virtual ~KisOpenEXRImport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif // KIS_OPENEXR_IMPORT_H_
diff --git a/filters/chalk/pdf/kis_pdf_import.cpp b/filters/chalk/pdf/kis_pdf_import.cpp
index ed504f67..2cef93e9 100644
--- a/filters/chalk/pdf/kis_pdf_import.cpp
+++ b/filters/chalk/pdf/kis_pdf_import.cpp
@@ -63,7 +63,7 @@ KisPDFImport::~KisPDFImport()
{
}
-KisPDFImport::ConversionStatus KisPDFImport::convert(const TQCString& , const TQCString& )
+KisPDFImport::ConversiontqStatus KisPDFImport::convert(const TQCString& , const TQCString& )
{
TQString filename = m_chain -> inputFile();
kdDebug(41008) << "Importing using PDFImport!" << filename << endl;
@@ -141,7 +141,7 @@ KisPDFImport::ConversionStatus KisPDFImport::convert(const TQCString& , const TQ
TQValueList<int> pages = wdg->pages();
for(TQValueList<int>::const_iterator it = pages.begin(); it != pages.end(); ++it)
{
- KisPaintLayer* layer = new KisPaintLayer(img, TQString(i18n("Page %1")).arg( TQString::number(*it) + 1), TQ_UINT8_MAX);
+ KisPaintLayer* layer = new KisPaintLayer(img, TQString(i18n("Page %1")).tqarg( TQString::number(*it) + 1), TQ_UINT8_MAX);
layer->paintDevice()->convertFromTQImage( pdoc->getPage( *it )->renderToImage(wdg->intHorizontal->value(), wdg->intVertical->value() ), "");
img->addLayer(layer, img->rootLayer(), 0);
}
diff --git a/filters/chalk/pdf/kis_pdf_import.h b/filters/chalk/pdf/kis_pdf_import.h
index ffb9c79e..06e22288 100644
--- a/filters/chalk/pdf/kis_pdf_import.h
+++ b/filters/chalk/pdf/kis_pdf_import.h
@@ -29,7 +29,7 @@ class KisPDFImport : public KoFilter{
KisPDFImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~KisPDFImport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif
diff --git a/filters/chalk/pdf/pdfimportwidgetbase.ui b/filters/chalk/pdf/pdfimportwidgetbase.ui
index 88d24dc6..697a3e30 100644
--- a/filters/chalk/pdf/pdfimportwidgetbase.ui
+++ b/filters/chalk/pdf/pdfimportwidgetbase.ui
@@ -40,7 +40,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
@@ -56,7 +56,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -65,7 +65,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<grid>
<property name="name">
@@ -141,7 +141,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>31</width>
<height>20</height>
@@ -160,7 +160,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -176,7 +176,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -185,7 +185,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<grid>
<property name="name">
@@ -235,7 +235,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>51</width>
<height>20</height>
diff --git a/filters/chalk/png/kis_png_converter.cc b/filters/chalk/png/kis_png_converter.cc
index d5c4a080..d3cce618 100644
--- a/filters/chalk/png/kis_png_converter.cc
+++ b/filters/chalk/png/kis_png_converter.cc
@@ -62,7 +62,7 @@ namespace {
return alpha ? PNG_COLOR_TYPE_RGB_ALPHA : PNG_COLOR_TYPE_RGB;
}
- KMessageBox::error(0, i18n("Cannot export images in %1.\n").arg(cs->id().name()) ) ;
+ KMessageBox::error(0, i18n("Cannot export images in %1.\n").tqarg(cs->id().name()) ) ;
return -1;
}
diff --git a/filters/chalk/png/kis_png_export.cc b/filters/chalk/png/kis_png_export.cc
index ace65954..8154866a 100644
--- a/filters/chalk/png/kis_png_export.cc
+++ b/filters/chalk/png/kis_png_export.cc
@@ -49,7 +49,7 @@ KisPNGExport::~KisPNGExport()
{
}
-KoFilter::ConversionStatus KisPNGExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus KisPNGExport::convert(const TQCString& from, const TQCString& to)
{
kdDebug(41008) << "Png export! From: " << from << ", To: " << to << "\n";
diff --git a/filters/chalk/png/kis_png_export.h b/filters/chalk/png/kis_png_export.h
index 562628a9..433b68e3 100644
--- a/filters/chalk/png/kis_png_export.h
+++ b/filters/chalk/png/kis_png_export.h
@@ -29,7 +29,7 @@ class KisPNGExport : public KoFilter {
KisPNGExport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~KisPNGExport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif
diff --git a/filters/chalk/png/kis_png_import.cc b/filters/chalk/png/kis_png_import.cc
index dc2a6325..ccfe4388 100644
--- a/filters/chalk/png/kis_png_import.cc
+++ b/filters/chalk/png/kis_png_import.cc
@@ -41,7 +41,7 @@ KisPNGImport::~KisPNGImport()
{
}
-KoFilter::ConversionStatus KisPNGImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversiontqStatus KisPNGImport::convert(const TQCString&, const TQCString& to)
{
kdDebug(41008) << "Importing using PNGImport!\n";
diff --git a/filters/chalk/png/kis_png_import.h b/filters/chalk/png/kis_png_import.h
index 0412e7bd..3487d24d 100644
--- a/filters/chalk/png/kis_png_import.h
+++ b/filters/chalk/png/kis_png_import.h
@@ -28,7 +28,7 @@ class KisPNGImport : public KoFilter {
KisPNGImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~KisPNGImport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif
diff --git a/filters/chalk/png/kis_wdg_options_png.ui b/filters/chalk/png/kis_wdg_options_png.ui
index 5797c407..ec5e0ba8 100644
--- a/filters/chalk/png/kis_wdg_options_png.ui
+++ b/filters/chalk/png/kis_wdg_options_png.ui
@@ -24,7 +24,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
@@ -37,7 +37,7 @@
<property name="text">
<string>Compress:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignTop</set>
</property>
<property name="toolTip" stdset="0">
@@ -50,7 +50,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<vbox>
<property name="name">
@@ -88,7 +88,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -113,7 +113,7 @@
<property name="text">
<string>Small</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="whatsThis" stdset="0">
@@ -137,7 +137,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>5</height>
diff --git a/filters/chalk/raw/kis_raw_import.cpp b/filters/chalk/raw/kis_raw_import.cpp
index 4ec8f028..f006f913 100644
--- a/filters/chalk/raw/kis_raw_import.cpp
+++ b/filters/chalk/raw/kis_raw_import.cpp
@@ -103,7 +103,7 @@ KisRawImport::~KisRawImport()
delete m_process;
}
-KoFilter::ConversionStatus KisRawImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus KisRawImport::convert(const TQCString& from, const TQCString& to)
{
if (from != "image/x-raw" || to != "application/x-chalk") {
return KoFilter::NotImplemented;
@@ -458,7 +458,7 @@ void KisRawImport::slotReceivedStdout(KProcess *, char *buffer, int buflen)
//kdDebug(41008) << "stdout received " << buflen << " bytes on stdout.\n";
//kdDebug(41008) << TQString::fromAscii(buffer, buflen) << "\n";
int oldSize = m_data->size();
- m_data->resize(oldSize + buflen, TQGArray::SpeedOptim);
+ m_data->tqresize(oldSize + buflen, TQGArray::SpeedOptim);
memcpy(m_data->data() + oldSize, buffer, buflen);
}
diff --git a/filters/chalk/raw/kis_raw_import.h b/filters/chalk/raw/kis_raw_import.h
index e02caeed..17fd576c 100644
--- a/filters/chalk/raw/kis_raw_import.h
+++ b/filters/chalk/raw/kis_raw_import.h
@@ -37,7 +37,7 @@ public:
virtual ~KisRawImport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
private slots:
diff --git a/filters/chalk/raw/wdgrawimport.ui b/filters/chalk/raw/wdgrawimport.ui
index 59d9642e..26115762 100644
--- a/filters/chalk/raw/wdgrawimport.ui
+++ b/filters/chalk/raw/wdgrawimport.ui
@@ -36,7 +36,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>200</width>
<height>150</height>
@@ -45,7 +45,7 @@
</widget>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<vbox>
<property name="name">
@@ -304,7 +304,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>500</width>
<height>20</height>
@@ -321,7 +321,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>120</height>
@@ -330,7 +330,7 @@
</spacer>
<widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="3">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -355,7 +355,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout10</cstring>
+ <cstring>tqlayout10</cstring>
</property>
<hbox>
<property name="name">
@@ -408,7 +408,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>20</height>
diff --git a/filters/chalk/tiff/kis_dlg_options_tiff.cpp b/filters/chalk/tiff/kis_dlg_options_tiff.cpp
index 59784009..7a6ad9ca 100644
--- a/filters/chalk/tiff/kis_dlg_options_tiff.cpp
+++ b/filters/chalk/tiff/kis_dlg_options_tiff.cpp
@@ -39,7 +39,7 @@ KisDlgOptionsTIFF::KisDlgOptionsTIFF(TQWidget *parent, const char *name)
connect(optionswdg->flatten, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(flattenToggled( bool) ) );
setMainWidget(optionswdg);
kapp->restoreOverrideCursor();
- setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
+ tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
}
KisDlgOptionsTIFF::~KisDlgOptionsTIFF()
diff --git a/filters/chalk/tiff/kis_tiff_export.cc b/filters/chalk/tiff/kis_tiff_export.cc
index 28495ff4..bcd3f22e 100644
--- a/filters/chalk/tiff/kis_tiff_export.cc
+++ b/filters/chalk/tiff/kis_tiff_export.cc
@@ -50,7 +50,7 @@ KisTIFFExport::~KisTIFFExport()
{
}
-KoFilter::ConversionStatus KisTIFFExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus KisTIFFExport::convert(const TQCString& from, const TQCString& to)
{
kdDebug(41008) << "Tiff export! From: " << from << ", To: " << to << "\n";
diff --git a/filters/chalk/tiff/kis_tiff_export.h b/filters/chalk/tiff/kis_tiff_export.h
index bb78fd4f..9efeb940 100644
--- a/filters/chalk/tiff/kis_tiff_export.h
+++ b/filters/chalk/tiff/kis_tiff_export.h
@@ -29,7 +29,7 @@ class KisTIFFExport : public KoFilter {
KisTIFFExport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~KisTIFFExport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif
diff --git a/filters/chalk/tiff/kis_tiff_import.cc b/filters/chalk/tiff/kis_tiff_import.cc
index 8c785ffe..89d1763f 100644
--- a/filters/chalk/tiff/kis_tiff_import.cc
+++ b/filters/chalk/tiff/kis_tiff_import.cc
@@ -41,7 +41,7 @@ KisTIFFImport::~KisTIFFImport()
{
}
-KoFilter::ConversionStatus KisTIFFImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversiontqStatus KisTIFFImport::convert(const TQCString&, const TQCString& to)
{
kdDebug(41008) << "Importing using TIFFImport!\n";
diff --git a/filters/chalk/tiff/kis_tiff_import.h b/filters/chalk/tiff/kis_tiff_import.h
index 77cfd0de..b9e33d06 100644
--- a/filters/chalk/tiff/kis_tiff_import.h
+++ b/filters/chalk/tiff/kis_tiff_import.h
@@ -28,7 +28,7 @@ class KisTIFFImport : public KoFilter {
KisTIFFImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~KisTIFFImport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif
diff --git a/filters/chalk/tiff/kis_tiff_writer_visitor.cpp b/filters/chalk/tiff/kis_tiff_writer_visitor.cpp
index da399a53..681e66b7 100644
--- a/filters/chalk/tiff/kis_tiff_writer_visitor.cpp
+++ b/filters/chalk/tiff/kis_tiff_writer_visitor.cpp
@@ -63,7 +63,7 @@ namespace {
return true;
}
- KMessageBox::error(0, i18n("Cannot export images in %1.\n").arg(cs->id().name()) ) ;
+ KMessageBox::error(0, i18n("Cannot export images in %1.\n").tqarg(cs->id().name()) ) ;
return false;
}
diff --git a/filters/chalk/tiff/kis_wdg_options_tiff.ui b/filters/chalk/tiff/kis_wdg_options_tiff.ui
index 29038890..d840dc8d 100644
--- a/filters/chalk/tiff/kis_wdg_options_tiff.ui
+++ b/filters/chalk/tiff/kis_wdg_options_tiff.ui
@@ -51,7 +51,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout10</cstring>
+ <cstring>tqlayout10</cstring>
</property>
<hbox>
<property name="name">
@@ -119,7 +119,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout7</cstring>
+ <cstring>tqlayout7</cstring>
</property>
<hbox>
<property name="name">
@@ -283,13 +283,13 @@ You can uncheck the box if you are not using transparancy and you want to make t
<property name="text">
<string>Quality:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignTop</set>
</property>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<vbox>
<property name="name">
@@ -329,7 +329,7 @@ You can uncheck the box if you are not using transparancy and you want to make t
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4_2</cstring>
+ <cstring>tqlayout4_2</cstring>
</property>
<hbox>
<property name="name">
@@ -350,7 +350,7 @@ You can uncheck the box if you are not using transparancy and you want to make t
<property name="text">
<string>Best</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -405,7 +405,7 @@ You can uncheck the box if you are not using transparancy and you want to make t
<property name="text">
<string>Compress:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignTop</set>
</property>
<property name="toolTip" stdset="0">
@@ -418,7 +418,7 @@ You can uncheck the box if you are not using transparancy and you want to make t
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5_2</cstring>
+ <cstring>tqlayout5_2</cstring>
</property>
<vbox>
<property name="name">
@@ -456,7 +456,7 @@ You can uncheck the box if you are not using transparancy and you want to make t
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -481,7 +481,7 @@ You can uncheck the box if you are not using transparancy and you want to make t
<property name="text">
<string>Small</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="whatsThis" stdset="0">
@@ -608,7 +608,7 @@ You can uncheck the box if you are not using transparancy and you want to make t
<property name="text">
<string>Compress:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignTop</set>
</property>
<property name="toolTip" stdset="0">
@@ -621,7 +621,7 @@ You can uncheck the box if you are not using transparancy and you want to make t
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5_2_2</cstring>
+ <cstring>tqlayout5_2_2</cstring>
</property>
<vbox>
<property name="name">
@@ -659,7 +659,7 @@ You can uncheck the box if you are not using transparancy and you want to make t
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4_3</cstring>
+ <cstring>tqlayout4_3</cstring>
</property>
<hbox>
<property name="name">
@@ -684,7 +684,7 @@ You can uncheck the box if you are not using transparancy and you want to make t
<property name="text">
<string>Small</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="whatsThis" stdset="0">
@@ -711,7 +711,7 @@ You can uncheck the box if you are not using transparancy and you want to make t
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
diff --git a/filters/chalk/xcf/xcf/xcf-load.cc b/filters/chalk/xcf/xcf/xcf-load.cc
index 3209e181..90d61755 100644
--- a/filters/chalk/xcf/xcf/xcf-load.cc
+++ b/filters/chalk/xcf/xcf/xcf-load.cc
@@ -173,7 +173,7 @@ xcf_load_image (XcfInfo * info)
/* add the layer to the image if its not the floating selection */
if (layer != info->floating_sel)
gimp_image_add_layer (gimage, layer,
- gimp_container_num_children (gimage->layers));
+ gimp_container_num_tqchildren (gimage->layers));
/* restore the saved position so we'll be ready to
* read the next offset.
@@ -1494,7 +1494,7 @@ xcf_load_old_path (XcfInfo * info, KisImage * gimage)
GIMP_ITEM (vectors)->tattoo = tattoo;
gimp_image_add_vectors (gimage, vectors,
- gimp_container_num_children (gimage->vectors));
+ gimp_container_num_tqchildren (gimage->vectors));
return TRUE;
}
@@ -1674,7 +1674,7 @@ xcf_load_vector (XcfInfo * info, KisImage * gimage)
}
gimp_image_add_vectors (gimage, vectors,
- gimp_container_num_children (gimage->vectors));
+ gimp_container_num_tqchildren (gimage->vectors));
return TRUE;
}
diff --git a/filters/chalk/xcf/xcf/xcf-save.cc b/filters/chalk/xcf/xcf/xcf-save.cc
index a0dbb9b5..3544baf4 100644
--- a/filters/chalk/xcf/xcf/xcf-save.cc
+++ b/filters/chalk/xcf/xcf/xcf-save.cc
@@ -289,8 +289,8 @@ xcf_save_image (XcfInfo *info,
xcf_write_int32_print_error (info, (TQ_INT32 *) &gimage->base_type, 1);
/* determine the number of layers and channels in the image */
- nlayers = (TQ_UINT32) gimp_container_num_children (gimage->layers);
- nchannels = (TQ_UINT32) gimp_container_num_children (gimage->channels);
+ nlayers = (TQ_UINT32) gimp_container_num_tqchildren (gimage->layers);
+ nchannels = (TQ_UINT32) gimp_container_num_tqchildren (gimage->channels);
/* check and see if we have to save out the selection */
have_selection = gimp_channel_bounds (gimp_image_get_mask (gimage),
@@ -442,7 +442,7 @@ xcf_save_image_props (XcfInfo *info,
if (unit < _gimp_unit_get_number_of_built_in_units (gimage->gimp))
xcf_check_error (xcf_save_prop (info, gimage, PROP_UNIT, error, unit));
- if (gimp_container_num_children (gimage->vectors) > 0)
+ if (gimp_container_num_tqchildren (gimage->vectors) > 0)
{
if (gimp_vectors_compat_is_compatible (gimage))
xcf_check_error (xcf_save_prop (info, gimage, PROP_PATHS, error));
@@ -1581,7 +1581,7 @@ xcf_save_old_paths (XcfInfo *info,
* then each path:-
*/
- num_paths = gimp_container_num_children (gimage->vectors);
+ num_paths = gimp_container_num_tqchildren (gimage->vectors);
active_vectors = gimp_image_get_active_vectors (gimage);
@@ -1696,7 +1696,7 @@ xcf_save_vectors (XcfInfo *info,
active_index = gimp_container_get_child_index (gimage->vectors,
GIMP_OBJECT (active_vectors));
- num_paths = gimp_container_num_children (gimage->vectors);
+ num_paths = gimp_container_num_tqchildren (gimage->vectors);
xcf_write_int32_check_error (info, &version, 1);
xcf_write_int32_check_error (info, &active_index, 1);
diff --git a/filters/chalk/xcf/xcfexport.cpp b/filters/chalk/xcf/xcfexport.cpp
index 06bcf96f..b26fdba8 100644
--- a/filters/chalk/xcf/xcfexport.cpp
+++ b/filters/chalk/xcf/xcfexport.cpp
@@ -41,7 +41,7 @@ XCFExport::~XCFExport()
{
}
-KoFilter::ConversionStatus XCFExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus XCFExport::convert(const TQCString& from, const TQCString& to)
{
kdDebug(41008) << "xcf export! From: " << from << ", To: " << to << "\n";
diff --git a/filters/chalk/xcf/xcfexport.h b/filters/chalk/xcf/xcfexport.h
index 34595b06..b8f260fb 100644
--- a/filters/chalk/xcf/xcfexport.h
+++ b/filters/chalk/xcf/xcfexport.h
@@ -30,7 +30,7 @@ public:
virtual ~XCFExport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif // XCFEXPORT_H_
diff --git a/filters/chalk/xcf/xcfimport.cpp b/filters/chalk/xcf/xcfimport.cpp
index 6b81ec67..6f07ebcf 100644
--- a/filters/chalk/xcf/xcfimport.cpp
+++ b/filters/chalk/xcf/xcfimport.cpp
@@ -39,7 +39,7 @@ XCFImport::~XCFImport()
{
}
-KoFilter::ConversionStatus XCFImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversiontqStatus XCFImport::convert(const TQCString&, const TQCString& to)
{
kdDebug(41008) << "Importing using XCFImport!\n";
diff --git a/filters/chalk/xcf/xcfimport.h b/filters/chalk/xcf/xcfimport.h
index 27f2cbfe..434566ba 100644
--- a/filters/chalk/xcf/xcfimport.h
+++ b/filters/chalk/xcf/xcfimport.h
@@ -30,7 +30,7 @@ public:
virtual ~XCFImport();
public:
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif // XCFIMPORT_H_
diff --git a/filters/generic_wrapper/generic_filter.cc b/filters/generic_wrapper/generic_filter.cc
index 4a1b1f08..f3ae2b13 100644
--- a/filters/generic_wrapper/generic_filter.cc
+++ b/filters/generic_wrapper/generic_filter.cc
@@ -19,7 +19,7 @@
#include <stdlib.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
#include <kdebug.h>
@@ -41,7 +41,7 @@ GenericFilter::GenericFilter(KoFilter *, const char *, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversionStatus GenericFilter::convert( const TQCString &from, const TQCString &to )
+KoFilter::ConversiontqStatus GenericFilter::convert( const TQCString &from, const TQCString &to )
{
//find the right script to use
@@ -80,7 +80,7 @@ KoFilter::ConversionStatus GenericFilter::convert( const TQCString &from, const
return KoFilter::NotImplemented;
}
-KoFilter::ConversionStatus GenericFilter::doImport()
+KoFilter::ConversiontqStatus GenericFilter::doImport()
{
KTempFile temp(TQString("genericfilter-"));
temp.setAutoDelete(true);
@@ -119,7 +119,7 @@ KoFilter::ConversionStatus GenericFilter::doImport()
return KoFilter::OK;
}
-KoFilter::ConversionStatus GenericFilter::doExport()
+KoFilter::ConversiontqStatus GenericFilter::doExport()
{
return KoFilter::NotImplemented;
}
diff --git a/filters/generic_wrapper/generic_filter.h b/filters/generic_wrapper/generic_filter.h
index 71448fce..7b47406b 100644
--- a/filters/generic_wrapper/generic_filter.h
+++ b/filters/generic_wrapper/generic_filter.h
@@ -36,11 +36,11 @@ public:
GenericFilter(KoFilter *parent, const char *name, const TQStringList&);
virtual ~GenericFilter() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from,
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from,
const TQCString& to );
private:
- KoFilter::ConversionStatus doImport();
- KoFilter::ConversionStatus doExport();
+ KoFilter::ConversiontqStatus doImport();
+ KoFilter::ConversiontqStatus doExport();
TQString m_to, m_from, m_exec;
KoStore* m_out;
};
diff --git a/filters/karbon/ai/aielement.cc b/filters/karbon/ai/aielement.cc
index 023943b9..608bdf61 100644
--- a/filters/karbon/ai/aielement.cc
+++ b/filters/karbon/ai/aielement.cc
@@ -360,7 +360,7 @@ AIElement::Type AIElement::nameToType( const char* name )
const TQString AIElement::toString() const
{
if ( d->typ == CString )
- return TQString::fromLatin1( toCString() );
+ return TQString::tqfromLatin1( toCString() );
if ( d->typ == Int )
return TQString::number( toInt() );
if ( d->typ == UInt )
diff --git a/filters/karbon/ai/aiimport.cc b/filters/karbon/ai/aiimport.cc
index 4e854995..4a201ec5 100644
--- a/filters/karbon/ai/aiimport.cc
+++ b/filters/karbon/ai/aiimport.cc
@@ -56,7 +56,7 @@ AiImport::~AiImport()
{
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
AiImport::convert( const TQCString& from, const TQCString& to )
{
if ( from != "application/illustrator" || to != "application/x-karbon" )
diff --git a/filters/karbon/ai/aiimport.h b/filters/karbon/ai/aiimport.h
index 3dd9a560..c305b536 100644
--- a/filters/karbon/ai/aiimport.h
+++ b/filters/karbon/ai/aiimport.h
@@ -36,7 +36,7 @@ public:
AiImport( KoFilter* parent, const char* name, const TQStringList& );
virtual ~AiImport();
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
/* private:
TQString m_result; */
diff --git a/filters/karbon/applixgraphics/applixgraphicimport.cc b/filters/karbon/applixgraphics/applixgraphicimport.cc
index 47c5f2b6..b3df1581 100644
--- a/filters/karbon/applixgraphics/applixgraphicimport.cc
+++ b/filters/karbon/applixgraphics/applixgraphicimport.cc
@@ -26,7 +26,7 @@
#include <kdebug.h>
#include <tqfile.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqmessagebox.h>
#include <KoFilterChain.h>
#include <kgenericfactory.h>
@@ -133,7 +133,7 @@ APPLIXGRAPHICImport::APPLIXGRAPHICImport (KoFilter *, const char *, const TQStri
* *
* *
******************************************************************************/
-KoFilter::ConversionStatus APPLIXGRAPHICImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus APPLIXGRAPHICImport::convert( const TQCString& from, const TQCString& to )
{
// Check MIME Types
@@ -156,7 +156,7 @@ KoFilter::ConversionStatus APPLIXGRAPHICImport::convert( const TQCString& from,
str += "<!DOCTYPE karbon>\n";
str += " <karbon mime=\"application/x-karbon\" version=\"2\" editor=\"APPLIXGRAPHICS import filter\">\n";
// str += " <head>\n";
-// str += " <layout width=\"210\" lmargin=\"0\" format=\"a4\" bmargin=\"0\" height=\"297\" rmargin=\"0\" tmargin=\"0\" orientation=\"portrait\"/>\n";
+// str += " <tqlayout width=\"210\" lmargin=\"0\" format=\"a4\" bmargin=\"0\" height=\"297\" rmargin=\"0\" tmargin=\"0\" orientation=\"portrait\"/>\n";
// str += " <grid dx=\"20\" dy=\"20\" align=\"0\">\n";
// str += " <helplines align=\"0\"/>\n";
// str += " </grid>\n";
@@ -189,10 +189,10 @@ KoFilter::ConversionStatus APPLIXGRAPHICImport::convert( const TQCString& from,
TQMessageBox::critical (0L, "Applixgraphics header problem",
TQString ("The Applixgraphics header is not correct. "
"May be it is not an applixgraphics file! <BR>"
- "This is the header line I did read:<BR><B>%1</B>").arg(mystr.latin1()),
+ "This is the header line I did read:<BR><B>%1</B>").tqarg(mystr.latin1()),
"Comma");
- // 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 KoFilter::StupidError;
}
diff --git a/filters/karbon/applixgraphics/applixgraphicimport.h b/filters/karbon/applixgraphics/applixgraphicimport.h
index e0eff76c..3e42256e 100644
--- a/filters/karbon/applixgraphics/applixgraphicimport.h
+++ b/filters/karbon/applixgraphics/applixgraphicimport.h
@@ -32,7 +32,7 @@ public:
APPLIXGRAPHICImport (KoFilter *parent, const char *name, const TQStringList&);
virtual ~APPLIXGRAPHICImport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
diff --git a/filters/karbon/eps/epsexport.cc b/filters/karbon/eps/epsexport.cc
index 8696e6a3..e1bd06a5 100644
--- a/filters/karbon/eps/epsexport.cc
+++ b/filters/karbon/eps/epsexport.cc
@@ -87,7 +87,7 @@ EpsExport::EpsExport( KoFilter*, const char*, const TQStringList& )
{
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
EpsExport::convert( const TQCString& from, const TQCString& to )
{
if ( to != "image/x-eps" || from != "application/x-karbon" )
@@ -102,7 +102,7 @@ EpsExport::convert( const TQCString& from, const TQCString& to )
return KoFilter::StupidError;
- KoFilter::ConversionStatus status = KoFilter::OK;
+ KoFilter::ConversiontqStatus status = KoFilter::OK;
// Ask questions about PS level etc.
EpsExportDlg* dialog = new EpsExportDlg();
@@ -194,7 +194,7 @@ EpsExport::visitVDocument( VDocument& document )
static_cast<KoDocumentInfoAuthor*>( docInfo.page( "author" ) );
// Get creation date/time = "now".
- TQDateTime now( TQDateTime::currentDateTime() );
+ TQDateTime now( TQDateTime::tqcurrentDateTime() );
*m_stream <<
"%%CreationDate: (" << now.toString( Qt::LocalDate ) << ")\n"
diff --git a/filters/karbon/eps/epsexport.h b/filters/karbon/eps/epsexport.h
index f5867b43..1313294e 100644
--- a/filters/karbon/eps/epsexport.h
+++ b/filters/karbon/eps/epsexport.h
@@ -46,7 +46,7 @@ public:
EpsExport( KoFilter* parent, const char* name, const TQStringList& );
virtual ~EpsExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
private:
virtual void visitVPath( VPath& composite );
diff --git a/filters/karbon/eps/epsimport.cc b/filters/karbon/eps/epsimport.cc
index 77a650bb..0fefb3e0 100644
--- a/filters/karbon/eps/epsimport.cc
+++ b/filters/karbon/eps/epsimport.cc
@@ -57,7 +57,7 @@ EpsImport::~EpsImport()
{
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
EpsImport::convert( const TQCString& from, const TQCString& to )
{
if(
@@ -93,7 +93,7 @@ EpsImport::convert( const TQCString& from, const TQCString& to )
// sed filter
TQString sedFilter = TQString ("sed -e \"s/%%BoundingBox: 0 0 612 792/%%BoundingBox: %1 %2 %3 %4/g\"").
- arg(llx).arg(lly).arg(urx).arg(ury);
+ tqarg(llx).tqarg(lly).tqarg(urx).tqarg(ury);
// Build ghostscript call to convert ps/eps -> ai:
TQString command(
diff --git a/filters/karbon/eps/epsimport.h b/filters/karbon/eps/epsimport.h
index c86be29d..873dc169 100644
--- a/filters/karbon/eps/epsimport.h
+++ b/filters/karbon/eps/epsimport.h
@@ -36,7 +36,7 @@ public:
EpsImport( KoFilter* parent, const char* name, const TQStringList& );
virtual ~EpsImport();
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif
diff --git a/filters/karbon/kontour/kontourimport.cpp b/filters/karbon/kontour/kontourimport.cpp
index 30b77ccf..a260fd50 100644
--- a/filters/karbon/kontour/kontourimport.cpp
+++ b/filters/karbon/kontour/kontourimport.cpp
@@ -49,7 +49,7 @@ KontourImport::~KontourImport()
}
-KoFilter::ConversionStatus KontourImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus KontourImport::convert(const TQCString& from, const TQCString& to)
{
// check for proper conversion
if ( to != "application/x-karbon" || ( from != "application/x-kontour" && from != "application/x-killustrator") )
@@ -198,8 +198,8 @@ KontourImport::convert()
if( docElem.attribute( "version" ).toInt() == 2 )
{
lay = docElem;
- height = lay.firstChild().namedItem( "layout" ).toElement().attribute( "height" ).toDouble();
- width = lay.firstChild().namedItem( "layout" ).toElement().attribute( "width" ).toDouble();
+ height = lay.firstChild().namedItem( "tqlayout" ).toElement().attribute( "height" ).toDouble();
+ width = lay.firstChild().namedItem( "tqlayout" ).toElement().attribute( "width" ).toDouble();
}
else
{
diff --git a/filters/karbon/kontour/kontourimport.h b/filters/karbon/kontour/kontourimport.h
index 92e27a09..e140f088 100644
--- a/filters/karbon/kontour/kontourimport.h
+++ b/filters/karbon/kontour/kontourimport.h
@@ -33,7 +33,7 @@ public:
KontourImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~KontourImport();
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
protected:
TQDomDocument inpdoc;
diff --git a/filters/karbon/msod/msod.cc b/filters/karbon/msod/msod.cc
index 8c4c2795..3e79e3ab 100644
--- a/filters/karbon/msod/msod.cc
+++ b/filters/karbon/msod/msod.cc
@@ -39,18 +39,18 @@ Msod::Msod(
m_dpi = dpi;
m_images.setAutoDelete(true);
m_opt = new Options(*this);
- m_shape.data = 0L;
- m_shape.length = 0;
+ m_tqshape.data = 0L;
+ m_tqshape.length = 0;
}
Msod::~Msod()
{
- delete [] m_shape.data;
+ delete [] m_tqshape.data;
delete m_opt;
}
void Msod::drawShape(
- unsigned shapeType,
+ unsigned tqshapeType,
TQ_UINT32 bytes,
TQDataStream &operands)
{
@@ -262,25 +262,25 @@ void Msod::drawShape(
};
struct
{
- TQ_UINT32 spid; // The shape id
+ TQ_UINT32 spid; // The tqshape id
union
{
TQ_UINT32 info;
struct
{
- TQ_UINT32 fGroup : 1; // This shape is a group shape
- TQ_UINT32 fChild : 1; // Not a top-level shape
- TQ_UINT32 fPatriarch : 1; // This is the topmost group shape.
+ TQ_UINT32 fGroup : 1; // This tqshape is a group tqshape
+ TQ_UINT32 fChild : 1; // Not a top-level tqshape
+ TQ_UINT32 fPatriarch : 1; // This is the topmost group tqshape.
// Exactly one of these per drawing.
TQ_UINT32 fDeleted : 1; // The shape.has been deleted
- TQ_UINT32 fOleShape : 1; // The shape is an OLE object
+ TQ_UINT32 fOleShape : 1; // The tqshape is an OLE object
TQ_UINT32 fHaveMaster : 1; // Shape has a hspMaster property
TQ_UINT32 fFlipH : 1; // Shape is flipped horizontally
TQ_UINT32 fFlipV : 1; // Shape is flipped vertically
- TQ_UINT32 fConnector : 1; // Connector type of shape
+ TQ_UINT32 fConnector : 1; // Connector type of tqshape
TQ_UINT32 fHaveAnchor : 1; // Shape has an anchor of some kind
- TQ_UINT32 fBackground : 1; // Background shape
- TQ_UINT32 fHaveSpt : 1; // Shape has a shape type property
+ TQ_UINT32 fBackground : 1; // Background tqshape
+ TQ_UINT32 fHaveSpt : 1; // Shape has a tqshape type property
TQ_UINT32 reserved : 20; // Not yet used
} fields;
} grfPersistent;
@@ -291,12 +291,12 @@ void Msod::drawShape(
operands >> data.spid;
operands >> data.grfPersistent.info;
bytes -= 8;
- kdDebug(s_area) << "shape-id: " << data.spid << " type: " << funcTab[shapeType] << " (" << shapeType << ")" <<
+ kdDebug(s_area) << "tqshape-id: " << data.spid << " type: " << funcTab[tqshapeType] << " (" << tqshapeType << ")" <<
(data.grfPersistent.fields.fGroup ? " group" : "") <<
(data.grfPersistent.fields.fChild ? " child" : "") <<
(data.grfPersistent.fields.fPatriarch ? " patriarch" : "") <<
(data.grfPersistent.fields.fDeleted ? " deleted" : "") <<
- (data.grfPersistent.fields.fOleShape ? " oleshape" : "") <<
+ (data.grfPersistent.fields.fOleShape ? " oletqshape" : "") <<
(data.grfPersistent.fields.fHaveMaster ? " master" : "") <<
(data.grfPersistent.fields.fFlipH ? " flipv" : "") <<
(data.grfPersistent.fields.fConnector ? " connector" : "") <<
@@ -309,9 +309,9 @@ void Msod::drawShape(
if ((!m_isRequiredDrawing) && (m_requestedShapeId != data.spid))
return;
- // An active shape! Let's draw it...
+ // An active tqshape! Let's draw it...
- switch (shapeType)
+ switch (tqshapeType)
{
case 0:
if (m_opt->m_pVertices)
@@ -493,7 +493,7 @@ TQSize Msod::normaliseSize(
}
bool Msod::parse(
- unsigned shapeId,
+ unsigned tqshapeId,
const TQString &file,
const char *delayStream)
{
@@ -505,19 +505,19 @@ bool Msod::parse(
return false;
}
TQDataStream stream(&in);
- bool result = parse(shapeId, stream, in.size(), delayStream);
+ bool result = parse(tqshapeId, stream, in.size(), delayStream);
in.close();
return result;
}
bool Msod::parse(
- unsigned shapeId,
+ unsigned tqshapeId,
TQDataStream &stream,
unsigned size,
const char *delayStream)
{
stream.setByteOrder(TQDataStream::LittleEndian); // Great, I love TQt !
- m_requestedShapeId = shapeId;
+ m_requestedShapeId = tqshapeId;
m_isRequiredDrawing = false;
m_delayStream = delayStream;
@@ -854,8 +854,8 @@ void Msod::opDg(Header &, TQ_UINT32, TQDataStream &operands)
{
struct
{
- TQ_UINT32 csp; // The number of shapes in this drawing.
- TQ_UINT32 spidCur; // The last shape ID given to an SP in this DG.
+ TQ_UINT32 csp; // The number of tqshapes in this drawing.
+ TQ_UINT32 spidCur; // The last tqshape ID given to an SP in this DG.
} data;
operands >> data.csp >> data.spidCur;
@@ -878,10 +878,10 @@ void Msod::opDgg(Header &, TQ_UINT32, TQDataStream &operands)
{
struct
{
- TQ_UINT32 spidMax; // The current maximum shape ID.
+ TQ_UINT32 spidMax; // The current maximum tqshape ID.
TQ_UINT32 cidcl; // The number of ID clusters (FIDCLs).
- TQ_UINT32 cspSaved; // The total number of shapes saved.
- // (including deleted shapes, if undo
+ TQ_UINT32 cspSaved; // The total number of tqshapes saved.
+ // (including deleted tqshapes, if undo
// information was saved).
TQ_UINT32 cdgSaved; // The total number of drawings saved.
} data;
@@ -896,7 +896,7 @@ void Msod::opDgg(Header &, TQ_UINT32, TQDataStream &operands)
unsigned i;
operands >> data.spidMax >> data.cidcl >> data.cspSaved >> data.cdgSaved;
- kdDebug(s_area) << data.cspSaved << " shapes in " <<
+ kdDebug(s_area) << data.cspSaved << " tqshapes in " <<
data.cidcl - 1 << " clusters in " <<
data.cdgSaved << " drawings" << endl;
for (i = 0; i < data.cidcl - 1; i++)
@@ -943,31 +943,31 @@ void Msod::opSolvercontainer(Header &, TQ_UINT32 bytes, TQDataStream &operands)
void Msod::opSp(Header &op, TQ_UINT32 bytes, TQDataStream &operands)
{
- // We want to defer the act of drawing a shape until we have seen any options
+ // We want to defer the act of drawing a tqshape until we have seen any options
// that may affect it. Thus, we merely store the data away, and let opSpContainer
// do all the ahrd work.
- m_shape.type = op.opcode.fields.inst;
- m_shape.length = bytes;
- m_shape.data = new char [bytes];
- operands.readRawBytes(m_shape.data, bytes);
+ m_tqshape.type = op.opcode.fields.inst;
+ m_tqshape.length = bytes;
+ m_tqshape.data = new char [bytes];
+ operands.readRawBytes(m_tqshape.data, bytes);
}
void Msod::opSpcontainer(Header &, TQ_UINT32 bytes, TQDataStream &operands)
{
walk(bytes, operands);
- // Having gathered all the information for this shape, we can now draw it.
+ // Having gathered all the information for this tqshape, we can now draw it.
TQByteArray a;
- a.setRawData(m_shape.data, m_shape.length);
+ a.setRawData(m_tqshape.data, m_tqshape.length);
TQDataStream s(a, IO_ReadOnly);
s.setByteOrder(TQDataStream::LittleEndian); // Great, I love TQt !
- drawShape(m_shape.type, m_shape.length, s);
- a.resetRawData(m_shape.data, m_shape.length);
- delete [] m_shape.data;
- m_shape.data = 0L;
+ drawShape(m_tqshape.type, m_tqshape.length, s);
+ a.resetRawData(m_tqshape.data, m_tqshape.length);
+ delete [] m_tqshape.data;
+ m_tqshape.data = 0L;
}
void Msod::opSpgr(Header &, TQ_UINT32, TQDataStream &operands)
@@ -1097,7 +1097,7 @@ void Msod::Options::initialise()
m_geoTop = 0;
m_geoRight = 21600;
m_geoBottom = 21600;
- m_shapePath = 1;
+ m_tqshapePath = 1;
delete m_pVertices;
m_pVertices = 0L;
m_fShadowOK = true;
@@ -1233,7 +1233,7 @@ void Msod::Options::walk(TQ_UINT32 bytes, TQDataStream &operands)
m_geoBottom = op.value;
break;
case 324:
- m_shapePath = op.value;
+ m_tqshapePath = op.value;
break;
case 383:
m_fShadowOK = (op.value & 0x0020) != 0;
diff --git a/filters/karbon/msod/msod.h b/filters/karbon/msod/msod.h
index 3db6fc2f..f53146bf 100644
--- a/filters/karbon/msod/msod.h
+++ b/filters/karbon/msod/msod.h
@@ -44,15 +44,15 @@ public:
unsigned dpi);
virtual ~Msod();
- // Called to parse the given file. We extract a drawing by shapeId.
+ // Called to parse the given file. We extract a drawing by tqshapeId.
// If the drawing is not found, the return value will be false.
bool parse(
- unsigned shapeId,
+ unsigned tqshapeId,
const TQString &file,
const char *delayStream = 0L);
bool parse(
- unsigned shapeId,
+ unsigned tqshapeId,
TQDataStream &stream,
unsigned size,
const char *delayStream = 0L);
@@ -114,14 +114,14 @@ private:
unsigned type;
char *data;
unsigned length;
- } m_shape;
+ } m_tqshape;
TQPoint normalisePoint(
TQDataStream &operands);
TQSize normaliseSize(
TQDataStream &operands);
void drawShape(
- unsigned shapeType,
+ unsigned tqshapeType,
TQ_UINT32 bytes,
TQDataStream &operands);
@@ -244,7 +244,7 @@ private:
TQ_UINT32 m_geoTop;
TQ_UINT32 m_geoRight;
TQ_UINT32 m_geoBottom;
- TQ_UINT32 m_shapePath;
+ TQ_UINT32 m_tqshapePath;
TQPointArray *m_pVertices;
bool m_fShadowOK;
bool m_f3DOK;
diff --git a/filters/karbon/msod/msodimport.cc b/filters/karbon/msod/msodimport.cc
index e25889c0..903d50a2 100644
--- a/filters/karbon/msod/msodimport.cc
+++ b/filters/karbon/msod/msodimport.cc
@@ -46,18 +46,18 @@ MSODImport::~MSODImport()
{
}
-KoFilter::ConversionStatus MSODImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus MSODImport::convert( const TQCString& from, const TQCString& to )
{
if (to != "application/x-karbon" || from != "image/x-msod")
return KoFilter::NotImplemented;
- // Get configuration data: the shape id, and any delay stream that we were given.
- unsigned shapeId;
- emit commSignalShapeID( shapeId );
+ // Get configuration data: the tqshape id, and any delay stream that we were given.
+ unsigned tqshapeId;
+ emit commSignalShapeID( tqshapeId );
const char *delayStream = 0L;
emit commSignalDelayStream( delayStream );
kdDebug( s_area ) << "##################################################################" << endl;
- kdDebug( s_area ) << "shape id: " << shapeId << endl;
+ kdDebug( s_area ) << "tqshape id: " << tqshapeId << endl;
kdDebug( s_area ) << "delay stream: " << delayStream << endl;
kdDebug( s_area ) << "##################################################################" << endl;
/*
@@ -68,9 +68,9 @@ KoFilter::ConversionStatus MSODImport::convert( const TQCString& from, const TQC
kdDebug(s_area) << "MSODImport::filter: config: " << config << endl;
for (i = 0; i < args.count(); i++)
{
- if (args[i].startsWith("shape-id="))
+ if (args[i].startsWith("tqshape-id="))
{
- shapeId = args[i].mid(9).toUInt();
+ tqshapeId = args[i].mid(9).toUInt();
}
else
if (args[i].startsWith("delay-stream="))
@@ -91,7 +91,7 @@ KoFilter::ConversionStatus MSODImport::convert( const TQCString& from, const TQC
m_text += "<DOC mime=\"application/x-karbon\" syntaxVersion=\"0.1\" editor=\"WMF import filter\">\n";
m_text += " <LAYER name=\"Layer\" visible=\"1\">\n";
- if (!parse(shapeId, m_chain->inputFile(), delayStream))
+ if (!parse(tqshapeId, m_chain->inputFile(), delayStream))
return KoFilter::WrongFormat;
// close doc
@@ -175,7 +175,7 @@ void MSODImport::gotPicture(
kdWarning( s_area ) << "Couldn't determine the mimetype from the extension" << endl;
TQCString destMime; // intentionally empty, the filter manager will do the rest
- KoFilter::ConversionStatus status;
+ KoFilter::ConversiontqStatus status;
partRef = embedPart( srcMime.latin1(), destMime, status, TQString::number( key ) );
m_embeddeeData = 0;
diff --git a/filters/karbon/msod/msodimport.h b/filters/karbon/msod/msodimport.h
index 9264b7d5..162176de 100644
--- a/filters/karbon/msod/msodimport.h
+++ b/filters/karbon/msod/msodimport.h
@@ -39,7 +39,7 @@ public:
const TQStringList&);
virtual ~MSODImport();
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
protected:
@@ -68,7 +68,7 @@ protected:
signals:
// Communication signals to the parent filters
void commSignalDelayStream( const char* delay );
- void commSignalShapeID( unsigned int& shapeID );
+ void commSignalShapeID( unsigned int& tqshapeID );
private:
virtual void savePartContents( TQIODevice* file );
diff --git a/filters/karbon/oodraw/oodrawimport.cc b/filters/karbon/oodraw/oodrawimport.cc
index fba48867..90320d7e 100644
--- a/filters/karbon/oodraw/oodrawimport.cc
+++ b/filters/karbon/oodraw/oodrawimport.cc
@@ -62,7 +62,7 @@ OoDrawImport::~OoDrawImport()
{
}
-KoFilter::ConversionStatus OoDrawImport::convert( TQCString const & from, TQCString const & to )
+KoFilter::ConversiontqStatus OoDrawImport::convert( TQCString const & from, TQCString const & to )
{
kdDebug() << "Entering Oodraw Import filter: " << from << " - " << to << endl;
@@ -81,13 +81,13 @@ KoFilter::ConversionStatus OoDrawImport::convert( TQCString const & from, TQCStr
return KoFilter::FileNotFound;
}
- KoFilter::ConversionStatus preStatus = openFile();
+ KoFilter::ConversiontqStatus pretqStatus = openFile();
- if( preStatus != KoFilter::OK )
+ if( pretqStatus != KoFilter::OK )
{
m_zip->close();
delete m_zip;
- return preStatus;
+ return pretqStatus;
}
/*TQDomDocument docinfo;
createDocumentInfo( docinfo );
@@ -149,9 +149,9 @@ void OoDrawImport::createDocumentInfo( TQDomDocument &docinfo )
// Very related to OoWriterImport::openFile()
-KoFilter::ConversionStatus OoDrawImport::openFile()
+KoFilter::ConversiontqStatus OoDrawImport::openFile()
{
- KoFilter::ConversionStatus status = loadAndParse( "content.xml", m_content );
+ KoFilter::ConversiontqStatus status = loadAndParse( "content.xml", m_content );
if ( status != KoFilter::OK )
{
kdError(30518) << "Content.xml could not be parsed correctly! Aborting!" << endl;
@@ -223,7 +223,7 @@ void OoDrawImport::convert()
}
-KoFilter::ConversionStatus OoDrawImport::loadAndParse(const TQString& filename, TQDomDocument& doc)
+KoFilter::ConversiontqStatus OoDrawImport::loadAndParse(const TQString& filename, TQDomDocument& doc)
{
return OoUtils::loadAndParse( filename, doc, m_zip);
}
diff --git a/filters/karbon/oodraw/oodrawimport.h b/filters/karbon/oodraw/oodrawimport.h
index 6e753d7d..2b395f48 100644
--- a/filters/karbon/oodraw/oodrawimport.h
+++ b/filters/karbon/oodraw/oodrawimport.h
@@ -43,7 +43,7 @@ public:
OoDrawImport( KoFilter *parent, const char *name, const TQStringList & );
virtual ~OoDrawImport();
- virtual KoFilter::ConversionStatus convert( TQCString const & from, TQCString const & to );
+ virtual KoFilter::ConversiontqStatus convert( TQCString const & from, TQCString const & to );
private:
void createDocumentInfo( TQDomDocument &docinfo );
@@ -63,8 +63,8 @@ private:
double ymirror( double y );
KoRect parseViewBox( const TQDomElement& object );
- KoFilter::ConversionStatus openFile();
- KoFilter::ConversionStatus loadAndParse(const TQString& filename, TQDomDocument& doc);
+ KoFilter::ConversiontqStatus openFile();
+ KoFilter::ConversiontqStatus loadAndParse(const TQString& filename, TQDomDocument& doc);
VDocument m_document;
TQDomDocument m_content;
diff --git a/filters/karbon/png/pngexport.cc b/filters/karbon/png/pngexport.cc
index 89b43d03..4de61a44 100644
--- a/filters/karbon/png/pngexport.cc
+++ b/filters/karbon/png/pngexport.cc
@@ -48,7 +48,7 @@ PngExport::PngExport( KoFilter*, const char*, const TQStringList& )
{
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
PngExport::convert( const TQCString& from, const TQCString& to )
{
if ( to != "image/png" || from != "application/x-karbon" )
diff --git a/filters/karbon/png/pngexport.h b/filters/karbon/png/pngexport.h
index df893965..3758daa3 100644
--- a/filters/karbon/png/pngexport.h
+++ b/filters/karbon/png/pngexport.h
@@ -33,7 +33,7 @@ public:
PngExport( KoFilter* parent, const char* name, const TQStringList& );
virtual ~PngExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif
diff --git a/filters/karbon/svg/svgexport.cc b/filters/karbon/svg/svgexport.cc
index a5ed9b40..2e661039 100644
--- a/filters/karbon/svg/svgexport.cc
+++ b/filters/karbon/svg/svgexport.cc
@@ -67,7 +67,7 @@ SvgExport::SvgExport( KoFilter*, const char*, const TQStringList& )
m_gc.setAutoDelete( true );
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
SvgExport::convert( const TQCString& from, const TQCString& to )
{
if ( to != "image/svg+xml" || from != "application/x-karbon" )
@@ -171,7 +171,7 @@ TQString
SvgExport::getID( VObject *obj )
{
if( obj && !obj->name().isEmpty() )
- return TQString( " id=\"%1\"" ).arg( obj->name() );
+ return TQString( " id=\"%1\"" ).tqarg( obj->name() );
return TQString();
}
@@ -490,9 +490,9 @@ SvgExport::visitVText( VText& text )
*m_body << " font-weight=\"bold\"";
if( text.font().italic() )
*m_body << " font-style=\"italic\"";
- if( text.alignment() == VText::Center )
+ if( text.tqalignment() == VText::Center )
*m_body << " text-anchor=\"middle\"";
- else if( text.alignment() == VText::Right )
+ else if( text.tqalignment() == VText::Right )
*m_body << " text-anchor=\"end\"";
*m_body << ">" << endl;
diff --git a/filters/karbon/svg/svgexport.h b/filters/karbon/svg/svgexport.h
index c79d1fde..6bfe5d98 100644
--- a/filters/karbon/svg/svgexport.h
+++ b/filters/karbon/svg/svgexport.h
@@ -52,7 +52,7 @@ public:
SvgExport( KoFilter* parent, const char* name, const TQStringList& );
virtual ~SvgExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
private:
virtual void visitVPath( VPath& composite );
diff --git a/filters/karbon/svg/svgimport.cc b/filters/karbon/svg/svgimport.cc
index 9d323d3d..5a5e90aa 100644
--- a/filters/karbon/svg/svgimport.cc
+++ b/filters/karbon/svg/svgimport.cc
@@ -54,7 +54,7 @@ SvgImport::~SvgImport()
{
}
-KoFilter::ConversionStatus SvgImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus SvgImport::convert(const TQCString& from, const TQCString& to)
{
// check for proper conversion
if( to != "application/x-karbon" || from != "image/svg+xml" )
@@ -138,7 +138,7 @@ void SvgImport::convert()
m_outerRect = m_document.boundingBox();
// undo y-mirroring
- //m_debug->append(TQString("%1\tUndo Y-mirroring.").arg(m_time.elapsed()));
+ //m_debug->append(TQString("%1\tUndo Y-mirroring.").tqarg(m_time.elapsed()));
if( !docElem.attribute( "viewBox" ).isEmpty() )
{
// allow for viewbox def with ',' or whitespace
@@ -692,17 +692,17 @@ void SvgImport::parsePA( VObject *obj, SvgGraphicsContext *gc, const TQString &c
//kdDebug() << "!!!!!!bbox y : " << bbox.y() << endl;
//kdDebug() << gc->fill.gradient().origin().x() << endl;
//kdDebug() << gc->fill.gradient().vector().x() << endl;
- double offsetx = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().origin().x() ), true, false, bbox );
- double offsety = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().origin().y() ), false, true, bbox );
+ double offsetx = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().origin().x() ), true, false, bbox );
+ double offsety = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().origin().y() ), false, true, bbox );
gc->fill.gradient().setOrigin( KoPoint( bbox.x() + offsetx, bbox.y() + offsety ) );
if(gc->fill.gradient().type() == VGradient::radial)
{
- offsetx = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().focalPoint().x() ), true, false, bbox );
- offsety = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().focalPoint().y() ), false, true, bbox );
+ offsetx = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().focalPoint().x() ), true, false, bbox );
+ offsety = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().focalPoint().y() ), false, true, bbox );
gc->fill.gradient().setFocalPoint( KoPoint( bbox.x() + offsetx, bbox.y() + offsety ) );
}
- offsetx = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().vector().x() ), true, false, bbox );
- offsety = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().vector().y() ), false, true, bbox );
+ offsetx = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().vector().x() ), true, false, bbox );
+ offsety = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().vector().y() ), false, true, bbox );
gc->fill.gradient().setVector( KoPoint( bbox.x() + offsetx, bbox.y() + offsety ) );
//kdDebug() << offsety << endl;
//kdDebug() << gc->fill.gradient().origin().x() << endl;
@@ -1263,9 +1263,9 @@ void SvgImport::createText( VGroup *grp, const TQDomElement &b )
text->setName( b.attribute("id") );
if( anchor == "middle" )
- text->setAlignment( VText::Center );
+ text->tqsetAlignment( VText::Center );
else if( anchor == "end" )
- text->setAlignment( VText::Right );
+ text->tqsetAlignment( VText::Right );
if( offset > 0.0 )
text->setOffset( offset );
diff --git a/filters/karbon/svg/svgimport.h b/filters/karbon/svg/svgimport.h
index 636077a1..e4e3f56a 100644
--- a/filters/karbon/svg/svgimport.h
+++ b/filters/karbon/svg/svgimport.h
@@ -45,7 +45,7 @@ public:
SvgImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~SvgImport();
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
protected:
class GradientHelper
diff --git a/filters/karbon/wmf/wmfexport.cc b/filters/karbon/wmf/wmfexport.cc
index de929ca8..a04dfc11 100644
--- a/filters/karbon/wmf/wmfexport.cc
+++ b/filters/karbon/wmf/wmfexport.cc
@@ -57,7 +57,7 @@ WmfExport::~WmfExport()
{
}
-KoFilter::ConversionStatus WmfExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus WmfExport::convert( const TQCString& from, const TQCString& to )
{
if( to != "image/x-wmf" || from != "application/x-karbon" ) {
return KoFilter::NotImplemented;
diff --git a/filters/karbon/wmf/wmfexport.h b/filters/karbon/wmf/wmfexport.h
index 2c464f13..e0c9be57 100644
--- a/filters/karbon/wmf/wmfexport.h
+++ b/filters/karbon/wmf/wmfexport.h
@@ -20,7 +20,7 @@
#define WMFEXPORT_H
#include <tqpen.h>
-#include <brush.h>
+#include <tqbrush.h>
#include <tqptrlist.h>
#include <tqpointarray.h>
#include <KoFilter.h>
@@ -41,7 +41,7 @@ public:
WmfExport( KoFilter *parent, const char *name, const TQStringList&);
virtual ~WmfExport();
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
private:
void visitVPath( VPath& composite );
diff --git a/filters/karbon/wmf/wmfimport.cc b/filters/karbon/wmf/wmfimport.cc
index f7dcdcf3..23eaaa12 100644
--- a/filters/karbon/wmf/wmfimport.cc
+++ b/filters/karbon/wmf/wmfimport.cc
@@ -45,7 +45,7 @@ WMFImport::~WMFImport()
{
}
-KoFilter::ConversionStatus WMFImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus WMFImport::convert( const TQCString& from, const TQCString& to )
{
if( to != "application/x-karbon" || from != "image/x-wmf" )
return KoFilter::NotImplemented;
diff --git a/filters/karbon/wmf/wmfimport.h b/filters/karbon/wmf/wmfimport.h
index 34ee8140..21bcee74 100644
--- a/filters/karbon/wmf/wmfimport.h
+++ b/filters/karbon/wmf/wmfimport.h
@@ -36,7 +36,7 @@ public:
WMFImport( KoFilter *parent, const char *name, const TQStringList&);
virtual ~WMFImport();
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
diff --git a/filters/karbon/xaml/xamlexport.cc b/filters/karbon/xaml/xamlexport.cc
index e1599a8c..228024f3 100644
--- a/filters/karbon/xaml/xamlexport.cc
+++ b/filters/karbon/xaml/xamlexport.cc
@@ -60,7 +60,7 @@ XAMLExport::XAMLExport( KoFilter*, const char*, const TQStringList& )
m_gc.setAutoDelete( true );
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
XAMLExport::convert( const TQCString& from, const TQCString& to )
{
// TODO: ???
@@ -161,7 +161,7 @@ TQString
XAMLExport::getID( VObject *obj )
{
if( obj && !obj->name().isEmpty() )
- return TQString( " Name=\"%1\"" ).arg( obj->name() );
+ return TQString( " Name=\"%1\"" ).tqarg( obj->name() );
return TQString();
}
diff --git a/filters/karbon/xaml/xamlexport.h b/filters/karbon/xaml/xamlexport.h
index 124ea3fd..b1a0f4fd 100644
--- a/filters/karbon/xaml/xamlexport.h
+++ b/filters/karbon/xaml/xamlexport.h
@@ -50,7 +50,7 @@ public:
XAMLExport( KoFilter* parent, const char* name, const TQStringList& );
virtual ~XAMLExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
private:
virtual void visitVPath( VPath& composite );
diff --git a/filters/karbon/xaml/xamlimport.cc b/filters/karbon/xaml/xamlimport.cc
index 002001e2..3a755181 100644
--- a/filters/karbon/xaml/xamlimport.cc
+++ b/filters/karbon/xaml/xamlimport.cc
@@ -24,9 +24,9 @@
#include <kdebug.h>
#include <KoUnit.h>
#include <KoGlobal.h>
-#include <shapes/vellipse.h>
-#include <shapes/vrectangle.h>
-#include <shapes/vpolygon.h>
+#include <tqshapes/vellipse.h>
+#include <tqshapes/vrectangle.h>
+#include <tqshapes/vpolygon.h>
#include <commands/vtransformcmd.h>
#include <core/vsegment.h>
#include <core/vtext.h>
@@ -52,7 +52,7 @@ XAMLImport::~XAMLImport()
{
}
-KoFilter::ConversionStatus XAMLImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus XAMLImport::convert(const TQCString& from, const TQCString& to)
{
// check for proper conversion
if( to != "application/x-karbon" || from != "image/wvg+xml" )
@@ -466,14 +466,14 @@ XAMLImport::parsePA( VObject *obj, XAMLGraphicsContext *gc, const TQString &comm
//kdDebug() << "!!!!!!bbox y : " << bbox.y() << endl;
//kdDebug() << gc->fill.gradient().origin().x() << endl;
//kdDebug() << gc->fill.gradient().vector().x() << endl;
- double offsetx = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().origin().x() ), true, false, bbox );
- double offsety = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().origin().y() ), false, true, bbox );
+ double offsetx = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().origin().x() ), true, false, bbox );
+ double offsety = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().origin().y() ), false, true, bbox );
gc->fill.gradient().setOrigin( KoPoint( bbox.x() + offsetx, bbox.y() + offsety ) );
- offsetx = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().focalPoint().x() ), true, false, bbox );
- offsety = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().focalPoint().y() ), false, true, bbox );
+ offsetx = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().focalPoint().x() ), true, false, bbox );
+ offsety = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().focalPoint().y() ), false, true, bbox );
gc->fill.gradient().setFocalPoint( KoPoint( bbox.x() + offsetx, bbox.y() + offsety ) );
- offsetx = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().vector().x() ), true, false, bbox );
- offsety = parseUnit( TQString( "%1%" ).arg( gc->fill.gradient().vector().y() ), false, true, bbox );
+ offsetx = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().vector().x() ), true, false, bbox );
+ offsety = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().vector().y() ), false, true, bbox );
gc->fill.gradient().setVector( KoPoint( bbox.x() + offsetx, bbox.y() + offsety ) );
//kdDebug() << offsety << endl;
//kdDebug() << gc->fill.gradient().origin().x() << endl;
diff --git a/filters/karbon/xaml/xamlimport.h b/filters/karbon/xaml/xamlimport.h
index 001d1dc3..b61313b9 100644
--- a/filters/karbon/xaml/xamlimport.h
+++ b/filters/karbon/xaml/xamlimport.h
@@ -43,7 +43,7 @@ public:
XAMLImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~XAMLImport();
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
protected:
class GradientHelper
diff --git a/filters/karbon/xcf/xcfexport.cc b/filters/karbon/xcf/xcfexport.cc
index 215c4f01..3e9237fb 100644
--- a/filters/karbon/xcf/xcfexport.cc
+++ b/filters/karbon/xcf/xcfexport.cc
@@ -52,7 +52,7 @@ XcfExport::XcfExport( KoFilter*, const char*, const TQStringList& )
m_zoomY = 1.0;
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
XcfExport::convert( const TQCString& from, const TQCString& to )
{
if( to != "image/x-xcf-gimp" || from != "application/x-karbon" )
@@ -128,10 +128,10 @@ XcfExport::visitVDocument( VDocument& document )
// Save current offset.
- current = m_stream->device()->at();
+ current = m_stream->tqdevice()->at();
// Leave space for layer and channel offsets.
- m_stream->device()->at(
+ m_stream->tqdevice()->at(
// current position + (number layers + number channels + 2) * 4.
current + ( document.layers().count() + 3 + 2 ) * 4 );
@@ -142,7 +142,7 @@ XcfExport::visitVDocument( VDocument& document )
for( ; itr.current(); ++itr )
{
// Save start offset.
- start = m_stream->device()->at();
+ start = m_stream->tqdevice()->at();
// Write layer.
@@ -150,31 +150,31 @@ XcfExport::visitVDocument( VDocument& document )
// Save end offset.
- end = m_stream->device()->at();
+ end = m_stream->tqdevice()->at();
// Return to current offset.
- m_stream->device()->at( current );
+ m_stream->tqdevice()->at( current );
// Save layer offset.
*m_stream << start;
// Increment offset.
- current = m_stream->device()->at();
+ current = m_stream->tqdevice()->at();
// Return to end offset.
- m_stream->device()->at( end );
+ m_stream->tqdevice()->at( end );
}
// Return to current offset.
- m_stream->device()->at( current );
+ m_stream->tqdevice()->at( current );
// Append a zero offset to indicate end of layer offsets.
*m_stream << static_cast<TQ_UINT32>( 0 );
// Return to end offset.
- m_stream->device()->at( end );
+ m_stream->tqdevice()->at( end );
// Append a zero offset to indicate end of channel offsets.
*m_stream << static_cast<TQ_UINT32>( 0 );
@@ -279,13 +279,13 @@ XcfExport::visitVLayer( VLayer& layer )
TQIODevice::Offset end = 0;
// Save current offset.
- current = m_stream->device()->at();
+ current = m_stream->tqdevice()->at();
// Leave space for hierarchy offsets.
- m_stream->device()->at( current + 8 );
+ m_stream->tqdevice()->at( current + 8 );
// Save start offset.
- start = m_stream->device()->at();
+ start = m_stream->tqdevice()->at();
// Write hierarchy.
@@ -293,10 +293,10 @@ XcfExport::visitVLayer( VLayer& layer )
// Save end offset.
- end = m_stream->device()->at();
+ end = m_stream->tqdevice()->at();
// Return to current offset.
- m_stream->device()->at( current );
+ m_stream->tqdevice()->at( current );
// Save hierarchy offset.
*m_stream << start;
@@ -333,15 +333,15 @@ XcfExport::writeHierarchy()
int height = m_height;
// Save current offset.
- current = m_stream->device()->at();
+ current = m_stream->tqdevice()->at();
// Leave space for level offsets.
- m_stream->device()->at( current + ( levels + 1 ) * 4 );
+ m_stream->tqdevice()->at( current + ( levels + 1 ) * 4 );
for( int i = 0; i < levels; ++i )
{
// Save start offset.
- start = m_stream->device()->at();
+ start = m_stream->tqdevice()->at();
if( i == 0 )
{
@@ -360,23 +360,23 @@ XcfExport::writeHierarchy()
}
// Save end offset.
- end = m_stream->device()->at();
+ end = m_stream->tqdevice()->at();
// Return to current offset.
- m_stream->device()->at( current );
+ m_stream->tqdevice()->at( current );
// Save level offset.
*m_stream << start;
// Increment offset.
- current = m_stream->device()->at();
+ current = m_stream->tqdevice()->at();
// Return to end offset.
- m_stream->device()->at( end );
+ m_stream->tqdevice()->at( end );
}
// Return to current offset.
- m_stream->device()->at( current );
+ m_stream->tqdevice()->at( current );
// Append a zero offset to indicate end of level offsets.
*m_stream << static_cast<TQ_UINT32>( 0 );
@@ -398,15 +398,15 @@ XcfExport::writeLevel()
int tiles = rows * cols;
// Save current offset.
- current = m_stream->device()->at();
+ current = m_stream->tqdevice()->at();
// Leave space for tile offsets.
- m_stream->device()->at( current + ( tiles + 1 ) * 4 );
+ m_stream->tqdevice()->at( current + ( tiles + 1 ) * 4 );
for( int i = 0; i < tiles; ++i )
{
// Save start offset.
- start = m_stream->device()->at();
+ start = m_stream->tqdevice()->at();
// TODO: Save tile.
@@ -425,19 +425,19 @@ XcfExport::writeLevel()
// Save end offset.
- end = m_stream->device()->at();
+ end = m_stream->tqdevice()->at();
// Return to current offset.
- m_stream->device()->at( current );
+ m_stream->tqdevice()->at( current );
// Save tile offset.
*m_stream << start;
// Increment offset.
- current = m_stream->device()->at();
+ current = m_stream->tqdevice()->at();
// Return to end offset.
- m_stream->device()->at( end );
+ m_stream->tqdevice()->at( end );
}
}
diff --git a/filters/karbon/xcf/xcfexport.h b/filters/karbon/xcf/xcfexport.h
index f6a7be70..82d86883 100644
--- a/filters/karbon/xcf/xcfexport.h
+++ b/filters/karbon/xcf/xcfexport.h
@@ -40,7 +40,7 @@ public:
XcfExport( KoFilter* parent, const char* name, const TQStringList& );
virtual ~XcfExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
virtual void visitVDocument( VDocument& document );
virtual void visitVLayer( VLayer& layer );
diff --git a/filters/karbon/xfig/xfigimport.cc b/filters/karbon/xfig/xfigimport.cc
index c3d6ab6a..015c4006 100644
--- a/filters/karbon/xfig/xfigimport.cc
+++ b/filters/karbon/xfig/xfigimport.cc
@@ -167,7 +167,7 @@ bool XFIGImport::filterImport( const TQString &file, KoDocument *doc,
char buf[255];
int value;
- KoPageLayout layout;
+ KoPageLayout tqlayout;
ifstream fin( file.local8Bit() );
if (! fin)
@@ -177,7 +177,7 @@ bool XFIGImport::filterImport( const TQString &file, KoDocument *doc,
GDocument *gdoc = kidoc->gdoc();
//GPage *activePage = gdoc->activePage();
- layout = gdoc->activePage()->pageLayout ();
+ tqlayout = gdoc->activePage()->pageLayout ();
fin.getline (buf, 255);
if (::strncmp (buf, "#FIG 3", 6)) {
@@ -203,9 +203,9 @@ bool XFIGImport::filterImport( const TQString &file, KoDocument *doc,
// orientation
fin.getline (buf, 255);
if (::strcmp (buf, "Landscape") == 0)
- layout.orientation = PG_LANDSCAPE;
+ tqlayout.orientation = PG_LANDSCAPE;
else if (::strcmp (buf, "Portrait") == 0)
- layout.orientation = PG_PORTRAIT;
+ tqlayout.orientation = PG_PORTRAIT;
else
kdDebug() << "ERROR: invalid orientation" << endl;
@@ -215,9 +215,9 @@ bool XFIGImport::filterImport( const TQString &file, KoDocument *doc,
// units
fin.getline (buf, 255);
if (::strcmp (buf, "Metric") == 0)
- layout.unit = PG_MM;
+ tqlayout.unit = PG_MM;
else if (::strcmp (buf, "Inches") == 0)
- layout.unit = PG_INCH;
+ tqlayout.unit = PG_INCH;
else
kdDebug() << "ERROR: invalid units" << endl;
diff --git a/filters/kchart/libimageexport/imageexport.cpp b/filters/kchart/libimageexport/imageexport.cpp
index faff17ff..5033762b 100644
--- a/filters/kchart/libimageexport/imageexport.cpp
+++ b/filters/kchart/libimageexport/imageexport.cpp
@@ -40,7 +40,7 @@ ImageExport::~ImageExport()
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
ImageExport::convert(const TQCString& from, const TQCString& to)
{
// Check for proper conversion.
diff --git a/filters/kchart/libimageexport/imageexport.h b/filters/kchart/libimageexport/imageexport.h
index d1a73abe..825b0156 100644
--- a/filters/kchart/libimageexport/imageexport.h
+++ b/filters/kchart/libimageexport/imageexport.h
@@ -32,7 +32,7 @@ public:
ImageExport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~ImageExport();
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
virtual void extraImageAttribute() {};
virtual bool saveImage( TQString fileName) = 0;
virtual const char* exportFormat() = 0;
diff --git a/filters/kchart/svg/svgexport.cc b/filters/kchart/svg/svgexport.cc
index 1507f536..8d8ad52c 100644
--- a/filters/kchart/svg/svgexport.cc
+++ b/filters/kchart/svg/svgexport.cc
@@ -45,7 +45,7 @@ SvgExport::~SvgExport()
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
SvgExport::convert(const TQCString& from, const TQCString& to)
{
// Check for proper conversion.
diff --git a/filters/kchart/svg/svgexport.h b/filters/kchart/svg/svgexport.h
index 653aae9b..c04c0f22 100644
--- a/filters/kchart/svg/svgexport.h
+++ b/filters/kchart/svg/svgexport.h
@@ -31,7 +31,7 @@ public:
SvgExport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~SvgExport();
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif // __SVGEXPORT_H__
diff --git a/filters/kformula/latex/latexexport.cc b/filters/kformula/latex/latexexport.cc
index 3f184674..77488fa9 100644
--- a/filters/kformula/latex/latexexport.cc
+++ b/filters/kformula/latex/latexexport.cc
@@ -18,7 +18,7 @@
*/
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfile.h>
#include <kapplication.h>
@@ -46,7 +46,7 @@ LATEXExport::LATEXExport( KoFilter */*parent*/, const char */*name*/, const TQSt
}
-KoFilter::ConversionStatus LATEXExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus LATEXExport::convert( const TQCString& from, const TQCString& to )
{
if ( to != "text/x-tex" || from != "application/x-kformula" )
return KoFilter::NotImplemented;
diff --git a/filters/kformula/latex/latexexport.h b/filters/kformula/latex/latexexport.h
index 83672fae..091ed125 100644
--- a/filters/kformula/latex/latexexport.h
+++ b/filters/kformula/latex/latexexport.h
@@ -33,7 +33,7 @@ public:
LATEXExport( KoFilter *parent, const char *name, const TQStringList& );
virtual ~LATEXExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // LATEXEXPORT_H
diff --git a/filters/kformula/mathml/mathmlexport.cc b/filters/kformula/mathml/mathmlexport.cc
index 6103da18..507c13a2 100644
--- a/filters/kformula/mathml/mathmlexport.cc
+++ b/filters/kformula/mathml/mathmlexport.cc
@@ -18,7 +18,7 @@
*/
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfile.h>
#include <kapplication.h>
@@ -46,7 +46,7 @@ MathMLExport::MathMLExport( KoFilter */*parent*/, const char */*name*/, const TQ
}
-KoFilter::ConversionStatus MathMLExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus MathMLExport::convert( const TQCString& from, const TQCString& to )
{
if ( to != "application/mathml+xml" || from != "application/x-kformula" )
return KoFilter::NotImplemented;
diff --git a/filters/kformula/mathml/mathmlexport.h b/filters/kformula/mathml/mathmlexport.h
index 2a442a22..a49b837b 100644
--- a/filters/kformula/mathml/mathmlexport.h
+++ b/filters/kformula/mathml/mathmlexport.h
@@ -33,7 +33,7 @@ public:
MathMLExport( KoFilter *parent, const char *name, const TQStringList& );
virtual ~MathMLExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // MATHMLEXPORT_H
diff --git a/filters/kformula/mathml/mathmlimport.cc b/filters/kformula/mathml/mathmlimport.cc
index 6900c61b..87ce2182 100644
--- a/filters/kformula/mathml/mathmlimport.cc
+++ b/filters/kformula/mathml/mathmlimport.cc
@@ -25,7 +25,7 @@
#include <kmessagebox.h>
#include <KoFilterChain.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <kformuladocument.h>
#include <kformulacontainer.h>
@@ -44,7 +44,7 @@ MathMLImport::MathMLImport(KoFilter *, const char *, const TQStringList&)
{
}
-KoFilter::ConversionStatus MathMLImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus MathMLImport::convert( const TQCString& from, const TQCString& to )
{
kdDebug( KFormula::DEBUGID ) << "From: " << from << endl;
kdDebug( KFormula::DEBUGID ) << "To: " << to << endl;
@@ -68,7 +68,7 @@ KoFilter::ConversionStatus MathMLImport::convert( const TQCString& from, const T
const TQString filename( m_chain->inputFile() );
TQFile f( filename );
if ( !f.open( IO_ReadOnly ) ) {
- KMessageBox::error( 0, i18n( "Failed to open input file: %1" ).arg( filename ), i18n( "MathML Import Error" ) );
+ KMessageBox::error( 0, i18n( "Failed to open input file: %1" ).tqarg( filename ), i18n( "MathML Import Error" ) );
delete wrapper;
return KoFilter::FileNotFound;
}
@@ -84,7 +84,7 @@ KoFilter::ConversionStatus MathMLImport::convert( const TQCString& from, const T
<< " In line: " << errorLine << ", column: " << errorColumn << endl
<< " Error message: " << errorMsg << endl;
KMessageBox::error( 0, i18n( "Parsing error in MathML file %4 at line %1, column %2\nError message: %3" )
- .arg( errorLine ).arg( errorColumn ).arg( i18n ( "TQXml", errorMsg.utf8() ).arg( filename ) ), i18n( "MathML Import Error" ) );
+ .tqarg( errorLine ).tqarg( errorColumn ).tqarg( i18n ( "TQXml", errorMsg.utf8() ).tqarg( filename ) ), i18n( "MathML Import Error" ) );
return KoFilter::WrongFormat;
}
f.close();
diff --git a/filters/kformula/mathml/mathmlimport.h b/filters/kformula/mathml/mathmlimport.h
index 4835b69b..a4a28e18 100644
--- a/filters/kformula/mathml/mathmlimport.h
+++ b/filters/kformula/mathml/mathmlimport.h
@@ -21,7 +21,7 @@
#define MATHMLIMPORT_H
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -36,7 +36,7 @@ public:
MathMLImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~MathMLImport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif /* MATHMLIMPORT_H */
diff --git a/filters/kformula/png/pngexport.cc b/filters/kformula/png/pngexport.cc
index 764cfc2b..c6d3611e 100644
--- a/filters/kformula/png/pngexport.cc
+++ b/filters/kformula/png/pngexport.cc
@@ -18,7 +18,7 @@
*/
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -46,7 +46,7 @@ PNGExport::PNGExport( KoFilter */*parent*/, const char */*name*/, const TQString
}
-KoFilter::ConversionStatus PNGExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus PNGExport::convert( const TQCString& from, const TQCString& to )
{
if ( to != "image/png" || from != "application/x-kformula" )
return KoFilter::NotImplemented;
diff --git a/filters/kformula/png/pngexport.h b/filters/kformula/png/pngexport.h
index eb71df94..8dd3de34 100644
--- a/filters/kformula/png/pngexport.h
+++ b/filters/kformula/png/pngexport.h
@@ -33,7 +33,7 @@ public:
PNGExport( KoFilter *parent, const char *name, const TQStringList& );
virtual ~PNGExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // PNGEXPORT_H
diff --git a/filters/kformula/png/pngexportdia.cc b/filters/kformula/png/pngexportdia.cc
index 36741fa2..fb0407e0 100644
--- a/filters/kformula/png/pngexportdia.cc
+++ b/filters/kformula/png/pngexportdia.cc
@@ -20,7 +20,7 @@
#include <tqcheckbox.h>
#include <tqimage.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlineedit.h>
#include <tqpaintdevice.h>
#include <tqrect.h>
@@ -190,13 +190,13 @@ void PNGExportDia::setupGUI()
width->setText( i18n( "Width" ) );
heightEdit = new KIntNumInput( page, "heightEdit" );
- TQGridLayout* layout1 = new TQGridLayout;
- layout1->addWidget( height, 1, 0 );
- layout1->addWidget( widthEdit, 0, 1 );
- layout1->addWidget( width, 0, 0 );
- layout1->addWidget( heightEdit, 1, 1 );
+ TQGridLayout* tqlayout1 = new TQGridLayout;
+ tqlayout1->addWidget( height, 1, 0 );
+ tqlayout1->addWidget( widthEdit, 0, 1 );
+ tqlayout1->addWidget( width, 0, 0 );
+ tqlayout1->addWidget( heightEdit, 1, 1 );
- mainLayout->addLayout( layout1 );
+ mainLayout->addLayout( tqlayout1 );
TQLabel* percentHeight = new TQLabel( page, "PercentHeight" );
percentHeight->setText( i18n( "Height (%)" ) );
@@ -205,15 +205,15 @@ void PNGExportDia::setupGUI()
percWidthEdit = new KDoubleNumInput( page, "percWidthEdit" );
percHeightEdit = new KDoubleNumInput( page, "percHeightEdit" );
- TQGridLayout* layout2 = new TQGridLayout;
- layout2->addWidget( percWidthEdit, 0, 1 );
- layout2->addWidget( percHeightEdit, 1, 1 );
- layout2->addWidget( percentHeight, 1, 0 );
- layout2->addWidget( percentWidth, 0, 0 );
+ TQGridLayout* tqlayout2 = new TQGridLayout;
+ tqlayout2->addWidget( percWidthEdit, 0, 1 );
+ tqlayout2->addWidget( percHeightEdit, 1, 1 );
+ tqlayout2->addWidget( percentHeight, 1, 0 );
+ tqlayout2->addWidget( percentWidth, 0, 0 );
- mainLayout->addLayout( layout2 );
+ mainLayout->addLayout( tqlayout2 );
- /* Display the main layout */
+ /* Display the main tqlayout */
mainLayout->addStretch( 5 );
mainLayout->activate();
}
diff --git a/filters/kformula/svg/svgexport.cc b/filters/kformula/svg/svgexport.cc
index 328f1518..25758e82 100644
--- a/filters/kformula/svg/svgexport.cc
+++ b/filters/kformula/svg/svgexport.cc
@@ -48,7 +48,7 @@ SvgExport::~SvgExport()
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
SvgExport::convert(const TQCString& from, const TQCString& to)
{
// Check for proper conversion.
diff --git a/filters/kformula/svg/svgexport.h b/filters/kformula/svg/svgexport.h
index 0296e574..65a5cef1 100644
--- a/filters/kformula/svg/svgexport.h
+++ b/filters/kformula/svg/svgexport.h
@@ -32,7 +32,7 @@ public:
SvgExport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~SvgExport();
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif // __SVGEXPORT_H__
diff --git a/filters/kivio/imageexport/kivio_imageexport.cpp b/filters/kivio/imageexport/kivio_imageexport.cpp
index 2339dbf0..cd983fe6 100644
--- a/filters/kivio/imageexport/kivio_imageexport.cpp
+++ b/filters/kivio/imageexport/kivio_imageexport.cpp
@@ -55,7 +55,7 @@ ImageExport::ImageExport(KoFilter *, const char *, const TQStringList&)
KGlobal::locale()->insertCatalogue("kofficefilters");
}
-KoFilter::ConversionStatus ImageExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus ImageExport::convert(const TQCString& from, const TQCString& to)
{
if(from != "application/x-kivio") {
return KoFilter::BadMimeType;
diff --git a/filters/kivio/imageexport/kivio_imageexport.h b/filters/kivio/imageexport/kivio_imageexport.h
index 498204fa..e1946f0f 100644
--- a/filters/kivio/imageexport/kivio_imageexport.h
+++ b/filters/kivio/imageexport/kivio_imageexport.h
@@ -32,7 +32,7 @@ class ImageExport : public KoFilter
public:
ImageExport(KoFilter *, const char *, const TQStringList&);
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
}
diff --git a/filters/kivio/imageexport/kivio_imageexportwidget.ui b/filters/kivio/imageexport/kivio_imageexportwidget.ui
index 34feba57..41d73a4c 100644
--- a/filters/kivio/imageexport/kivio_imageexportwidget.ui
+++ b/filters/kivio/imageexport/kivio_imageexportwidget.ui
@@ -29,7 +29,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>40</height>
@@ -81,7 +81,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>60</width>
<height>21</height>
@@ -103,7 +103,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>70</width>
<height>20</height>
diff --git a/filters/kpresenter/kword/kprkword.cc b/filters/kpresenter/kword/kprkword.cc
index 8dd96c5f..d40cd608 100644
--- a/filters/kpresenter/kword/kprkword.cc
+++ b/filters/kpresenter/kword/kprkword.cc
@@ -41,7 +41,7 @@ KprKword::KprKword(KoFilter *, const char *, const TQStringList&) :
// This filter can act as an import filter for KWord and as an export
// filter for KPresenter (isn't our architecture really nice ? :)
// This is why we use the file-to-file method, not a TQDomDoc one.
-KoFilter::ConversionStatus KprKword::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus KprKword::convert( const TQCString& from, const TQCString& to )
{
if(to!="application/x-kword" || from!="application/x-kpresenter")
return KoFilter::NotImplemented;
diff --git a/filters/kpresenter/kword/kprkword.h b/filters/kpresenter/kword/kprkword.h
index 30932652..f4141a09 100644
--- a/filters/kpresenter/kword/kprkword.h
+++ b/filters/kpresenter/kword/kprkword.h
@@ -33,7 +33,7 @@ public:
virtual ~KprKword() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
protected:
void convert();
diff --git a/filters/kpresenter/libimageexport/imageexport.cpp b/filters/kpresenter/libimageexport/imageexport.cpp
index c4ceb243..b87b8635 100644
--- a/filters/kpresenter/libimageexport/imageexport.cpp
+++ b/filters/kpresenter/libimageexport/imageexport.cpp
@@ -42,7 +42,7 @@ ImageExport::~ImageExport()
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
ImageExport::convert(const TQCString& from, const TQCString& to)
{
KoDocument * document = m_chain->inputDocument();
diff --git a/filters/kpresenter/libimageexport/imageexport.h b/filters/kpresenter/libimageexport/imageexport.h
index 5cb89622..23f45e28 100644
--- a/filters/kpresenter/libimageexport/imageexport.h
+++ b/filters/kpresenter/libimageexport/imageexport.h
@@ -32,7 +32,7 @@ public:
ImageExport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~ImageExport();
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
virtual bool extraImageAttribute() { return true;};
virtual bool saveImage( TQString fileName) = 0;
virtual const char* exportFormat() = 0;
diff --git a/filters/kpresenter/magicpoint/mgp2kpr.py b/filters/kpresenter/magicpoint/mgp2kpr.py
index 97527471..e2e5b50a 100755
--- a/filters/kpresenter/magicpoint/mgp2kpr.py
+++ b/filters/kpresenter/magicpoint/mgp2kpr.py
@@ -56,7 +56,7 @@ class MgpImporter:
self.__reset() #init properties
def __reset(self):
- self.alignment="1" #text alignment, left
+ self.tqalignment="1" #text tqalignment, left
self.vgap=1 #line spacing
#font properties
@@ -167,14 +167,14 @@ class MgpImporter:
def __setAlign(self,command):
tokens=string.split(command,' ')
if (tokens[0]=='leftfill'): #justify
- self.alignment="8"
+ self.tqalignment="8"
elif (tokens[0]=='right'):
- self.alignment="2"
+ self.tqalignment="2"
elif (tokens[0]=='center'):
- self.alignment="4"
+ self.tqalignment="4"
else:
- self.alignment="1" #left
- #print self.alignment
+ self.tqalignment="1" #left
+ #print self.tqalignment
def __setBackground(self,parent):
pageElem=self.document.createElement("PAGE")
@@ -233,7 +233,7 @@ class MgpImporter:
indent=-1
pElem=self.document.createElement("P") #paragraph
- pElem.setAttribute("align", self.alignment)
+ pElem.setAttribute("align", self.tqalignment)
elem=self.document.createElement("NAME") #style name
elem.setAttribute("value", "Standard") ###is this needed at all?
@@ -283,7 +283,7 @@ class MgpImporter:
if (self.fontItalic!=0):
elem.setAttribute("italic", "1")
- text=self.document.createTextNode(unicode(line, self.charset, 'ignore'))
+ text=self.document.createTextNode(tqunicode(line, self.charset, 'ignore'))
elem.appendChild(text)
pElem.appendChild(elem)
self.textElem.appendChild(pElem)
@@ -377,7 +377,7 @@ class MgpImporter:
self.__setFontSize(command)
elif (command.startswith('left') or
command.startswith('center') or
- command.startswith('right')): #text alignment
+ command.startswith('right')): #text tqalignment
self.__setAlign(command)
elif (command.startswith('charset')): #charset
self.__setCharset(command)
diff --git a/filters/kpresenter/ooimpress/ooimpressexport.cc b/filters/kpresenter/ooimpress/ooimpressexport.cc
index 47173cb9..0e4771cf 100644
--- a/filters/kpresenter/ooimpress/ooimpressexport.cc
+++ b/filters/kpresenter/ooimpress/ooimpressexport.cc
@@ -54,7 +54,7 @@ OoImpressExport::~OoImpressExport()
delete m_storeinp;
}
-KoFilter::ConversionStatus OoImpressExport::convert( const TQCString & from,
+KoFilter::ConversiontqStatus OoImpressExport::convert( const TQCString & from,
const TQCString & to )
{
kdDebug(30518) << "Entering Ooimpress Export filter: " << from << " - " << to << endl;
@@ -66,10 +66,10 @@ KoFilter::ConversionStatus OoImpressExport::convert( const TQCString & from,
}
// read in the KPresenter file
- KoFilter::ConversionStatus preStatus = openFile();
+ KoFilter::ConversiontqStatus pretqStatus = openFile();
- if ( preStatus != KoFilter::OK )
- return preStatus;
+ if ( pretqStatus != KoFilter::OK )
+ return pretqStatus;
TQDomImplementation impl;
TQDomDocument meta( impl.createDocumentType( "office:document-meta",
@@ -178,7 +178,7 @@ KoFilter::ConversionStatus OoImpressExport::convert( const TQCString & from,
return KoFilter::OK;
}
-KoFilter::ConversionStatus OoImpressExport::openFile()
+KoFilter::ConversiontqStatus OoImpressExport::openFile()
{
m_storeinp = KoStore::createStore( m_chain->inputFile(), KoStore::Read );
@@ -558,7 +558,7 @@ void OoImpressExport::createHelpLine( TQDomNode &helpline )
TQString str( "P%1,%2" );
int tmpX = ( int ) ( KoUnit::toMM( helplines.attribute("posX").toDouble() )*100 );
int tmpY = ( int ) ( KoUnit::toMM( helplines.attribute("posY").toDouble() )*100 );
- m_helpLine+=str.arg( TQString::number( tmpX ) ).arg( TQString::number( tmpY ) );
+ m_helpLine+=str.tqarg( TQString::number( tmpX ) ).tqarg( TQString::number( tmpY ) );
}
}
}
@@ -758,7 +758,7 @@ void OoImpressExport::appendNote( TQDomDocument & doc, TQDomElement & source, TQ
TQDomElement noteTextBox = doc.createElement( "draw:text-box" );
//TODO : add draw:text-box size :
- //<draw:text-box draw:style-name="gr2" draw:text-style-name="P2" draw:layer="layout" svg:width="13.336cm" svg:height="56.288cm" svg:x="-0.54cm" svg:y="-14.846cm">
+ //<draw:text-box draw:style-name="gr2" draw:text-style-name="P2" draw:layer="tqlayout" svg:width="13.336cm" svg:height="56.288cm" svg:x="-0.54cm" svg:y="-14.846cm">
TQStringList text = TQStringList::split( "\n", noteText );
for ( TQStringList::Iterator it = text.begin(); it != text.end(); ++it ) {
@@ -780,7 +780,7 @@ void OoImpressExport::appendTextbox( TQDomDocument & doc, TQDomElement & source,
TQString gs = m_styleFactory.createGraphicStyle( source );
textbox.setAttribute( "draw:style-name", gs );
- // set the geometry
+ // set the tqgeometry
set2DGeometry( source, textbox );
// parse every paragraph
@@ -876,7 +876,7 @@ void OoImpressExport::appendPicture( TQDomDocument & doc, TQDomElement & source,
image.setAttribute( "draw:style-name", gs );
TQDomElement key = source.namedItem( "KEY" ).toElement();
- TQString pictureName = TQString( "Picture/Picture%1" ).arg( m_pictureIndex );
+ TQString pictureName = TQString( "Picture/Picture%1" ).tqarg( m_pictureIndex );
image.setAttribute( "xlink:type", "simple" );
image.setAttribute( "xlink:show", "embed" );
@@ -909,7 +909,7 @@ void OoImpressExport::appendPicture( TQDomDocument & doc, TQDomElement & source,
}
image.setAttribute( "xlink:href", "#" + pictureName );
-// set the geometry
+// set the tqgeometry
set2DGeometry( source, image );
target.appendChild( image );
@@ -927,7 +927,7 @@ void OoImpressExport::appendLine( TQDomDocument & doc, TQDomElement & source, TQ
TQString gs = m_styleFactory.createGraphicStyle( source );
line.setAttribute( "draw:style-name", gs );
- // set the geometry
+ // set the tqgeometry
setLineGeometry( source, line );
target.appendChild( line );
@@ -941,7 +941,7 @@ void OoImpressExport::appendRectangle( TQDomDocument & doc, TQDomElement & sourc
TQString gs = m_styleFactory.createGraphicStyle( source );
rectangle.setAttribute( "draw:style-name", gs );
- // set the geometry
+ // set the tqgeometry
set2DGeometry( source, rectangle );
target.appendChild( rectangle );
@@ -955,7 +955,7 @@ void OoImpressExport::appendPolyline( TQDomDocument & doc, TQDomElement & source
TQString gs = m_styleFactory.createGraphicStyle( source );
polyline.setAttribute( "draw:style-name", gs );
- // set the geometry
+ // set the tqgeometry
set2DGeometry( source, polyline, false, true /*multipoint*/ );
target.appendChild( polyline );
@@ -974,7 +974,7 @@ void OoImpressExport::appendEllipse( TQDomDocument & doc, TQDomElement & source,
TQString gs = m_styleFactory.createGraphicStyle( source );
ellipse.setAttribute( "draw:style-name", gs );
- // set the geometry
+ // set the tqgeometry
set2DGeometry( source, ellipse, pieObject );
target.appendChild( ellipse );
@@ -998,7 +998,7 @@ void OoImpressExport::set2DGeometry( TQDomElement & source, TQDomElement & targe
target.setAttribute( "draw:id", TQString::number( m_objectIndex ) );
target.setAttribute( "svg:x", StyleFactory::toCM( orig.attribute( "x" ) ) );
- target.setAttribute( "svg:y", TQString( "%1cm" ).arg( KoUnit::toCM( y ) ) );
+ target.setAttribute( "svg:y", TQString( "%1cm" ).tqarg( KoUnit::toCM( y ) ) );
target.setAttribute( "svg:width", StyleFactory::toCM( size.attribute( "width" ) ) );
target.setAttribute( "svg:height", StyleFactory::toCM( size.attribute( "height" ) ) );
TQString nameStr = name.attribute("objectName");
@@ -1073,16 +1073,16 @@ void OoImpressExport::set2DGeometry( TQDomElement & source, TQDomElement & targe
if( elemPoint.hasAttribute( "point_y" ) )
tmpY = ( int ) ( KoUnit::toMM(elemPoint.attribute( "point_y" ).toDouble() )*100 );
if ( !listOfPoint.isEmpty() )
- listOfPoint += TQString( " %1,%2" ).arg( tmpX ).arg( tmpY );
+ listOfPoint += TQString( " %1,%2" ).tqarg( tmpX ).tqarg( tmpY );
else
- listOfPoint = TQString( "%1,%2" ).arg( tmpX ).arg( tmpY );
+ listOfPoint = TQString( "%1,%2" ).tqarg( tmpX ).tqarg( tmpY );
maxX = TQMAX( maxX, tmpX );
maxY = TQMAX( maxY, tmpY );
}
elemPoint = elemPoint.nextSibling().toElement();
}
target.setAttribute( "draw:points", listOfPoint );
- target.setAttribute( "svg:viewBox", TQString( "0 0 %1 %2" ).arg( maxX ).arg( maxY ) );
+ target.setAttribute( "svg:viewBox", TQString( "0 0 %1 %2" ).tqarg( maxX ).tqarg( maxY ) );
}
}
}
@@ -1093,7 +1093,7 @@ TQString OoImpressExport::rotateValue( double val )
if ( val!=0.0 )
{
double value = -1 * ( ( double )val* M_PI )/180.0;
- str=TQString( "rotate (%1)" ).arg( value );
+ str=TQString( "rotate (%1)" ).tqarg( value );
}
return str;
}
@@ -1125,29 +1125,29 @@ void OoImpressExport::setLineGeometry( TQDomElement & source, TQDomElement & tar
target.setAttribute( "draw:id", TQString::number( m_objectIndex ) );
TQString xpos1 = StyleFactory::toCM( orig.attribute( "x" ) );
- TQString xpos2 = TQString( "%1cm" ).arg( KoUnit::toCM( x2 ) );
+ TQString xpos2 = TQString( "%1cm" ).tqarg( KoUnit::toCM( x2 ) );
if ( type == 0 )
{
- target.setAttribute( "svg:y1", TQString( "%1cm" ).arg( KoUnit::toCM( y2/2.0 ) ) );
- target.setAttribute( "svg:y2", TQString( "%1cm" ).arg( KoUnit::toCM( y2/2.0 ) ) );
+ target.setAttribute( "svg:y1", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2/2.0 ) ) );
+ target.setAttribute( "svg:y2", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2/2.0 ) ) );
}
else if ( type == 1 )
{
- target.setAttribute( "svg:y1", TQString( "%1cm" ).arg( KoUnit::toCM( y1 ) ) );
- target.setAttribute( "svg:y2", TQString( "%1cm" ).arg( KoUnit::toCM( y2 ) ) );
- xpos1 = TQString( "%1cm" ).arg( KoUnit::toCM( x1/2.0 ) );
+ target.setAttribute( "svg:y1", TQString( "%1cm" ).tqarg( KoUnit::toCM( y1 ) ) );
+ target.setAttribute( "svg:y2", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2 ) ) );
+ xpos1 = TQString( "%1cm" ).tqarg( KoUnit::toCM( x1/2.0 ) );
xpos2 = xpos1;
}
else if ( type == 3 ) // from left bottom to right top
{
- target.setAttribute( "svg:y1", TQString( "%1cm" ).arg( KoUnit::toCM( y2 ) ) );
- target.setAttribute( "svg:y2", TQString( "%1cm" ).arg( KoUnit::toCM( y1 ) ) );
+ target.setAttribute( "svg:y1", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2 ) ) );
+ target.setAttribute( "svg:y2", TQString( "%1cm" ).tqarg( KoUnit::toCM( y1 ) ) );
}
else // from left top to right bottom
{
- target.setAttribute( "svg:y1", TQString( "%1cm" ).arg( KoUnit::toCM( y1 ) ) );
- target.setAttribute( "svg:y2", TQString( "%1cm" ).arg( KoUnit::toCM( y2 ) ) );
+ target.setAttribute( "svg:y1", TQString( "%1cm" ).tqarg( KoUnit::toCM( y1 ) ) );
+ target.setAttribute( "svg:y2", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2 ) ) );
}
target.setAttribute( "svg:x1", xpos1 );
target.setAttribute( "svg:x2", xpos2 );
diff --git a/filters/kpresenter/ooimpress/ooimpressexport.h b/filters/kpresenter/ooimpress/ooimpressexport.h
index dec5ec4c..ac369192 100644
--- a/filters/kpresenter/ooimpress/ooimpressexport.h
+++ b/filters/kpresenter/ooimpress/ooimpressexport.h
@@ -37,11 +37,11 @@ public:
OoImpressExport( KoFilter * parent, const char * name, const TQStringList & );
virtual ~OoImpressExport();
- virtual KoFilter::ConversionStatus convert( const TQCString & from,
+ virtual KoFilter::ConversiontqStatus convert( const TQCString & from,
const TQCString & to );
private:
- KoFilter::ConversionStatus openFile();
+ KoFilter::ConversiontqStatus openFile();
void exportBody( TQDomDocument & doccontent, TQDomElement & body );
void createDocumentMeta( TQDomDocument & docmeta );
diff --git a/filters/kpresenter/ooimpress/ooimpressimport.cc b/filters/kpresenter/ooimpress/ooimpressimport.cc
index 77e1f38c..1dab566d 100644
--- a/filters/kpresenter/ooimpress/ooimpressimport.cc
+++ b/filters/kpresenter/ooimpress/ooimpressimport.cc
@@ -67,7 +67,7 @@ OoImpressImport::~OoImpressImport()
m_animations.clear();
}
-KoFilter::ConversionStatus OoImpressImport::convert( TQCString const & from, TQCString const & to )
+KoFilter::ConversiontqStatus OoImpressImport::convert( TQCString const & from, TQCString const & to )
{
kdDebug(30518) << "Entering Ooimpress Import filter: " << from << " - " << to << endl;
@@ -87,13 +87,13 @@ KoFilter::ConversionStatus OoImpressImport::convert( TQCString const & from, TQC
return KoFilter::FileNotFound;
}
- KoFilter::ConversionStatus preStatus = openFile();
+ KoFilter::ConversiontqStatus pretqStatus = openFile();
- if ( preStatus != KoFilter::OK )
+ if ( pretqStatus != KoFilter::OK )
{
m_zip->close();
delete m_zip;
- return preStatus;
+ return pretqStatus;
}
TQDomDocument docinfo;
@@ -129,9 +129,9 @@ KoFilter::ConversionStatus OoImpressImport::convert( TQCString const & from, TQC
}
// Very related to OoWriterImport::openFile()
-KoFilter::ConversionStatus OoImpressImport::openFile()
+KoFilter::ConversiontqStatus OoImpressImport::openFile()
{
- KoFilter::ConversionStatus status = loadAndParse( "content.xml", m_content );
+ KoFilter::ConversiontqStatus status = loadAndParse( "content.xml", m_content );
if ( status != KoFilter::OK )
{
kdError(30518) << "Content.xml could not be parsed correctly! Aborting!" << endl;
@@ -150,7 +150,7 @@ KoFilter::ConversionStatus OoImpressImport::openFile()
return KoFilter::OK;
}
-KoFilter::ConversionStatus OoImpressImport::loadAndParse(const TQString& filename, TQDomDocument& doc)
+KoFilter::ConversiontqStatus OoImpressImport::loadAndParse(const TQString& filename, TQDomDocument& doc)
{
return OoUtils::loadAndParse( filename, doc, m_zip);
}
@@ -1154,7 +1154,7 @@ void OoImpressImport::appendImage( TQDomDocument& doc, TQDomElement& e, TQDomEle
// create a key for the picture
TQTime time = TQTime::currentTime();
- TQDate date = TQDate::currentDate();
+ TQDate date = TQDate::tqcurrentDate();
TQDomElement image = doc.createElement( "KEY" );
image.setAttribute( "msec", time.msec() );
@@ -1214,7 +1214,7 @@ void OoImpressImport::appendBackgroundImage( TQDomDocument& doc, TQDomElement& e
// create a key for the picture
TQTime time = TQTime::currentTime();
- TQDate date = TQDate::currentDate();
+ TQDate date = TQDate::tqcurrentDate();
TQDomElement image = doc.createElement( "BACKPICTUREKEY" );
image.setAttribute( "msec", time.msec() );
@@ -1498,15 +1498,15 @@ TQDomElement OoImpressImport::parseTextBox( TQDomDocument& doc, const TQDomEleme
TQDomElement textObjectElement = doc.createElement( "TEXTOBJ" );
appendTextObjectMargin( doc, textObjectElement );
- // vertical alignment
+ // vertical tqalignment
if ( m_styleStack.hasAttributeNS( ooNS::draw, "textarea-vertical-align" ) )
{
- TQString alignment = m_styleStack.attributeNS( ooNS::draw, "textarea-vertical-align" );
- if ( alignment == "top" )
+ TQString tqalignment = m_styleStack.attributeNS( ooNS::draw, "textarea-vertical-align" );
+ if ( tqalignment == "top" )
textObjectElement.setAttribute( "verticalAlign", "top" );
- else if ( alignment == "middle" )
+ else if ( tqalignment == "middle" )
textObjectElement.setAttribute( "verticalAlign", "center" );
- else if ( alignment == "bottom" )
+ else if ( tqalignment == "bottom" )
textObjectElement.setAttribute( "verticalAlign", "bottom" );
textObjectElement.setAttribute("verticalValue", 0.0);
@@ -1663,7 +1663,7 @@ TQDomElement OoImpressImport::parseParagraph( TQDomDocument& doc, const TQDomEle
p.appendChild(nameElem);
}
- // Paragraph alignment
+ // Paragraph tqalignment
if ( m_styleStack.hasAttributeNS( ooNS::fo, "text-align" ) )
{
TQString align = m_styleStack.attributeNS( ooNS::fo, "text-align" );
@@ -2046,7 +2046,7 @@ TQString OoImpressImport::storeImage( const TQDomElement& object )
KArchiveFile* file = (KArchiveFile*) m_zip->directory()->entry( url );
TQString extension = url.mid( url.find( '.' ) );
- TQString fileName = TQString( "picture%1" ).arg( m_numPicture++ ) + extension;
+ TQString fileName = TQString( "picture%1" ).tqarg( m_numPicture++ ) + extension;
KoStoreDevice* out = m_chain->storageFile( "pictures/" + fileName, KoStore::Write );
if ( file && out )
@@ -2072,7 +2072,7 @@ TQString OoImpressImport::storeSound(const TQDomElement & object, TQDomElement &
return TQString();
TQString extension = url.mid( url.find( '.' ) );
- TQString fileName = TQString( "sound%1" ).arg( m_numSound++ ) + extension;
+ TQString fileName = TQString( "sound%1" ).tqarg( m_numSound++ ) + extension;
fileName = "sounds/" + fileName;
KoStoreDevice* out = m_chain->storageFile( fileName, KoStore::Write );
@@ -2161,7 +2161,7 @@ void OoImpressImport::appendField(TQDomDocument& doc, TQDomElement& e, const TQD
bool fixed = (object.hasAttributeNS( ooNS::text, "fixed") && object.attributeNS( ooNS::text, "fixed", TQString())=="true");
if (!dt.isValid()) {
- dt = TQDateTime::currentDateTime(); // OOo docs say so :)
+ dt = TQDateTime::tqcurrentDateTime(); // OOo docs say so :)
fixed = false;
}
@@ -2196,7 +2196,7 @@ void OoImpressImport::appendField(TQDomDocument& doc, TQDomElement& e, const TQD
bool fixed = (object.hasAttributeNS( ooNS::text, "fixed") && object.attributeNS( ooNS::text, "fixed", TQString())=="true");
if (!dt.isValid()) {
- dt = TQDateTime::currentDateTime(); // OOo docs say so :)
+ dt = TQDateTime::tqcurrentDateTime(); // OOo docs say so :)
fixed = false;
}
@@ -2314,9 +2314,9 @@ void OoImpressImport::createPresentationAnimation(const TQDomElement& element)
{
const TQString localName = e.localName();
const TQString ns = e.namespaceURI();
- if ( ns == ooNS::presentation && localName == "show-shape" && e.hasAttributeNS( ooNS::draw, "shape-id" ) )
+ if ( ns == ooNS::presentation && localName == "show-tqshape" && e.hasAttributeNS( ooNS::draw, "tqshape-id" ) )
{
- TQString name = e.attributeNS( ooNS::draw, "shape-id", TQString() );
+ TQString name = e.attributeNS( ooNS::draw, "tqshape-id", TQString() );
//kdDebug(30518)<<" insert animation style : name :"<<name<<endl;
animationList *lst = new animationList;
TQDomElement* ep = new TQDomElement( e );
@@ -2342,8 +2342,8 @@ TQDomElement OoImpressImport::findAnimationByObjectID(const TQString & id, int
{
TQDomElement e = node.toElement();
order = animation->order;
- kdDebug(30518)<<"e.tagName() :"<<e.tagName()<<" e.attribute(draw:shape-id) :"<<e.attributeNS( ooNS::draw, "shape-id", TQString())<<endl;
- if (e.tagName()=="presentation:show-shape" && e.attributeNS( ooNS::draw, "shape-id", TQString())==id)
+ kdDebug(30518)<<"e.tagName() :"<<e.tagName()<<" e.attribute(draw:tqshape-id) :"<<e.attributeNS( ooNS::draw, "tqshape-id", TQString())<<endl;
+ if (e.tagName()=="presentation:show-tqshape" && e.attributeNS( ooNS::draw, "tqshape-id", TQString())==id)
return e;
}
diff --git a/filters/kpresenter/ooimpress/ooimpressimport.h b/filters/kpresenter/ooimpress/ooimpressimport.h
index b187d189..596ca703 100644
--- a/filters/kpresenter/ooimpress/ooimpressimport.h
+++ b/filters/kpresenter/ooimpress/ooimpressimport.h
@@ -46,7 +46,7 @@ public:
OoImpressImport( KoFilter * parent, const char * name, const TQStringList & );
virtual ~OoImpressImport();
- virtual KoFilter::ConversionStatus convert( TQCString const & from, TQCString const & to );
+ virtual KoFilter::ConversiontqStatus convert( TQCString const & from, TQCString const & to );
private:
void createDocumentInfo( TQDomDocument &docinfo );
@@ -96,8 +96,8 @@ private:
bool parseSettings( TQDomDocument &doc, TQDomElement &helpLineElement, TQDomElement &attributeElement );
void parseHelpLine( TQDomDocument &doc,TQDomElement &helpLineElement, const TQString &text );
- KoFilter::ConversionStatus openFile();
- KoFilter::ConversionStatus loadAndParse(const TQString& filename, TQDomDocument& doc);
+ KoFilter::ConversiontqStatus openFile();
+ KoFilter::ConversiontqStatus loadAndParse(const TQString& filename, TQDomDocument& doc);
int m_numPicture;
int m_numSound;
diff --git a/filters/kpresenter/ooimpress/status.html b/filters/kpresenter/ooimpress/status.html
index 8c34c4d1..f64a38b0 100644
--- a/filters/kpresenter/ooimpress/status.html
+++ b/filters/kpresenter/ooimpress/status.html
@@ -61,7 +61,7 @@
- Rounding (for rectangles)<br>
- Shadow<br>
- Text margins<br>
- -Qt::Vertical alignment for text<br>
+ -Qt::Vertical tqalignment for text<br>
- Text style (underline, sub/super script, bold, italic, strikeout, background color)<br>
- Paragraph style (line spacing, offset before/after paragraph, indent first/right/left, borders)<br>
- Presentation settings<br>
@@ -168,7 +168,7 @@
- Settings element (snap line drawing)<br>
- Export Transparency<br>
- Export Group Object<br>
- -Qt::Vertical alignment for text<br>
+ -Qt::Vertical tqalignment for text<br>
- Text margins<br>
- Export title/keyword/subject<br>
- Custom Slide Show<br>
diff --git a/filters/kpresenter/ooimpress/stylefactory.cc b/filters/kpresenter/ooimpress/stylefactory.cc
index e50b652e..a25ba52a 100644
--- a/filters/kpresenter/ooimpress/stylefactory.cc
+++ b/filters/kpresenter/ooimpress/stylefactory.cc
@@ -362,7 +362,7 @@ void StrokeDashStyle::toXML( TQDomDocument & doc, TQDomElement & e ) const
GradientStyle::GradientStyle( TQDomElement & gradient, int index )
{
- m_name = TQString( "Gradient %1" ).arg( index );
+ m_name = TQString( "Gradient %1" ).tqarg( index );
m_start_intensity = "100%";
m_end_intensity = "100%";
m_border = "0%";
@@ -393,8 +393,8 @@ GradientStyle::GradientStyle( TQDomElement & gradient, int index )
{
int cx = bGradient.attribute( "xfactor" ).toInt();
int cy = bGradient.attribute( "yfactor" ).toInt();
- m_cx = TQString( "%1%" ).arg( cx / 4 + 50 );
- m_cy = TQString( "%1%" ).arg( cy / 4 + 50 );
+ m_cx = TQString( "%1%" ).tqarg( cx / 4 + 50 );
+ m_cy = TQString( "%1%" ).tqarg( cy / 4 + 50 );
}
}
@@ -419,8 +419,8 @@ GradientStyle::GradientStyle( TQDomElement & gradient, int index )
{
int cx = gradient.attribute( "xfactor" ).toInt();
int cy = gradient.attribute( "yfactor" ).toInt();
- m_cx = TQString( "%1%" ).arg( cx / 4 + 50 );
- m_cy = TQString( "%1%" ).arg( cy / 4 + 50 );
+ m_cx = TQString( "%1%" ).tqarg( cx / 4 + 50 );
+ m_cy = TQString( "%1%" ).tqarg( cy / 4 + 50 );
}
}
@@ -615,8 +615,8 @@ PageMasterStyle::PageMasterStyle( TQDomElement & e, const uint index )
TQDomNode borders = e.namedItem( "PAPERBORDERS" );
TQDomElement b = borders.toElement();
- m_name = TQString( "PM%1" ).arg( index );
- m_style = TQString( "Default%1" ).arg( index );
+ m_name = TQString( "PM%1" ).tqarg( index );
+ m_style = TQString( "Default%1" ).tqarg( index );
m_margin_top = StyleFactory::toCM( b.attribute( "ptTop" ) );
m_margin_bottom = StyleFactory::toCM( b.attribute( "ptBottom" ) );
m_margin_left = StyleFactory::toCM( b.attribute( "ptLeft" ) );
@@ -675,7 +675,7 @@ PageStyle::PageStyle( StyleFactory * styleFactory, TQDomElement & e, const uint
m_bg_objects_visible = "true";
}
- m_name = TQString( "dp%1" ).arg( index );
+ m_name = TQString( "dp%1" ).tqarg( index );
// check if this is an empty page tag
if ( !e.hasChildNodes() )
@@ -718,7 +718,7 @@ PageStyle::PageStyle( StyleFactory * styleFactory, TQDomElement & e, const uint
//ISO8601 chapter 5.5.3.2
//TQDate doesn't encode it as this format.
- m_page_duration = TQString( "PT%1H%2M%3S" ).arg( hours ).arg( ms ).arg( sec );
+ m_page_duration = TQString( "PT%1H%2M%3S" ).tqarg( hours ).tqarg( ms ).tqarg( sec );
}
TQDomElement pageEffect = e.namedItem( "PGEFFECT" ).toElement();
@@ -899,11 +899,11 @@ bool PageStyle::operator==( const PageStyle & pageStyle ) const
TextStyle::TextStyle( TQDomElement & e, const uint index )
{
- m_name = TQString( "T%1" ).arg( index );
+ m_name = TQString( "T%1" ).tqarg( index );
if ( e.hasAttribute( "family" ) )
m_font_family = e.attribute( "family" );
if ( e.hasAttribute( "pointSize" ) )
- m_font_size = TQString( "%1pt" ).arg( e.attribute( "pointSize" ) );
+ m_font_size = TQString( "%1pt" ).tqarg( e.attribute( "pointSize" ) );
if ( e.hasAttribute( "color" ) )
m_color = e.attribute( "color" );
if ( e.hasAttribute( "bold" ) && e.attribute( "bold" ) == "1" )
@@ -1017,25 +1017,25 @@ GraphicStyle::GraphicStyle( StyleFactory * styleFactory, TQDomElement & e, const
}
if ( textObjectElement.hasAttribute( "bleftpt" ) )
{
- m_textMarginLeft = TQString( "%1pt" ).arg( textObjectElement.attribute( "bleftpt" ) );
+ m_textMarginLeft = TQString( "%1pt" ).tqarg( textObjectElement.attribute( "bleftpt" ) );
}
if ( textObjectElement.hasAttribute( "bbottompt" ) )
{
- m_textMarginBottom = TQString( "%1pt" ).arg( textObjectElement.attribute( "bbottompt" ) );
+ m_textMarginBottom = TQString( "%1pt" ).tqarg( textObjectElement.attribute( "bbottompt" ) );
}
if ( textObjectElement.hasAttribute( "btoppt" ) )
{
- m_textMarginTop = TQString( "%1pt" ).arg( textObjectElement.attribute( "btoppt" ) );
+ m_textMarginTop = TQString( "%1pt" ).tqarg( textObjectElement.attribute( "btoppt" ) );
}
if ( textObjectElement.hasAttribute( "brightpt" ) )
{
- m_textMarginRight = TQString( "%1pt" ).arg( textObjectElement.attribute( "brightpt" ) );
+ m_textMarginRight = TQString( "%1pt" ).tqarg( textObjectElement.attribute( "brightpt" ) );
}
}
- kdDebug(30518)<<" alignment :"<<m_textAlignment<<endl;
+ kdDebug(30518)<<" tqalignment :"<<m_textAlignment<<endl;
- m_name = TQString( "gr%1" ).arg( index );
+ m_name = TQString( "gr%1" ).tqarg( index );
if ( !pen.isNull() )
{
TQDomElement p = pen.toElement();
@@ -1352,7 +1352,7 @@ ParagraphStyle::ParagraphStyle( TQDomElement & e, const uint index )
TQDomNode lineSpacing = e.namedItem( "LINESPACING" );
TQDomNode counter = e.namedItem( "COUNTER" );
- m_name = TQString( "P%1" ).arg( index );
+ m_name = TQString( "P%1" ).tqarg( index );
if ( e.hasAttribute( "align" ) )
{
int align = e.attribute( "align" ).toInt();
@@ -1376,7 +1376,7 @@ ParagraphStyle::ParagraphStyle( TQDomElement & e, const uint index )
if ( !shadow.isNull() )
{
TQDomElement s = shadow.toElement();
- TQString distance = TQString( "%1pt" ).arg( s.attribute( "distance" ) );
+ TQString distance = TQString( "%1pt" ).tqarg( s.attribute( "distance" ) );
m_text_shadow = distance + " " + distance;
}
@@ -1416,7 +1416,7 @@ ParagraphStyle::ParagraphStyle( TQDomElement & e, const uint index )
else if ( type == "double" )
m_line_height = "200%";
else if ( type == "multiple" )
- m_line_height = TQString( "%1%" ).arg( l.attribute( "spacingvalue" ).toInt() * 100 );
+ m_line_height = TQString( "%1%" ).tqarg( l.attribute( "spacingvalue" ).toInt() * 100 );
else if ( type == "custom" )
m_line_spacing = StyleFactory::toCM( l.attribute( "spacingvalue" ) );
else if ( type == "atleast" )
@@ -1503,7 +1503,7 @@ TQString ParagraphStyle::parseBorder( TQDomElement e )
e.attribute( "green" ).toInt(),
e.attribute( "blue" ).toInt() );
- return TQString( "%1 %2 %3" ).arg( width ).arg( style ).arg( color.name() );
+ return TQString( "%1 %2 %3" ).tqarg( width ).tqarg( style ).tqarg( color.name() );
}
ListStyle::ListStyle( TQDomElement & e, const uint index )
@@ -1513,7 +1513,7 @@ ListStyle::ListStyle( TQDomElement & e, const uint index )
m_color = "#000000";
m_font_size = "100%";
- m_name = TQString( "L%1" ).arg( index );
+ m_name = TQString( "L%1" ).tqarg( index );
if ( e.hasAttribute( "type" ) )
{
@@ -1598,9 +1598,9 @@ void ListStyle::toXML( TQDomDocument & doc, TQDomElement & e ) const
if ( level > 1 )
{
properties.setAttribute( "text:min-label-width",
- TQString( "%1cm" ).arg( m_min_label_width ) );
+ TQString( "%1cm" ).tqarg( m_min_label_width ) );
properties.setAttribute( "text:space-before",
- TQString( "%1cm" ).arg( m_min_label_width * ( level - 1 ) ) );
+ TQString( "%1cm" ).tqarg( m_min_label_width * ( level - 1 ) ) );
}
if ( !m_color.isNull() )
diff --git a/filters/kpresenter/powerpoint/import/powerpointimport.cc b/filters/kpresenter/powerpoint/import/powerpointimport.cc
index 31d2b4a1..4f41aac7 100644
--- a/filters/kpresenter/powerpoint/import/powerpointimport.cc
+++ b/filters/kpresenter/powerpoint/import/powerpointimport.cc
@@ -30,7 +30,7 @@
#include <tqcstring.h>
#include <tqfile.h>
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <KoFilterChain.h>
@@ -80,7 +80,7 @@ PowerPointImport::~PowerPointImport()
delete d;
}
-KoFilter::ConversionStatus PowerPointImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus PowerPointImport::convert( const TQCString& from, const TQCString& to )
{
if ( from != "application/mspowerpoint" )
return KoFilter::NotImplemented;
@@ -156,8 +156,8 @@ TQByteArray PowerPointImport::createStyles()
TQByteArray stylesData;
TQBuffer stylesBuffer( stylesData );
- TQString pageWidth = TQString("%1pt").arg( d->presentation->masterSlide()->pageWidth() );
- TQString pageHeight = TQString("%1pt").arg( d->presentation->masterSlide()->pageHeight() );
+ TQString pageWidth = TQString("%1pt").tqarg( d->presentation->masterSlide()->pageWidth() );
+ TQString pageHeight = TQString("%1pt").tqarg( d->presentation->masterSlide()->pageHeight() );
stylesBuffer.open( IO_WriteOnly );
stylesWriter = new KoXmlWriter( &stylesBuffer );
@@ -178,10 +178,10 @@ TQByteArray PowerPointImport::createStyles()
// office:automatic-styles
stylesWriter->startElement( "office:automatic-styles" );
- stylesWriter->startElement( "style:page-layout" );
+ stylesWriter->startElement( "style:page-tqlayout" );
stylesWriter->addAttribute( "style:name","pm1" );
stylesWriter->addAttribute( "style:page-usage","all" );
- stylesWriter->startElement( "style:page-layout-properties" );
+ stylesWriter->startElement( "style:page-tqlayout-properties" );
stylesWriter->addAttribute( "fo:margin-bottom","0pt" );
stylesWriter->addAttribute( "fo:margin-left","0pt" );
stylesWriter->addAttribute( "fo:margin-right","0pt" );
@@ -189,8 +189,8 @@ TQByteArray PowerPointImport::createStyles()
stylesWriter->addAttribute( "fo:page-height", pageHeight );
stylesWriter->addAttribute( "fo:page-width", pageWidth );
stylesWriter->addAttribute( "style:print-orientation","landscape" );
- stylesWriter->endElement(); // style:page-layout-properties
- stylesWriter->endElement(); // style:page-layout
+ stylesWriter->endElement(); // style:page-tqlayout-properties
+ stylesWriter->endElement(); // style:page-tqlayout
stylesWriter->startElement( "style:style" );
stylesWriter->addAttribute( "style:name","dp1" );
@@ -237,7 +237,7 @@ TQByteArray PowerPointImport::createStyles()
stylesWriter->startElement( "office:master-styles" );
stylesWriter->startElement( "style:master-page" );
stylesWriter->addAttribute( "style:name", "Standard" );
- stylesWriter->addAttribute( "style:page-layout-name", "pm1" );
+ stylesWriter->addAttribute( "style:page-tqlayout-name", "pm1" );
stylesWriter->addAttribute( "draw:style-name", "dp1" );
stylesWriter->endElement();
stylesWriter->endElement();
@@ -351,11 +351,11 @@ void PowerPointImport::processEllipse (DrawObject* drawObject, KoXmlWriter* xmlW
{
if( !drawObject || !xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
xmlWriter->startElement( "draw:ellipse" );
xmlWriter->addAttribute( "draw:style-name", styleName );
@@ -363,7 +363,7 @@ void PowerPointImport::processEllipse (DrawObject* drawObject, KoXmlWriter* xmlW
xmlWriter->addAttribute( "svg:height", heightStr );
xmlWriter->addAttribute( "svg:x", xStr );
xmlWriter->addAttribute( "svg:y", yStr );
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->endElement(); // draw:ellipse
}
@@ -372,11 +372,11 @@ void PowerPointImport::processRectangle (DrawObject* drawObject, KoXmlWriter* xm
if( !drawObject ) return;
if( !xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
xmlWriter->startElement( "draw:rect" );
xmlWriter->addAttribute( "draw:style-name", styleName );
@@ -393,7 +393,7 @@ void PowerPointImport::processRectangle (DrawObject* drawObject, KoXmlWriter* xm
double xNew = xVec*cos(rotAngle) - yVec*sin(rotAngle);
double yNew = xVec*sin(rotAngle) + yVec*cos(rotAngle);
- TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").arg(rotAngle).arg(xNew+xMid).arg(yMid-yNew);
+ TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").tqarg(rotAngle).tqarg(xNew+xMid).tqarg(yMid-yNew);
xmlWriter->addAttribute( "draw:transform", rot );
}
else
@@ -401,7 +401,7 @@ void PowerPointImport::processRectangle (DrawObject* drawObject, KoXmlWriter* xm
xmlWriter->addAttribute( "svg:x", xStr );
xmlWriter->addAttribute( "svg:y", yStr );
}
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->endElement(); // draw:rect
}
@@ -409,13 +409,13 @@ void PowerPointImport::processRoundRectangle (DrawObject* drawObject, KoXmlWrite
{
if( !drawObject || !xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
- xmlWriter->startElement( "draw:custom-shape" );
+ xmlWriter->startElement( "draw:custom-tqshape" );
xmlWriter->addAttribute( "draw:style-name", styleName );
@@ -435,7 +435,7 @@ void PowerPointImport::processRoundRectangle (DrawObject* drawObject, KoXmlWrite
double xNew = xVec*cos(rotAngle) - yVec*sin(rotAngle);
double yNew = xVec*sin(rotAngle) + yVec*cos(rotAngle);
- TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").arg(rotAngle).arg(xNew+xMid).arg(yMid+yNew);
+ TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").tqarg(rotAngle).tqarg(xNew+xMid).tqarg(yMid+yNew);
xmlWriter->addAttribute( "draw:transform", rot );
}
else
@@ -448,7 +448,7 @@ void PowerPointImport::processRoundRectangle (DrawObject* drawObject, KoXmlWrite
double xNew = xVec*cos(rotAngle) - yVec*sin(rotAngle);
double yNew = xVec*sin(rotAngle) + yVec*cos(rotAngle);
- TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").arg(rotAngle).arg(xNew+xMid).arg(yMid-yNew);
+ TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").tqarg(rotAngle).tqarg(xNew+xMid).tqarg(yMid-yNew);
xmlWriter->addAttribute( "draw:transform", rot );
}
@@ -463,8 +463,8 @@ void PowerPointImport::processRoundRectangle (DrawObject* drawObject, KoXmlWrite
// xmlWriter->addAttribute( "svg:x", xStr );
// xmlWriter->addAttribute( "svg:y", yStr );
- xmlWriter->addAttribute( "draw:layer", "layout" );
- xmlWriter->startElement( "draw:enhanced-geometry" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
+ xmlWriter->startElement( "draw:enhanced-tqgeometry" );
xmlWriter->addAttribute( "draw:type", "round-rectangle");
xmlWriter->startElement( "draw:equation" );
xmlWriter->addAttribute( "draw:formula", "$0 /3" );
@@ -486,21 +486,21 @@ void PowerPointImport::processRoundRectangle (DrawObject* drawObject, KoXmlWrite
xmlWriter->addAttribute( "draw:formula", "top+?f0 " );
xmlWriter->addAttribute( "draw:name", "f4" );
xmlWriter->endElement(); // draw:equation
- xmlWriter->endElement(); // draw:enhanced-geometry
- xmlWriter->endElement(); // draw:custom-shape
+ xmlWriter->endElement(); // draw:enhanced-tqgeometry
+ xmlWriter->endElement(); // draw:custom-tqshape
}
void PowerPointImport::processDiamond (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
- xmlWriter->startElement( "draw:custom-shape" );
+ xmlWriter->startElement( "draw:custom-tqshape" );
xmlWriter->addAttribute( "draw:style-name", styleName );
xmlWriter->addAttribute( "svg:width", widthStr );
xmlWriter->addAttribute( "svg:height", heightStr );
@@ -522,10 +522,10 @@ void PowerPointImport::processDiamond (DrawObject* drawObject, KoXmlWriter* xmlW
xmlWriter->addAttribute( "svg:x", 10 );
xmlWriter->addAttribute( "svg:y", 5 );
xmlWriter->endElement();
- xmlWriter->startElement( "draw:enhanced-geometry" );
+ xmlWriter->startElement( "draw:enhanced-tqgeometry" );
xmlWriter->addAttribute( "draw:type", "diamond");
xmlWriter->endElement();
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->endElement();
}
@@ -533,20 +533,20 @@ void PowerPointImport::processTriangle (DrawObject* drawObject, KoXmlWriter* xml
{
if( !drawObject || !xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
/* draw IsocelesTriangle or RightTriangle */
- xmlWriter->startElement( "draw:custom-shape" );
+ xmlWriter->startElement( "draw:custom-tqshape" );
xmlWriter->addAttribute( "draw:style-name", styleName );
xmlWriter->addAttribute( "svg:width", widthStr );
xmlWriter->addAttribute( "svg:height", heightStr );
xmlWriter->addAttribute( "svg:x", xStr );
xmlWriter->addAttribute( "svg:y", yStr );
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->startElement( "draw:glue-point" );
xmlWriter->addAttribute( "svg:x", 5 );
xmlWriter->addAttribute( "svg:y", 0 );
@@ -572,7 +572,7 @@ void PowerPointImport::processTriangle (DrawObject* drawObject, KoXmlWriter* xml
xmlWriter->addAttribute( "svg:y", 5 );
xmlWriter->endElement();
- xmlWriter->startElement( "draw:enhanced-geometry" );
+ xmlWriter->startElement( "draw:enhanced-tqgeometry" );
if (drawObject->hasProperty("draw:mirror-vertical"))
{
@@ -588,14 +588,14 @@ void PowerPointImport::processTriangle (DrawObject* drawObject, KoXmlWriter* xml
double rotAngle = drawObject->getDoubleProperty("libppt:rotation" );
double xMid = ( drawObject->left() + 0.5*drawObject->width() );
double yMid = ( drawObject->top() + 0.5*drawObject->height() );
- TQString rot = TQString("rotate (%1) translate (%2cm %3cm)").arg(rotAngle).arg(xMid).arg(yMid);
+ TQString rot = TQString("rotate (%1) translate (%2cm %3cm)").tqarg(rotAngle).tqarg(xMid).tqarg(yMid);
xmlWriter->addAttribute( "draw:transform", rot );
}
- if (drawObject->shape() == DrawObject::RightTriangle)
+ if (drawObject->tqshape() == DrawObject::RightTriangle)
{
xmlWriter->addAttribute( "draw:type", "right-triangle");
}
- else if (drawObject->shape() == DrawObject::IsoscelesTriangle)
+ else if (drawObject->tqshape() == DrawObject::IsoscelesTriangle)
{
xmlWriter->addAttribute( "draw:type", "isosceles-triangle");
xmlWriter->startElement( "draw:equation" );
@@ -637,27 +637,27 @@ void PowerPointImport::processTriangle (DrawObject* drawObject, KoXmlWriter* xml
xmlWriter->endElement();
}
- xmlWriter->endElement(); // enhanced-geometry
- xmlWriter->endElement(); // custom-shape
+ xmlWriter->endElement(); // enhanced-tqgeometry
+ xmlWriter->endElement(); // custom-tqshape
}
void PowerPointImport::processTrapezoid (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
- xmlWriter->startElement( "draw:custom-shape" );
+ xmlWriter->startElement( "draw:custom-tqshape" );
xmlWriter->addAttribute( "draw:style-name", styleName );
xmlWriter->addAttribute( "svg:width", widthStr );
xmlWriter->addAttribute( "svg:height", heightStr );
xmlWriter->addAttribute( "svg:x", xStr );
xmlWriter->addAttribute( "svg:y", yStr );
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->startElement( "draw:glue-point" );
xmlWriter->addAttribute( "svg:x", 5 );
@@ -675,7 +675,7 @@ void PowerPointImport::processTrapezoid (DrawObject* drawObject, KoXmlWriter* xm
xmlWriter->addAttribute( "svg:x", 5 );
xmlWriter->addAttribute( "svg:y", 10 );
xmlWriter->endElement();
- xmlWriter->startElement( "draw:enhanced-geometry" );
+ xmlWriter->startElement( "draw:enhanced-tqgeometry" );
if ( drawObject->hasProperty("draw:mirror-vertical") )
{
xmlWriter->addAttribute("draw:mirror-vertical","true");
@@ -718,27 +718,27 @@ void PowerPointImport::processTrapezoid (DrawObject* drawObject, KoXmlWriter* xm
xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0);
xmlWriter->addAttribute("draw:handle-position","$0 bottom");
xmlWriter->endElement();
- xmlWriter->endElement(); // enhanced-geometry
- xmlWriter->endElement(); // custom-shape
+ xmlWriter->endElement(); // enhanced-tqgeometry
+ xmlWriter->endElement(); // custom-tqshape
}
void PowerPointImport::processParallelogram (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
- xmlWriter->startElement( "draw:custom-shape" );
+ xmlWriter->startElement( "draw:custom-tqshape" );
xmlWriter->addAttribute( "draw:style-name", styleName );
xmlWriter->addAttribute( "svg:width", widthStr );
xmlWriter->addAttribute( "svg:height", heightStr );
xmlWriter->addAttribute( "svg:x", xStr );
xmlWriter->addAttribute( "svg:y", yStr );
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->startElement( "draw:glue-point" );
xmlWriter->addAttribute( "svg:x", 6.25 );
xmlWriter->addAttribute( "svg:y", 0 );
@@ -763,7 +763,7 @@ void PowerPointImport::processParallelogram (DrawObject* drawObject, KoXmlWriter
xmlWriter->addAttribute( "svg:x", 1.25 );
xmlWriter->addAttribute( "svg:y", 5 );
xmlWriter->endElement();
- xmlWriter->startElement( "draw:enhanced-geometry" );
+ xmlWriter->startElement( "draw:enhanced-tqgeometry" );
if (drawObject->hasProperty("draw:mirror-vertical"))
{
xmlWriter->addAttribute("draw:mirror-vertical","true");
@@ -834,27 +834,27 @@ void PowerPointImport::processParallelogram (DrawObject* drawObject, KoXmlWriter
xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0);
xmlWriter->addAttribute("draw:handle-position","$0 top");
xmlWriter->endElement();
- xmlWriter->endElement(); // enhanced-geometry
- xmlWriter->endElement(); // custom-shape
+ xmlWriter->endElement(); // enhanced-tqgeometry
+ xmlWriter->endElement(); // custom-tqshape
}
void PowerPointImport::processHexagon (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
- xmlWriter->startElement( "draw:custom-shape" );
+ xmlWriter->startElement( "draw:custom-tqshape" );
xmlWriter->addAttribute( "draw:style-name", styleName );
xmlWriter->addAttribute( "svg:width", widthStr );
xmlWriter->addAttribute( "svg:height", heightStr );
xmlWriter->addAttribute( "svg:x", xStr );
xmlWriter->addAttribute( "svg:y", yStr );
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->startElement( "draw:glue-point" );
xmlWriter->addAttribute( "svg:x", 5 );
xmlWriter->addAttribute( "svg:y", 0 );
@@ -871,7 +871,7 @@ void PowerPointImport::processHexagon (DrawObject* drawObject, KoXmlWriter* xmlW
xmlWriter->addAttribute( "svg:x", 10 );
xmlWriter->addAttribute( "svg:y", 5 );
xmlWriter->endElement();
- xmlWriter->startElement( "draw:enhanced-geometry" );
+ xmlWriter->startElement( "draw:enhanced-tqgeometry" );
xmlWriter->addAttribute( "draw:type", "hexagon" );
xmlWriter->startElement( "draw:equation" );
xmlWriter->addAttribute( "draw:formula", "$0 " );
@@ -898,27 +898,27 @@ void PowerPointImport::processHexagon (DrawObject* drawObject, KoXmlWriter* xmlW
xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0);
xmlWriter->addAttribute("draw:handle-position","$0 top");
xmlWriter->endElement();
- xmlWriter->endElement(); // enhanced-geometry
- xmlWriter->endElement(); // custom-shape
+ xmlWriter->endElement(); // enhanced-tqgeometry
+ xmlWriter->endElement(); // custom-tqshape
}
void PowerPointImport::processOctagon (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
- xmlWriter->startElement( "draw:custom-shape" );
+ xmlWriter->startElement( "draw:custom-tqshape" );
xmlWriter->addAttribute( "draw:style-name", styleName );
xmlWriter->addAttribute( "svg:width", widthStr );
xmlWriter->addAttribute( "svg:height", heightStr );
xmlWriter->addAttribute( "svg:x", xStr );
xmlWriter->addAttribute( "svg:y", yStr );
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->startElement( "draw:glue-point" );
xmlWriter->addAttribute( "svg:x", 5 );
xmlWriter->addAttribute( "svg:y", 0 );
@@ -935,7 +935,7 @@ void PowerPointImport::processOctagon (DrawObject* drawObject, KoXmlWriter* xmlW
xmlWriter->addAttribute( "svg:x", 10 );
xmlWriter->addAttribute( "svg:y", 4.782 );
xmlWriter->endElement();
- xmlWriter->startElement( "draw:enhanced-geometry" );
+ xmlWriter->startElement( "draw:enhanced-tqgeometry" );
xmlWriter->addAttribute( "draw:type", "octagon" );
xmlWriter->startElement( "draw:equation" );
xmlWriter->addAttribute( "draw:formula", "left+$0 " );
@@ -978,36 +978,36 @@ void PowerPointImport::processOctagon (DrawObject* drawObject, KoXmlWriter* xmlW
xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0);
xmlWriter->addAttribute("draw:handle-position","$0 top");
xmlWriter->endElement();
- xmlWriter->endElement(); // enhanced-geometry
- xmlWriter->endElement(); // custom-shape
+ xmlWriter->endElement(); // enhanced-tqgeometry
+ xmlWriter->endElement(); // custom-tqshape
}
void PowerPointImport::processArrow (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
- xmlWriter->startElement( "draw:custom-shape" );
+ xmlWriter->startElement( "draw:custom-tqshape" );
xmlWriter->addAttribute( "draw:style-name", styleName );
xmlWriter->addAttribute( "svg:width", widthStr );
xmlWriter->addAttribute( "svg:height", heightStr );
xmlWriter->addAttribute( "svg:x", xStr );
xmlWriter->addAttribute( "svg:y", yStr );
- xmlWriter->addAttribute( "draw:layer", "layout" );
- xmlWriter->startElement( "draw:enhanced-geometry" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
+ xmlWriter->startElement( "draw:enhanced-tqgeometry" );
- if (drawObject->shape() == DrawObject::RightArrow)
+ if (drawObject->tqshape() == DrawObject::RightArrow)
xmlWriter->addAttribute( "draw:type", "right-arrow" );
- else if (drawObject->shape() == DrawObject::LeftArrow)
+ else if (drawObject->tqshape() == DrawObject::LeftArrow)
xmlWriter->addAttribute( "draw:type", "left-arrow" );
- else if (drawObject->shape() == DrawObject::UpArrow)
+ else if (drawObject->tqshape() == DrawObject::UpArrow)
xmlWriter->addAttribute( "draw:type", "up-arrow" );
- else if (drawObject->shape() == DrawObject::DownArrow)
+ else if (drawObject->tqshape() == DrawObject::DownArrow)
xmlWriter->addAttribute( "draw:type", "down-arrow" );
xmlWriter->startElement( "draw:equation" );
xmlWriter->addAttribute( "draw:formula","$1");
@@ -1042,7 +1042,7 @@ void PowerPointImport::processArrow (DrawObject* drawObject, KoXmlWriter* xmlWri
xmlWriter->addAttribute( "draw:name","f7");
xmlWriter->endElement(); // draw:equation
xmlWriter->startElement( "draw:handle" );
- if ( drawObject->shape() == DrawObject::RightArrow | drawObject->shape() == DrawObject::LeftArrow )
+ if ( drawObject->tqshape() == DrawObject::RightArrow | drawObject->tqshape() == DrawObject::LeftArrow )
{
xmlWriter->addAttribute( "draw:handle-range-x-maximum", 21600);
xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0);
@@ -1050,7 +1050,7 @@ void PowerPointImport::processArrow (DrawObject* drawObject, KoXmlWriter* xmlWri
xmlWriter->addAttribute("draw:handle-range-y-maximum",10800);
xmlWriter->addAttribute("draw:handle-range-y-minimum",0);
}
- else if ( drawObject->shape() == DrawObject::UpArrow | drawObject->shape() == DrawObject::DownArrow )
+ else if ( drawObject->tqshape() == DrawObject::UpArrow | drawObject->tqshape() == DrawObject::DownArrow )
{
xmlWriter->addAttribute( "draw:handle-range-x-maximum", 10800);
xmlWriter->addAttribute( "draw:handle-range-x-minimum", 0);
@@ -1059,19 +1059,19 @@ void PowerPointImport::processArrow (DrawObject* drawObject, KoXmlWriter* xmlWri
xmlWriter->addAttribute("draw:handle-range-y-minimum",0);
}
xmlWriter->endElement(); // draw:handle
- xmlWriter->endElement(); // draw:enhanced-geometry
- xmlWriter->endElement(); // draw:custom-shape
+ xmlWriter->endElement(); // draw:enhanced-tqgeometry
+ xmlWriter->endElement(); // draw:custom-tqshape
}
void PowerPointImport::processLine (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter) return;
- TQString x1Str = TQString("%1mm").arg( drawObject->left() );
- TQString y1Str = TQString("%1mm").arg( drawObject->top() );
- TQString x2Str = TQString("%1mm").arg( drawObject->left() + drawObject->width() );
- TQString y2Str = TQString("%1mm").arg( drawObject->top() + drawObject->height() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString x1Str = TQString("%1mm").tqarg( drawObject->left() );
+ TQString y1Str = TQString("%1mm").tqarg( drawObject->top() );
+ TQString x2Str = TQString("%1mm").tqarg( drawObject->left() + drawObject->width() );
+ TQString y2Str = TQString("%1mm").tqarg( drawObject->top() + drawObject->height() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
if ( drawObject->hasProperty("draw:mirror-vertical") )
{ TQString temp = y1Str;
@@ -1090,7 +1090,7 @@ void PowerPointImport::processLine (DrawObject* drawObject, KoXmlWriter* xmlWrit
xmlWriter->addAttribute( "svg:y2", y2Str );
xmlWriter->addAttribute( "svg:x1", x1Str );
xmlWriter->addAttribute( "svg:x2", x2Str );
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->endElement();
}
@@ -1099,19 +1099,19 @@ void PowerPointImport::processSmiley (DrawObject* drawObject, KoXmlWriter* xmlWr
{
if( !drawObject ||!xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
- xmlWriter->startElement( "draw:custom-shape" );
+ xmlWriter->startElement( "draw:custom-tqshape" );
xmlWriter->addAttribute( "draw:style-name", styleName );
xmlWriter->addAttribute( "svg:width", widthStr );
xmlWriter->addAttribute( "svg:height", heightStr );
xmlWriter->addAttribute( "svg:x", xStr );
xmlWriter->addAttribute( "svg:y", yStr );
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->startElement( "draw:glue-point" );
xmlWriter->addAttribute( "svg:x", 5 );
xmlWriter->addAttribute( "svg:y", 0 );
@@ -1136,7 +1136,7 @@ void PowerPointImport::processSmiley (DrawObject* drawObject, KoXmlWriter* xmlWr
xmlWriter->addAttribute( "svg:x", 8.536 );
xmlWriter->addAttribute( "svg:y", 1.461 );
xmlWriter->endElement();
- xmlWriter->startElement( "draw:enhanced-geometry" );
+ xmlWriter->startElement( "draw:enhanced-tqgeometry" );
xmlWriter->addAttribute( "draw:type", "smiley" );
xmlWriter->startElement( "draw:equation" );
xmlWriter->addAttribute( "draw:formula", "$0-15510 " );
@@ -1156,27 +1156,27 @@ void PowerPointImport::processSmiley (DrawObject* drawObject, KoXmlWriter* xmlWr
xmlWriter->addAttribute( "draw:handle-range-y-minimum", 15510);
xmlWriter->addAttribute("draw:handle-position","$0 top");
xmlWriter->endElement();
- xmlWriter->endElement(); // enhanced-geometry
- xmlWriter->endElement(); // custom-shape
+ xmlWriter->endElement(); // enhanced-tqgeometry
+ xmlWriter->endElement(); // custom-tqshape
}
void PowerPointImport::processHeart (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
- xmlWriter->startElement( "draw:custom-shape" );
+ xmlWriter->startElement( "draw:custom-tqshape" );
xmlWriter->addAttribute( "draw:style-name", styleName );
xmlWriter->addAttribute( "svg:width", widthStr );
xmlWriter->addAttribute( "svg:height", heightStr );
xmlWriter->addAttribute( "svg:x", xStr );
xmlWriter->addAttribute( "svg:y", yStr );
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->startElement( "draw:glue-point" );
xmlWriter->addAttribute( "svg:x", 5 );
xmlWriter->addAttribute( "svg:y", 1 );
@@ -1193,22 +1193,22 @@ void PowerPointImport::processHeart (DrawObject* drawObject, KoXmlWriter* xmlWri
xmlWriter->addAttribute( "svg:x", 8.553 );
xmlWriter->addAttribute( "svg:y", 5 );
xmlWriter->endElement();
- xmlWriter->startElement( "draw:enhanced-geometry" );
+ xmlWriter->startElement( "draw:enhanced-tqgeometry" );
xmlWriter->addAttribute( "draw:type", "heart" );
- xmlWriter->endElement(); // enhanced-geometry
- xmlWriter->endElement(); // custom-shape
+ xmlWriter->endElement(); // enhanced-tqgeometry
+ xmlWriter->endElement(); // custom-tqshape
}
void PowerPointImport::processFreeLine (DrawObject* drawObject, KoXmlWriter* xmlWriter)
{
if( !drawObject ||!xmlWriter ) return;
- TQString widthStr = TQString("%1mm").arg( drawObject->width() );
- TQString heightStr = TQString("%1mm").arg( drawObject->height() );
- TQString xStr = TQString("%1mm").arg( drawObject->left() );
- TQString yStr = TQString("%1mm").arg( drawObject->top() );
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString widthStr = TQString("%1mm").tqarg( drawObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( drawObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( drawObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( drawObject->top() );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
xmlWriter->startElement( "draw:path" );
xmlWriter->addAttribute( "draw:style-name", styleName );
@@ -1216,7 +1216,7 @@ void PowerPointImport::processFreeLine (DrawObject* drawObject, KoXmlWriter* xml
xmlWriter->addAttribute( "svg:height", heightStr );
xmlWriter->addAttribute( "svg:x", xStr );
xmlWriter->addAttribute( "svg:y", yStr );
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->endElement(); // path
}
@@ -1228,63 +1228,63 @@ void PowerPointImport::processDrawingObjectForBody( DrawObject* drawObject, KoXm
drawingObjectCounter++;
- if (drawObject->shape() == DrawObject::Ellipse)
+ if (drawObject->tqshape() == DrawObject::Ellipse)
{
processEllipse (drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::Rectangle)
+ else if (drawObject->tqshape() == DrawObject::Rectangle)
{
processRectangle (drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::RoundRectangle)
+ else if (drawObject->tqshape() == DrawObject::RoundRectangle)
{
processRoundRectangle (drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::Diamond)
+ else if (drawObject->tqshape() == DrawObject::Diamond)
{
processDiamond (drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::IsoscelesTriangle |
- drawObject->shape() == DrawObject::RightTriangle)
+ else if (drawObject->tqshape() == DrawObject::IsoscelesTriangle |
+ drawObject->tqshape() == DrawObject::RightTriangle)
{
processTriangle (drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::Trapezoid)
+ else if (drawObject->tqshape() == DrawObject::Trapezoid)
{
processTrapezoid (drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::Parallelogram)
+ else if (drawObject->tqshape() == DrawObject::Parallelogram)
{
processParallelogram( drawObject, xmlWriter);
}
- else if (drawObject->shape() == DrawObject::Hexagon)
+ else if (drawObject->tqshape() == DrawObject::Hexagon)
{
processHexagon ( drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::Octagon)
+ else if (drawObject->tqshape() == DrawObject::Octagon)
{
processOctagon ( drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::RightArrow |
- drawObject->shape() == DrawObject::LeftArrow |
- drawObject->shape() == DrawObject::UpArrow |
- drawObject->shape() == DrawObject::DownArrow )
+ else if (drawObject->tqshape() == DrawObject::RightArrow |
+ drawObject->tqshape() == DrawObject::LeftArrow |
+ drawObject->tqshape() == DrawObject::UpArrow |
+ drawObject->tqshape() == DrawObject::DownArrow )
{
processArrow ( drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::Line)
+ else if (drawObject->tqshape() == DrawObject::Line)
{
processLine ( drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::Smiley)
+ else if (drawObject->tqshape() == DrawObject::Smiley)
{
processSmiley (drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::Heart)
+ else if (drawObject->tqshape() == DrawObject::Heart)
{
processHeart (drawObject, xmlWriter );
}
- else if (drawObject->shape() == DrawObject::FreeLine)
+ else if (drawObject->tqshape() == DrawObject::FreeLine)
{
processFreeLine (drawObject, xmlWriter );
}
@@ -1317,14 +1317,14 @@ void PowerPointImport::processTextObjectForBody( TextObject* textObject, KoXmlWr
// TQString pStr = string( textObject->text() ).string();
TQString pStr;
- TQString widthStr = TQString("%1mm").arg( textObject->width() );
- TQString heightStr = TQString("%1mm").arg( textObject->height() );
- TQString xStr = TQString("%1mm").arg( textObject->left() );
- TQString yStr = TQString("%1mm").arg( textObject->top() );
+ TQString widthStr = TQString("%1mm").tqarg( textObject->width() );
+ TQString heightStr = TQString("%1mm").tqarg( textObject->height() );
+ TQString xStr = TQString("%1mm").tqarg( textObject->left() );
+ TQString yStr = TQString("%1mm").tqarg( textObject->top() );
xmlWriter->startElement( "draw:frame" );
xmlWriter->addAttribute( "presentation:style-name", "pr1" );
- xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->addAttribute( "draw:layer", "tqlayout" );
xmlWriter->addAttribute( "svg:width", widthStr );
xmlWriter->addAttribute( "svg:height", heightStr );
xmlWriter->addAttribute( "svg:x", xStr );
@@ -1381,15 +1381,15 @@ void PowerPointImport::processSlideForBody( unsigned slideNo, Slide* slide, KoXm
TQString nameStr = Libppt::string( slide->title() ).string();
if( nameStr.isEmpty() )
- nameStr = TQString("page%1").arg(slideNo+1);
+ nameStr = TQString("page%1").tqarg(slideNo+1);
- TQString styleNameStr = TQString("dp%1").arg(slideNo+1);
+ TQString styleNameStr = TQString("dp%1").tqarg(slideNo+1);
xmlWriter->startElement( "draw:page" );
xmlWriter->addAttribute( "draw:master-page-name", "Default" );
xmlWriter->addAttribute( "draw:name", nameStr );
xmlWriter->addAttribute( "draw:style-name", styleNameStr );
- xmlWriter->addAttribute( "presentation:presentation-page-layout-name", "AL1T0");
+ xmlWriter->addAttribute( "presentation:presentation-page-tqlayout-name", "AL1T0");
GroupObject* root = slide->rootObject();
if( root )
@@ -1450,7 +1450,7 @@ void PowerPointImport::processDrawingObjectForStyle( DrawObject* drawObject, KoX
if( !drawObject || !xmlWriter) return;
drawingObjectCounter++;
- TQString styleName = TQString("gr%1").arg( drawingObjectCounter );
+ TQString styleName = TQString("gr%1").tqarg( drawingObjectCounter );
xmlWriter->startElement( "style:style" );
xmlWriter->addAttribute( "style:name", styleName );
@@ -1490,7 +1490,7 @@ void PowerPointImport::processDrawingObjectForStyle( DrawObject* drawObject, KoX
if( drawObject->hasProperty( "svg:stroke-width" ) )
{
double strokeWidth = drawObject->getDoubleProperty("svg:stroke-width" );
- xmlWriter->addAttribute( "svg:stroke-width",TQString("%1mm").arg( strokeWidth ) );
+ xmlWriter->addAttribute( "svg:stroke-width",TQString("%1mm").tqarg( strokeWidth ) );
}
if( drawObject->hasProperty( "svg:stroke-color" ) )
@@ -1528,14 +1528,14 @@ void PowerPointImport::processDrawingObjectForStyle( DrawObject* drawObject, KoX
{
double strokeWidth = drawObject->getDoubleProperty("svg:stroke-width" );
double arrowWidth = (drawObject->getDoubleProperty("draw:marker-start-width") * strokeWidth);
- xmlWriter->addAttribute( "draw:marker-start-width",TQString("%1cm").arg( arrowWidth ) );
+ xmlWriter->addAttribute( "draw:marker-start-width",TQString("%1cm").tqarg( arrowWidth ) );
}
if( drawObject->hasProperty( "draw:marker-end-width" ) )
{
double strokeWidth = drawObject->getDoubleProperty("svg:stroke-width" );
double arrowWidth = (drawObject->getDoubleProperty("draw:marker-end-width") * strokeWidth);
- xmlWriter->addAttribute( "draw:marker-end-width",TQString("%1cm").arg( arrowWidth ) );
+ xmlWriter->addAttribute( "draw:marker-end-width",TQString("%1cm").tqarg( arrowWidth ) );
}
@@ -1569,19 +1569,19 @@ void PowerPointImport::processDrawingObjectForStyle( DrawObject* drawObject, KoX
if( drawObject->hasProperty( "draw:shadow-opacity" ) )
{
double opacity = drawObject->getDoubleProperty("draw:shadow-opacity") ;
- xmlWriter->addAttribute( "draw:shadow-opacity",TQString("%1%").arg( opacity ) );
+ xmlWriter->addAttribute( "draw:shadow-opacity",TQString("%1%").tqarg( opacity ) );
}
if( drawObject->hasProperty( "draw:shadow-offset-x" ) )
{
double offset = drawObject->getDoubleProperty("draw:shadow-offset-x") ;
- xmlWriter->addAttribute( "draw:shadow-offset-x",TQString("%1cm").arg( offset ) );
+ xmlWriter->addAttribute( "draw:shadow-offset-x",TQString("%1cm").tqarg( offset ) );
}
if( drawObject->hasProperty( "draw:shadow-offset-y" ) )
{
double offset = drawObject->getDoubleProperty("draw:shadow-offset-y");
- xmlWriter->addAttribute( "draw:shadow-offset-y",TQString("%1cm").arg( offset ) );
+ xmlWriter->addAttribute( "draw:shadow-offset-y",TQString("%1cm").tqarg( offset ) );
}
diff --git a/filters/kpresenter/powerpoint/import/powerpointimport.h b/filters/kpresenter/powerpoint/import/powerpointimport.h
index 6b75cfb3..ca3e7365 100644
--- a/filters/kpresenter/powerpoint/import/powerpointimport.h
+++ b/filters/kpresenter/powerpoint/import/powerpointimport.h
@@ -39,7 +39,7 @@ Q_OBJECT
public:
PowerPointImport ( TQObject *parent, const char* name, const TQStringList& );
virtual ~PowerPointImport();
- virtual KoFilter::ConversionStatus convert( const TQCString& from,
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from,
const TQCString& to );
private:
diff --git a/filters/kpresenter/powerpoint/libppt/objects.cpp b/filters/kpresenter/powerpoint/libppt/objects.cpp
index 29870cbd..d0343b43 100644
--- a/filters/kpresenter/powerpoint/libppt/objects.cpp
+++ b/filters/kpresenter/powerpoint/libppt/objects.cpp
@@ -379,7 +379,7 @@ void GroupObject::takeObject( Object* object )
class DrawObject::Private
{
public:
- unsigned shape;
+ unsigned tqshape;
bool isVerFlip;
bool isHorFlip;
};
@@ -387,7 +387,7 @@ public:
DrawObject::DrawObject()
{
d = new Private;
- d->shape = None;
+ d->tqshape = None;
}
DrawObject::~DrawObject()
@@ -395,14 +395,14 @@ DrawObject::~DrawObject()
delete d;
}
-unsigned DrawObject::shape() const
+unsigned DrawObject::tqshape() const
{
- return d->shape;
+ return d->tqshape;
}
void DrawObject::setShape( unsigned s )
{
- d->shape = s;
+ d->tqshape = s;
}
bool DrawObject::isVerFlip() const
diff --git a/filters/kpresenter/powerpoint/libppt/objects.h b/filters/kpresenter/powerpoint/libppt/objects.h
index 823e2a75..a9160897 100644
--- a/filters/kpresenter/powerpoint/libppt/objects.h
+++ b/filters/kpresenter/powerpoint/libppt/objects.h
@@ -103,7 +103,7 @@ public:
Body = 1,
Notes = 2,
NotUsed = 3,
- Other = 4, // text in a shape
+ Other = 4, // text in a tqshape
CenterBody = 5, // subtitle in title slide
CenterTitle = 6, // title in title slide
HalfBody = 7, // body in two-column slide
@@ -184,7 +184,7 @@ public:
virtual ~DrawObject();
virtual bool isDrawing() const { return true; }
- unsigned shape() const;
+ unsigned tqshape() const;
void setShape( unsigned s );
bool isVerFlip() const;
diff --git a/filters/kpresenter/powerpoint/libppt/pole.cpp b/filters/kpresenter/powerpoint/libppt/pole.cpp
index 2a78b79f..b905539d 100644
--- a/filters/kpresenter/powerpoint/libppt/pole.cpp
+++ b/filters/kpresenter/powerpoint/libppt/pole.cpp
@@ -94,7 +94,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
@@ -115,7 +115,7 @@ class DirTree
int indexOf( DirEntry* e );
int parent( unsigned index );
std::string fullName( unsigned index );
- std::vector<unsigned> children( unsigned index );
+ std::vector<unsigned> tqchildren( unsigned index );
void load( unsigned char* buffer, unsigned len );
void save( unsigned char* buffer );
unsigned size();
@@ -505,11 +505,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<entryCount(); j++ )
{
- std::vector<unsigned> chi = children( j );
+ std::vector<unsigned> chi = tqchildren( j );
for( unsigned i=0; i<chi.size();i++ )
if( chi[i] == index )
return j;
@@ -573,8 +573,8 @@ DirEntry* DirTree::entry( const std::string& name, bool create )
for( it = names.begin(); it != names.end(); ++it )
{
- // find among the children of index
- std::vector<unsigned> chi = children( index );
+ // find among the tqchildren of index
+ std::vector<unsigned> chi = tqchildren( index );
unsigned child = 0;
for( unsigned i = 0; i < chi.size(); i++ )
{
@@ -589,7 +589,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
@@ -646,7 +646,7 @@ void dirtree_find_siblings( DirTree* dirtree, std::vector<unsigned>& result,
}
}
-std::vector<unsigned> DirTree::children( unsigned index )
+std::vector<unsigned> DirTree::tqchildren( unsigned index )
{
std::vector<unsigned> result;
@@ -1249,9 +1249,9 @@ std::list<std::string> Storage::entries( const std::string& path )
if( e && e->dir )
{
unsigned parent = dt->indexOf( e );
- std::vector<unsigned> children = dt->children( parent );
- for( unsigned i = 0; i < children.size(); i++ )
- result.push_back( dt->entry( children[i] )->name );
+ std::vector<unsigned> 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/kpresenter/powerpoint/libppt/powerpoint.cpp b/filters/kpresenter/powerpoint/libppt/powerpoint.cpp
index af035c69..bf3fc51f 100644
--- a/filters/kpresenter/powerpoint/libppt/powerpoint.cpp
+++ b/filters/kpresenter/powerpoint/libppt/powerpoint.cpp
@@ -4105,7 +4105,7 @@ const unsigned int msofbtSpAtom::id = 61450; /* F00A */
class msofbtSpAtom::Private
{
public:
- unsigned long shapeId;
+ unsigned long tqshapeId;
unsigned long persistentFlag;
bool background;
bool hFlip;
@@ -4115,7 +4115,7 @@ public:
msofbtSpAtom ::msofbtSpAtom ()
{
d = new Private;
- d->shapeId = 0;
+ d->tqshapeId = 0;
d->persistentFlag = 0;
d->background = false;
d->hFlip = false;
@@ -4127,17 +4127,17 @@ msofbtSpAtom ::~msofbtSpAtom ()
delete d;
}
-unsigned long msofbtSpAtom::shapeId() const
+unsigned long msofbtSpAtom::tqshapeId() const
{
- return d->shapeId;
+ return d->tqshapeId;
}
void msofbtSpAtom::setShapeId( unsigned long id )
{
- d->shapeId = id;
+ d->tqshapeId = id;
}
-const char* msofbtSpAtom::shapeTypeAsString() const
+const char* msofbtSpAtom::tqshapeTypeAsString() const
{
switch( instance() )
{
@@ -5821,7 +5821,7 @@ void PPTReader::handleEscherGroupAtom( msofbtSpgrAtom* atom )
// set rect bound of current group
- // this is shape for the group, no need to
+ // this is tqshape for the group, no need to
d->isShapeGroup = true;
}
diff --git a/filters/kpresenter/powerpoint/libppt/powerpoint.h b/filters/kpresenter/powerpoint/libppt/powerpoint.h
index b2a0f649..6eec1564 100644
--- a/filters/kpresenter/powerpoint/libppt/powerpoint.h
+++ b/filters/kpresenter/powerpoint/libppt/powerpoint.h
@@ -1901,9 +1901,9 @@ public:
msofbtSpAtom ();
~msofbtSpAtom ();
- unsigned long shapeId() const;
+ unsigned long tqshapeId() const;
void setShapeId( unsigned long id );
- const char* shapeTypeAsString() const;
+ const char* tqshapeTypeAsString() const;
unsigned long persistentFlag() const;
void setPersistentFlag( unsigned long persistentFlag );
@@ -1957,10 +1957,10 @@ public:
FillSolid, // Fill with a solid color
FillPattern, // Fill with a pattern (bitmap)
FillTexture, // A texture (pattern with its own color map)
- FillPicture, // Center a picture in the shape
+ FillPicture, // Center a picture in the tqshape
FillShade, // Shade from start to end points
FillShadeCenter, // Shade from bounding rectangle to end point
- FillShadeShape, // Shade from shape outline to end point
+ FillShadeShape, // Shade from tqshape outline to end point
FillShadeScale, // Similar to msofillShade, but the fillAngle
FillShadeTitle, // special type - shade to title --- for PP
FillBackground // Use the background fill color/pattern
@@ -2385,9 +2385,9 @@ public:
int ruid() const; // rule ID
void setRuid( int ruid );
int align() const;
- void setAlign( int align );// alignment
+ void setAlign( int align );// tqalignment
int cProxies() const;
- void setCProxies( int cProxies );// number of shapes governed by rule
+ void setCProxies( int cProxies );// number of tqshapes governed by rule
void setData( unsigned size, const unsigned char* data );
const char* name(){ return "msofbtAlignRuleAtom "; }
diff --git a/filters/kpresenter/powerpoint/libppt/ustring.cpp b/filters/kpresenter/powerpoint/libppt/ustring.cpp
index b0a44e56..23b61d30 100644
--- a/filters/kpresenter/powerpoint/libppt/ustring.cpp
+++ b/filters/kpresenter/powerpoint/libppt/ustring.cpp
@@ -216,13 +216,13 @@ UString UString::null;
static char *statBuffer = 0L;
UChar::UChar(const UCharReference &c)
- : uc( c.unicode() )
+ : uc( c.tqunicode() )
{
}
UChar UChar::toLower() const
{
- // ### properly support unicode tolower
+ // ### properly support tqunicode tolower
if (uc >= 256 || islower(uc))
return *this;
@@ -644,7 +644,7 @@ bool Libppt::operator<(const UString& s1, const UString& s2)
l++;
}
if (l < lmin)
- return (c1->unicode() < c2->unicode());
+ return (c1->tqunicode() < c2->tqunicode());
return (l1 < l2);
}
diff --git a/filters/kpresenter/powerpoint/libppt/ustring.h b/filters/kpresenter/powerpoint/libppt/ustring.h
index 52a43afe..c0e34cf4 100644
--- a/filters/kpresenter/powerpoint/libppt/ustring.h
+++ b/filters/kpresenter/powerpoint/libppt/ustring.h
@@ -71,7 +71,7 @@ namespace Libppt {
/**
* @return the 16 bit Unicode value of the character
*/
- unsigned short unicode() const { return uc; }
+ unsigned short tqunicode() const { return uc; }
public:
/**
* @return The character converted to lower case.
@@ -128,7 +128,7 @@ namespace Libppt {
/**
* @return Unicode value.
*/
- unsigned short unicode() const { return ref().unicode(); }
+ unsigned short tqunicode() const { return ref().tqunicode(); }
/**
* @return Lower byte.
*/
diff --git a/filters/kpresenter/svg/svgexport.cc b/filters/kpresenter/svg/svgexport.cc
index 9eae5cd8..990d12cd 100644
--- a/filters/kpresenter/svg/svgexport.cc
+++ b/filters/kpresenter/svg/svgexport.cc
@@ -48,7 +48,7 @@ SvgExport::~SvgExport()
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
SvgExport::convert(const TQCString& from, const TQCString& to)
{
KoDocument * document = m_chain->inputDocument();
diff --git a/filters/kpresenter/svg/svgexport.h b/filters/kpresenter/svg/svgexport.h
index 17e3d79f..eafdd792 100644
--- a/filters/kpresenter/svg/svgexport.h
+++ b/filters/kpresenter/svg/svgexport.h
@@ -32,7 +32,7 @@ public:
SvgExport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~SvgExport();
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
#endif // __SVGEXPORT_H__
diff --git a/filters/kspread/applixspread/applixspreadimport.cc b/filters/kspread/applixspread/applixspreadimport.cc
index 5b88d11c..a75cccac 100644
--- a/filters/kspread/applixspread/applixspreadimport.cc
+++ b/filters/kspread/applixspread/applixspreadimport.cc
@@ -55,7 +55,7 @@ TQString APPLIXSPREADImport::nextLine( TQTextStream & stream )
return s;
}
-KoFilter::ConversionStatus APPLIXSPREADImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from, const TQCString& to )
{
if (to != "application/x-kspread" || from != "application/x-applixspread")
@@ -390,7 +390,7 @@ KoFilter::ConversionStatus APPLIXSPREADImport::convert( const TQCString& from, c
//kdDebug()<< " Type (%2d) >%s< ",
// nn, (*it).latin1() );
nn++;
- // Grep horizontal alignment
+ // Grep horizontal tqalignment
if ( (*it) == "1")
{
kdDebug()<< " = left align\n";
@@ -407,7 +407,7 @@ KoFilter::ConversionStatus APPLIXSPREADImport::convert( const TQCString& from, c
align = 2; // center
}
- // Grep verticale alignment
+ // Grep verticale tqalignment
else if ( (*it) == "VT")
{
kdDebug()<<" = top valign\n";
@@ -1268,7 +1268,7 @@ APPLIXSPREADImport::readHeader (TQTextStream &stream)
TQMessageBox::critical (0L, "Applix spreadsheet header problem",
TQString ("The Applix Spreadsheet header is not correct. "
"May be it is not an applix spreadsheet file! <BR>"
- "This is the header line I did read:<BR><B>%1</B>").arg(mystr.latin1()),
+ "This is the header line I did read:<BR><B>%1</B>").tqarg(mystr.latin1()),
"Okay");
diff --git a/filters/kspread/applixspread/applixspreadimport.h b/filters/kspread/applixspread/applixspreadimport.h
index 15decadc..78deb2ca 100644
--- a/filters/kspread/applixspread/applixspreadimport.h
+++ b/filters/kspread/applixspread/applixspreadimport.h
@@ -23,7 +23,7 @@
#include <tqstring.h>
#include <tqfile.h>
#include <tqobject.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqptrlist.h>
#include <KoFilter.h>
@@ -57,7 +57,7 @@ public:
APPLIXSPREADImport ( TQObject *parent, const char* name, const TQStringList& );
virtual ~APPLIXSPREADImport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
protected:
TQString nextLine (TQTextStream &);
diff --git a/filters/kspread/applixspread/status.html b/filters/kspread/applixspread/status.html
index c944ef5c..968bf333 100644
--- a/filters/kspread/applixspread/status.html
+++ b/filters/kspread/applixspread/status.html
@@ -53,7 +53,7 @@
- tests the headline of the document<br>
- converts &lt;, &gt;, &amp;, to &amp;lt; &amp;gt; &amp;amp;<br>
- converts all applix special characters<br>
- - converts fontsize, fontcolor, horizontal and vertical alignment, bold, italic, underline<br>
+ - converts fontsize, fontcolor, horizontal and vertical tqalignment, bold, italic, underline<br>
- eats long text strings (more than one row in inputfile)<br>
- converts different tables inside of one document<br>
- cellformat: background color, brushstyles, brushcolor<br>
@@ -352,43 +352,43 @@
<spacer size="20"><U>6.1.1. Part 1 - Alignment format</U><BR>
- <spacer size="30">This is the alignment format for vertical, horizontal alignment<BR>
+ <spacer size="30">This is the tqalignment format for vertical, horizontal tqalignment<BR>
<spacer size="30">
<TABLE CELLPADDING="0" BORDER="0">
<TR>
<TD>6.1.1.1&nbsp;&nbsp;</TD>
<TD><B>1</B></TD>
- <TD>horizontal alignment</TD>
+ <TD>horizontal tqalignment</TD>
<TD>left</TD>
</TR>
<TR>
<TD>6.1.1.2&nbsp;&nbsp;</TD>
<TD><B>2</B></TD>
- <TD>horizontal alignment</TD>
+ <TD>horizontal tqalignment</TD>
<TD>right</TD>
</TR>
<TR>
<TD>6.1.1.3&nbsp;&nbsp;</TD>
<TD><B>3</B></TD>
- <TD>horizontal alignment</TD>
+ <TD>horizontal tqalignment</TD>
<TD>center</TD>
</TR>
<TR>
<TD>6.1.1.4&nbsp;&nbsp;</TD>
<TD><B>VT</B></TD>
- <TD>vertical alignment</TD>
+ <TD>vertical tqalignment</TD>
<TD>top</TD>
</TR>
<TR>
<TD>6.1.1.5&nbsp;&nbsp;</TD>
<TD><B>VC</B></TD>
- <TD>vertical alignment</TD>
+ <TD>vertical tqalignment</TD>
<TD>center</TD>
</TR>
<TR>
<TD>6.1.1.5&nbsp;&nbsp;</TD>
<TD><B>VB</B></TD>
- <TD>vertical alignment</TD>
+ <TD>vertical tqalignment</TD>
<TD>bottom</TD>
</TR>
<TR>
@@ -402,7 +402,7 @@
<spacer size="20"><U>6.1.2. Part 2 - Text format</U><BR>
- <spacer size="30">This is the alignment format for the text<BR>
+ <spacer size="30">This is the tqalignment format for the text<BR>
<spacer size="30">
<TABLE CELLPADDING="0" BORDER="0">
<TR>
@@ -441,7 +441,7 @@
<spacer size="20"><U>6.1.3. Part 3 - Cell format</U><BR>
- <spacer size="30">This is the alignment format for the text<BR>
+ <spacer size="30">This is the tqalignment format for the text<BR>
<spacer size="30">
<TABLE CELLPADDING="0" BORDER="0">
<TR>
diff --git a/filters/kspread/csv/csvdialog.cpp b/filters/kspread/csv/csvdialog.cpp
index 3ea3f967..17e9cc65 100644
--- a/filters/kspread/csv/csvdialog.cpp
+++ b/filters/kspread/csv/csvdialog.cpp
@@ -27,11 +27,11 @@
#include <tqlineedit.h>
#include <tqcombobox.h>
#include <tqspinbox.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqbuttongroup.h>
#include <tqpushbutton.h>
#include <tqradiobutton.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -60,14 +60,14 @@ CSVDialog::CSVDialog(TQWidget* parent, TQByteArray& fileArray, const TQString /*
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);
m_formatList << i18n( "Text" );
@@ -84,7 +84,7 @@ CSVDialog::CSVDialog(TQWidget* parent, TQByteArray& fileArray, const TQString /*
fillTable();
- //resize(sizeHint());
+ //resize(tqsizeHint());
resize( 600, 400 ); // Try to show as much as possible of the table view
setMainWidget(m_dialog);
@@ -613,7 +613,7 @@ TQTextCodec* CSVDialog::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/kspread/csv/csvexport.cc b/filters/kspread/csv/csvexport.cc
index b37d1c8f..9961d218 100644
--- a/filters/kspread/csv/csvexport.cc
+++ b/filters/kspread/csv/csvexport.cc
@@ -21,7 +21,7 @@
#include <csvexport.h>
#include <tqfile.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <kdebug.h>
#include <kmessagebox.h>
@@ -118,7 +118,7 @@ TQString CSVExport::exportCSVCell( Sheet const * const sheet, int col, int row,
// The reason why we use the KoDocument* approach and not the TQDomDocument
// approach is because we don't want to export formulas but values !
-KoFilter::ConversionStatus CSVExport::convert( const TQCString & from, const TQCString & to )
+KoFilter::ConversiontqStatus CSVExport::convert( const TQCString & from, const TQCString & to )
{
kdDebug(30501) << "CSVExport::convert" << endl;
KoDocument* document = m_chain->inputDocument();
diff --git a/filters/kspread/csv/csvexport.h b/filters/kspread/csv/csvexport.h
index ebc8a861..decdb81c 100644
--- a/filters/kspread/csv/csvexport.h
+++ b/filters/kspread/csv/csvexport.h
@@ -38,7 +38,7 @@ class CSVExport : public KoFilter
CSVExport(KoFilter * parent, const char * name, const TQStringList &);
virtual ~CSVExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString & from, const TQCString & to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString & from, const TQCString & to );
private:
TQString exportCSVCell( KSpread::Sheet const * const sheet, int col, int row, TQChar const & textQuote, TQChar delimiter );
diff --git a/filters/kspread/csv/csvexportdialog.cpp b/filters/kspread/csv/csvexportdialog.cpp
index e0a4db8c..a4ef1347 100644
--- a/filters/kspread/csv/csvexportdialog.cpp
+++ b/filters/kspread/csv/csvexportdialog.cpp
@@ -33,9 +33,9 @@
#include <tqlistview.h>
#include <tqptrlist.h>
#include <tqradiobutton.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqtabwidget.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqvalidator.h>
#include <kapplication.h>
@@ -57,14 +57,14 @@ CSVExportDialog::CSVExportDialog( 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);
@@ -306,7 +306,7 @@ TQTextCodec* CSVExportDialog::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/kspread/csv/csvimport.cc b/filters/kspread/csv/csvimport.cc
index e9852c61..cd93017b 100644
--- a/filters/kspread/csv/csvimport.cc
+++ b/filters/kspread/csv/csvimport.cc
@@ -57,7 +57,7 @@ CSVFilter::CSVFilter(KoFilter *, const char*, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversionStatus CSVFilter::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus CSVFilter::convert( const TQCString& from, const TQCString& to )
{
TQString file( m_chain->inputFile() );
KoDocument* document = m_chain->outputDocument();
diff --git a/filters/kspread/csv/csvimport.h b/filters/kspread/csv/csvimport.h
index c68ecffb..df14a756 100644
--- a/filters/kspread/csv/csvimport.h
+++ b/filters/kspread/csv/csvimport.h
@@ -31,6 +31,6 @@ public:
CSVFilter(KoFilter *parent, const char *name, const TQStringList&);
virtual ~CSVFilter() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // CSVFILTER_H
diff --git a/filters/kspread/csv/dialogui.ui b/filters/kspread/csv/dialogui.ui
index f8960f4b..8c3a72cf 100644
--- a/filters/kspread/csv/dialogui.ui
+++ b/filters/kspread/csv/dialogui.ui
@@ -66,7 +66,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
@@ -104,7 +104,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>106</width>
<height>20</height>
@@ -123,7 +123,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>60</height>
@@ -223,7 +223,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>30</width>
<height>32767</height>
@@ -313,7 +313,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>51</width>
<height>21</height>
@@ -330,7 +330,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>51</width>
<height>21</height>
@@ -379,7 +379,7 @@
<property name="textFormat">
<enum>AutoText</enum>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignCenter</set>
</property>
</widget>
@@ -428,7 +428,7 @@
<property name="textFormat">
<enum>AutoText</enum>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignCenter</set>
</property>
</widget>
@@ -472,7 +472,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>468</width>
<height>20</height>
@@ -489,7 +489,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>468</width>
<height>20</height>
@@ -506,7 +506,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>611</width>
<height>20</height>
@@ -523,7 +523,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>71</width>
<height>20</height>
diff --git a/filters/kspread/csv/exportdialogui.ui b/filters/kspread/csv/exportdialogui.ui
index f6a552e1..45eb6914 100644
--- a/filters/kspread/csv/exportdialogui.ui
+++ b/filters/kspread/csv/exportdialogui.ui
@@ -47,7 +47,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
@@ -85,7 +85,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>106</width>
<height>20</height>
@@ -156,7 +156,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>96</height>
@@ -254,7 +254,7 @@
<property name="text">
<string>&lt;SHEETNAME&gt; gets replaced by the name of the next sheet.</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@@ -375,7 +375,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>30</width>
<height>32767</height>
@@ -469,7 +469,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>0</width>
<height>81</height>
diff --git a/filters/kspread/csv/xmltree.h b/filters/kspread/csv/xmltree.h
index 1eede0dc..247af4e5 100644
--- a/filters/kspread/csv/xmltree.h
+++ b/filters/kspread/csv/xmltree.h
@@ -22,7 +22,7 @@
#include <tqdom.h>
#include <tqmemarray.h>
-#include <textstream.h>
+#include <tqtextstream.h>
class XMLTree
{
diff --git a/filters/kspread/dbase/dbase.cpp b/filters/kspread/dbase/dbase.cpp
index 2c8ba3b8..acc1e27d 100644
--- a/filters/kspread/dbase/dbase.cpp
+++ b/filters/kspread/dbase/dbase.cpp
@@ -165,7 +165,7 @@ bool DBase::load( const TQString& filename )
}
// set the index to the first record
- m_stream.device()->at( m_headerLength );
+ m_stream.tqdevice()->at( m_headerLength );
return true;
}
@@ -184,7 +184,7 @@ TQStringList DBase::readRecord( unsigned recno )
// seek to where the record is
unsigned filepos = m_headerLength + recno * m_recordLength;
- m_stream.device()->at( filepos );
+ m_stream.tqdevice()->at( filepos );
// first char == '*' means the record is deleted
// so we just skip it
diff --git a/filters/kspread/dbase/dbaseimport.cc b/filters/kspread/dbase/dbaseimport.cc
index 6121baaf..bcbc98b8 100644
--- a/filters/kspread/dbase/dbaseimport.cc
+++ b/filters/kspread/dbase/dbaseimport.cc
@@ -48,7 +48,7 @@ DBaseImport::DBaseImport ( TQObject*, const char*, const TQStringList& )
{
}
-KoFilter::ConversionStatus DBaseImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus DBaseImport::convert( const TQCString& from, const TQCString& to )
{
if (to != "application/x-kspread" || from != "application/x-dbase")
return KoFilter::NotImplemented;
diff --git a/filters/kspread/dbase/dbaseimport.h b/filters/kspread/dbase/dbaseimport.h
index 293bda21..39a0ac0e 100644
--- a/filters/kspread/dbase/dbaseimport.h
+++ b/filters/kspread/dbase/dbaseimport.h
@@ -33,7 +33,7 @@ public:
DBaseImport ( TQObject *parent, const char* name, const TQStringList& );
virtual ~DBaseImport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // __DBASEIMPORT_H
diff --git a/filters/kspread/excel/excelexport.cc b/filters/kspread/excel/excelexport.cc
index 0ecf41f7..2e2c50e7 100644
--- a/filters/kspread/excel/excelexport.cc
+++ b/filters/kspread/excel/excelexport.cc
@@ -13,7 +13,7 @@ ExcelExport::ExcelExport(KoFilter *, const char *, const TQStringList&) : KoFilt
}
-KoFilter::ConversionStatus ExcelExport::convert(const TQCString& from, const TQCString& to) {
+KoFilter::ConversiontqStatus ExcelExport::convert(const TQCString& from, const TQCString& to) {
// Double check that's we really what we want to do
if ( ( (to != "application/excel") && (to != "application/msexcel") ) || from != "application/x-kspread") {
kdWarning(0) << "Invalid mimetypes " << to << ", " << from << endl;
@@ -28,37 +28,37 @@ KoFilter::ConversionStatus ExcelExport::convert(const TQCString& from, const TQC
/*
-KoFilter::ConversionStatus ExcelWorker::startDocument(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus ExcelWorker::startDocument(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversionStatus ExcelWorker::startInfoLog(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus ExcelWorker::startInfoLog(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversionStatus ExcelWorker::startInfoAuthor(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus ExcelWorker::startInfoAuthor(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversionStatus ExcelWorker::startInfoAbout(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus ExcelWorker::startInfoAbout(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversionStatus ExcelWorker::startSpreadBook(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus ExcelWorker::startSpreadBook(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversionStatus ExcelWorker::startSpreadSheet(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus ExcelWorker::startSpreadSheet(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversionStatus ExcelWorker::startSpreadCell(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus ExcelWorker::startSpreadCell(KSpreadFilterProperty property) {
return KoFilter::OK;
}
*/
diff --git a/filters/kspread/excel/excelexport.h b/filters/kspread/excel/excelexport.h
index e4b6b499..029cdac1 100644
--- a/filters/kspread/excel/excelexport.h
+++ b/filters/kspread/excel/excelexport.h
@@ -16,20 +16,20 @@ public:
ExcelExport(KoFilter *parent, const char*name, const TQStringList&);
virtual ~ExcelExport() {}
- virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
};
class ExcelWorker : public KSpreadBaseWorker {
public:
// Implement those
- //KoFilter::ConversionStatus startDocument(KSpreadFilterProperty property);
- //KoFilter::ConversionStatus startInfoLog(KSpreadFilterProperty property);
- //KoFilter::ConversionStatus startInfoAuthor(KSpreadFilterProperty property);
- //KoFilter::ConversionStatus startInfoAbout(KSpreadFilterProperty property);
- //KoFilter::ConversionStatus startSpreadBook(KSpreadFilterProperty property);
- //KoFilter::ConversionStatus startSpreadSheet(KSpreadFilterProperty property);
- //KoFilter::ConversionStatus startSpreadCell(KSpreadFilterProperty property);
+ //KoFilter::ConversiontqStatus startDocument(KSpreadFilterProperty property);
+ //KoFilter::ConversiontqStatus startInfoLog(KSpreadFilterProperty property);
+ //KoFilter::ConversiontqStatus startInfoAuthor(KSpreadFilterProperty property);
+ //KoFilter::ConversiontqStatus startInfoAbout(KSpreadFilterProperty property);
+ //KoFilter::ConversiontqStatus startSpreadBook(KSpreadFilterProperty property);
+ //KoFilter::ConversiontqStatus startSpreadSheet(KSpreadFilterProperty property);
+ //KoFilter::ConversiontqStatus startSpreadCell(KSpreadFilterProperty property);
};
#endif
diff --git a/filters/kspread/excel/import/excelimport.cc b/filters/kspread/excel/import/excelimport.cc
index 75ee412a..f1bade9e 100644
--- a/filters/kspread/excel/import/excelimport.cc
+++ b/filters/kspread/excel/import/excelimport.cc
@@ -33,7 +33,7 @@
#include <tqfile.h>
#include <tqmap.h>
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <KoFilterChain.h>
@@ -107,7 +107,7 @@ ExcelImport::~ExcelImport()
delete d;
}
-KoFilter::ConversionStatus ExcelImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus ExcelImport::convert( const TQCString& from, const TQCString& to )
{
if ( from != "application/msexcel" )
return KoFilter::NotImplemented;
@@ -348,7 +348,7 @@ void ExcelImport::Private::processSheetForBody( Sheet* sheet, KoXmlWriter* xmlWr
xmlWriter->addAttribute( "table:name", string( sheet->name() ).string() );
xmlWriter->addAttribute( "table:print", "false" );
xmlWriter->addAttribute( "table:protected", "false" );
- xmlWriter->addAttribute( "table:style-name", TQString("ta%1").arg(sheetFormatIndex));
+ xmlWriter->addAttribute( "table:style-name", TQString("ta%1").tqarg(sheetFormatIndex));
sheetFormatIndex++;
unsigned ci = 0;
@@ -397,7 +397,7 @@ void ExcelImport::Private::processSheetForStyle( Sheet* sheet, KoXmlWriter* xmlW
xmlWriter->startElement( "style:style" );
xmlWriter->addAttribute( "style:family", "table" );
xmlWriter->addAttribute( "style:master-page-name", "Default" );
- xmlWriter->addAttribute( "style:name", TQString("ta%1").arg(sheetFormatIndex) );
+ xmlWriter->addAttribute( "style:name", TQString("ta%1").tqarg(sheetFormatIndex) );
sheetFormatIndex++;
xmlWriter->startElement( "style:table-properties" );
@@ -450,7 +450,7 @@ void ExcelImport::Private::processColumnForBody( Column* column, int repeat, KoX
xmlWriter->addAttribute( "table:default-style-name", "Default" );
xmlWriter->addAttribute( "table:visibility", column->visible() ? "visible" : "collapse" );
if(repeat > 1) xmlWriter->addAttribute( "table:number-columns-repeated", repeat );
- xmlWriter->addAttribute( "table:style-name", TQString("co%1").arg(columnFormatIndex) );
+ xmlWriter->addAttribute( "table:style-name", TQString("co%1").tqarg(columnFormatIndex) );
columnFormatIndex++;
xmlWriter->endElement(); // table:table-column
@@ -463,12 +463,12 @@ void ExcelImport::Private::processColumnForStyle( Column* column, int /*repeat*/
xmlWriter->startElement( "style:style" );
xmlWriter->addAttribute( "style:family", "table-column" );
- xmlWriter->addAttribute( "style:name", TQString("co%1").arg(columnFormatIndex) );
+ xmlWriter->addAttribute( "style:name", TQString("co%1").tqarg(columnFormatIndex) );
columnFormatIndex++;
xmlWriter->startElement( "style:table-column-properties" );
xmlWriter->addAttribute( "fo:break-before", "auto" );
- xmlWriter->addAttribute( "style:column-width", TQString("%1in").arg(column->width()/27) );
+ xmlWriter->addAttribute( "style:column-width", TQString("%1in").tqarg(column->width()/27) );
xmlWriter->endElement(); // style:table-column-properties
xmlWriter->endElement(); // style:style
@@ -494,7 +494,7 @@ void ExcelImport::Private::processRowForBody( Row* row, int /*repeat*/, KoXmlWri
xmlWriter->startElement( "table:table-row" );
xmlWriter->addAttribute( "table:visibility", row->visible() ? "visible" : "collapse" );
- xmlWriter->addAttribute( "table:style-name", TQString("ro%1").arg(rowFormatIndex) );
+ xmlWriter->addAttribute( "table:style-name", TQString("ro%1").tqarg(rowFormatIndex) );
rowFormatIndex++;
for( int i = 0; i <= lastCol; i++ )
@@ -530,12 +530,12 @@ void ExcelImport::Private::processRowForStyle( Row* row, int repeat, KoXmlWriter
xmlWriter->startElement( "style:style" );
xmlWriter->addAttribute( "style:family", "table-row" );
if(repeat > 1) xmlWriter->addAttribute( "table:number-rows-repeated", repeat );
- xmlWriter->addAttribute( "style:name", TQString("ro%1").arg(rowFormatIndex) );
+ xmlWriter->addAttribute( "style:name", TQString("ro%1").tqarg(rowFormatIndex) );
rowFormatIndex++;
xmlWriter->startElement( "style:table-row-properties" );
xmlWriter->addAttribute( "fo:break-before", "auto" );
- xmlWriter->addAttribute( "style:row-height", TQString("%1pt").arg(row->height()) );
+ xmlWriter->addAttribute( "style:row-height", TQString("%1pt").tqarg(row->height()) );
xmlWriter->endElement(); // style:table-row-properties
xmlWriter->endElement(); // style:style
@@ -703,7 +703,7 @@ void ExcelImport::Private::processCellForStyle( Cell* cell, KoXmlWriter* xmlWrit
const UString& valueFormat = format.valueFormat();
if( !valueFormat.isEmpty() )
{
- refName = TQString("N%1").arg(cell->formatIndex());
+ refName = TQString("N%1").tqarg(cell->formatIndex());
TQString numformat = string( valueFormat ).string();
processValueFormat( numformat, refName, xmlWriter );
}
@@ -717,7 +717,7 @@ void ExcelImport::Private::processCellForStyle( Cell* cell, KoXmlWriter* xmlWrit
// now the real table-cell
xmlWriter->startElement( "style:style" );
xmlWriter->addAttribute( "style:family", "table-cell" );
- xmlWriter->addAttribute( "style:name", TQString("ce%1").arg( cell->formatIndex() ) );
+ xmlWriter->addAttribute( "style:name", TQString("ce%1").tqarg( cell->formatIndex() ) );
if( !refName.isEmpty() )
xmlWriter->addAttribute( "style:data-style-name", refName );
@@ -759,7 +759,7 @@ void ExcelImport::Private::processFormat( const Format* format, KoXmlWriter* xml
if( !xmlWriter ) return;
const FormatFont& font = format->font();
- const FormatAlignment& align = format->alignment();
+ const FormatAlignment& align = format->tqalignment();
const FormatBackground& back = format->background();
const FormatBorders& borders = format->borders();
@@ -792,7 +792,7 @@ void ExcelImport::Private::processFormat( const Format* format, KoXmlWriter* xml
if( !font.fontFamily().isEmpty() )
xmlWriter->addAttribute( "style:font-name", string(font.fontFamily()).string() );
- xmlWriter->addAttribute( "fo:font-size", TQString("%1pt").arg(font.fontSize()) );
+ xmlWriter->addAttribute( "fo:font-size", TQString("%1pt").tqarg(font.fontSize()) );
xmlWriter->addAttribute( "fo:color", convertColor( font.color() ) );
diff --git a/filters/kspread/excel/import/excelimport.h b/filters/kspread/excel/import/excelimport.h
index 84729b4d..5b733733 100644
--- a/filters/kspread/excel/import/excelimport.h
+++ b/filters/kspread/excel/import/excelimport.h
@@ -35,7 +35,7 @@ public:
ExcelImport ( TQObject *parent, const char* name, const TQStringList& );
virtual ~ExcelImport();
- 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/kspread/excel/sidewinder/excel.cpp b/filters/kspread/excel/sidewinder/excel.cpp
index 2a3a6247..8155bca5 100644
--- a/filters/kspread/excel/sidewinder/excel.cpp
+++ b/filters/kspread/excel/sidewinder/excel.cpp
@@ -185,7 +185,7 @@ static Value errorAsValue( int errorCode )
class EString::Private
{
public:
- bool unicode;
+ bool tqunicode;
bool richText;
UString str;
unsigned size;
@@ -194,7 +194,7 @@ public:
EString::EString()
{
d = new EString::Private();
- d->unicode = false;
+ d->tqunicode = false;
d->richText = false;
d->str = UString::null;
d->size = 0;
@@ -208,7 +208,7 @@ EString::EString( const EString& es )
EString& EString::operator=( const EString& es )
{
- d->unicode = es.d->unicode;
+ d->tqunicode = es.d->tqunicode;
d->richText = es.d->richText;
d->size = es.d->size;
d->str = es.d->str;
@@ -220,14 +220,14 @@ EString::~EString()
delete d;
}
-bool EString::unicode() const
+bool EString::tqunicode() const
{
- return d->unicode;
+ return d->tqunicode;
}
void EString::setUnicode( bool u )
{
- d->unicode = u;
+ d->tqunicode = u;
}
bool EString::richText() const
@@ -271,7 +271,7 @@ EString EString::fromUnicodeString( const void* p, bool longString, unsigned /*
unsigned char flag = data[ offset ];
offset++; // for flag (1 byte)
- bool unicode = flag & 0x01;
+ bool tqunicode = flag & 0x01;
bool richText = flag & 0x08;
unsigned formatRuns = 0;
@@ -283,10 +283,10 @@ EString EString::fromUnicodeString( const void* p, bool longString, unsigned /*
// find out total bytes used in this string
unsigned size = offset + len; // string data
- if( unicode ) size += len; // because unicode takes 2-bytes char
+ if( tqunicode ) size += len; // because tqunicode takes 2-bytes char
if( richText ) size += (formatRuns*4);
- if( !unicode )
+ if( !tqunicode )
{
char* buffer = new char[ len+1 ];
memcpy( buffer, data + offset, len );
@@ -303,7 +303,7 @@ EString EString::fromUnicodeString( const void* p, bool longString, unsigned /*
}
EString result;
- result.setUnicode( unicode );
+ result.setUnicode( tqunicode );
result.setRichText( richText );
result.setSize( size );
result.setStr( str );
@@ -351,14 +351,14 @@ EString EString::fromSheetName( const void* p, unsigned datasize )
unsigned len = data[0];
unsigned flag = data[1];
- bool unicode = flag & 1;
+ bool tqunicode = flag & 1;
if( len > datasize-2 ) len = datasize-2;
if( len == 0 ) return EString();
unsigned offset = 2;
- if( !unicode )
+ if( !tqunicode )
{
char* buffer = new char[ len+1 ];
memcpy( buffer, data + offset, len );
@@ -376,7 +376,7 @@ EString EString::fromSheetName( const void* p, unsigned datasize )
}
EString result;
- result.setUnicode( unicode );
+ result.setUnicode( tqunicode );
result.setRichText( richText );
result.setSize( datasize );
result.setStr( str );
@@ -2012,7 +2012,7 @@ void BoundSheetRecord::setData( unsigned size, const unsigned char* data )
d->visibility = data[4];
d->type = data[5];
- /* FIXME: it turned out that sheet name is not normal unicode string
+ /* FIXME: it turned out that sheet name is not normal tqunicode string
where the first two bytes specifies string length, but instead
only the first specifies it.
the next byte could be correctly interpreted as flag.
@@ -5113,31 +5113,31 @@ bool ExcelReader::load( Workbook* workbook, const char* filename )
format.setFont( convertFont( xf.fontIndex() ) );
- FormatAlignment alignment;
+ FormatAlignment tqalignment;
switch( xf.horizontalAlignment() )
{
case XFRecord::Left:
- alignment.setAlignX( Format::Left ); break;
+ tqalignment.setAlignX( Format::Left ); break;
case XFRecord::Right:
- alignment.setAlignX( Format::Right ); break;
+ tqalignment.setAlignX( Format::Right ); break;
case XFRecord::Centered:
- alignment.setAlignX( Format::Center ); break;
+ tqalignment.setAlignX( Format::Center ); break;
default: break;
// FIXME still unsupported: Repeat, Justified, Filled, Distributed
};
switch( xf.verticalAlignment() )
{
case XFRecord::Top:
- alignment.setAlignY( Format::Top ); break;
+ tqalignment.setAlignY( Format::Top ); break;
case XFRecord::VCentered:
- alignment.setAlignY( Format::Middle ); break;
+ tqalignment.setAlignY( Format::Middle ); break;
case XFRecord::Bottom:
- alignment.setAlignY( Format::Bottom ); break;
+ tqalignment.setAlignY( Format::Bottom ); break;
default: break;
// FIXME still unsupported: Justified, Distributed
}
- alignment.setWrap( xf.textWrap() );
- format.setAlignment( alignment );
+ tqalignment.setWrap( xf.textWrap() );
+ format.tqsetAlignment( tqalignment );
FormatBorders borders;
@@ -5929,31 +5929,31 @@ Format ExcelReader::convertFormat( unsigned xfIndex )
format.setFont( convertFont( xf.fontIndex() ) );
- FormatAlignment alignment;
+ FormatAlignment tqalignment;
switch( xf.horizontalAlignment() )
{
case XFRecord::Left:
- alignment.setAlignX( Format::Left ); break;
+ tqalignment.setAlignX( Format::Left ); break;
case XFRecord::Right:
- alignment.setAlignX( Format::Right ); break;
+ tqalignment.setAlignX( Format::Right ); break;
case XFRecord::Centered:
- alignment.setAlignX( Format::Center ); break;
+ tqalignment.setAlignX( Format::Center ); break;
default: break;
// FIXME still unsupported: Repeat, Justified, Filled, Distributed
};
switch( xf.verticalAlignment() )
{
case XFRecord::Top:
- alignment.setAlignY( Format::Top ); break;
+ tqalignment.setAlignY( Format::Top ); break;
case XFRecord::VCentered:
- alignment.setAlignY( Format::Middle ); break;
+ tqalignment.setAlignY( Format::Middle ); break;
case XFRecord::Bottom:
- alignment.setAlignY( Format::Bottom ); break;
+ tqalignment.setAlignY( Format::Bottom ); break;
default: break;
// FIXME still unsupported: Justified, Distributed
}
- alignment.setWrap( xf.textWrap() );
- format.setAlignment( alignment );
+ tqalignment.setWrap( xf.textWrap() );
+ format.tqsetAlignment( tqalignment );
FormatBorders borders;
diff --git a/filters/kspread/excel/sidewinder/excel.h b/filters/kspread/excel/sidewinder/excel.h
index 5221b518..8cbdfd53 100644
--- a/filters/kspread/excel/sidewinder/excel.h
+++ b/filters/kspread/excel/sidewinder/excel.h
@@ -36,7 +36,7 @@ enum { UnknownExcel = 0, Excel95, Excel97, Excel2000 };
class Record;
-// rich-text, unicode, far-east support Excel string
+// rich-text, tqunicode, far-east support Excel string
class EString
{
@@ -50,7 +50,7 @@ public:
~EString();
- bool unicode() const;
+ bool tqunicode() const;
void setUnicode( bool u );
@@ -2805,17 +2805,17 @@ public:
Distributed };
/**
- * Gets the horizontal alignment, e.g Left.
+ * Gets the horizontal tqalignment, e.g Left.
*/
unsigned horizontalAlignment() const;
/**
- * Sets the horizontal alignment, e.g Left.
+ * Sets the horizontal tqalignment, e.g Left.
*/
void setHorizontalAlignment( unsigned ha );
/**
- * Returns human-readable string representation of the horizontal alignment.
+ * Returns human-readable string representation of the horizontal tqalignment.
For example, XFRecord::Left will return "Left".
*/
const char* horizontalAlignmentAsString() const;
@@ -2828,21 +2828,21 @@ public:
VDistributed = 4 };
/**
- * Gets the vertical alignment, e.g Bottom.
+ * Gets the vertical tqalignment, e.g Bottom.
*
* \sa setVerticalAlignment
*/
unsigned verticalAlignment() const;
/**
- * Sets the vertical alignment, e.g Top.
+ * Sets the vertical tqalignment, e.g Top.
*
* \sa verticalAlignment
*/
void setVerticalAlignment( unsigned va );
/**
- * Returns human-readable string representation of the vertical alignment.
+ * Returns human-readable string representation of the vertical tqalignment.
For example, XFRecord::Top will return "Top".
*/
const char* verticalAlignmentAsString() const;
diff --git a/filters/kspread/excel/sidewinder/format.cpp b/filters/kspread/excel/sidewinder/format.cpp
index 8ce69f24..29481fd0 100644
--- a/filters/kspread/excel/sidewinder/format.cpp
+++ b/filters/kspread/excel/sidewinder/format.cpp
@@ -271,7 +271,7 @@ FormatAlignment& FormatAlignment::operator=( const FormatAlignment& align )
return assign( align );
}
-// assign from another alignment
+// assign from another tqalignment
FormatAlignment& FormatAlignment::assign( const FormatAlignment& align )
{
d->null = align.isNull();
@@ -398,7 +398,7 @@ FormatBackground& FormatBackground::operator=( const FormatBackground& backgroun
return assign( background );
}
-// assign from another alignment
+// assign from another tqalignment
FormatBackground& FormatBackground::assign( const FormatBackground& background )
{
d->null = background.isNull();
@@ -498,7 +498,7 @@ FormatBorders& FormatBorders::operator=( const FormatBorders& border )
return assign( border );
}
-// assign from another alignment
+// assign from another tqalignment
FormatBorders& FormatBorders::assign( const FormatBorders& border )
{
d->null = border.isNull();
@@ -581,7 +581,7 @@ class Format::Private
{
public:
FormatFont font;
- FormatAlignment alignment;
+ FormatAlignment tqalignment;
FormatBorders borders;
FormatBackground background;
UString valueFormat;
@@ -617,7 +617,7 @@ Format& Format::operator=( const Format& f )
Format& Format::assign( const Format& f )
{
d->font = f.font();
- d->alignment = f.alignment();
+ d->tqalignment = f.tqalignment();
d->borders = f.borders();
d->valueFormat = f.valueFormat();
d->background = f.background();
@@ -626,7 +626,7 @@ Format& Format::assign( const Format& f )
bool Format::isNull() const
{
- return d->font.isNull() && d->alignment.isNull() && d->borders.isNull();
+ return d->font.isNull() && d->tqalignment.isNull() && d->borders.isNull();
}
FormatFont& Format::font() const
@@ -639,14 +639,14 @@ void Format::setFont( const FormatFont& font )
d->font = font;
}
-FormatAlignment& Format::alignment() const
+FormatAlignment& Format::tqalignment() const
{
- return d->alignment;
+ return d->tqalignment;
}
-void Format::setAlignment( const FormatAlignment& alignment )
+void Format::tqsetAlignment( const FormatAlignment& tqalignment )
{
- d->alignment = alignment;
+ d->tqalignment = tqalignment;
}
FormatBorders& Format::borders() const
@@ -682,8 +682,8 @@ void Format::setValueFormat( const UString& valueFormat )
// merge f into current format
Format& Format::apply( const Format& f )
{
- if( !f.alignment().isNull() )
- alignment() = f.alignment();
+ if( !f.tqalignment().isNull() )
+ tqalignment() = f.tqalignment();
if( !f.font().isNull() )
font() = f.font();
if( !f.borders().isNull() )
@@ -700,7 +700,7 @@ bool Format::operator==(const Format& format) const
{
return
d->font == format.d->font &&
- d->alignment == format.d->alignment &&
+ d->tqalignment == format.d->tqalignment &&
d->borders == format.d->borders &&
d->background == format.d->background &&
d->valueFormat == format.d->valueFormat;
@@ -710,7 +710,7 @@ bool Format::operator!=(const Format& format) const
{
return
d->font != format.d->font ||
- d->alignment != format.d->alignment ||
+ d->tqalignment != format.d->tqalignment ||
d->borders != format.d->borders ||
d->background != format.d->background ||
d->valueFormat != format.d->valueFormat;
diff --git a/filters/kspread/excel/sidewinder/format.h b/filters/kspread/excel/sidewinder/format.h
index acb566a5..dcadc1c2 100644
--- a/filters/kspread/excel/sidewinder/format.h
+++ b/filters/kspread/excel/sidewinder/format.h
@@ -266,9 +266,9 @@ private:
/**
- * Defines alignment information for cell format.
+ * Defines tqalignment information for cell format.
*
- * Class FormatAlignment defines the horizontal and vertical alignment
+ * Class FormatAlignment defines the horizontal and vertical tqalignment
* for the text inside a cell.
*
*/
@@ -278,37 +278,37 @@ class FormatAlignment
public:
/**
- * Creates a default alignment information.
+ * Creates a default tqalignment information.
*/
FormatAlignment();
/**
- * Destroys the alignment information
+ * Destroys the tqalignment information
*/
~FormatAlignment();
/**
- * Creates a copy of alignment information.
+ * Creates a copy of tqalignment information.
*/
FormatAlignment( const FormatAlignment& );
/**
- * Assigns from another alignment information.
+ * Assigns from another tqalignment information.
*/
FormatAlignment& operator=( const FormatAlignment& );
/**
- * Assigns from another alignment information.
+ * Assigns from another tqalignment information.
*/
FormatAlignment& assign( const FormatAlignment& );
/**
- * Returns true if it is a default alignment information.
+ * Returns true if it is a default tqalignment information.
*/
bool isNull() const;
/**
- * Returns horizontal alignment. Possible values are
+ * Returns horizontal tqalignment. Possible values are
* Format::Left, Format::Right and Format::Center.
*
* \sa setAlignX
@@ -316,14 +316,14 @@ public:
unsigned alignX() const;
/**
- * Sets the horizontal alignment.
+ * Sets the horizontal tqalignment.
*
* \sa alignX
*/
void setAlignX( unsigned xa );
/**
- * Returns horizontal alignment. Possible values are
+ * Returns horizontal tqalignment. Possible values are
* Format::Top, Format::Middle and Format::Bottom.
*
* \sa setAlignY
@@ -331,7 +331,7 @@ public:
unsigned alignY() const;
/**
- * Sets the horizontal alignment.
+ * Sets the horizontal tqalignment.
*
* \sa alignY
*/
@@ -380,12 +380,12 @@ public:
void setRotationAngle( unsigned r );
/**
- * Returns true if this alignment is equal to f; otherwise returns false.
+ * Returns true if this tqalignment is equal to f; otherwise returns false.
*/
bool operator==(const FormatAlignment& f) const;
/**
- * Returns true if this alignment is not equal to f; otherwise returns false.
+ * Returns true if this tqalignment is not equal to f; otherwise returns false.
*/
bool operator!=(const FormatAlignment& f) const;
@@ -683,14 +683,14 @@ public:
void setFont( const FormatFont& font );
/**
- * Returns a constant reference to the alignment information of this format.
+ * Returns a constant reference to the tqalignment information of this format.
*/
- FormatAlignment& alignment() const;
+ FormatAlignment& tqalignment() const;
/**
- * Sets new alignment information for this format.
+ * Sets new tqalignment information for this format.
*/
- void setAlignment( const FormatAlignment& alignment );
+ void tqsetAlignment( const FormatAlignment& tqalignment );
/**
* Returns a reference to the borders information of this format.
diff --git a/filters/kspread/excel/sidewinder/pole.cpp b/filters/kspread/excel/sidewinder/pole.cpp
index e4090cd9..38fe8cb5 100644
--- a/filters/kspread/excel/sidewinder/pole.cpp
+++ b/filters/kspread/excel/sidewinder/pole.cpp
@@ -95,7 +95,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
@@ -116,7 +116,7 @@ class DirTree
int indexOf( DirEntry* e );
int parent( unsigned index );
std::string fullName( unsigned index );
- std::vector<unsigned> children( unsigned index );
+ std::vector<unsigned> tqchildren( unsigned index );
void load( unsigned char* buffer, unsigned len );
void save( unsigned char* buffer );
unsigned size();
@@ -509,11 +509,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<entryCount(); j++ )
{
- std::vector<unsigned> chi = children( j );
+ std::vector<unsigned> chi = tqchildren( j );
for( unsigned i=0; i<chi.size();i++ )
if( chi[i] == index )
return j;
@@ -577,8 +577,8 @@ DirEntry* DirTree::entry( const std::string& name, bool create )
for( it = names.begin(); it != names.end(); ++it )
{
- // find among the children of index
- std::vector<unsigned> chi = children( index );
+ // find among the tqchildren of index
+ std::vector<unsigned> chi = tqchildren( index );
unsigned child = 0;
for( unsigned i = 0; i < chi.size(); i++ )
{
@@ -593,7 +593,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
@@ -650,7 +650,7 @@ void dirtree_find_siblings( DirTree* dirtree, std::vector<unsigned>& result,
}
}
-std::vector<unsigned> DirTree::children( unsigned index )
+std::vector<unsigned> DirTree::tqchildren( unsigned index )
{
std::vector<unsigned> result;
@@ -1286,9 +1286,9 @@ std::list<std::string> Storage::entries( const std::string& path )
if( e && e->dir )
{
unsigned parent = dt->indexOf( e );
- std::vector<unsigned> children = dt->children( parent );
- for( unsigned i = 0; i < children.size(); i++ )
- result.push_back( dt->entry( children[i] )->name );
+ std::vector<unsigned> 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/kspread/excel/sidewinder/ustring.cpp b/filters/kspread/excel/sidewinder/ustring.cpp
index 304fed18..b26ee196 100644
--- a/filters/kspread/excel/sidewinder/ustring.cpp
+++ b/filters/kspread/excel/sidewinder/ustring.cpp
@@ -39,7 +39,7 @@ UString UString::null;
static char *statBuffer = 0L;
UChar::UChar(const UCharReference &c)
- : uc( c.unicode() )
+ : uc( c.tqunicode() )
{
}
@@ -579,7 +579,7 @@ bool Swinder::operator<(const UString& s1, const UString& s2)
l++;
}
if (l < lmin)
- return (c1->unicode() < c2->unicode());
+ return (c1->tqunicode() < c2->tqunicode());
return (l1 < l2);
}
diff --git a/filters/kspread/excel/sidewinder/ustring.h b/filters/kspread/excel/sidewinder/ustring.h
index 3f41867b..1c4f2bc5 100644
--- a/filters/kspread/excel/sidewinder/ustring.h
+++ b/filters/kspread/excel/sidewinder/ustring.h
@@ -68,7 +68,7 @@ namespace Swinder {
/**
* @return the 16 bit Unicode value of the character
*/
- unsigned short unicode() const { return uc; }
+ unsigned short tqunicode() const { return uc; }
public:
/**
* A static instance of UChar(0).
@@ -120,7 +120,7 @@ namespace Swinder {
/**
* @return Unicode value.
*/
- unsigned short unicode() const { return ref().uc; }
+ unsigned short tqunicode() const { return ref().uc; }
/**
* @return Lower byte.
*/
diff --git a/filters/kspread/gnumeric/gnumeric.xsd b/filters/kspread/gnumeric/gnumeric.xsd
index 7150f7e4..04949083 100644
--- a/filters/kspread/gnumeric/gnumeric.xsd
+++ b/filters/kspread/gnumeric/gnumeric.xsd
@@ -427,8 +427,8 @@
</xsd:complexType>
</xsd:element>
</xsd:sequence>
- <xsd:attribute name="HAlign" type="gmr:horizontal_alignment"/>
- <xsd:attribute name="VAlign" type="gmr:vertical_alignment" />
+ <xsd:attribute name="HAlign" type="gmr:horizontal_tqalignment"/>
+ <xsd:attribute name="VAlign" type="gmr:vertical_tqalignment" />
<xsd:attribute name="WrapText" type="xsd:boolean" />
<xsd:attribute name="ShrinkToFit" type="xsd:integer" /> <!-- should be bool, but some files have odd truth values -->
<xsd:attribute name="Rotation" type="xsd:integer" use="optional"/>
@@ -492,7 +492,7 @@
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="horizontal_alignment">
+ <xsd:simpleType name="horizontal_tqalignment">
<xsd:restriction base="xsd:integer">
<!-- this is a bit map as follows:
1 = GENERAL
@@ -508,7 +508,7 @@
</xsd:restriction>
</xsd:simpleType>
- <xsd:simpleType name="vertical_alignment">
+ <xsd:simpleType name="vertical_tqalignment">
<xsd:restriction base="xsd:integer">
<!-- this is a bit map as follows:
1 = TOP
@@ -644,7 +644,7 @@
<xsd:attribute name="FillColor" type="gmr:color" use="required"/>
<xsd:attribute name="Type" type="gmr:objectfilled" use="required"/>
<xsd:attribute name="Width" type="xsd:positiveInteger" use="required"/>
- <!-- the arrow shape attributes are only used if the type is
+ <!-- the arrow tqshape attributes are only used if the type is
arrow (type="gmr:2")
-->
<xsd:attribute name="ArrowShapeA" type="xsd:double" use="optional"/>
diff --git a/filters/kspread/gnumeric/gnumericexport.cc b/filters/kspread/gnumeric/gnumericexport.cc
index f7416cc7..cccfcc9f 100644
--- a/filters/kspread/gnumeric/gnumericexport.cc
+++ b/filters/kspread/gnumeric/gnumericexport.cc
@@ -31,7 +31,7 @@
#include <tqptrlist.h>
#include <tqsortedlist.h>
#include <tqfile.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <kspread_map.h>
#include <kspread_sheet.h>
@@ -540,7 +540,7 @@ TQDomElement GNUMERICExport::GetLinkStyle(TQDomDocument gnumeric_doc)
TQDomElement GNUMERICExport::GetCellStyle(TQDomDocument gnumeric_doc,Cell * cell, int currentcolumn, int currentrow)
{
- TQColorGroup defaultColorGroup = TQApplication::palette().active();
+ TQColorGroup defaultColorGroup = TQApplication::tqpalette().active();
TQDomElement cell_style;
@@ -938,7 +938,7 @@ void GNUMERICExport::addSummaryItem(TQDomDocument gnumeric_doc, TQDomElement sum
// The reason why we use the KoDocument* approach and not the TQDomDocument
// approach is because we don't want to export formulas but values !
-KoFilter::ConversionStatus GNUMERICExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus GNUMERICExport::convert( const TQCString& from, const TQCString& to )
{
kdDebug(30521) << "Exporting GNUmeric" << endl;
@@ -1443,7 +1443,7 @@ KoFilter::ConversionStatus GNUMERICExport::convert( const TQCString& from, const
//<gmr:CellComment Author="" Text="cvbcvbxcvb&#10;cb&#10;xc&#10;vbxcv&#10;" ObjectBound="A1" ObjectOffset="0 0 0 0" ObjectAnchorType="17 16 17 16" Direction="17"/>
cellComment = gnumeric_doc.createElement("gmr:CellComment");
cellComment.setAttribute( "Text", cell->format()->comment( currentcolumn, currentrow ) );
- TQString sCell=TQString( "%1%2" ).arg( Cell::columnName(currentcolumn ) ).arg( currentrow );
+ TQString sCell=TQString( "%1%2" ).tqarg( Cell::columnName(currentcolumn ) ).tqarg( currentrow );
cellComment.setAttribute("ObjectBound", sCell );
objects.appendChild(cellComment);
diff --git a/filters/kspread/gnumeric/gnumericexport.h b/filters/kspread/gnumeric/gnumericexport.h
index 0b2b0324..392f0f72 100644
--- a/filters/kspread/gnumeric/gnumericexport.h
+++ b/filters/kspread/gnumeric/gnumericexport.h
@@ -37,7 +37,7 @@ public:
GNUMERICExport(KoFilter *parent, const char*name, const TQStringList&);
virtual ~GNUMERICExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
private:
TQDomElement GetCellStyle(TQDomDocument gnumeric_doc, KSpread::Cell* cell, int currentcolumn, int currentrow);
diff --git a/filters/kspread/gnumeric/gnumericimport.cc b/filters/kspread/gnumeric/gnumericimport.cc
index b0833e87..249258b3 100644
--- a/filters/kspread/gnumeric/gnumericimport.cc
+++ b/filters/kspread/gnumeric/gnumericimport.cc
@@ -1822,7 +1822,7 @@ void GNUMERICFilter::setStyleInfo(TQDomNode * sheet, Sheet * table)
*/
-KoFilter::ConversionStatus GNUMERICFilter::convert( const TQCString & from, const TQCString & to )
+KoFilter::ConversiontqStatus GNUMERICFilter::convert( const TQCString & from, const TQCString & to )
{
dateInit();
bool bSuccess=true;
diff --git a/filters/kspread/gnumeric/gnumericimport.h b/filters/kspread/gnumeric/gnumericimport.h
index c449a599..b7fbd4bd 100644
--- a/filters/kspread/gnumeric/gnumericimport.h
+++ b/filters/kspread/gnumeric/gnumericimport.h
@@ -39,7 +39,7 @@ class GNUMERICFilter : public KoFilter
GNUMERICFilter(KoFilter *parent, const char *name, const TQStringList&);
virtual ~GNUMERICFilter() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
enum borderStyle { Left, Right, Top, Bottom, Diagonal, Revdiagonal};
private:
diff --git a/filters/kspread/gnumeric/status.html b/filters/kspread/gnumeric/status.html
index a25cdf4b..7bd198cc 100644
--- a/filters/kspread/gnumeric/status.html
+++ b/filters/kspread/gnumeric/status.html
@@ -211,7 +211,7 @@ Bold
<br>Cell Size:Qt::Horizontal &amp;Qt::Vertical
<br>Hidden columns/rows&nbsp;
<br>Selected Tab
-<br>Paper layout
+<br>Paper tqlayout
<br>area name
<br>Cell comment
<br>Text Rotation
diff --git a/filters/kspread/html/exportdialog.cc b/filters/kspread/html/exportdialog.cc
index aa9366bf..72dd6875 100644
--- a/filters/kspread/html/exportdialog.cc
+++ b/filters/kspread/html/exportdialog.cc
@@ -22,7 +22,7 @@
#include <tqlistbox.h>
#include <tqradiobutton.h>
#include <tqspinbox.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <kapplication.h>
#include <kglobal.h>
@@ -44,7 +44,7 @@ ExportDialog::ExportDialog( TQWidget *parent, const char *name )
m_mainwidget->mSheets, TQT_SLOT( clearSelection() ) );
m_mainwidget->mEncodingBox->insertItem( i18n( "Recommended: UTF-8" ) );
- m_mainwidget->mEncodingBox->insertItem( i18n( "Locale (%1)" ).arg( KGlobal::locale()->codecForEncoding()->name() ) );
+ m_mainwidget->mEncodingBox->insertItem( i18n( "Locale (%1)" ).tqarg( KGlobal::locale()->codecForEncoding()->name() ) );
m_mainwidget->mCustomURL->setMode( KFile::ExistingOnly );
diff --git a/filters/kspread/html/exportwidget.ui b/filters/kspread/html/exportwidget.ui
index 1b6ad59b..df5dcc90 100644
--- a/filters/kspread/html/exportwidget.ui
+++ b/filters/kspread/html/exportwidget.ui
@@ -21,7 +21,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<hbox>
<property name="name">
@@ -56,7 +56,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -86,7 +86,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout7</cstring>
+ <cstring>tqlayout7</cstring>
</property>
<hbox>
<property name="name">
@@ -124,7 +124,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>330</width>
<height>20</height>
@@ -222,7 +222,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -271,7 +271,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -292,7 +292,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
diff --git a/filters/kspread/html/htmlexport.cc b/filters/kspread/html/htmlexport.cc
index 93991ad0..54711d8d 100644
--- a/filters/kspread/html/htmlexport.cc
+++ b/filters/kspread/html/htmlexport.cc
@@ -23,7 +23,7 @@
#include <exportdialog.h>
#include <tqfile.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <kdebug.h>
#include <kgenericfactory.h>
@@ -76,7 +76,7 @@ const TQString strGt ("&gt;");
// The reason why we use the KoDocument* approach and not the TQDomDocument
// approach is because we don't want to export formulas but values !
-KoFilter::ConversionStatus HTMLExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus HTMLExport::convert( const TQCString& from, const TQCString& to )
{
if(to!="text/html" || from!="application/x-kspread")
{
@@ -186,7 +186,7 @@ void HTMLExport::openPage( Sheet *sheet, KoDocument *document, TQString &str )
str += "<html>\n";
str += "<head>\n";
str += "<meta http-equiv=\"Content-Type\" ";
- str += TQString("content=\"text/html; charset=%1\">\n").arg( m_dialog->encoding()->mimeName() );
+ str += TQString("content=\"text/html; charset=%1\">\n").tqarg( m_dialog->encoding()->mimeName() );
str += "<meta name=\"Generator\" ";
str += "content=\"KSpread HTML Export Filter Version = ";
str += KOFFICE_VERSION_STRING;
@@ -202,7 +202,7 @@ void HTMLExport::openPage( Sheet *sheet, KoDocument *document, TQString &str )
str += "<title>" + title + "</title>\n";
str += "</head>\n";
- str += TQString("<body bgcolor=\"#FFFFFF\" dir=\"%1\">\n").arg(
+ str += TQString("<body bgcolor=\"#FFFFFF\" dir=\"%1\">\n").tqarg(
sheet->isRightToLeft()?"rtl":"ltr");
str += "<a name=\"__top\">\n";
@@ -234,8 +234,8 @@ void HTMLExport::convertSheet( Sheet *sheet, TQString &str, int iMaxUsedRow, int
int step=iMaxRow > 50 ? iMaxRow/50 : 1;
int i=1;
- str += "<" + html_table_tag + html_table_options.arg( m_dialog->useBorders() ? "1" : "0" ).arg( m_dialog->pixelsBetweenCells() ) +
- TQString("dir=\"%1\">\n").arg(sheet->isRightToLeft()?"rtl":"ltr");
+ str += "<" + html_table_tag + html_table_options.tqarg( m_dialog->useBorders() ? "1" : "0" ).tqarg( m_dialog->pixelsBetweenCells() ) +
+ TQString("dir=\"%1\">\n").tqarg(sheet->isRightToLeft()?"rtl":"ltr");
unsigned int nonempty_cells_prev=0;
@@ -297,7 +297,7 @@ void HTMLExport::convertSheet( Sheet *sheet, TQString &str, int iMaxUsedRow, int
#endif
line += " <" + html_cell_tag + html_cell_options;
if (text.isRightToLeft() != sheet->isRightToLeft())
- line += TQString(" dir=\"%1\" ").arg(text.isRightToLeft()?"rtl":"ltr");
+ line += TQString(" dir=\"%1\" ").tqarg(text.isRightToLeft()?"rtl":"ltr");
if (bgcolor.isValid() && bgcolor.name()!="#ffffff") // change color only for non-white cells
line += " bgcolor=\"" + bgcolor.name() + "\"";
diff --git a/filters/kspread/html/htmlexport.h b/filters/kspread/html/htmlexport.h
index c7007157..09f904d3 100644
--- a/filters/kspread/html/htmlexport.h
+++ b/filters/kspread/html/htmlexport.h
@@ -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 );
private:
/** Writes the top of the page in HTML to @par str */
void openPage( KSpread::Sheet *sheet,KoDocument *document, TQString &str);
diff --git a/filters/kspread/kexi/kspread_kexiimport.cc b/filters/kspread/kexi/kspread_kexiimport.cc
index ac725982..15e8ee2a 100644
--- a/filters/kspread/kexi/kspread_kexiimport.cc
+++ b/filters/kspread/kexi/kspread_kexiimport.cc
@@ -74,7 +74,7 @@ KSpreadKexiImport::~KSpreadKexiImport()
//=============================================================================
-KoFilter::ConversionStatus KSpreadKexiImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus KSpreadKexiImport::convert( const TQCString& from, const TQCString& to )
{
TQPtrList<TQListViewItem> objects;
TQString file( m_chain->inputFile() );
diff --git a/filters/kspread/kexi/kspread_kexiimport.h b/filters/kspread/kexi/kspread_kexiimport.h
index 4de3e704..aec65889 100644
--- a/filters/kspread/kexi/kspread_kexiimport.h
+++ b/filters/kspread/kexi/kspread_kexiimport.h
@@ -76,7 +76,7 @@ class KSpreadKexiImport : public KoFilter
*/
virtual ~KSpreadKexiImport();
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
private:
KSpread::Doc *ksdoc;
diff --git a/filters/kspread/kexi/kspread_kexiimportdialog.cc b/filters/kspread/kexi/kspread_kexiimportdialog.cc
index f99b76a3..9ddf240f 100644
--- a/filters/kspread/kexi/kspread_kexiimportdialog.cc
+++ b/filters/kspread/kexi/kspread_kexiimportdialog.cc
@@ -35,7 +35,7 @@
#include <klistview.h>
#include <kcombobox.h>
#include <tqradiobutton.h>
-#include <textedit.h>
+#include <tqtextedit.h>
#include <tqcheckbox.h>
#include <klocale.h>
diff --git a/filters/kspread/kexi/kspread_kexiimportdialogbase.ui b/filters/kspread/kexi/kspread_kexiimportdialogbase.ui
index fad0e0be..d9d28d55 100644
--- a/filters/kspread/kexi/kspread_kexiimportdialogbase.ui
+++ b/filters/kspread/kexi/kspread_kexiimportdialogbase.ui
@@ -35,7 +35,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<vbox>
<property name="name">
@@ -110,7 +110,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout8</cstring>
+ <cstring>tqlayout8</cstring>
</property>
<vbox>
<property name="name">
@@ -180,7 +180,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -196,7 +196,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>145</width>
<height>0</height>
diff --git a/filters/kspread/latex/export/config.h b/filters/kspread/latex/export/config.h
index 969d021d..6e35bd1c 100644
--- a/filters/kspread/latex/export/config.h
+++ b/filters/kspread/latex/export/config.h
@@ -22,7 +22,7 @@
#ifndef __LATEX_CONFIG_H__
#define __LATEX_CONFIG_H__
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstringlist.h>
/***********************************************************************/
@@ -84,8 +84,8 @@ class Config
bool convertPictures() const { return _convertPictures; }
TQString getPicturesDir() const { return _picturesDir; }
- bool mustUseUnicode() const { return (_encoding == "unicode"); }
- bool mustUseLatin1() const { return (_encoding != "unicode"); }
+ bool mustUseUnicode() const { return (_encoding == "tqunicode"); }
+ bool mustUseLatin1() const { return (_encoding != "tqunicode"); }
TQString getEncoding() const { return _encoding; }
TQStringList getLanguagesList() const { return _languagesList; }
TQString getDefaultLanguage() const { return _defaultLanguage; }
diff --git a/filters/kspread/latex/export/document.h b/filters/kspread/latex/export/document.h
index 733310bc..b8f0296c 100644
--- a/filters/kspread/latex/export/document.h
+++ b/filters/kspread/latex/export/document.h
@@ -24,7 +24,7 @@
#define __KSPREAD_LATEX_DOCUMENT_H__
#include <tqfile.h> /* for TQFile class */
-#include <textstream.h> /* for TQTextStream class */
+#include <tqtextstream.h> /* for TQTextStream class */
#include <tqstring.h> /* for TQString class */
#include "xmlparser.h"
diff --git a/filters/kspread/latex/export/fileheader.cc b/filters/kspread/latex/export/fileheader.cc
index 07b1fbe4..8ee9eee0 100644
--- a/filters/kspread/latex/export/fileheader.cc
+++ b/filters/kspread/latex/export/fileheader.cc
@@ -79,7 +79,7 @@ void FileHeader::analysePaper(const TQDomNode balise)
analysePaperParam(balise);
//setTokenCurrent(balise_initiale->pContent);
- // Analyse children markups --> PAPERBORDERS
+ // Analyse tqchildren markups --> PAPERBORDERS
TQDomNode fils = getChild(balise, "PAPERSBORDERS");
_leftBorder = getAttr(fils, "left").toInt();
_rightBorder = getAttr(fils, "right").toInt();
@@ -282,7 +282,7 @@ void FileHeader::generatePackage(TQTextStream &out)
if(Config::instance()->mustUseUnicode())
out << "\\usepackage{omega}" << endl;
if(getFormat() == TF_A4)
- out << "\\usepackage[a4paper]{geometry}" << endl;
+ out << "\\usepackage[a4paper]{tqgeometry}" << endl;
if(hasFooter() || hasHeader())
out << "\\usepackage{fancyhdr}" << endl;
if(hasColor())
diff --git a/filters/kspread/latex/export/fileheader.h b/filters/kspread/latex/export/fileheader.h
index 1d9b6025..5c4e7774 100644
--- a/filters/kspread/latex/export/fileheader.h
+++ b/filters/kspread/latex/export/fileheader.h
@@ -22,7 +22,7 @@
#ifndef __KSPREAD_LATEX_FILEHEADER_H__
#define __KSPREAD_LATEX_FILEHEADER_H__
-#include <textstream.h>
+#include <tqtextstream.h>
#include "xmlparser.h"
diff --git a/filters/kspread/latex/export/format.h b/filters/kspread/latex/export/format.h
index 9b03a258..7025c371 100644
--- a/filters/kspread/latex/export/format.h
+++ b/filters/kspread/latex/export/format.h
@@ -23,7 +23,7 @@
#ifndef __KSPREAD_LATEX_FORMAT_H__
#define __KSPREAD_LATEX_FORMAT_H__
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstring.h>
#include <tqcolor.h>
#include "xmlparser.h"
diff --git a/filters/kspread/latex/export/formula.h b/filters/kspread/latex/export/formula.h
index b023cdf6..03ba4bd6 100644
--- a/filters/kspread/latex/export/formula.h
+++ b/filters/kspread/latex/export/formula.h
@@ -25,7 +25,7 @@
#include "element.h"
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
/***********************************************************************/
/* Class: Formula */
diff --git a/filters/kspread/latex/export/kspreadlatexexportdiaImpl.cc b/filters/kspread/latex/export/kspreadlatexexportdiaImpl.cc
index 7a058550..a7f03f60 100644
--- a/filters/kspread/latex/export/kspreadlatexexportdiaImpl.cc
+++ b/filters/kspread/latex/export/kspreadlatexexportdiaImpl.cc
@@ -69,7 +69,7 @@ KSpreadLatexExportDiaImpl::KSpreadLatexExportDiaImpl(KoStore* in, TQWidget* pare
TQString value;
while(i < 10)
{
- /*value = _config->readPathEntry( TQString("Recent%1").arg(i) );
+ /*value = _config->readPathEntry( TQString("Recent%1").tqarg(i) );
kdDebug(30522) << "recent : " << value << endl;
if(!value.isEmpty())
{
@@ -99,7 +99,7 @@ KSpreadLatexExportDiaImpl::KSpreadLatexExportDiaImpl(KoStore* in, TQWidget* pare
classComboBox->insertItem("report");
classComboBox->insertItem("slides");
- encodingComboBox->insertItem("unicode");
+ encodingComboBox->insertItem("tqunicode");
encodingComboBox->insertItem("ansinew");
encodingComboBox->insertItem("applemac");
encodingComboBox->insertItem("ascii");
diff --git a/filters/kspread/latex/export/latexexport.cc b/filters/kspread/latex/export/latexexport.cc
index c1cdd389..66927728 100644
--- a/filters/kspread/latex/export/latexexport.cc
+++ b/filters/kspread/latex/export/latexexport.cc
@@ -24,7 +24,7 @@
#include <kgenericfactory.h>
#include <kglobal.h>
#include <klocale.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include "kspreadlatexexportdiaImpl.h"
typedef KGenericFactory<LATEXExport, KoFilter> LATEXExportFactory;
@@ -35,7 +35,7 @@ LATEXExport::LATEXExport(KoFilter *, const char *, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversionStatus LATEXExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus LATEXExport::convert( const TQCString& from, const TQCString& to )
{
TQString config;
diff --git a/filters/kspread/latex/export/latexexport.h b/filters/kspread/latex/export/latexexport.h
index 4d34e0f0..e7c0312b 100644
--- a/filters/kspread/latex/export/latexexport.h
+++ b/filters/kspread/latex/export/latexexport.h
@@ -21,7 +21,7 @@
#define __LATEXEXPORT_H__
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -38,7 +38,7 @@ class LATEXExport : public KoFilter
LATEXExport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~LATEXExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif /* __LATEXExport_H__ */
diff --git a/filters/kspread/latex/export/latexexportdia.ui b/filters/kspread/latex/export/latexexportdia.ui
index 741a9c7e..8c3835ed 100644
--- a/filters/kspread/latex/export/latexexportdia.ui
+++ b/filters/kspread/latex/export/latexexportdia.ui
@@ -593,7 +593,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>0</height>
diff --git a/filters/kspread/latex/export/map.cc b/filters/kspread/latex/export/map.cc
index 886f6c11..a2256d5e 100644
--- a/filters/kspread/latex/export/map.cc
+++ b/filters/kspread/latex/export/map.cc
@@ -46,7 +46,7 @@ void Map::analyse(const TQDomNode balise)
/* Analyse of the parameters */
kdDebug(30522) << "ANALYSE A MAP" << endl;
- /* Analyse of the children markups */
+ /* Analyse of the tqchildren markups */
for(int index = 0; index < getNbChild(balise); index++)
{
// Only tables
diff --git a/filters/kspread/latex/export/pen.h b/filters/kspread/latex/export/pen.h
index 54792205..49da17e0 100644
--- a/filters/kspread/latex/export/pen.h
+++ b/filters/kspread/latex/export/pen.h
@@ -23,7 +23,7 @@
#ifndef __KSPREAD_LATEX_PEN_H__
#define __KSPREAD_LATEX_PEN_H__
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstring.h>
#include <tqcolor.h>
#include "xmlparser.h"
diff --git a/filters/kspread/latex/export/spreadsheet.h b/filters/kspread/latex/export/spreadsheet.h
index dfc2f092..03984105 100644
--- a/filters/kspread/latex/export/spreadsheet.h
+++ b/filters/kspread/latex/export/spreadsheet.h
@@ -23,7 +23,7 @@
#define __KSPREAD_LATEX_SPREADSHEET_H__
#include <tqptrlist.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include "map.h"
#include "config.h"
diff --git a/filters/kspread/latex/export/xmlparser.cc b/filters/kspread/latex/export/xmlparser.cc
index fb2c8e1f..6b85f243 100644
--- a/filters/kspread/latex/export/xmlparser.cc
+++ b/filters/kspread/latex/export/xmlparser.cc
@@ -89,18 +89,18 @@ bool XmlParser::isChild(TQDomNode balise, TQString name)
TQDomNode XmlParser::getChild(TQDomNode balise, TQString name, int index)
{
if(balise.isElement()) {
- TQDomNodeList children = balise.toElement().elementsByTagName(name);
- if ( children.count() )
- return children.item(index);
+ TQDomNodeList tqchildren = balise.toElement().elementsByTagName(name);
+ if ( tqchildren.count() )
+ return tqchildren.item(index);
}
return TQDomNode();
}
TQDomNode XmlParser::getChild(TQDomNode balise, int index)
{
- TQDomNodeList children = balise.childNodes();
- if ( children.count() )
- return children.item(index);
+ TQDomNodeList tqchildren = balise.childNodes();
+ if ( tqchildren.count() )
+ return tqchildren.item(index);
return TQDomNode();
}
diff --git a/filters/kspread/libkspreadexport/KSpreadBaseWorker.cc b/filters/kspread/libkspreadexport/KSpreadBaseWorker.cc
index cc7b2b46..ba56c229 100644
--- a/filters/kspread/libkspreadexport/KSpreadBaseWorker.cc
+++ b/filters/kspread/libkspreadexport/KSpreadBaseWorker.cc
@@ -31,7 +31,7 @@ KSpreadBaseWorker::~KSpreadBaseWorker() {
}
-KoFilter::ConversionStatus KSpreadBaseWorker::startDocument(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus KSpreadBaseWorker::startDocument(KSpreadFilterProperty property) {
KSpreadFilterProperty::Iterator it;
for (it = property.begin(); it != property.end(); ++it) {
kdDebug(30508) << "startDocument: " << it.key() << "->" << it.data() << endl;
@@ -40,7 +40,7 @@ KoFilter::ConversionStatus KSpreadBaseWorker::startDocument(KSpreadFilterPropert
}
-KoFilter::ConversionStatus KSpreadBaseWorker::startInfoLog(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus KSpreadBaseWorker::startInfoLog(KSpreadFilterProperty property) {
KSpreadFilterProperty::Iterator it;
for (it = property.begin(); it != property.end(); ++it) {
kdDebug(30508) << "startInfoLog: " << it.key() << "->" << it.data() << endl;
@@ -49,7 +49,7 @@ KoFilter::ConversionStatus KSpreadBaseWorker::startInfoLog(KSpreadFilterProperty
}
-KoFilter::ConversionStatus KSpreadBaseWorker::startInfoAuthor(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus KSpreadBaseWorker::startInfoAuthor(KSpreadFilterProperty property) {
KSpreadFilterProperty::Iterator it;
for (it = property.begin(); it != property.end(); ++it) {
kdDebug(30508) << "startInfoAuthor: " << it.key() << "->" << it.data() << endl;
@@ -58,7 +58,7 @@ KoFilter::ConversionStatus KSpreadBaseWorker::startInfoAuthor(KSpreadFilterPrope
}
-KoFilter::ConversionStatus KSpreadBaseWorker::startInfoAbout(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus KSpreadBaseWorker::startInfoAbout(KSpreadFilterProperty property) {
KSpreadFilterProperty::Iterator it;
for (it = property.begin(); it != property.end(); ++it) {
kdDebug(30508) << "startInfoAbout: " << it.key() << "->" << it.data() << endl;
@@ -67,7 +67,7 @@ KoFilter::ConversionStatus KSpreadBaseWorker::startInfoAbout(KSpreadFilterProper
}
-KoFilter::ConversionStatus KSpreadBaseWorker::startSpreadBook(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus KSpreadBaseWorker::startSpreadBook(KSpreadFilterProperty property) {
KSpreadFilterProperty::Iterator it;
for (it = property.begin(); it != property.end(); ++it) {
kdDebug(30508) << "startSpreadBook: " << it.key() << "->" << it.data() << endl;
@@ -76,7 +76,7 @@ KoFilter::ConversionStatus KSpreadBaseWorker::startSpreadBook(KSpreadFilterPrope
}
-KoFilter::ConversionStatus KSpreadBaseWorker::startSpreadSheet(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus KSpreadBaseWorker::startSpreadSheet(KSpreadFilterProperty property) {
KSpreadFilterProperty::Iterator it;
for (it = property.begin(); it != property.end(); ++it) {
kdDebug(30508) << "startSpreadSheet: " << it.key() << "->" << it.data() << endl;
@@ -85,7 +85,7 @@ KoFilter::ConversionStatus KSpreadBaseWorker::startSpreadSheet(KSpreadFilterProp
}
-KoFilter::ConversionStatus KSpreadBaseWorker::startSpreadCell(KSpreadFilterProperty property) {
+KoFilter::ConversiontqStatus KSpreadBaseWorker::startSpreadCell(KSpreadFilterProperty property) {
KSpreadFilterProperty::Iterator it;
for (it = property.begin(); it != property.end(); ++it) {
kdDebug(30508) << "startSpreadCell: " << it.key() << "->" << it.data() << endl;
diff --git a/filters/kspread/libkspreadexport/KSpreadBaseWorker.h b/filters/kspread/libkspreadexport/KSpreadBaseWorker.h
index 13b3d380..4ba82383 100644
--- a/filters/kspread/libkspreadexport/KSpreadBaseWorker.h
+++ b/filters/kspread/libkspreadexport/KSpreadBaseWorker.h
@@ -33,13 +33,13 @@ public:
KSpreadBaseWorker();
virtual ~KSpreadBaseWorker();
- virtual KoFilter::ConversionStatus startDocument(KSpreadFilterProperty property);
- virtual KoFilter::ConversionStatus startInfoLog(KSpreadFilterProperty property);
- virtual KoFilter::ConversionStatus startInfoAuthor(KSpreadFilterProperty property);
- virtual KoFilter::ConversionStatus startInfoAbout(KSpreadFilterProperty property);
- virtual KoFilter::ConversionStatus startSpreadBook(KSpreadFilterProperty property);
- virtual KoFilter::ConversionStatus startSpreadSheet(KSpreadFilterProperty property);
- virtual KoFilter::ConversionStatus startSpreadCell(KSpreadFilterProperty property);
+ virtual KoFilter::ConversiontqStatus startDocument(KSpreadFilterProperty property);
+ virtual KoFilter::ConversiontqStatus startInfoLog(KSpreadFilterProperty property);
+ virtual KoFilter::ConversiontqStatus startInfoAuthor(KSpreadFilterProperty property);
+ virtual KoFilter::ConversiontqStatus startInfoAbout(KSpreadFilterProperty property);
+ virtual KoFilter::ConversiontqStatus startSpreadBook(KSpreadFilterProperty property);
+ virtual KoFilter::ConversiontqStatus startSpreadSheet(KSpreadFilterProperty property);
+ virtual KoFilter::ConversiontqStatus startSpreadCell(KSpreadFilterProperty property);
};
#endif /* KSPREAD_BASE_WORKER_H */
diff --git a/filters/kspread/libkspreadexport/KSpreadLeader.cc b/filters/kspread/libkspreadexport/KSpreadLeader.cc
index b1b9a0aa..9ba2d874 100644
--- a/filters/kspread/libkspreadexport/KSpreadLeader.cc
+++ b/filters/kspread/libkspreadexport/KSpreadLeader.cc
@@ -48,8 +48,8 @@ void Leader::setWorker(KSpreadBaseWorker *newWorker) {
}
-KoFilter::ConversionStatus Leader::convert() {
- KoFilter::ConversionStatus status;
+KoFilter::ConversiontqStatus Leader::convert() {
+ KoFilter::ConversiontqStatus status;
// Validate the filter chain and the worker
if (!m_filterChain) {
@@ -122,8 +122,8 @@ KoFilter::ConversionStatus Leader::convert() {
}
-KoFilter::ConversionStatus Leader::doInfo(KoDocumentInfo *info) {
- KoFilter::ConversionStatus status;
+KoFilter::ConversiontqStatus Leader::doInfo(KoDocumentInfo *info) {
+ KoFilter::ConversiontqStatus status;
#if 0 // this was never used, it's been removed now
// Gather data about the document log
@@ -164,7 +164,7 @@ KoFilter::ConversionStatus Leader::doInfo(KoDocumentInfo *info) {
}
-KoFilter::ConversionStatus Leader::doSpreadBook(KSpreadDoc *document) {
+KoFilter::ConversiontqStatus Leader::doSpreadBook(KSpreadDoc *document) {
KSpreadFilterProperty docSpreadBookProperty;
docSpreadBookProperty["spreadsheetcount"] = TQString::number(document->map()->count());
docSpreadBookProperty["decimalsymbol"] = document->locale()->decimalSymbol();
@@ -216,7 +216,7 @@ KoFilter::ConversionStatus Leader::doSpreadBook(KSpreadDoc *document) {
}
-KoFilter::ConversionStatus Leader::doSpreadSheet(KSpreadSheet *spreadSheet) {
+KoFilter::ConversiontqStatus Leader::doSpreadSheet(KSpreadSheet *spreadSheet) {
KSpreadFilterProperty docSpreadSheetProperty;
docSpreadSheetProperty["name"] = spreadSheet->tableName();
docSpreadSheetProperty["sizemaxx"] = TQString::number(spreadSheet->sizeMaxX());
@@ -257,7 +257,7 @@ KoFilter::ConversionStatus Leader::doSpreadSheet(KSpreadSheet *spreadSheet) {
}
-KoFilter::ConversionStatus Leader::doSpreadCell(Cell*spreadCell, int column, int row) {
+KoFilter::ConversiontqStatus Leader::doSpreadCell(Cell*spreadCell, int column, int row) {
KSpreadFilterProperty docSpreadCellProperty;
docSpreadCellProperty["column"] = TQString::number(column);
docSpreadCellProperty["row"] = TQString::number(row);
diff --git a/filters/kspread/libkspreadexport/KSpreadLeader.h b/filters/kspread/libkspreadexport/KSpreadLeader.h
index eee950b9..7e9abfed 100644
--- a/filters/kspread/libkspreadexport/KSpreadLeader.h
+++ b/filters/kspread/libkspreadexport/KSpreadLeader.h
@@ -78,10 +78,10 @@ private:
protected:
KSpreadBaseWorker *getWorker() const;
- KoFilter::ConversionStatus doSpreadCell(Cell *spreadCell, int column, int row);
- KoFilter::ConversionStatus doSpreadSheet(Sheet *spreadSheet);
- KoFilter::ConversionStatus doSpreadBook(Doc *document);
- KoFilter::ConversionStatus doInfo(KoDocumentInfo *info);
+ KoFilter::ConversiontqStatus doSpreadCell(Cell *spreadCell, int column, int row);
+ KoFilter::ConversiontqStatus doSpreadSheet(Sheet *spreadSheet);
+ KoFilter::ConversiontqStatus doSpreadBook(Doc *document);
+ KoFilter::ConversiontqStatus doInfo(KoDocumentInfo *info);
public:
/**
@@ -97,7 +97,7 @@ public:
*
* @return status of the conversion.
*/
- KoFilter::ConversionStatus convert();
+ KoFilter::ConversiontqStatus convert();
};
} // namespace KSpread
diff --git a/filters/kspread/opencalc/opencalcexport.cc b/filters/kspread/opencalc/opencalcexport.cc
index ce1a55ad..9e37597c 100644
--- a/filters/kspread/opencalc/opencalcexport.cc
+++ b/filters/kspread/opencalc/opencalcexport.cc
@@ -83,7 +83,7 @@ OpenCalcExport::OpenCalcExport( KoFilter *, const char *, const TQStringList & )
{
}
-KoFilter::ConversionStatus OpenCalcExport::convert( const TQCString & from,
+KoFilter::ConversiontqStatus OpenCalcExport::convert( const TQCString & from,
const TQCString & to )
{
/* later...
@@ -91,7 +91,7 @@ KoFilter::ConversionStatus OpenCalcExport::convert( const TQCString & from,
OpenCalcWorker * worker = new OpenCalcWorker();
leader->setWorker( worker );
- KoFilter::ConversionStatus status = leader->convert();
+ KoFilter::ConversiontqStatus status = leader->convert();
delete worker;
delete leader;
@@ -227,7 +227,7 @@ bool OpenCalcExport::exportDocInfo( KoStore * store, const Doc* ksdoc )
data.appendChild( meta.createTextNode( aboutPage->subject() ) );
officeMeta.appendChild( data );
- const TQDateTime dt ( TQDateTime::currentDateTime() );
+ const TQDateTime dt ( TQDateTime::tqcurrentDateTime() );
if ( dt.isValid() )
{
data = meta.createElement( "dc:date" );
@@ -844,7 +844,7 @@ void OpenCalcExport::exportDefaultCellStyle( TQDomDocument & doc, TQDomElement &
TQDomElement style = doc.createElement( "style:properties" );
style.setAttribute( "style:font-name", font.family() );
- style.setAttribute( "fo:font-size", TQString( "%1pt" ).arg( font.pointSize() ) );
+ style.setAttribute( "fo:font-size", TQString( "%1pt" ).tqarg( font.pointSize() ) );
style.setAttribute( "style:decimal-places", TQString::number( locale->fracDigits() ) );
style.setAttribute( "fo:language", language );
style.setAttribute( "fo:country", country );
@@ -881,8 +881,8 @@ void OpenCalcExport::exportPageAutoStyles( TQDomDocument & doc, TQDomElement & a
height = sheet->print()->paperHeight() / 10;
}
- TQString sWidth = TQString( "%1cm" ).arg( width );
- TQString sHeight = TQString( "%1cm" ).arg( height );
+ TQString sWidth = TQString( "%1cm" ).tqarg( width );
+ TQString sHeight = TQString( "%1cm" ).tqarg( height );
TQDomElement pageMaster = doc.createElement( "style:page-master" );
pageMaster.setAttribute( "style:name", "pm1" );
@@ -1073,7 +1073,7 @@ void OpenCalcExport::convertPart( TQString const & part, TQDomDocument & doc,
TQDomElement t = doc.createElement( "text:date" );
t.setAttribute( "text:date-value", "0-00-00" );
// todo: "style:data-style-name", "N2"
- t.appendChild( doc.createTextNode( TQDate::currentDate().toString() ) );
+ t.appendChild( doc.createTextNode( TQDate::tqcurrentDate().toString() ) );
parent.appendChild( t );
}
else if ( var == "<time>" )
diff --git a/filters/kspread/opencalc/opencalcexport.h b/filters/kspread/opencalc/opencalcexport.h
index 03cfa245..97832a9a 100644
--- a/filters/kspread/opencalc/opencalcexport.h
+++ b/filters/kspread/opencalc/opencalcexport.h
@@ -46,7 +46,7 @@ class OpenCalcExport : public KoFilter
OpenCalcExport( KoFilter * parent, const char * name, const TQStringList & );
virtual ~OpenCalcExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString & from,
+ virtual KoFilter::ConversiontqStatus convert( const TQCString & from,
const TQCString & to );
private:
diff --git a/filters/kspread/opencalc/opencalcimport.cc b/filters/kspread/opencalc/opencalcimport.cc
index 60412181..376a8f77 100644
--- a/filters/kspread/opencalc/opencalcimport.cc
+++ b/filters/kspread/opencalc/opencalcimport.cc
@@ -168,7 +168,7 @@ bool OpenCalcImport::readRowFormat( TQDomElement & rowNode, TQDomElement * rowSt
double height = -1.0;
bool insertPageBreak = false;
- Format layout( table, table->doc()->styleManager()->defaultStyle() );
+ Format tqlayout( table, table->doc()->styleManager()->defaultStyle() );
while( !node.isNull() )
{
@@ -190,7 +190,7 @@ bool OpenCalcImport::readRowFormat( TQDomElement & rowNode, TQDomElement * rowSt
}
}
- loadStyleProperties( &layout, property );
+ loadStyleProperties( &tqlayout, property );
}
node = node.nextSibling();
@@ -219,7 +219,7 @@ bool OpenCalcImport::readRowFormat( TQDomElement & rowNode, TQDomElement * rowSt
for ( int i = 0; i < number; ++i )
{
RowFormat * rowL = table->nonDefaultRowFormat( row );
- rowL->copy( layout );
+ rowL->copy( tqlayout );
if ( height != -1 )
{
@@ -480,10 +480,10 @@ bool OpenCalcImport::readCells( TQDomElement & rowNode, Sheet * table, int row,
psName = e.attributeNS( ooNS::style, "parent-style-name", TQString() );
kdDebug(30518) << "Default style: " << psName << endl;
- Format * layout = m_defaultStyles[psName];
+ Format * tqlayout = m_defaultStyles[psName];
- if ( layout )
- cell->format()->copy( *layout );
+ if ( tqlayout )
+ cell->format()->copy( *tqlayout );
TQDomElement * st = 0;
if ( e.hasAttributeNS( ooNS::table, "style-name" ) )
@@ -548,10 +548,10 @@ bool OpenCalcImport::readCells( TQDomElement & rowNode, Sheet * table, int row,
TQString psName( "Default" );
kdDebug(30518) << "Default style: " << psName << endl;
- Format * layout = m_defaultStyles[psName];
+ Format * tqlayout = m_defaultStyles[psName];
- if ( layout )
- cell->format()->copy( *layout );
+ if ( tqlayout )
+ cell->format()->copy( *tqlayout );
}
if ( e.hasAttributeNS( ooNS::table, "formula" ) )
{
@@ -959,16 +959,16 @@ bool OpenCalcImport::readRowsAndCells( TQDomElement & content, Sheet * table )
return false;
RowFormat * srcLayout = table->nonDefaultRowFormat( backupRow );
- RowFormat * layout = 0;
+ RowFormat * tqlayout = 0;
if ( collapsed )
srcLayout->setHide( true );
for ( i = 1; i < number; ++i )
{
- layout = table->nonDefaultRowFormat( backupRow + i );
+ tqlayout = table->nonDefaultRowFormat( backupRow + i );
- layout->copy( *srcLayout );
+ tqlayout->copy( *srcLayout );
/*
* TODO: Test: do we need to copy the cells, too?
@@ -1047,14 +1047,14 @@ bool OpenCalcImport::readColLayouts( TQDomElement & content, Sheet * table )
if ( st && !st->isNull() )
{
- Format * layout = new Format( 0, m_doc->styleManager()->defaultStyle() );
+ Format * tqlayout = new Format( 0, m_doc->styleManager()->defaultStyle() );
- readInStyle( layout, *st );
+ readInStyle( tqlayout, *st );
- m_defaultStyles.insert( name, layout );
+ m_defaultStyles.insert( name, tqlayout );
kdDebug(30518) << "Insert default cell style: " << name << endl;
- defaultStyle = layout;
+ defaultStyle = tqlayout;
}
}
@@ -1281,7 +1281,7 @@ void OpenCalcImport::loadOasisMasterLayoutPage( Sheet * table,KoStyleStack &styl
TQString orientation = "Portrait";
TQString format;
- // Laurent : Why we stored layout information as Millimeter ?!!!!!
+ // Laurent : Why we stored tqlayout information as Millimeter ?!!!!!
// kspread used point for all other attribute
// I don't understand :(
if ( styleStack.hasAttributeNS( ooNS::fo, "page-width" ) )
@@ -1387,7 +1387,7 @@ void OpenCalcImport::loadOasisMasterLayoutPage( Sheet * table,KoStyleStack &styl
kdDebug(30518)<<" table-centering unknown :"<<str<<endl;
#endif
}
- format = TQString( "%1x%2" ).arg( width ).arg( height );
+ format = TQString( "%1x%2" ).tqarg( width ).tqarg( height );
kdDebug(30518)<<" format : "<<format<<endl;
table->print()->setPaperLayout( left, top, right, bottom, format, orientation );
@@ -1962,32 +1962,32 @@ TQString * OpenCalcImport::loadFormat( TQDomElement * element,
return format;
}
-void OpenCalcImport::loadFontStyle( Format * layout, TQDomElement const * font ) const
+void OpenCalcImport::loadFontStyle( Format * tqlayout, TQDomElement const * font ) const
{
- if ( !font || !layout )
+ if ( !font || !tqlayout )
return;
- kdDebug(30518) << "Copy font style from the layout " << font->tagName() << ", " << font->nodeName() << endl;
+ kdDebug(30518) << "Copy font style from the tqlayout " << font->tagName() << ", " << font->nodeName() << endl;
if ( font->hasAttributeNS( ooNS::fo, "font-family" ) )
- layout->setTextFontFamily( font->attributeNS( ooNS::fo, "font-family", TQString() ) );
+ tqlayout->setTextFontFamily( font->attributeNS( ooNS::fo, "font-family", TQString() ) );
if ( font->hasAttributeNS( ooNS::fo, "color" ) )
- layout->setTextColor( TQColor( font->attributeNS( ooNS::fo, "color", TQString() ) ) );
+ tqlayout->setTextColor( TQColor( font->attributeNS( ooNS::fo, "color", TQString() ) ) );
if ( font->hasAttributeNS( ooNS::fo, "font-size" ) )
- layout->setTextFontSize( int( KoUnit::parseValue( font->attributeNS( ooNS::fo, "font-size", TQString() ), 10 ) ) );
+ tqlayout->setTextFontSize( int( KoUnit::parseValue( font->attributeNS( ooNS::fo, "font-size", TQString() ), 10 ) ) );
else
- layout->setTextFontSize( 10 );
+ tqlayout->setTextFontSize( 10 );
if ( font->hasAttributeNS( ooNS::fo, "font-style" ) )
{
kdDebug(30518) << "italic" << endl;
- layout->setTextFontItalic( true ); // only thing we support
+ tqlayout->setTextFontItalic( true ); // only thing we support
}
if ( font->hasAttributeNS( ooNS::fo, "font-weight" ) )
- layout->setTextFontBold( true ); // only thing we support
+ tqlayout->setTextFontBold( true ); // only thing we support
if ( font->hasAttributeNS( ooNS::fo, "text-underline" ) || font->hasAttributeNS( ooNS::style, "text-underline" ) )
- layout->setTextFontUnderline( true ); // only thing we support
+ tqlayout->setTextFontUnderline( true ); // only thing we support
if ( font->hasAttributeNS( ooNS::style, "text-crossing-out" ) )
- layout->setTextFontStrike( true ); // only thing we support
+ tqlayout->setTextFontStrike( true ); // only thing we support
if ( font->hasAttributeNS( ooNS::style, "font-pitch" ) )
{
// TODO: possible values: fixed, variable
@@ -1996,7 +1996,7 @@ void OpenCalcImport::loadFontStyle( Format * layout, TQDomElement const * font )
// text-underline-color
}
-void OpenCalcImport::loadBorder( Format * layout, TQString const & borderDef, bPos pos ) const
+void OpenCalcImport::loadBorder( Format * tqlayout, TQString const & borderDef, bPos pos ) const
{
if ( borderDef == "none" )
return;
@@ -2038,24 +2038,24 @@ void OpenCalcImport::loadBorder( Format * layout, TQString const & borderDef, bP
pen.setColor( TQColor( borderDef.right( p - p2 ) ) );
if ( pos == Left )
- layout->setLeftBorderPen( pen );
+ tqlayout->setLeftBorderPen( pen );
else if ( pos == Top )
- layout->setTopBorderPen( pen );
+ tqlayout->setTopBorderPen( pen );
else if ( pos == Right )
- layout->setRightBorderPen( pen );
+ tqlayout->setRightBorderPen( pen );
else if ( pos == Bottom )
- layout->setBottomBorderPen( pen );
+ tqlayout->setBottomBorderPen( pen );
else if ( pos == Border )
{
- layout->setLeftBorderPen( pen );
- layout->setTopBorderPen( pen );
- layout->setRightBorderPen( pen );
- layout->setBottomBorderPen( pen );
+ tqlayout->setLeftBorderPen( pen );
+ tqlayout->setTopBorderPen( pen );
+ tqlayout->setRightBorderPen( pen );
+ tqlayout->setBottomBorderPen( pen );
}
// TODO Diagonals not supported by oocalc
}
-void OpenCalcImport::loadStyleProperties( Format * layout, TQDomElement const & property ) const
+void OpenCalcImport::loadStyleProperties( Format * tqlayout, TQDomElement const & property ) const
{
kdDebug(30518) << "*** Loading style properties *****" << endl;
@@ -2064,16 +2064,16 @@ void OpenCalcImport::loadStyleProperties( Format * layout, TQDomElement const &
bool ok = false;
int p = property.attributeNS( ooNS::style, "decimal-places", TQString() ).toInt( &ok );
if (ok )
- layout->setPrecision( p );
+ tqlayout->setPrecision( p );
}
if ( property.hasAttributeNS( ooNS::style, "font-name" ) )
{
TQDomElement * font = m_styles[ property.attributeNS( ooNS::style, "font-name", TQString() ) ];
- loadFontStyle( layout, font ); // generell font style
+ loadFontStyle( tqlayout, font ); // generell font style
}
- loadFontStyle( layout, &property ); // specific font style
+ loadFontStyle( tqlayout, &property ); // specific font style
// TODO:
// diagonal: fall + goup
@@ -2090,133 +2090,133 @@ void OpenCalcImport::loadStyleProperties( Format * layout, TQDomElement const &
bool ok = false;
int a = property.attributeNS( ooNS::style, "rotation-angle", TQString() ).toInt( &ok );
if ( ok )
- layout->setAngle( -a + 1 );
+ tqlayout->setAngle( -a + 1 );
}
if ( property.hasAttributeNS( ooNS::fo, "direction" ) )
{
- layout->setVerticalText( true );
+ tqlayout->setVerticalText( true );
}
if ( property.hasAttributeNS( ooNS::fo, "text-align" ) )
{
TQString s = property.attributeNS( ooNS::fo, "text-align", TQString() );
if ( s == "center" )
- layout->setAlign( Format::Center );
+ tqlayout->setAlign( Format::Center );
else if ( s == "end" )
- layout->setAlign( Format::Right );
+ tqlayout->setAlign( Format::Right );
else if ( s == "start" )
- layout->setAlign( Format::Left );
+ tqlayout->setAlign( Format::Left );
else if ( s == "justify" ) // TODO in KSpread!
- layout->setAlign( Format::Center );
+ tqlayout->setAlign( Format::Center );
}
if ( property.hasAttributeNS( ooNS::fo, "margin-left" ) )
{
kdDebug(30518)<<"margin-left :"<<KoUnit::parseValue( property.attributeNS( ooNS::fo, "margin-left", TQString() ),0.0 )<<endl;
- layout->setIndent( KoUnit::parseValue( property.attributeNS( ooNS::fo, "margin-left", TQString() ),0.0 ) );
+ tqlayout->setIndent( KoUnit::parseValue( property.attributeNS( ooNS::fo, "margin-left", TQString() ),0.0 ) );
}
if ( property.hasAttributeNS( ooNS::fo, "background-color" ) )
- layout->setBgColor( TQColor( property.attributeNS( ooNS::fo, "background-color", TQString() ) ) );
+ tqlayout->setBgColor( TQColor( property.attributeNS( ooNS::fo, "background-color", TQString() ) ) );
if ( property.hasAttributeNS( ooNS::style, "print-content" ) )
{
if ( property.attributeNS( ooNS::style, "print-content", TQString() ) == "false" )
- layout->setDontPrintText( false );
+ tqlayout->setDontPrintText( false );
}
if ( property.hasAttributeNS( ooNS::style, "cell-protect" ) )
{
TQString prot( property.attributeNS( ooNS::style, "cell-protect", TQString() ) );
if ( prot == "none" )
{
- layout->setNotProtected( true );
- layout->setHideFormula( false );
- layout->setHideAll( false );
+ tqlayout->setNotProtected( true );
+ tqlayout->setHideFormula( false );
+ tqlayout->setHideAll( false );
}
else if ( prot == "formula-hidden" )
{
- layout->setNotProtected( true );
- layout->setHideFormula( true );
- layout->setHideAll( false );
+ tqlayout->setNotProtected( true );
+ tqlayout->setHideFormula( true );
+ tqlayout->setHideAll( false );
}
else if ( prot == "protected formula-hidden" )
{
- layout->setNotProtected( false );
- layout->setHideFormula( true );
- layout->setHideAll( false );
+ tqlayout->setNotProtected( false );
+ tqlayout->setHideFormula( true );
+ tqlayout->setHideAll( false );
}
else if ( prot == "hidden-and-protected" )
{
- layout->setNotProtected( false );
- layout->setHideFormula( false );
- layout->setHideAll( true );
+ tqlayout->setNotProtected( false );
+ tqlayout->setHideFormula( false );
+ tqlayout->setHideAll( true );
}
else if ( prot == "protected" )
{
- layout->setNotProtected( false );
- layout->setHideFormula( false );
- layout->setHideAll( false );
+ tqlayout->setNotProtected( false );
+ tqlayout->setHideFormula( false );
+ tqlayout->setHideAll( false );
}
kdDebug(30518) << "Cell " << prot << endl;
}
if ( property.hasAttributeNS( ooNS::fo, "padding-left" ) )
- layout->setIndent( KoUnit::parseValue(property.attributeNS( ooNS::fo, "padding-left", TQString() ) ) );
+ tqlayout->setIndent( KoUnit::parseValue(property.attributeNS( ooNS::fo, "padding-left", TQString() ) ) );
if ( property.hasAttributeNS( ooNS::fo, "vertical-align" ) )
{
TQString s = property.attributeNS( ooNS::fo, "vertical-align", TQString() );
if ( s == "middle" )
- layout->setAlignY( Format::Middle );
+ tqlayout->setAlignY( Format::Middle );
else if ( s == "bottom" )
- layout->setAlignY( Format::Bottom );
+ tqlayout->setAlignY( Format::Bottom );
else
- layout->setAlignY( Format::Top );
+ tqlayout->setAlignY( Format::Top );
}
else
- layout->setAlignY( Format::Bottom );
+ tqlayout->setAlignY( Format::Bottom );
if ( property.hasAttributeNS( ooNS::fo, "wrap-option" ) )
{
- layout->setMultiRow( true );
+ tqlayout->setMultiRow( true );
/* we do not support anything else yet
TQString s = property.attributeNS( ooNS::fo, "wrap-option", TQString() );
if ( s == "wrap" )
- layout->setMultiRow( true );
+ tqlayout->setMultiRow( true );
*/
}
if ( property.hasAttributeNS( ooNS::fo, "border-bottom" ) )
{
- loadBorder( layout, property.attributeNS( ooNS::fo, "border-bottom", TQString() ), Bottom );
+ loadBorder( tqlayout, property.attributeNS( ooNS::fo, "border-bottom", TQString() ), Bottom );
// TODO: style:border-line-width-bottom if double!
}
if ( property.hasAttributeNS( ooNS::fo, "border-right" ) )
{
- loadBorder( layout, property.attributeNS( ooNS::fo, "border-right", TQString() ), Right );
+ loadBorder( tqlayout, property.attributeNS( ooNS::fo, "border-right", TQString() ), Right );
// TODO: style:border-line-width-right
}
if ( property.hasAttributeNS( ooNS::fo, "border-top" ) )
{
- loadBorder( layout, property.attributeNS( ooNS::fo, "border-top", TQString() ), Top );
+ loadBorder( tqlayout, property.attributeNS( ooNS::fo, "border-top", TQString() ), Top );
// TODO: style:border-line-width-top
}
if ( property.hasAttributeNS( ooNS::fo, "border-left" ) )
{
- loadBorder( layout, property.attributeNS( ooNS::fo, "border-left", TQString() ), Left );
+ loadBorder( tqlayout, property.attributeNS( ooNS::fo, "border-left", TQString() ), Left );
// TODO: style:border-line-width-left
}
if ( property.hasAttributeNS( ooNS::fo, "border" ) )
{
- loadBorder( layout, property.attributeNS( ooNS::fo, "border", TQString() ), Border );
+ loadBorder( tqlayout, property.attributeNS( ooNS::fo, "border", TQString() ), Border );
// TODO: style:border-line-width-left
}
}
-void OpenCalcImport::readInStyle( Format * layout, TQDomElement const & style )
+void OpenCalcImport::readInStyle( Format * tqlayout, TQDomElement const & style )
{
kdDebug(30518) << "** Reading Style: " << style.tagName() << "; " << style.attributeNS( ooNS::style, "name", TQString()) << endl;
if ( style.localName() == "style" && style.namespaceURI()==ooNS::style)
@@ -2225,20 +2225,20 @@ void OpenCalcImport::readInStyle( Format * layout, TQDomElement const & style )
{
Format * cp
= m_defaultStyles.find( style.attributeNS( ooNS::style, "parent-style-name", TQString() ) );
- kdDebug(30518) << "Copying layout from " << style.attributeNS( ooNS::style, "parent-style-name", TQString() ) << endl;
+ kdDebug(30518) << "Copying tqlayout from " << style.attributeNS( ooNS::style, "parent-style-name", TQString() ) << endl;
if ( cp != 0 )
- layout->copy( *cp );
+ tqlayout->copy( *cp );
}
else if ( style.hasAttributeNS( ooNS::style, "family") )
{
TQString name = style.attribute( "style-family" ) + "default";
Format * cp = m_defaultStyles.find( name );
- kdDebug(30518) << "Copying layout from " << name << ", " << !cp << endl;
+ kdDebug(30518) << "Copying tqlayout from " << name << ", " << !cp << endl;
if ( cp != 0 )
- layout->copy( *cp );
+ tqlayout->copy( *cp );
}
if ( style.hasAttributeNS( ooNS::style, "data-style-name" ) )
@@ -2255,8 +2255,8 @@ void OpenCalcImport::readInStyle( Format * layout, TQDomElement const & style )
if ( format )
{
- layout->setFormatString( *format );
- layout->setFormatType( formatType );
+ tqlayout->setFormatString( *format );
+ tqlayout->setFormatType( formatType );
}
// <number:currency-symbol number:language="de" number:country="DE">€</number:currency-symbol>
@@ -2267,9 +2267,9 @@ void OpenCalcImport::readInStyle( Format * layout, TQDomElement const & style )
forEachElement( property, style )
{
if ( property.localName() == "properties" && property.namespaceURI() == ooNS::style )
- loadStyleProperties( layout, property );
+ loadStyleProperties( tqlayout, property );
- kdDebug(30518) << layout->textFontFamily( 0, 0 ) << endl;
+ kdDebug(30518) << tqlayout->textFontFamily( 0, 0 ) << endl;
}
}
@@ -2289,7 +2289,7 @@ bool OpenCalcImport::createStyleMap( TQDomDocument const & styles )
if ( d > 1.0 )
{
TQString message( i18n("This document was created with OpenOffice.org version '%1'. This filter was written for version 1.0. Reading this file could cause strange behavior, crashes or incorrect display of the data. Do you want to continue converting the document?") );
- message.arg( content.attributeNS( ooNS::office, "version", TQString() ) );
+ message.tqarg( content.attributeNS( ooNS::office, "version", TQString() ) );
if ( KMessageBox::warningYesNo( 0, message, i18n( "Unsupported document version" ) ) == KMessageBox::No )
return false;
}
@@ -2358,13 +2358,13 @@ bool OpenCalcImport::createStyleMap( TQDomDocument const & styles )
if ( !e.isNull() )
{
- Format * layout = new Format( 0, m_doc->styleManager()->defaultStyle() );
+ Format * tqlayout = new Format( 0, m_doc->styleManager()->defaultStyle() );
- readInStyle( layout, e );
+ readInStyle( tqlayout, e );
kdDebug(30518) << "Default style " << e.attributeNS( ooNS::style, "family", TQString() ) << "default" << " loaded " << endl;
- m_defaultStyles.insert( e.attributeNS( ooNS::style, "family", TQString() ) + "default", layout );
- // TQFont font = layout->font();
+ m_defaultStyles.insert( e.attributeNS( ooNS::style, "family", TQString() ) + "default", tqlayout );
+ // TQFont font = tqlayout->font();
// kdDebug(30518) << "Font: " << font.family() << ", " << font.toString() << endl;
}
@@ -2384,12 +2384,12 @@ bool OpenCalcImport::createStyleMap( TQDomDocument const & styles )
continue;
}
- Format * layout = new Format( 0, m_doc->styleManager()->defaultStyle() );
- readInStyle( layout, defs );
+ Format * tqlayout = new Format( 0, m_doc->styleManager()->defaultStyle() );
+ readInStyle( tqlayout, defs );
kdDebug(30518) << "Default style " << defs.attributeNS( ooNS::style, "name", TQString() ) << " loaded " << endl;
- m_defaultStyles.insert( defs.attributeNS( ooNS::style, "name", TQString() ), layout );
- // kdDebug(30518) << "Font: " << layout->font().family() << ", " << layout->font().toString() << endl;
+ m_defaultStyles.insert( defs.attributeNS( ooNS::style, "name", TQString() ), tqlayout );
+ // kdDebug(30518) << "Font: " << tqlayout->font().family() << ", " << tqlayout->font().toString() << endl;
defs = defs.nextSibling().toElement();
}
@@ -2735,7 +2735,7 @@ int OpenCalcImport::readMetaData()
return result;
}
-KoFilter::ConversionStatus OpenCalcImport::convert( TQCString const & from, TQCString const & to )
+KoFilter::ConversiontqStatus OpenCalcImport::convert( TQCString const & from, TQCString const & to )
{
kdDebug(30518) << "Entering OpenCalc Import filter: " << from << " - " << to << endl;
@@ -2765,10 +2765,10 @@ KoFilter::ConversionStatus OpenCalcImport::convert( TQCString const & from, TQCS
kdDebug(30518) << "Opening file " << endl;
- KoFilter::ConversionStatus preStatus = openFile();
+ KoFilter::ConversiontqStatus pretqStatus = openFile();
- if ( preStatus != KoFilter::OK )
- return preStatus;
+ if ( pretqStatus != KoFilter::OK )
+ return pretqStatus;
emit sigProgress( 13 );
int tables = readMetaData();
@@ -2782,7 +2782,7 @@ KoFilter::ConversionStatus OpenCalcImport::convert( TQCString const & from, TQCS
return KoFilter::OK;
}
-KoFilter::ConversionStatus OpenCalcImport::openFile()
+KoFilter::ConversiontqStatus OpenCalcImport::openFile()
{
KoStore * store = KoStore::createStore( m_chain->inputFile(), KoStore::Read);
@@ -2817,7 +2817,7 @@ KoFilter::ConversionStatus OpenCalcImport::openFile()
return KoFilter::OK;
}
-KoFilter::ConversionStatus OpenCalcImport::loadAndParse( TQDomDocument& doc, const TQString& fileName,KoStore *m_store )
+KoFilter::ConversiontqStatus OpenCalcImport::loadAndParse( TQDomDocument& doc, const TQString& fileName,KoStore *m_store )
{
return OoUtils::loadAndParse( fileName, doc, m_store);
}
diff --git a/filters/kspread/opencalc/opencalcimport.h b/filters/kspread/opencalc/opencalcimport.h
index 8965dae5..cd1f23b6 100644
--- a/filters/kspread/opencalc/opencalcimport.h
+++ b/filters/kspread/opencalc/opencalcimport.h
@@ -47,7 +47,7 @@ class OpenCalcImport : public KoFilter
OpenCalcImport( KoFilter * parent, const char * name, const TQStringList & );
virtual ~OpenCalcImport();
- virtual KoFilter::ConversionStatus convert( TQCString const & from, TQCString const & to );
+ virtual KoFilter::ConversiontqStatus convert( TQCString const & from, TQCString const & to );
private:
@@ -90,10 +90,10 @@ class OpenCalcImport : public KoFilter
bool readRowsAndCells( TQDomElement & content, KSpread::Sheet * table );
bool readCells( TQDomElement & rowNode, KSpread::Sheet * table, int row, int & columns );
void convertFormula( TQString & text, TQString const & f ) const;
- void loadFontStyle( KSpread::Format * layout, TQDomElement const * font ) const;
- void readInStyle( KSpread::Format * layout, TQDomElement const & style );
- void loadStyleProperties( KSpread::Format * layout, TQDomElement const & property ) const;
- void loadBorder( KSpread::Format * layout, TQString const & borderDef, bPos pos ) const;
+ void loadFontStyle( KSpread::Format * tqlayout, TQDomElement const * font ) const;
+ void readInStyle( KSpread::Format * tqlayout, TQDomElement const & style );
+ void loadStyleProperties( KSpread::Format * tqlayout, TQDomElement const & property ) const;
+ void loadBorder( KSpread::Format * tqlayout, TQString const & borderDef, bPos pos ) const;
void loadTableMasterStyle( KSpread::Sheet * table, TQString const & stylename );
TQString * loadFormat( TQDomElement * element,
KSpread::FormatType & formatType,
@@ -111,9 +111,9 @@ class OpenCalcImport : public KoFilter
void loadOasisConditionValue( const TQString &styleCondition, KSpread::Conditional &newCondition );
void loadOasisCondition( TQString &valExpression, KSpread::Conditional &newCondition );
void loadOasisValidationValue( const TQStringList &listVal, KSpread::Conditional &newCondition );
- KoFilter::ConversionStatus loadAndParse( TQDomDocument& doc, const TQString& fileName,KoStore *m_store );
+ KoFilter::ConversiontqStatus loadAndParse( TQDomDocument& doc, const TQString& fileName,KoStore *m_store );
- KoFilter::ConversionStatus openFile();
+ KoFilter::ConversiontqStatus openFile();
};
#endif // OpenCalc_IMPORT_H__
diff --git a/filters/kspread/opencalc/opencalcstyleexport.cc b/filters/kspread/opencalc/opencalcstyleexport.cc
index 9585ae13..f075713a 100644
--- a/filters/kspread/opencalc/opencalcstyleexport.cc
+++ b/filters/kspread/opencalc/opencalcstyleexport.cc
@@ -111,7 +111,7 @@ TQString OpenCalcStyles::cellStyle( CellStyle const & cs )
m_cellStyles.append( t );
- t->name = TQString( "ce%1" ).arg( m_cellStyles.count() );
+ t->name = TQString( "ce%1" ).tqarg( m_cellStyles.count() );
return t->name;
}
@@ -132,7 +132,7 @@ TQString OpenCalcStyles::columnStyle( ColumnStyle const & cs )
m_columnStyles.append( t );
- t->name = TQString( "co%1" ).arg( m_columnStyles.count() );
+ t->name = TQString( "co%1" ).tqarg( m_columnStyles.count() );
return t->name;
}
@@ -158,7 +158,7 @@ TQString OpenCalcStyles::rowStyle( RowStyle const & rs )
m_rowStyles.append( t );
- t->name = TQString( "ro%1" ).arg( m_rowStyles.count() );
+ t->name = TQString( "ro%1" ).tqarg( m_rowStyles.count() );
return t->name;
}
@@ -179,14 +179,14 @@ TQString OpenCalcStyles::sheetStyle( SheetStyle const & ts )
m_sheetStyles.append( t );
- t->name = TQString( "ta%1" ).arg( m_sheetStyles.count() );
+ t->name = TQString( "ta%1" ).tqarg( m_sheetStyles.count() );
return t->name;
}
TQString convertPenToString( TQPen const & pen )
{
- TQString s( TQString( "%1cm solid " ).arg( pen.width() * 0.035 ) );
+ TQString s( TQString( "%1cm solid " ).tqarg( pen.width() * 0.035 ) );
s += pen.color().name();
return s;
@@ -212,7 +212,7 @@ void OpenCalcStyles::addCellStyles( TQDomDocument & doc, TQDomElement & autoStyl
if ( t->font.bold() != m_defaultFont.bold() )
prop.setAttribute( "fo:font-weight", ( t->font.bold() ? "bold" : "light" ) );
- prop.setAttribute( "fo:font-size", TQString( "%1pt" ).arg( t->font.pointSize() ) );
+ prop.setAttribute( "fo:font-size", TQString( "%1pt" ).tqarg( t->font.pointSize() ) );
if ( t->font.underline() != m_defaultFont.underline() )
{
@@ -250,7 +250,7 @@ void OpenCalcStyles::addCellStyles( TQDomDocument & doc, TQDomElement & autoStyl
if ( t->indent > 0.0 )
{
- prop.setAttribute( "fo:margin-left", TQString( "%1pt" ).arg( t->indent ) );
+ prop.setAttribute( "fo:margin-left", TQString( "%1pt" ).tqarg( t->indent ) );
if ( t->alignX == Format::Undefined )
prop.setAttribute( "fo:text-align", "start" );
}
@@ -323,7 +323,7 @@ void OpenCalcStyles::addColumnStyles( TQDomDocument & doc, TQDomElement & autoSt
TQDomElement prop = doc.createElement( "style:properties" );
if ( t->breakB != ::Style::none )
prop.setAttribute( "fo:break-before", ( t->breakB == ::Style::automatic ? "auto" : "page" ) );
- prop.setAttribute( "style:column-width", TQString( "%1cm" ).arg( t->size ) );
+ prop.setAttribute( "style:column-width", TQString( "%1cm" ).tqarg( t->size ) );
ts.appendChild( prop );
autoStyles.appendChild( ts );
@@ -346,7 +346,7 @@ void OpenCalcStyles::addRowStyles( TQDomDocument & doc, TQDomElement & autoStyle
ts.setAttribute( "style:family", "table-row" );
TQDomElement prop = doc.createElement( "style:properties" );
- prop.setAttribute( "style:row-height", TQString( "%1cm" ).arg( t->size ) );
+ prop.setAttribute( "style:row-height", TQString( "%1cm" ).tqarg( t->size ) );
if ( t->breakB != ::Style::none )
prop.setAttribute( "fo:break-before", ( t->breakB == ::Style::automatic ? "auto" : "page" ) );
diff --git a/filters/kspread/opencalc/status.html b/filters/kspread/opencalc/status.html
index b23f6ae9..dfaed8a4 100644
--- a/filters/kspread/opencalc/status.html
+++ b/filters/kspread/opencalc/status.html
@@ -51,7 +51,7 @@ KOffice filters status:&nbsp;&nbsp; OpenOffice.org Calc</h1></center>
Borders, background colors<br>
column width, row width<br>
column layouts, row layouts<br>
- page layout (size, border)<br>
+ page tqlayout (size, border)<br>
OpenCalc style import, default style<br>
format string translating (not supported by KSpread yet, but this filter produces these strings => needs enhancements in KSpread)<br>
header, footer (including macros)<br>
@@ -139,7 +139,7 @@ KOffice filters status:&nbsp;&nbsp; OpenOffice.org Calc</h1></center>
Page sizes, header and footer (including variable converting)<br>
Font (sizes, attributes, color)<br>
Background color<br>
- Text alignment, angle, vertical text, text wrap and indents<br>
+ Text tqalignment, angle, vertical text, text wrap and indents<br>
Merged Cells<br>
DontPrint flag<br>
Comments<br>
@@ -169,10 +169,10 @@ KOffice filters status:&nbsp;&nbsp; OpenOffice.org Calc</h1></center>
<td>
Jan 12, 2003 - Initial Revision<br>
- Jan 18, 2003 - page layout, header, footer<br>
+ Jan 18, 2003 - page tqlayout, header, footer<br>
Jan 19, 2003 - Added support for fonts, text color, background color, formula
conversion<br>
- Jan 19, 2003 - text alignment, indents, comments, NoPrint, Merged Cells<br>
+ Jan 19, 2003 - text tqalignment, indents, comments, NoPrint, Merged Cells<br>
Jan 19, 2003 - angle, vertical text, text wrap<br>
Jan 19, 2003 - named area, hidden columns and rows<br>
Jan 20, 2003 - cell borders<br>
diff --git a/filters/kspread/qpro/qproimport.cc b/filters/kspread/qpro/qproimport.cc
index 920d20a7..9a0db4fa 100644
--- a/filters/kspread/qpro/qproimport.cc
+++ b/filters/kspread/qpro/qproimport.cc
@@ -94,7 +94,7 @@ QpImport::InitTableName(int pIdx, TQString& pResult)
}
}
-KoFilter::ConversionStatus QpImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus QpImport::convert( const TQCString& from, const TQCString& to )
{
bool bSuccess=true;
diff --git a/filters/kspread/qpro/qproimport.h b/filters/kspread/qpro/qproimport.h
index e69d2a65..1c3c7d85 100644
--- a/filters/kspread/qpro/qproimport.h
+++ b/filters/kspread/qpro/qproimport.h
@@ -37,7 +37,7 @@ public:
QpImport(KoFilter* parent, const char* name, const TQStringList&);
virtual ~QpImport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
void InitTableName(int pIdx, TQString& pResult);
};
diff --git a/filters/kugar/kugarnop/kugarnopimport.cpp b/filters/kugar/kugarnop/kugarnopimport.cpp
index f3b132db..f8ad242c 100644
--- a/filters/kugar/kugarnop/kugarnopimport.cpp
+++ b/filters/kugar/kugarnop/kugarnopimport.cpp
@@ -31,7 +31,7 @@ KugarNOPImport::KugarNOPImport( KoFilter *, const char *, const TQStringList& )
{
}
-KoFilter::ConversionStatus KugarNOPImport::convert( const TQCString& /*from*/, const TQCString& /*to*/ )
+KoFilter::ConversiontqStatus KugarNOPImport::convert( const TQCString& /*from*/, const TQCString& /*to*/ )
{
TQFile in( m_chain->inputFile());
diff --git a/filters/kugar/kugarnop/kugarnopimport.h b/filters/kugar/kugarnop/kugarnopimport.h
index a7099bc4..03085410 100644
--- a/filters/kugar/kugarnop/kugarnopimport.h
+++ b/filters/kugar/kugarnop/kugarnopimport.h
@@ -28,7 +28,7 @@ class KugarNOPImport : public KoFilter
public:
KugarNOPImport( KoFilter *parent, const char *name, const TQStringList& );
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
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 <tqmap.h>
#include <tqiodevice.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqdom.h>
#include <kdebug.h>
@@ -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 <section>
virtual bool doCloseTextFrameSet(void); // AbiWord's </section>
@@ -95,7 +95,7 @@ public:
virtual bool doCloseHead(void); // Write <papersize>
virtual bool doOpenStyles(void); // AbiWord's <styles>
virtual bool doCloseStyles(void); // AbiWord's </styles>
- virtual bool doFullDefineStyle(LayoutData& layout); // AbiWord's <s></s>
+ virtual bool doFullDefineStyle(LayoutData& tqlayout); // AbiWord's <s></s>
virtual bool doOpenSpellCheckIgnoreList (void); // AbiWord's <ignorewords>
virtual bool doCloseSpellCheckIgnoreList (void); // AbiWord's </ignorewords>
virtual bool doFullSpellCheckIgnoreWord (const TQString& ignoreword); // AbiWord's <iw>
@@ -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<ParaData>::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 &paraText,
}
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 <FORMAT> 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 << "<p";
if (!style.isEmpty())
@@ -916,16 +916,16 @@ bool AbiWordWorker::doFullParagraph(const TQString& paraText, const LayoutData&
*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 << "<pbr/>";
}
- 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 << "<pbr/>";
@@ -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 << "<s";
// TODO: cook the style name to the standard style names in AbiWord
- *m_streamOut << " name=\"" << EscapeXmlText(layout.styleName,true,true) << "\"";
- *m_streamOut << " followedby=\"" << EscapeXmlText(layout.styleFollowing,true,true) << "\"";
+ *m_streamOut << " name=\"" << EscapeXmlText(tqlayout.styleName,true,true) << "\"";
+ *m_streamOut << " followedby=\"" << EscapeXmlText(tqlayout.styleFollowing,true,true) << "\"";
- if ( (layout.counter.numbering == CounterData::NUM_CHAPTER)
- && (layout.counter.depth<10) )
+ if ( (tqlayout.counter.numbering == CounterData::NUM_CHAPTER)
+ && (tqlayout.counter.depth<10) )
{
*m_streamOut << " level=\"";
- *m_streamOut << TQString::number(layout.counter.depth+1,10);
+ *m_streamOut << TQString::number(tqlayout.counter.depth+1,10);
*m_streamOut << "\"";
}
- TQString abiprops=layoutToCss(layout,layout,true);
+ TQString abiprops=layoutToCss(tqlayout,tqlayout,true);
const int result=abiprops.findRev(";");
if (result>=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 << "</m>\n";
- TQDateTime now (TQDateTime::currentDateTime(Qt::UTC)); // current time in UTC
+ TQDateTime now (TQDateTime::tqcurrentDateTime(Qt::UTC)); // current time in UTC
*m_streamOut << "<m key=\"abiword.date_last_changed\">"
<< escapeAbiWordText(transformToTextDate(now))
<< "</m>\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; // <FORMATS>
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 <unistd.h>
#endif
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <KoFilterChain.h>
@@ -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<text.length(); i++ )
{
TQChar ch = text[i];
- switch( ch.unicode() )
+ switch( ch.tqunicode() )
{
case '<': result += "<<"; break;
case '>': 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( "<LAYOUT>\n" );
result.append( " <NAME value=\"" + XMLEscape( referredStyle ) + "\" />\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( "<PARAGRAPH>\n" );
root.append( "<TEXT>" + XMLEscape( text ) + "</TEXT>\n" );
root.append( AmiProFormatListAsXML( formatList ) );
- root.append( AmiProLayoutAsXML( layout ) );
+ root.append( AmiProLayoutAsXML( tqlayout ) );
root.append( "</PARAGRAPH>\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 <tqfile.h>
#include <tqstring.h>
#include <tqstringlist.h>
-#include <textstream.h>
+#include <tqtextstream.h>
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! <BR>"
- "This is the header line I did read:<BR><B>%1</B>").arg(mystr.latin1()),
+ "This is the header line I did read:<BR><B>%1</B>").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 <tqstringlist.h>
#include <tqfile.h>
#include <tqobject.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <KoFilter.h>
#include <KoStore.h>
@@ -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 <textcodec.h>
+#include <tqtextcodec.h>
#include <tqradiobutton.h>
#include <tqbuttongroup.h>
@@ -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 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
@@ -67,7 +67,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>106</width>
<height>20</height>
@@ -138,7 +138,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
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 <textcodec.h>
+#include <tqtextcodec.h>
#include <tqradiobutton.h>
#include <tqbuttongroup.h>
@@ -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 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
@@ -67,7 +67,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>106</width>
<height>20</height>
@@ -132,7 +132,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
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 <tqfile.h>
#include <tqiodevice.h>
#include <tqstring.h>
-#include <textcodec.h>
-#include <textstream.h>
+#include <tqtextcodec.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <kgenericfactory.h>
@@ -86,7 +86,7 @@ public:
virtual bool doFullParagraphList(const TQValueList<ParaData>& 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<ParaData>& 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<TableCell>::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 <tqobject.h>
#include <tqstring.h>
// #include <tqregexp.h> // Currently not needed (due to disabled code)
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqdom.h>
#include <tqfontinfo.h>
@@ -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 &para,
fixedFont = true;
}
- if ( (*formattingIt).text.italic && !para.layout.formatData.text.italic )
+ if ( (*formattingIt).text.italic && !para.tqlayout.formatData.text.italic )
{
outputText += "<EMPHASIS>";
}
- if ( (*formattingIt).text.weight > para.layout.formatData.text.weight )
+ if ( (*formattingIt).text.weight > para.tqlayout.formatData.text.weight )
{
outputText += "<EMPHASIS ROLE=bold>";
}
@@ -318,12 +318,12 @@ void DocBookWorker::ProcessParagraphData ( const ParaData &para,
outputText += "</LITERAL>";
}
- if ( (*formattingIt).text.weight > para.layout.formatData.text.weight )
+ if ( (*formattingIt).text.weight > para.tqlayout.formatData.text.weight )
{
outputText += "</EMPHASIS>";
}
- if ( (*formattingIt).text.italic && !para.layout.formatData.text.italic )
+ if ( (*formattingIt).text.italic && !para.tqlayout.formatData.text.italic )
{
outputText += "</EMPHASIS>";
}
@@ -516,10 +516,10 @@ bool DocBookWorker::doFullDocument ( const TQValueList<ParaData> &paraList )
TQValueList<ParaData>::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<ParaData> &paraList )
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<ParaData> &paraList )
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<ParaData> &paraList )
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 <tqfile.h>
#include <tqstring.h>
#include <tqstringlist.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <KoFilterChain.h>
@@ -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<unsigned> children( unsigned index );
+ std::vector<unsigned> 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<entryCount(); j++ )
{
- std::vector<unsigned> chi = children( j );
+ std::vector<unsigned> chi = tqchildren( j );
for( unsigned i=0; i<chi.size();i++ )
if( chi[i] == index )
return j;
@@ -575,8 +575,8 @@ DirEntry* DirTree::entry( const std::string& name, bool create )
for( it = names.begin(); it != names.end(); ++it )
{
- // find among the children of index
- std::vector<unsigned> chi = children( index );
+ // find among the tqchildren of index
+ std::vector<unsigned> 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<unsigned>& result,
}
}
-std::vector<unsigned> DirTree::children( unsigned index )
+std::vector<unsigned> DirTree::tqchildren( unsigned index )
{
std::vector<unsigned> result;
@@ -1249,9 +1249,9 @@ std::list<std::string> Storage::entries( const std::string& path )
if( e && e->dir )
{
unsigned parent = dt->indexOf( e );
- std::vector<unsigned> children = dt->children( parent );
- for( unsigned i = 0; i < children.size(); i++ )
- result.push_back( dt->entry( children[i] )->name );
+ std::vector<unsigned> 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 <tqstring.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
#include <klocale.h>
@@ -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 << "</" << strTag << ">\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 \<body\>
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 <tqstring.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
#include <klocale.h>
@@ -52,7 +52,7 @@ TQString HtmlCssWorker::escapeCssIdentifier(const TQString& strText) const
for (uint i=0; i<strText.length(); i++)
{
const TQChar qch(strText.at(i));
- const ushort ch=qch.unicode();
+ const ushort ch=qch.tqunicode();
if (((ch>='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 << "<sub>"; //Subscript
}
- else if ( 2==layout.formatData.text.verticalAlignment )
+ else if ( 2==tqlayout.formatData.text.verticalAlignment )
{
*m_streamOut << "<sup>"; //Superscript
}
- if ( layout.alignment == "center" ) *m_streamOut << "<center>";
+ if ( tqlayout.tqalignment == "center" ) *m_streamOut << "<center>";
}
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 << "</sup>"; //Superscript
}
- else if ( 1==layout.formatData.text.verticalAlignment )
+ else if ( 1==tqlayout.formatData.text.verticalAlignment )
{
*m_streamOut << "</sub>"; //Subscript
}
- if ( layout.alignment == "center" ) *m_streamOut << "</center>";
+ if ( tqlayout.tqalignment == "center" ) *m_streamOut << "</center>";
*m_streamOut << "</" << strTag << ">\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 <h1> ... <h6>, because
- // the style could be forced on <p> by the layout.
+ // the style could be forced on <p> 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 \<style\>
virtual bool doCloseStyles(void); ///< HTML's \</style\>
- 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 \<PAPERBORDERS\>
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 <textcodec.h>
+#include <tqtextcodec.h>
#include <klocale.h>
#include <kcharsets.h>
@@ -28,7 +28,7 @@
#include <kcombobox.h>
#include <kmessagebox.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqradiobutton.h>
#include <tqvbuttongroup.h>
#include <tqcheckbox.h>
@@ -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 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
@@ -67,7 +67,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>106</width>
<height>20</height>
@@ -196,7 +196,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
@@ -212,7 +212,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -221,7 +221,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<vbox>
<property name="name">
@@ -262,7 +262,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>90</height>
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 <tqstring.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
#include <klocale.h>
@@ -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 << "</" << strTag << ">\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 <tqstring.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
#include <tqdir.h>
@@ -275,13 +275,13 @@ void HtmlWorker::formatTextParagraph(const TQString& strText,
}
void HtmlWorker::ProcessParagraphData (const TQString& strTag, const TQString &paraText,
- const LayoutData& layout, const ValueListFormatData &paraFormatDataList)
+ const LayoutData& tqlayout, const ValueListFormatData &paraFormatDataList)
{
if (paraText.isEmpty() && paraFormatDataList.first().id != 6)
{
- openParagraph(strTag,layout);
+ openParagraph(strTag,tqlayout);
*m_streamOut << "&nbsp;" ; // 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
// <img> and <object> 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<layoutDepth; i++)
{
- *m_streamOut << getStartOfListOpeningTag(layout.counter.style,newList.m_orderedList);
+ *m_streamOut << getStartOfListOpeningTag(tqlayout.counter.style,newList.m_orderedList);
m_listStack.push(newList);
}
}
@@ -414,7 +414,7 @@ bool HtmlWorker::doFullParagraph(const TQString& paraText,
}
// We have a list but does it have the right type?
- if ( layout.counter.style!=m_listStack.top().m_typeList)
+ if ( tqlayout.counter.style!=m_listStack.top().m_typeList)
{
// No, then close the previous list
ListInfo oldList=m_listStack.pop();
@@ -427,8 +427,8 @@ bool HtmlWorker::doFullParagraph(const TQString& paraText,
*m_streamOut << "</ul>\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 &paraText,
- const LayoutData& layout, const ValueListFormatData &paraFormatDataList);
+ const LayoutData& tqlayout, const ValueListFormatData &paraFormatDataList);
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 <textcodec.h>
+#include <tqtextcodec.h>
#include <kdebug.h>
#include <kgenericfactory.h>
@@ -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 <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -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. <style="text-align: center">this is in the center</style>
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;i<s1.length();i++) {
- kdDebug(30503) << TQString("%1: %2").arg(s1.item(i).string()).arg(s1.getPropertyValue(s1.item(i)).string()) << endl;
+ kdDebug(30503) << TQString("%1: %2").tqarg(s1.item(i).string()).tqarg(s1.getPropertyValue(s1.item(i)).string()) << endl;
}
kdDebug(30503) << "override style" << endl;
for (unsigned int i=0;i<s2.length();i++) {
- kdDebug(30503) << TQString("%1: %2").arg(s2.item(i).string()).arg(s2.getPropertyValue(s2.item(i)).string()) << endl;
+ kdDebug(30503) << TQString("%1: %2").tqarg(s2.item(i).string()).tqarg(s2.getPropertyValue(s2.item(i)).string()) << endl;
}
*/
}
@@ -628,7 +628,7 @@ bool KHTMLReader::parse_pre(DOM::Element e)
_writer->addText(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. <ul>this is indented<li>first listitem</li></ul>
{
- _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;i<e.count();i++) {
TQDomElement k=e.item(i).toElement();
- if (k.attribute("grpMgr") == TQString("Table %1").arg(tableno))
- if (k.attribute("row") == TQString("%1").arg(rowno))
- if (k.attribute("col") == TQString("%1").arg(colno))
+ if (k.attribute("grpMgr") == TQString("Table %1").tqarg(tableno))
+ if (k.attribute("row") == TQString("%1").tqarg(rowno))
+ if (k.attribute("col") == TQString("%1").tqarg(colno))
return k;
}
TQDomElement dummy;
@@ -207,7 +207,7 @@ void KWDWriter::finishTable(int tableno) {
void KWDWriter::createHR(TQDomElement paragraph, int width) {
- layoutAttribute(paragraph,"BOTTOMBORDER","width",TQString("%1").arg(width));
+ layoutAttribute(paragraph,"BOTTOMBORDER","width",TQString("%1").tqarg(width));
}
void KWDWriter::finishTable(int tableno,TQRect rect) {
@@ -227,7 +227,7 @@ void KWDWriter::finishTable(int tableno,TQRect rect) {
// first, see how big the table is (cols & rows)
for (unsigned i=0;i<nl.count();i++) {
TQDomElement k=nl.item(i).toElement();
- if (k.attribute("grpMgr") == TQString("Table %1").arg(tableno)) {
+ if (k.attribute("grpMgr") == TQString("Table %1").tqarg(tableno)) {
ncols=MAX(ncols,k.attribute("col").toInt()+1);
nrows=MAX(nrows,k.attribute("row").toInt()+1);
}
@@ -251,7 +251,7 @@ void KWDWriter::finishTable(int tableno,TQRect rect) {
TQDomElement e=fetchTableCell(tableno,currow,curcol);
if (e.isNull()) {
// a missing cell !
- kdDebug(30503) << TQString("creating %1 %2").arg(currow).arg(curcol).latin1() << endl;
+ kdDebug(30503) << TQString("creating %1 %2").tqarg(currow).tqarg(curcol).latin1() << endl;
createTableCell(tableno,currow,curcol,1,
TQRect(x+step_x*curcol,y+step_y*currow,step_x,step_y)
);
@@ -328,12 +328,12 @@ TQDomElement KWDWriter::createLink(TQDomElement paragraph, TQString linkName, TQ
}
-TQDomElement KWDWriter::setLayout(TQDomElement paragraph, TQDomElement layout) {
+TQDomElement KWDWriter::setLayout(TQDomElement paragraph, TQDomElement tqlayout) {
TQDomElement theLayout;
- if (layout.isNull())
+ if (tqlayout.isNull())
theLayout=_doc->createElement("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 <textstream.h>
+#include <tqtextstream.h>
#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 \<FORMAT id="1"\> children
- * also the grand-children of \<STYLE\> and \<LAYOUT\>
+ * Contains the data of the \<FORMAT id="1"\> tqchildren
+ * also the grand-tqchildren of \<STYLE\> and \<LAYOUT\>
*/
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 \<FORMAT id="1"\>
+ KWord13FormatOneData m_formatOne; ///< Data of tqchildren of \<FORMAT id="1"\>
};
#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 <textstream.h>
+#include <tqtextstream.h>
#include "kword13utils.h"
#include "kword13layout.h"
@@ -13,7 +13,7 @@ KWord13Layout::~KWord13Layout( void )
void KWord13Layout::xmldump( TQTextStream& iostream )
{
- iostream << " <layout name=\"" << EscapeXmlDump( m_name )
+ iostream << " <tqlayout name=\"" << EscapeXmlDump( m_name )
<< "\" outline=\"" << ( m_outline ? TQString("true") : TQString("false") ) << "\">\n";
for ( TQMap<TQString,TQString>::ConstIterator it = m_layoutProperties.begin();
@@ -25,7 +25,7 @@ void KWord13Layout::xmldump( TQTextStream& iostream )
m_format.xmldump( iostream );
- iostream << " </layout>\n";
+ iostream << " </tqlayout>\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 <STYLE> children are also children of <FRAMESTYLE>, so we have to set it to "ignore"
+ // ### TODO, but some of the <STYLE> tqchildren are also tqchildren of <FRAMESTYLE>, so we have to set it to "ignore"
stackItem->elementType = KWord13TypeIgnore;
success = true;
}
else if ( name == "PICTURES" || name == "PIXMAPS" || name == "CLIPARTS" )
{
- // We just need a separate "type" for the <KEY> children
+ // We just need a separate "type" for the <KEY> tqchildren
stackItem->elementType = KWord13TypePicturesPlural;
success = true;
}
@@ -795,7 +795,7 @@ bool KWord13Parser :: characters ( const TQString & ch )
const uint length = ch.length();
for ( uint i = 0; i < length; ++i )
{
- const ushort uni = ch.at(i).unicode();
+ const ushort uni = ch.tqat(i).tqunicode();
if ( uni >= 32 )
continue; // Normal character
else if ( uni == 9 || uni == 10 || uni == 13)
diff --git a/filters/kword/kword1.3/import/kword13parser.h b/filters/kword/kword1.3/import/kword13parser.h
index 754a618e..7dc81d42 100644
--- a/filters/kword/kword1.3/import/kword13parser.h
+++ b/filters/kword/kword1.3/import/kword13parser.h
@@ -92,9 +92,9 @@ protected: //TQXml
virtual bool error(const TQXmlParseException& exception);
virtual bool fatalError(const TQXmlParseException& exception);
protected:
- /// Process children of \<FORMAT id="1"\>
+ /// Process tqchildren of \<FORMAT id="1"\>
bool startElementFormatOneProperty( const TQString& name, const TQXmlAttributes& attributes, KWord13StackItem *stackItem);
- /// Process children of \<LAYOUT\> (with exceptions)
+ /// Process tqchildren of \<LAYOUT\> (with exceptions)
bool startElementLayoutProperty( const TQString& name, const TQXmlAttributes& attributes, KWord13StackItem *stackItem);
/// Process \<NAME\>
bool startElementName( const TQString&, const TQXmlAttributes& attributes, KWord13StackItem *stackItem );
@@ -108,7 +108,7 @@ protected:
bool startElementFrame( const TQString& name, const TQXmlAttributes& attributes, KWord13StackItem *stackItem );
/// Process \<FRAMESET\>
bool startElementFrameset( const TQString& name, const TQXmlAttributes& attributes, KWord13StackItem *stackItem );
- /// Process opening tag of some elements that are children of \<DOC\> and which only define document properties
+ /// Process opening tag of some elements that are tqchildren of \<DOC\> and which only define document properties
bool startElementDocumentAttributes( const TQString& name, const TQXmlAttributes& attributes,
KWord13StackItem *stackItem, const KWord13StackItemType& allowedParentType, const KWord13StackItemType& newType );
/// Process \<KEY\>
@@ -129,7 +129,7 @@ protected:
KWord13StackItemStack parserStack;
KWord13Document* m_kwordDocument;
KWord13Paragraph* m_currentParagraph; ///< Current paragraph
- KWord13Layout* m_currentLayout; ///< Current layout (or style)
+ KWord13Layout* m_currentLayout; ///< Current tqlayout (or style)
KWord13Format* m_currentFormat; ///< Current format
};
diff --git a/filters/kword/kword1.3/import/kword13utils.cpp b/filters/kword/kword1.3/import/kword13utils.cpp
index 0caf48a7..d870f484 100644
--- a/filters/kword/kword1.3/import/kword13utils.cpp
+++ b/filters/kword/kword1.3/import/kword13utils.cpp
@@ -8,7 +8,7 @@ TQString EscapeXmlDump( const TQString& strIn )
for (uint i=0; i<strIn.length(); i++)
{
ch=strIn[i];
- switch (ch.unicode())
+ switch (ch.tqunicode())
{
case 38: // &
{
diff --git a/filters/kword/latex/export/config.h b/filters/kword/latex/export/config.h
index 26d954ea..7a81b168 100644
--- a/filters/kword/latex/export/config.h
+++ b/filters/kword/latex/export/config.h
@@ -22,7 +22,7 @@
#ifndef __LATEX_CONFIG_H__
#define __LATEX_CONFIG_H__
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstringlist.h>
/***********************************************************************/
@@ -84,8 +84,8 @@ class Config
bool convertPictures() const { return _convertPictures; }
TQString getPicturesDir() const { return _picturesDir; }
- bool mustUseUnicode() const { return (_encoding == "unicode"); }
- bool mustUseLatin1() const { return (_encoding != "unicode"); }
+ bool mustUseUnicode() const { return (_encoding == "tqunicode"); }
+ bool mustUseLatin1() const { return (_encoding != "tqunicode"); }
TQString getEncoding() const { return _encoding; }
TQStringList getLanguagesList() const { return _languagesList; }
TQString getDefaultLanguage() const { return _defaultLanguage; }
diff --git a/filters/kword/latex/export/document.h b/filters/kword/latex/export/document.h
index d6a96459..b2844127 100644
--- a/filters/kword/latex/export/document.h
+++ b/filters/kword/latex/export/document.h
@@ -23,7 +23,7 @@
#define __KWORD_LATEX_DOCUMENT_H__
#include <tqptrlist.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include "listtable.h" /* list of tables (another kind of list of elements). */
#include "key.h"
diff --git a/filters/kword/latex/export/element.h b/filters/kword/latex/export/element.h
index 0db14ace..9374620d 100644
--- a/filters/kword/latex/export/element.h
+++ b/filters/kword/latex/export/element.h
@@ -23,7 +23,7 @@
#ifndef __KWORD_ELEMENT_H__
#define __KWORD_ELEMENT_H__
-#include <textstream.h>
+#include <tqtextstream.h>
#include "xmlparser.h"
#include "border.h"
diff --git a/filters/kword/latex/export/fileheader.cc b/filters/kword/latex/export/fileheader.cc
index 8da25a16..96b4be4e 100644
--- a/filters/kword/latex/export/fileheader.cc
+++ b/filters/kword/latex/export/fileheader.cc
@@ -78,7 +78,7 @@ void FileHeader::analysePaper(const TQDomNode balise)
analysePaperParam(balise);
//setTokenCurrent(balise_initiale->pContent);
- // Analyse children markups --> PAPERBORDERS
+ // Analyse tqchildren markups --> PAPERBORDERS
TQDomNode fils = getChild(balise, "PAPERSBORDERS");
_leftBorder = getAttr(fils, "left").toInt();
_rightBorder = getAttr(fils, "right").toInt();
@@ -287,7 +287,7 @@ void FileHeader::generatePackage(TQTextStream &out)
if(Config::instance()->mustUseUnicode())
out << "\\usepackage{omega}" << endl;
if(getFormat() == TF_A4)
- out << "\\usepackage[a4paper]{geometry}" << endl;
+ out << "\\usepackage[a4paper]{tqgeometry}" << endl;
if(hasFooter() || hasHeader())
out << "\\usepackage{fancyhdr}" << endl;
if(hasColor())
diff --git a/filters/kword/latex/export/fileheader.h b/filters/kword/latex/export/fileheader.h
index d6843c26..d837c828 100644
--- a/filters/kword/latex/export/fileheader.h
+++ b/filters/kword/latex/export/fileheader.h
@@ -22,7 +22,7 @@
#ifndef __KWORD_FILEHEADER_H__
#define __KWORD_FILEHEADER_H__
-#include <textstream.h>
+#include <tqtextstream.h>
#include "xmlparser.h"
diff --git a/filters/kword/latex/export/format.h b/filters/kword/latex/export/format.h
index cd82b36a..c4c3e37a 100644
--- a/filters/kword/latex/export/format.h
+++ b/filters/kword/latex/export/format.h
@@ -23,7 +23,7 @@
#ifndef __KWORD_FORMAT_H__
#define __KWORD_FORMAT_H__
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstring.h>
#include <tqcolor.h>
#include "xmlparser.h"
diff --git a/filters/kword/latex/export/formula.h b/filters/kword/latex/export/formula.h
index b023cdf6..03ba4bd6 100644
--- a/filters/kword/latex/export/formula.h
+++ b/filters/kword/latex/export/formula.h
@@ -25,7 +25,7 @@
#include "element.h"
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
/***********************************************************************/
/* Class: Formula */
diff --git a/filters/kword/latex/export/kwordlatexexportdia.cc b/filters/kword/latex/export/kwordlatexexportdia.cc
index 145b30ed..079b38d3 100644
--- a/filters/kword/latex/export/kwordlatexexportdia.cc
+++ b/filters/kword/latex/export/kwordlatexexportdia.cc
@@ -71,7 +71,7 @@ KWordLatexExportDia::KWordLatexExportDia(KoStore* in, TQWidget* parent,
TQString value;
while(i < 10)
{
- /*value = _config->readPathEntry( TQString("Recent%1").arg(i) );
+ /*value = _config->readPathEntry( TQString("Recent%1").tqarg(i) );
kdDebug(30522) << "recent : " << value << endl;
if(!value.isEmpty())
{
@@ -101,7 +101,7 @@ KWordLatexExportDia::KWordLatexExportDia(KoStore* in, TQWidget* parent,
classComboBox->insertItem("report");
classComboBox->insertItem("slides");
- encodingComboBox->insertItem("unicode");
+ encodingComboBox->insertItem("tqunicode");
encodingComboBox->insertItem("ansinew");
encodingComboBox->insertItem("applemac");
encodingComboBox->insertItem("ascii");
diff --git a/filters/kword/latex/export/latexexport.cc b/filters/kword/latex/export/latexexport.cc
index a72d8c52..f521ec9d 100644
--- a/filters/kword/latex/export/latexexport.cc
+++ b/filters/kword/latex/export/latexexport.cc
@@ -25,7 +25,7 @@
#include <kgenericfactory.h>
#include <kglobal.h>
#include <klocale.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include "kwordlatexexportdia.h"
typedef KGenericFactory<LATEXExport, KoFilter> LATEXExportFactory;
@@ -36,7 +36,7 @@ LATEXExport::LATEXExport(KoFilter *, const char *, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversionStatus LATEXExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus LATEXExport::convert( const TQCString& from, const TQCString& to )
{
TQString config;
diff --git a/filters/kword/latex/export/latexexport.h b/filters/kword/latex/export/latexexport.h
index 4d34e0f0..e7c0312b 100644
--- a/filters/kword/latex/export/latexexport.h
+++ b/filters/kword/latex/export/latexexport.h
@@ -21,7 +21,7 @@
#define __LATEXEXPORT_H__
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -38,7 +38,7 @@ class LATEXExport : public KoFilter
LATEXExport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~LATEXExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif /* __LATEXExport_H__ */
diff --git a/filters/kword/latex/export/latexexportdia.ui b/filters/kword/latex/export/latexexportdia.ui
index 741a9c7e..8c3835ed 100644
--- a/filters/kword/latex/export/latexexportdia.ui
+++ b/filters/kword/latex/export/latexexportdia.ui
@@ -593,7 +593,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>0</height>
diff --git a/filters/kword/latex/export/layout.cc b/filters/kword/latex/export/layout.cc
index 05ad3405..f75ac651 100644
--- a/filters/kword/latex/export/layout.cc
+++ b/filters/kword/latex/export/layout.cc
@@ -24,7 +24,7 @@
#include <kdebug.h> /* for kdDebug() stream */
#include "fileheader.h" /* for _header use */
-#include "layout.h"
+#include "tqlayout.h"
#include "layout.h"
/* Static Datas */
@@ -59,7 +59,7 @@ void Layout::analyseLayout(const TQDomNode balise)
/* No parameters for this markup */
kdDebug(30522) << "ANALYSE OF THE BEGINING OF A LAYOUT" << endl;
- /* Analyse children markups */
+ /* Analyse tqchildren markups */
for(int index= 0; index < getNbChild(balise); index++)
{
if(getChildName(balise, index).compare("NAME")== 0)
diff --git a/filters/kword/latex/export/layout.h b/filters/kword/latex/export/layout.h
index 04096c77..298b08ff 100644
--- a/filters/kword/latex/export/layout.h
+++ b/filters/kword/latex/export/layout.h
@@ -23,7 +23,7 @@
#ifndef __KWORD_LAYOUT_H__
#define __KWORD_LAYOUT_H__
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstring.h>
#include <kdebug.h>
#include "textformat.h"
@@ -93,7 +93,7 @@ class Layout: public TextFormat
* Nothing to do.
*/
virtual ~Layout() {
- kdDebug(30522) << "Destruction of a layout." << endl;
+ kdDebug(30522) << "Destruction of a tqlayout." << endl;
}
/**
diff --git a/filters/kword/latex/export/para.cc b/filters/kword/latex/export/para.cc
index 9cc829b5..6003a075 100644
--- a/filters/kword/latex/export/para.cc
+++ b/filters/kword/latex/export/para.cc
@@ -23,7 +23,7 @@
#include <kdebug.h> /* for kdDebug() stream */
#include "para.h"
#include "textFrame.h" /* father class. */
-#include "format.h" /* children classes. */
+#include "format.h" /* tqchildren classes. */
//#include "picturezone.h"
#include "fileheader.h"
#include "textzone.h"
@@ -132,7 +132,7 @@ void Para::analyse(const TQDomNode balise)
kdDebug(30522) << "**** PARAGRAPH ****" << endl;
- /* Analyse of the children markups */
+ /* Analyse of the tqchildren markups */
for(int index = 0; index < getNbChild(balise); index++)
{
if(getChildName(balise, index).compare("TEXT")== 0)
@@ -210,7 +210,7 @@ void Para::analyseInfo(const TQDomNode balise)
/*******************************************/
/* AnalyseLayoutPara */
/*******************************************/
-/* Analyse the layout of a para. */
+/* Analyse the tqlayout of a para. */
/* For each format, keep the type (picture,*/
/* text, variable, footnote) and put the */
/* zone in a list. */
diff --git a/filters/kword/latex/export/para.h b/filters/kword/latex/export/para.h
index 7d1c0af1..75c41b3a 100644
--- a/filters/kword/latex/export/para.h
+++ b/filters/kword/latex/export/para.h
@@ -26,7 +26,7 @@
#include <tqptrstack.h> /* historic list */
#include <tqptrlist.h> /* for list of format */
-/*#include "listeformat.h"*/ /* children class contents the zone (italic, footnote,
+/*#include "listeformat.h"*/ /* tqchildren class contents the zone (italic, footnote,
variable. */
#include "layout.h" /* set of informations about the paragraph style. */
#include "element.h" /* to use the father class. */
diff --git a/filters/kword/latex/export/texlauncher.cc b/filters/kword/latex/export/texlauncher.cc
index 5b254f87..b67a7385 100644
--- a/filters/kword/latex/export/texlauncher.cc
+++ b/filters/kword/latex/export/texlauncher.cc
@@ -6,7 +6,7 @@
#include <klocale.h>
#include <KoFilter.h>
#include <KoStore.h>
-#include<textstream.h>
+#include<tqtextstream.h>
int main(int argc, char* argv[])
diff --git a/filters/kword/latex/export/textFrame.cc b/filters/kword/latex/export/textFrame.cc
index d6141e96..cdcbba6a 100644
--- a/filters/kword/latex/export/textFrame.cc
+++ b/filters/kword/latex/export/textFrame.cc
@@ -217,7 +217,7 @@ void TextFrame::generate(TQTextStream &out)
lastPara->closeList(out, currentPara);
_lastTypeEnum = TL_NONE;
}
- /* layout management (left, center, justify, right) */
+ /* tqlayout management (left, center, justify, right) */
if((!lastPara->isChapter() && _lastEnv != getNextEnv(_parags, _parags.at()) &&
lastPara->notEmpty()) ||
_lastEnv != getNextEnv(_parags, _parags.at()))
diff --git a/filters/kword/latex/export/textzone.cc b/filters/kword/latex/export/textzone.cc
index 0bf4e436..a4beb875 100644
--- a/filters/kword/latex/export/textzone.cc
+++ b/filters/kword/latex/export/textzone.cc
@@ -1,4 +1,4 @@
-/* MEMO: to see the unicode table
+/* MEMO: to see the tqunicode table
* xset +fp /usr/X11R6/lib/X11/fonts/ucs/
* xfd -fn '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
*/
@@ -85,7 +85,7 @@ bool TextZone::useFormat() const
/*******************************************/
/* escapeLatin1 */
/*******************************************/
-/* Convert special caracters (unicode) in */
+/* Convert special caracters (tqunicode) in */
/* latex usable caracters. */
/*******************************************/
TQString TextZone::escapeLatin1(TQString text)
@@ -114,7 +114,7 @@ TQString TextZone::escapeLatin1(TQString text)
};
TQString escapedText;
- int unicode; /* the character to be escaped */
+ int tqunicode; /* the character to be escaped */
escapedText = text; /* copy input text */
@@ -185,8 +185,8 @@ TQString TextZone::escapeLatin1(TQString text)
for(int index = 0; index < 64; index++)
{
- unicode = CSTART + index;
- convert(escapedText, unicode, escapes[index]);
+ tqunicode = CSTART + index;
+ convert(escapedText, tqunicode, escapes[index]);
}
convert(escapedText, 0X2020, "\\textdied{}"); /* textcomp */
@@ -259,12 +259,12 @@ TQString TextZone::escapeLatin1(TQString text)
/* Convert all the instance of one */
/* character in latex usable caracter. */
/*******************************************/
-void TextZone::convert(TQString& text, int unicode, const char* escape)
+void TextZone::convert(TQString& text, int tqunicode, const char* escape)
{
TQString expression;
TQString value;
- expression = TQString("\\x") + value.setNum(unicode, 16);
+ expression = TQString("\\x") + value.setNum(tqunicode, 16);
if( !TQString(escape).isEmpty() )
{
diff --git a/filters/kword/latex/export/textzone.h b/filters/kword/latex/export/textzone.h
index 848b276a..fbc09280 100644
--- a/filters/kword/latex/export/textzone.h
+++ b/filters/kword/latex/export/textzone.h
@@ -26,7 +26,7 @@
#ifndef __KWORD_LATEX_TEXTZONE_H__
#define __KWORD_LATEX_TEXTZONE_H__
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstring.h>
#include "textformat.h"
@@ -81,7 +81,7 @@ class TextZone: public TextFormat
/* ==== Helpfull functions ==== */
/**
- * convert a unicode text in latin1 enconding ala latex.
+ * convert a tqunicode text in latin1 enconding ala latex.
*/
TQString escapeLatin1(TQString);
diff --git a/filters/kword/latex/export/variablezone.cc b/filters/kword/latex/export/variablezone.cc
index b73788b3..09a16635 100644
--- a/filters/kword/latex/export/variablezone.cc
+++ b/filters/kword/latex/export/variablezone.cc
@@ -1,4 +1,4 @@
-/* MEMO: to see the unicode table
+/* MEMO: to see the tqunicode table
* xset +fp /usr/X11R6/lib/X11/fonts/ucs/
* xfd -fn '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
*/
diff --git a/filters/kword/latex/export/variablezone.h b/filters/kword/latex/export/variablezone.h
index acdf06e5..a428984a 100644
--- a/filters/kword/latex/export/variablezone.h
+++ b/filters/kword/latex/export/variablezone.h
@@ -26,7 +26,7 @@
#ifndef __KWORD_VARIABLEZONE_H__
#define __KWORD_VARIABLEZONE_H__
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstring.h>
#include "variableformat.h"
diff --git a/filters/kword/latex/export/xml2latexparser.h b/filters/kword/latex/export/xml2latexparser.h
index 914cf3a2..38adc123 100644
--- a/filters/kword/latex/export/xml2latexparser.h
+++ b/filters/kword/latex/export/xml2latexparser.h
@@ -23,7 +23,7 @@
#define __XML2LATEXPARSER_H__
#include <tqfile.h> /* for TQFile class */
-#include <textstream.h> /* for TQTextStream class */
+#include <tqtextstream.h> /* for TQTextStream class */
#include <tqstring.h> /* for TQString class */
#include "fileheader.h"
#include "document.h"
diff --git a/filters/kword/latex/export/xmlparser.cc b/filters/kword/latex/export/xmlparser.cc
index 9d83bedb..9c4c07e4 100644
--- a/filters/kword/latex/export/xmlparser.cc
+++ b/filters/kword/latex/export/xmlparser.cc
@@ -104,18 +104,18 @@ bool XmlParser::isChild(TQDomNode balise, TQString name)
TQDomNode XmlParser::getChild(TQDomNode balise, TQString name, int index)
{
if(balise.isElement()) {
- TQDomNodeList children = balise.toElement().elementsByTagName(name);
- if ( children.count() )
- return children.item(index);
+ TQDomNodeList tqchildren = balise.toElement().elementsByTagName(name);
+ if ( tqchildren.count() )
+ return tqchildren.item(index);
}
return TQDomNode();
}
TQDomNode XmlParser::getChild(TQDomNode balise, int index)
{
- TQDomNodeList children = balise.childNodes();
- if ( children.count() )
- return children.item(index);
+ TQDomNodeList tqchildren = balise.childNodes();
+ if ( tqchildren.count() )
+ return tqchildren.item(index);
return TQDomNode();
}
diff --git a/filters/kword/latex/import/generator/document.cc b/filters/kword/latex/import/generator/document.cc
index aad270d8..13685e02 100644
--- a/filters/kword/latex/import/generator/document.cc
+++ b/filters/kword/latex/import/generator/document.cc
@@ -18,7 +18,7 @@
*/
#include <tqdom.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include "kdebug.h"
#include <KoStore.h>
diff --git a/filters/kword/latex/import/lateximport.cc b/filters/kword/latex/import/lateximport.cc
index c1cd74c9..f644910a 100644
--- a/filters/kword/latex/import/lateximport.cc
+++ b/filters/kword/latex/import/lateximport.cc
@@ -24,7 +24,7 @@
#include <kgenericfactory.h>
#include <kglobal.h>
#include <klocale.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include "lateximportdia.h"
typedef KGenericFactory<LATEXImport, KoFilter> LATEXImportFactory;
@@ -35,7 +35,7 @@ LATEXImport::LATEXImport(KoFilter *, const char *, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversionStatus LATEXImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus LATEXImport::convert( const TQCString& from, const TQCString& to )
{
TQString config;
diff --git a/filters/kword/latex/import/lateximport.h b/filters/kword/latex/import/lateximport.h
index 0451ce78..949d7163 100644
--- a/filters/kword/latex/import/lateximport.h
+++ b/filters/kword/latex/import/lateximport.h
@@ -21,7 +21,7 @@
#define __LATEXIMPORT_H__
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -38,7 +38,7 @@ class LATEXImport : public KoFilter
LATEXImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~LATEXImport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif /* __LATEXIMPORT_H__ */
diff --git a/filters/kword/latex/import/lateximportdia.cc b/filters/kword/latex/import/lateximportdia.cc
index 8354b9ab..9489d491 100644
--- a/filters/kword/latex/import/lateximportdia.cc
+++ b/filters/kword/latex/import/lateximportdia.cc
@@ -92,8 +92,8 @@ void LATEXImportDia::createDialog()
TQBoxLayout *langLayout = new TQVBoxLayout(langBox);
- unicodeRBtn = new TQRadioButton(i18n("Unicode"), langBox);
- langLayout->addWidget(unicodeRBtn);
+ tqunicodeRBtn = new TQRadioButton(i18n("Unicode"), langBox);
+ langLayout->addWidget(tqunicodeRBtn);
latin1RBtn = new TQRadioButton(i18n("latin1"), langBox);
langLayout->addWidget(latin1RBtn);
@@ -124,7 +124,7 @@ void LATEXImportDia::createDialog()
docBox->setButton(0); /* NEW DOC IS THE DEFAULT. */
docLayout->activate();
- /* Display the main layout */
+ /* Display the main tqlayout */
mainLayout->addStretch(5);
mainLayout->activate();
}
@@ -138,7 +138,7 @@ void LATEXImportDia::state()
else if(embededRBtn == docBox->selected())
config.setType(TYPE_EMBEDED);
- if(unicodeRBtn == langBox->selected())
+ if(tqunicodeRBtn == langBox->selected())
config.setEncoding(ENC_UNICODE);
else if(latin1RBtn == langBox->selected())
config.setEncoding(ENC_LATIN1);
diff --git a/filters/kword/latex/import/lateximportdia.h b/filters/kword/latex/import/lateximportdia.h
index 237b84b9..b6f83baa 100644
--- a/filters/kword/latex/import/lateximportdia.h
+++ b/filters/kword/latex/import/lateximportdia.h
@@ -37,7 +37,7 @@
#include <tqwidget.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqradiobutton.h>
#include <tqvbuttongroup.h>
@@ -72,7 +72,7 @@ class LATEXImportDia : public KDialogBase, public DCOPObject
private:
TQVButtonGroup* styleBox, *langBox, *docBox;
TQRadioButton* latexStyleRBtn, *kwordStyleRBtn; /* Document style */
- TQRadioButton* unicodeRBtn, *latin1RBtn; /* Language */
+ TQRadioButton* tqunicodeRBtn, *latin1RBtn; /* Language */
TQRadioButton* newDocRBtn, *embededRBtn; /* Latex file */
k_dcop:
diff --git a/filters/kword/latex/import/parser/env.cc b/filters/kword/latex/import/parser/env.cc
index 14abad37..e25e95ab 100644
--- a/filters/kword/latex/import/parser/env.cc
+++ b/filters/kword/latex/import/parser/env.cc
@@ -47,10 +47,10 @@ Env::~Env()
{
}
-void Env::setChildren(TQPtrList<Element>* children)
+void Env::setChildren(TQPtrList<Element>* tqchildren)
{
- if(children != NULL)
- _children = *children;
+ if(tqchildren != NULL)
+ _tqchildren = *tqchildren;
}
void Env::print(int tab)
@@ -58,7 +58,7 @@ void Env::print(int tab)
cout << "ENV " << getName().latin1() << "{" << endl;
Element* elt;
- for ( elt = _children.first(); elt; elt = _children.next() )
+ for ( elt = _tqchildren.first(); elt; elt = _tqchildren.next() )
{
elt->print(tab);
}
diff --git a/filters/kword/latex/import/parser/env.h b/filters/kword/latex/import/parser/env.h
index 191c0dd6..cef56b29 100644
--- a/filters/kword/latex/import/parser/env.h
+++ b/filters/kword/latex/import/parser/env.h
@@ -27,7 +27,7 @@
class Env: public Element
{
- TQPtrList<Element> _children;
+ TQPtrList<Element> _tqchildren;
TQString _name;
public:
diff --git a/filters/kword/latex/status.html b/filters/kword/latex/status.html
index 0b78eac2..ea2a527c 100644
--- a/filters/kword/latex/status.html
+++ b/filters/kword/latex/status.html
@@ -131,14 +131,14 @@
<B>VERSION 1:</B>
<table BORDER="0" WIDTH="100%">
<tr><td>text with accent</td> <td>DONE</td></tr>
-<tr><td>text with special characters</td> <td>A LOT OF SPECIAL CHARS SUPPORTED for latin1 (all for unicode)!</td></tr>
-<tr><td>layout</td> <td>DONE</td></tr>
+<tr><td>text with special characters</td> <td>A LOT OF SPECIAL CHARS SUPPORTED for latin1 (all for tqunicode)!</td></tr>
+<tr><td>tqlayout</td> <td>DONE</td></tr>
<tr><td>title</td> <td>DONE</td></tr>
<tr><td>list</td> <td>DONE</td></tr>
<tr><td>paper</td> <td>DONE</td></tr>
<tr><td>footnote, head</td> <td>DONE (still a little bug for first foot/header and a line is added)</td></tr>
<tr><td>comments with kdoc</td> <td>STARTED</td></tr>
-<tr><td>unicode support</td> <td>DONE (omega package)</td></tr>
+<tr><td>tqunicode support</td> <td>DONE (omega package)</td></tr>
<tr><td>break (line, page)</td> <td>STARTED</td></tr>
<tr><td>indent list</td> <td></td></tr>
</table>
@@ -209,7 +209,7 @@
<ul>
<li>features
<ul>
- <li>support of unicode with omega</li>
+ <li>support of tqunicode with omega</li>
</ul>
</li>
</ul>
diff --git a/filters/kword/libexport/KWEFBaseWorker.cc b/filters/kword/libexport/KWEFBaseWorker.cc
index a47f647d..d3d41ff3 100644
--- a/filters/kword/libexport/KWEFBaseWorker.cc
+++ b/filters/kword/libexport/KWEFBaseWorker.cc
@@ -62,7 +62,7 @@ bool KWEFBaseWorker::doFullAllParagraphs (const TQValueList<ParaData>& paraList)
TQValueList<ParaData>::ConstIterator end(paraList.end());
for (it=paraList.begin();it!=end;++it)
{
- if (!doFullParagraph((*it).text,(*it).layout,(*it).formattingList))
+ if (!doFullParagraph((*it).text,(*it).tqlayout,(*it).formattingList))
return false;
}
return true;
diff --git a/filters/kword/libexport/KWEFBaseWorker.h b/filters/kword/libexport/KWEFBaseWorker.h
index 67cdb691..e2046913 100644
--- a/filters/kword/libexport/KWEFBaseWorker.h
+++ b/filters/kword/libexport/KWEFBaseWorker.h
@@ -57,7 +57,7 @@ class KOFFICEFILTER_EXPORT KWEFBaseWorker
virtual bool doVariableSettings (const VariableSettingsData &varSettings);
virtual bool doFullDocument (const TQValueList<ParaData> &);
virtual bool doFullAllParagraphs (const TQValueList<ParaData>& paraList);
- virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& tqlayout,
const ValueListFormatData& paraFormatDataList);
virtual bool doFullPaperFormat (const int format,
const double width, const double height, const int orientation); ///< Like AbiWord's \<papersize\>
@@ -77,7 +77,7 @@ class KOFFICEFILTER_EXPORT KWEFBaseWorker
virtual bool doCloseBody (void); ///< Like HTML's \</BODY\>
virtual bool doOpenStyles (void); ///< Like HTML's \<style\>
virtual bool doCloseStyles (void); ///< Like HTML's \</style\>
- virtual bool doFullDefineStyle (LayoutData& layout); ///< Defines a single style
+ virtual bool doFullDefineStyle (LayoutData& tqlayout); ///< Defines a single style
virtual bool doOpenSpellCheckIgnoreList (void); ///< like AbiWord's \<ignorewords\> and KWord's \<SPELLCHECKIGNORELIST\>
virtual bool doCloseSpellCheckIgnoreList (void); ///< like AbiWord's \</ignorewords\> and Kwords \</SPELLCHECKIGNORELIST\>
virtual bool doFullSpellCheckIgnoreWord (const TQString& ignoreword); ///< like AbiWord's \<iw\> and Kwords \</SPELLCHECKIGNOREWORD\>
diff --git a/filters/kword/libexport/KWEFKWordLeader.cc b/filters/kword/libexport/KWEFKWordLeader.cc
index a3fca243..3e9a724e 100644
--- a/filters/kword/libexport/KWEFKWordLeader.cc
+++ b/filters/kword/libexport/KWEFKWordLeader.cc
@@ -189,11 +189,11 @@ static void ProcessParagraphTag ( TQDomNode myNode,
TQValueList<TagProcessing> tagProcessingList;
tagProcessingList << TagProcessing ( "TEXT", ProcessTextTag, &paraData.text )
<< TagProcessing ( "FORMATS", ProcessFormatsTag, &paraData.formattingList )
- << TagProcessing ( "LAYOUT", ProcessLayoutTag, &paraData.layout );
+ << TagProcessing ( "LAYOUT", ProcessLayoutTag, &paraData.tqlayout );
if ( leader->m_oldSyntax )
{
- tagProcessingList.append( TagProcessing( "HARDBRK", ProcessHardBrkTag, &paraData.layout.pageBreakBefore ) );
+ tagProcessingList.append( TagProcessing( "HARDBRK", ProcessHardBrkTag, &paraData.tqlayout.pageBreakBefore ) );
}
ProcessSubtags (myNode, tagProcessingList, leader);
@@ -203,9 +203,9 @@ static void ProcessParagraphTag ( TQDomNode myNode,
// TODO/FIXME: why !paraData.text.isEmpty()
if ( paraData.formattingList.isEmpty () && !paraData.text.isEmpty () )
{
- if ( paraData.layout.formatData.id == 1 )
+ if ( paraData.tqlayout.formatData.id == 1 )
{
- paraData.formattingList << paraData.layout.formatData;
+ paraData.formattingList << paraData.tqlayout.formatData;
}
else
{
@@ -591,11 +591,11 @@ static void ProcessFramesetsTag ( TQDomNode myNode,
static void ProcessStyleTag (TQDomNode myNode, void *, KWEFKWordLeader *leader )
{
- LayoutData layout;
+ LayoutData tqlayout;
- ProcessLayoutTag (myNode, &layout, leader);
+ ProcessLayoutTag (myNode, &tqlayout, leader);
- leader->doFullDefineStyle (layout);
+ leader->doFullDefineStyle (tqlayout);
}
@@ -1227,10 +1227,10 @@ bool KWEFKWordLeader::doFullPaperFormatOther ( const int columns, const double c
return false;
}
-bool KWEFKWordLeader::doFullDefineStyle ( LayoutData &layout )
+bool KWEFKWordLeader::doFullDefineStyle ( LayoutData &tqlayout )
{
if ( m_worker )
- return m_worker->doFullDefineStyle (layout);
+ return m_worker->doFullDefineStyle (tqlayout);
return false;
}
@@ -1280,7 +1280,7 @@ static bool ParseFile ( TQIODevice* subFile, TQDomDocument& doc)
<< " Message: " << errorMsg << endl;
// ### TODO: the error is in which sub-file?
KMessageBox::error( 0L, i18n("An error has occurred while parsing the KWord file.\nAt line: %1, column %2\nError message: %3")
- .arg( errorLine ).arg( errorColumn ).arg(i18n( "TQXml", errorMsg.utf8() ) ),
+ .tqarg( errorLine ).tqarg( errorColumn ).tqarg(i18n( "TQXml", errorMsg.utf8() ) ),
i18n("KWord Export Filter Library"), 0 );
return false;
}
@@ -1361,7 +1361,7 @@ bool KWEFKWordLeader::loadSubFile(const TQString& fileName, TQByteArray& array)
return true;
}
-KoFilter::ConversionStatus KWEFKWordLeader::convert( KoFilterChain* chain,
+KoFilter::ConversiontqStatus KWEFKWordLeader::convert( KoFilterChain* chain,
const TQCString& from, const TQCString& to)
{
if ( from != "application/x-kword" )
diff --git a/filters/kword/libexport/KWEFKWordLeader.h b/filters/kword/libexport/KWEFKWordLeader.h
index fc7e787a..78ce1348 100644
--- a/filters/kword/libexport/KWEFKWordLeader.h
+++ b/filters/kword/libexport/KWEFKWordLeader.h
@@ -38,7 +38,7 @@ class KOFFICEFILTER_EXPORT KWEFKWordLeader
public:
void setWorker ( KWEFBaseWorker *newWorker );
KWEFBaseWorker *getWorker(void) const;
- KoFilter::ConversionStatus convert( KoFilterChain* chain,
+ KoFilter::ConversiontqStatus convert( KoFilterChain* chain,
const TQCString& from, const TQCString& to);
public: // ### TODO: where to put in the end?
void createBookmarkFormatData( ParaData& paraData );
@@ -63,7 +63,7 @@ class KOFFICEFILTER_EXPORT KWEFKWordLeader
bool doCloseBody (void);
bool doOpenStyles (void);
bool doCloseStyles (void);
- bool doFullDefineStyle (LayoutData& layout);
+ bool doFullDefineStyle (LayoutData& tqlayout);
bool doOpenSpellCheckIgnoreList (void);
bool doCloseSpellCheckIgnoreList (void);
bool doFullSpellCheckIgnoreWord (const TQString& ignoreword);
diff --git a/filters/kword/libexport/KWEFStructures.h b/filters/kword/libexport/KWEFStructures.h
index 682606fe..dbee22d0 100644
--- a/filters/kword/libexport/KWEFStructures.h
+++ b/filters/kword/libexport/KWEFStructures.h
@@ -412,7 +412,7 @@ public:
virtual ~TabulatorList(void) {}
};
-/// Paragraph layout
+/// Paragraph tqlayout
class LayoutData
{
public:
@@ -428,7 +428,7 @@ public:
TQString styleName;
TQString styleFollowing;
- TQString alignment; ///< left, right, center, justify
+ TQString tqalignment; ///< left, right, center, justify
CounterData counter;
FormatData formatData;
double indentFirst; ///< indentation correction of first line (can be negative!)
@@ -459,7 +459,7 @@ struct ParaData
{
TQString text;
ValueListFormatData formattingList;
- LayoutData layout;
+ LayoutData tqlayout;
};
struct HeaderFooterData
diff --git a/filters/kword/libexport/KWEFUtil.cc b/filters/kword/libexport/KWEFUtil.cc
index 32b5eac2..56e2b669 100644
--- a/filters/kword/libexport/KWEFUtil.cc
+++ b/filters/kword/libexport/KWEFUtil.cc
@@ -19,7 +19,7 @@
*/
#include <tqstring.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <KoPageLayout.h>
@@ -36,7 +36,7 @@ TQString KWEFUtil::EscapeSgmlText(const TQTextCodec* codec,
for (uint i=0; i<strIn.length(); i++)
{
ch=strIn[i];
- switch (ch.unicode())
+ switch (ch.tqunicode())
{
case 38: // &
{
@@ -78,7 +78,7 @@ TQString KWEFUtil::EscapeSgmlText(const TQTextCodec* codec,
{
if (!codec->canEncode(ch))
{
- strReturn+=TQString("&#%1;").arg(ch.unicode());
+ strReturn+=TQString("&#%1;").tqarg(ch.tqunicode());
break;
}
}
diff --git a/filters/kword/libexport/ProcessDocument.cc b/filters/kword/libexport/ProcessDocument.cc
index 3a626f7f..ed5a7bfc 100644
--- a/filters/kword/libexport/ProcessDocument.cc
+++ b/filters/kword/libexport/ProcessDocument.cc
@@ -438,7 +438,7 @@ static void ProcessNoteTag (TQDomNode myNode, void *tagData, KWEFKWordLeader *le
variable->setGenericData( "note", note );
}
-// ### TODO: some files have not a <VARIABLE> tag but its supposed children are directly children of <FORMAT id="4">
+// ### TODO: some files have not a <VARIABLE> tag but its supposed tqchildren are directly tqchildren of <FORMAT id="4">
static void ProcessVariableTag (TQDomNode myNode, void* tagData, KWEFKWordLeader* leader)
{
VariableData *variable = (VariableData *) tagData;
@@ -607,7 +607,7 @@ static void SubProcessFormatSixTag(TQDomNode myNode,
TQString instance;
TQValueList<TagProcessing> tagProcessingList;
- // TODO: We can have all layout information as in regular texts
+ // TODO: We can have all tqlayout information as in regular texts
// They simply apply to the table frames
// FONT is just the first that we've come across so far
tagProcessingList << TagProcessing ( "FONT" )
@@ -765,12 +765,12 @@ static void ProcessLayoutTabulatorTag ( TQDomNode myNode, void *tagData, KWEFKWo
static void ProcessIndentsTag (TQDomNode myNode, void *tagData, KWEFKWordLeader *leader )
{
- LayoutData *layout = (LayoutData *) tagData;
+ LayoutData *tqlayout = (LayoutData *) tagData;
TQValueList<AttrProcessing> attrProcessingList;
- attrProcessingList << AttrProcessing ("first" , layout->indentFirst );
- attrProcessingList << AttrProcessing ("left" , layout->indentLeft );
- attrProcessingList << AttrProcessing ("right" , layout->indentRight );
+ attrProcessingList << AttrProcessing ("first" , tqlayout->indentFirst );
+ attrProcessingList << AttrProcessing ("left" , tqlayout->indentLeft );
+ attrProcessingList << AttrProcessing ("right" , tqlayout->indentRight );
ProcessAttributes (myNode, attrProcessingList);
AllowNoSubtags (myNode, leader);
@@ -779,11 +779,11 @@ static void ProcessIndentsTag (TQDomNode myNode, void *tagData, KWEFKWordLeader
static void ProcessLayoutOffsetTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *leader )
{
- LayoutData *layout = (LayoutData *) tagData;
+ LayoutData *tqlayout = (LayoutData *) tagData;
TQValueList<AttrProcessing> attrProcessingList;
- attrProcessingList << AttrProcessing ("after" , layout->marginBottom );
- attrProcessingList << AttrProcessing ("before" , layout->marginTop );
+ attrProcessingList << AttrProcessing ("after" , tqlayout->marginBottom );
+ attrProcessingList << AttrProcessing ("before" , tqlayout->marginTop );
ProcessAttributes (myNode, attrProcessingList);
AllowNoSubtags (myNode, leader);
@@ -792,14 +792,14 @@ static void ProcessLayoutOffsetTag ( TQDomNode myNode, void *tagData, KWEFKWordL
static void ProcessLineBreakingTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *leader )
{
- LayoutData *layout = (LayoutData *) tagData;
+ LayoutData *tqlayout = (LayoutData *) tagData;
TQString strBefore, strAfter;
TQValueList<AttrProcessing> attrProcessingList;
- attrProcessingList << AttrProcessing ( "linesTogether", layout->keepLinesTogether );
- attrProcessingList << AttrProcessing ( "hardFrameBreak", layout->pageBreakBefore );
- attrProcessingList << AttrProcessing ( "hardFrameBreakAfter", layout->pageBreakAfter );
+ attrProcessingList << AttrProcessing ( "linesTogether", tqlayout->keepLinesTogether );
+ attrProcessingList << AttrProcessing ( "hardFrameBreak", tqlayout->pageBreakBefore );
+ attrProcessingList << AttrProcessing ( "hardFrameBreakAfter", tqlayout->pageBreakAfter );
attrProcessingList << AttrProcessing ( "keepWithNext" ); // RTF import filter
ProcessAttributes (myNode, attrProcessingList);
@@ -809,21 +809,21 @@ static void ProcessLineBreakingTag ( TQDomNode myNode, void *tagData, KWEFKWordL
static void ProcessShadowTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *leader)
{
- LayoutData *layout = (LayoutData *) tagData;
+ LayoutData *tqlayout = (LayoutData *) tagData;
int red=0;
int green=0;
int blue=0;
TQValueList<AttrProcessing> attrProcessingList;
- attrProcessingList << AttrProcessing ( "distance", layout->shadowDistance );
- attrProcessingList << AttrProcessing ( "direction", layout->shadowDirection );
+ attrProcessingList << AttrProcessing ( "distance", tqlayout->shadowDistance );
+ attrProcessingList << AttrProcessing ( "direction", tqlayout->shadowDirection );
attrProcessingList << AttrProcessing ( "red", red );
attrProcessingList << AttrProcessing ( "green", green );
attrProcessingList << AttrProcessing ( "blue", blue );
ProcessAttributes (myNode, attrProcessingList);
- layout->shadowColor.setRgb(red,green,blue);
+ tqlayout->shadowColor.setRgb(red,green,blue);
AllowNoSubtags (myNode, leader);
}
@@ -856,7 +856,7 @@ static void ProcessFollowingTag ( TQDomNode myNode, void *tagData, KWEFKWordLead
static void ProcessLinespacingTag (TQDomNode myNode, void *tagData, KWEFKWordLeader* /*leader*/ )
{
- LayoutData *layout = (LayoutData *) tagData;
+ LayoutData *tqlayout = (LayoutData *) tagData;
TQString oldValue, spacingType;
double spacingValue;
@@ -873,9 +873,9 @@ static void ProcessLinespacingTag (TQDomNode myNode, void *tagData, KWEFKWordLea
{
// for old format
if( oldValue == "oneandhalf" )
- layout->lineSpacingType = LayoutData::LS_ONEANDHALF;
+ tqlayout->lineSpacingType = LayoutData::LS_ONEANDHALF;
else if ( oldValue == "double" )
- layout->lineSpacingType = LayoutData::LS_DOUBLE;
+ tqlayout->lineSpacingType = LayoutData::LS_DOUBLE;
else
{
bool ok = false;
@@ -883,38 +883,38 @@ static void ProcessLinespacingTag (TQDomNode myNode, void *tagData, KWEFKWordLea
if ( ok && ( size >= 0.0 ) ) // 0 is allowed but negative values are not
{
// We have a valid size
- layout->lineSpacingType = LayoutData::LS_CUSTOM; // set to custom
- layout->lineSpacing = size;
+ tqlayout->lineSpacingType = LayoutData::LS_CUSTOM; // set to custom
+ tqlayout->lineSpacing = size;
}
else
- layout->lineSpacingType = LayoutData::LS_SINGLE; // assume single linespace
+ tqlayout->lineSpacingType = LayoutData::LS_SINGLE; // assume single linespace
}
}
else
{
// for new format
if( spacingType == "oneandhalf" )
- layout->lineSpacingType = LayoutData::LS_ONEANDHALF;
+ tqlayout->lineSpacingType = LayoutData::LS_ONEANDHALF;
else if ( spacingType == "double" )
- layout->lineSpacingType = LayoutData::LS_DOUBLE;
+ tqlayout->lineSpacingType = LayoutData::LS_DOUBLE;
else if ( spacingType == "custom" )
- layout->lineSpacingType = LayoutData::LS_CUSTOM;
+ tqlayout->lineSpacingType = LayoutData::LS_CUSTOM;
else if ( spacingType == "atleast" )
- layout->lineSpacingType = LayoutData::LS_ATLEAST;
+ tqlayout->lineSpacingType = LayoutData::LS_ATLEAST;
else if ( spacingType == "multiple" )
- layout->lineSpacingType = LayoutData::LS_MULTIPLE;
+ tqlayout->lineSpacingType = LayoutData::LS_MULTIPLE;
else if ( spacingType == "fixed" )
- layout->lineSpacingType = LayoutData::LS_FIXED;
+ tqlayout->lineSpacingType = LayoutData::LS_FIXED;
else
- layout->lineSpacingType = LayoutData::LS_SINGLE; // assume single linespace
- layout->lineSpacing = spacingValue;
+ tqlayout->lineSpacingType = LayoutData::LS_SINGLE; // assume single linespace
+ tqlayout->lineSpacing = spacingValue;
}
}
static void ProcessLineSpaceTag (TQDomNode myNode, void *tagData, KWEFKWordLeader* /*leader*/ )
{
// <LINESPACE> is an old tag, of before syntax 1
- LayoutData *layout = (LayoutData *) tagData;
+ LayoutData *tqlayout = (LayoutData *) tagData;
double spacingValue = 0.0;
TQValueList<AttrProcessing> attrProcessingList;
@@ -923,13 +923,13 @@ static void ProcessLineSpaceTag (TQDomNode myNode, void *tagData, KWEFKWordLeade
attrProcessingList << AttrProcessing ( "inch" );
ProcessAttributes (myNode, attrProcessingList);
- layout->lineSpacingType = LayoutData::LS_CUSTOM; // set to custom
- layout->lineSpacing = spacingValue;
+ tqlayout->lineSpacingType = LayoutData::LS_CUSTOM; // set to custom
+ tqlayout->lineSpacing = spacingValue;
}
static void ProcessFlowTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *leader )
{
- LayoutData *layout = (LayoutData *) tagData;
+ LayoutData *tqlayout = (LayoutData *) tagData;
TQString oldAlign, normalAlign;
@@ -948,7 +948,7 @@ static void ProcessFlowTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *l
{
if ( oldAlign.isEmpty() )
{
- layout->alignment = "left"; // KWord 0.8 did not support right-to-left
+ tqlayout->tqalignment = "left"; // KWord 0.8 did not support right-to-left
}
else
{
@@ -956,19 +956,19 @@ static void ProcessFlowTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *l
if ( ( align < 0 ) || ( align > 3) )
{
kdWarning(30508) << "KWord 0.8 flow unknown: " << oldAlign << endl;
- layout->alignment = "left"; // Unknown, so assume left
+ tqlayout->tqalignment = "left"; // Unknown, so assume left
}
else
{
const char* flows[]={"left", "right", "center", "justify" };
- layout->alignment = flows[ align ];
+ tqlayout->tqalignment = flows[ align ];
}
}
- kdDebug(30508) << "KWord 0.8 flow: " << oldAlign << " corrected: " << layout->alignment << endl;
+ kdDebug(30508) << "KWord 0.8 flow: " << oldAlign << " corrected: " << tqlayout->tqalignment << endl;
}
else
{
- layout->alignment = normalAlign;
+ tqlayout->tqalignment = normalAlign;
}
}
@@ -981,36 +981,36 @@ void ProcessLayoutTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *leader
attrProcessingList << AttrProcessing ( "outline" ); // Only in <STYLE>
ProcessAttributes (myNode, attrProcessingList);
- LayoutData *layout = (LayoutData *) tagData;
+ LayoutData *tqlayout = (LayoutData *) tagData;
ValueListFormatData formatDataList;
TQValueList<TagProcessing> tagProcessingList;
- tagProcessingList << TagProcessing ( "NAME", ProcessStringValueTag, &layout->styleName );
- tagProcessingList << TagProcessing ( "FOLLOWING", ProcessFollowingTag, &layout->styleFollowing );
- tagProcessingList << TagProcessing ( "FLOW", ProcessFlowTag, layout );
- tagProcessingList << TagProcessing ( "INDENTS", ProcessIndentsTag, layout );
- tagProcessingList << TagProcessing ( "OFFSETS", ProcessLayoutOffsetTag, layout );
- tagProcessingList << TagProcessing ( "LINESPACING", ProcessLinespacingTag, layout );
- tagProcessingList << TagProcessing ( "PAGEBREAKING", ProcessLineBreakingTag, layout );
- tagProcessingList << TagProcessing ( "LEFTBORDER", ProcessAnyBorderTag, &layout->leftBorder );
- tagProcessingList << TagProcessing ( "RIGHTBORDER", ProcessAnyBorderTag, &layout->rightBorder );
- tagProcessingList << TagProcessing ( "TOPBORDER", ProcessAnyBorderTag, &layout->topBorder );
- tagProcessingList << TagProcessing ( "BOTTOMBORDER", ProcessAnyBorderTag, &layout->bottomBorder );
- tagProcessingList << TagProcessing ( "COUNTER", ProcessCounterTag, &layout->counter );
+ tagProcessingList << TagProcessing ( "NAME", ProcessStringValueTag, &tqlayout->styleName );
+ tagProcessingList << TagProcessing ( "FOLLOWING", ProcessFollowingTag, &tqlayout->styleFollowing );
+ tagProcessingList << TagProcessing ( "FLOW", ProcessFlowTag, tqlayout );
+ tagProcessingList << TagProcessing ( "INDENTS", ProcessIndentsTag, tqlayout );
+ tagProcessingList << TagProcessing ( "OFFSETS", ProcessLayoutOffsetTag, tqlayout );
+ tagProcessingList << TagProcessing ( "LINESPACING", ProcessLinespacingTag, tqlayout );
+ tagProcessingList << TagProcessing ( "PAGEBREAKING", ProcessLineBreakingTag, tqlayout );
+ tagProcessingList << TagProcessing ( "LEFTBORDER", ProcessAnyBorderTag, &tqlayout->leftBorder );
+ tagProcessingList << TagProcessing ( "RIGHTBORDER", ProcessAnyBorderTag, &tqlayout->rightBorder );
+ tagProcessingList << TagProcessing ( "TOPBORDER", ProcessAnyBorderTag, &tqlayout->topBorder );
+ tagProcessingList << TagProcessing ( "BOTTOMBORDER", ProcessAnyBorderTag, &tqlayout->bottomBorder );
+ tagProcessingList << TagProcessing ( "COUNTER", ProcessCounterTag, &tqlayout->counter );
tagProcessingList << TagProcessing ( "FORMAT", ProcessFormatTag, &formatDataList );
- tagProcessingList << TagProcessing ( "TABULATOR", ProcessLayoutTabulatorTag, &layout->tabulatorList );
- tagProcessingList << TagProcessing ( "SHADOW", ProcessShadowTag, layout );
+ tagProcessingList << TagProcessing ( "TABULATOR", ProcessLayoutTabulatorTag, &tqlayout->tabulatorList );
+ tagProcessingList << TagProcessing ( "SHADOW", ProcessShadowTag, tqlayout );
if ( leader->m_oldSyntax )
{
- layout->indentLeft = 0.0; // ### TODO: needed or not?
+ tqlayout->indentLeft = 0.0; // ### TODO: needed or not?
tagProcessingList
- << TagProcessing ( "OHEAD", ProcessOldLayoutChildTag, &layout->marginTop )
- << TagProcessing ( "OFOOT", ProcessOldLayoutChildTag, &layout->marginBottom )
- << TagProcessing ( "ILEFT", ProcessOldLayoutChildTag, &layout->indentLeft )
- << TagProcessing ( "IFIRST", ProcessOldLayoutChildTag, &layout->indentFirst )
- << TagProcessing ( "LINESPACE", ProcessLineSpaceTag, layout )
+ << TagProcessing ( "OHEAD", ProcessOldLayoutChildTag, &tqlayout->marginTop )
+ << TagProcessing ( "OFOOT", ProcessOldLayoutChildTag, &tqlayout->marginBottom )
+ << TagProcessing ( "ILEFT", ProcessOldLayoutChildTag, &tqlayout->indentLeft )
+ << TagProcessing ( "IFIRST", ProcessOldLayoutChildTag, &tqlayout->indentFirst )
+ << TagProcessing ( "LINESPACE", ProcessLineSpaceTag, tqlayout )
;
}
@@ -1023,7 +1023,7 @@ void ProcessLayoutTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *leader
}
else
{
- layout->formatData = formatDataList.first ();
+ tqlayout->formatData = formatDataList.first ();
if ( formatDataList.count () > 1 )
{
@@ -1031,10 +1031,10 @@ void ProcessLayoutTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *leader
}
}
- if ( layout->styleName.isEmpty () )
+ if ( tqlayout->styleName.isEmpty () )
{
- layout->styleName = "Standard";
- kdWarning (30508) << "Empty layout name!" << endl;
+ tqlayout->styleName = "Standard";
+ kdWarning (30508) << "Empty tqlayout name!" << endl;
}
}
diff --git a/filters/kword/msword/conversion.cpp b/filters/kword/msword/conversion.cpp
index 595c026c..6bd895b9 100644
--- a/filters/kword/msword/conversion.cpp
+++ b/filters/kword/msword/conversion.cpp
@@ -246,7 +246,7 @@ int Conversion::ditheringToGray( int ipat, bool* ok )
}
}
-TQString Conversion::alignment( int jc ) {
+TQString Conversion::tqalignment( int jc ) {
TQString value( "left" );
if ( jc == 1 )
value = "center";
diff --git a/filters/kword/msword/conversion.h b/filters/kword/msword/conversion.h
index f8610415..fd30c69f 100644
--- a/filters/kword/msword/conversion.h
+++ b/filters/kword/msword/conversion.h
@@ -57,8 +57,8 @@ namespace Conversion
// Hackery for gray levels
int ditheringToGray( int ipat, bool* ok );
- // Convert alignment code to string
- TQString alignment( int jc );
+ // Convert tqalignment code to string
+ TQString tqalignment( int jc );
// Convert linespacing struct to string
TQString lineSpacing( const wvWare::Word97::LSPD& lspd );
diff --git a/filters/kword/msword/document.cpp b/filters/kword/msword/document.cpp
index ab70c79a..5044f023 100644
--- a/filters/kword/msword/document.cpp
+++ b/filters/kword/msword/document.cpp
@@ -328,10 +328,10 @@ void Document::footnoteStart()
framesetElement.setAttribute( "frameInfo", 7 /* footnote/endnote */ );
if ( type == wvWare::FootnoteData::Endnote )
// Keep name in sync with KWordTextHandler::footnoteFound
- framesetElement.setAttribute("name", i18n("Endnote %1").arg( ++m_endNoteNumber ) );
+ framesetElement.setAttribute("name", i18n("Endnote %1").tqarg( ++m_endNoteNumber ) );
else
// Keep name in sync with KWordTextHandler::footnoteFound
- framesetElement.setAttribute("name", i18n("Footnote %1").arg( ++m_footNoteNumber ) );
+ framesetElement.setAttribute("name", i18n("Footnote %1").tqarg( ++m_footNoteNumber ) );
m_framesetsElement.appendChild(framesetElement);
createInitialFrame( framesetElement, 29, 798, 567, 567+41, true, NoFollowup );
@@ -352,7 +352,7 @@ void Document::slotTableCellStart( int row, int column, int rowSpan, int columnS
framesetElement.setAttribute( "frameType", 1 /* text */ );
framesetElement.setAttribute( "frameInfo", 0 /* normal text */ );
framesetElement.setAttribute( "grpMgr", tableName );
- TQString name = i18n("Table_Name Cell row,column", "%1 Cell %2,%3").arg(tableName).arg(row).arg(column);
+ TQString name = i18n("Table_Name Cell row,column", "%1 Cell %2,%3").tqarg(tableName).tqarg(row).tqarg(column);
framesetElement.setAttribute( "name", name );
framesetElement.setAttribute( "row", row );
framesetElement.setAttribute( "col", column );
diff --git a/filters/kword/msword/mswordimport.cpp b/filters/kword/msword/mswordimport.cpp
index 714db274..3be95f7a 100644
--- a/filters/kword/msword/mswordimport.cpp
+++ b/filters/kword/msword/mswordimport.cpp
@@ -41,7 +41,7 @@ MSWordImport::~MSWordImport()
{
}
-KoFilter::ConversionStatus MSWordImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus MSWordImport::convert( const TQCString& from, const TQCString& to )
{
// check for proper conversion
if ( to != "application/x-kword" || from != "application/msword" )
diff --git a/filters/kword/msword/mswordimport.h b/filters/kword/msword/mswordimport.h
index ae348fc7..73a568ff 100644
--- a/filters/kword/msword/mswordimport.h
+++ b/filters/kword/msword/mswordimport.h
@@ -33,7 +33,7 @@ public:
MSWordImport( KoFilter* parent, const char* name, const TQStringList& );
virtual ~MSWordImport();
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
private:
void prepareDocument( TQDomDocument& mainDocument, TQDomElement& framesetsElem );
diff --git a/filters/kword/msword/texthandler.cpp b/filters/kword/msword/texthandler.cpp
index 242a6d39..07eb3da7 100644
--- a/filters/kword/msword/texthandler.cpp
+++ b/filters/kword/msword/texthandler.cpp
@@ -123,10 +123,10 @@ void KWordTextHandler::footnoteFound( wvWare::FootnoteData::Type type,
footnoteElem.setAttribute( "numberingtype", autoNumbered ? "auto" : "manual" );
if ( type == wvWare::FootnoteData::Endnote )
// Keep name in sync with Document::startFootnote
- footnoteElem.setAttribute( "frameset", i18n("Endnote %1").arg( ++m_endNoteNumber ) );
+ footnoteElem.setAttribute( "frameset", i18n("Endnote %1").tqarg( ++m_endNoteNumber ) );
else
// Keep name in sync with Document::startFootnote
- footnoteElem.setAttribute( "frameset", i18n("Footnote %1").arg( ++m_footNoteNumber ) );
+ footnoteElem.setAttribute( "frameset", i18n("Footnote %1").tqarg( ++m_footNoteNumber ) );
varElem.appendChild( footnoteElem );
// Remember to parse the footnote text later
@@ -160,7 +160,7 @@ void KWordTextHandler::tableRowFound( const wvWare::TableRowFunctor& functor, wv
paragraphStart( 0L );
static int s_tableNumber = 0;
m_currentTable = new KWord::Table();
- m_currentTable->name = i18n("Table %1").arg( ++s_tableNumber );
+ m_currentTable->name = i18n("Table %1").tqarg( ++s_tableNumber );
insertAnchor( m_currentTable->name );
}
@@ -181,7 +181,7 @@ void KWordTextHandler::pictureFound( const wvWare::PictureFunctor& pictureFuncto
TQString pictureName = "pictures/picture";
pictureName += TQString::number( s_pictureNumber ); // filenames start at 0
// looks better to the user if frame names start at 1
- TQString frameName = i18n("Picture %1").arg( ++s_pictureNumber );
+ TQString frameName = i18n("Picture %1").tqarg( ++s_pictureNumber );
insertAnchor( frameName );
switch ( picf->mfp.mm ) {
@@ -464,7 +464,7 @@ void KWordTextHandler::writeFormat( TQDomElement& parentElement, const wvWare::W
int dist = fontSize > 20 ? 2 : 1;
if (chp->fImprint) // ## no real support for imprint, we use a topleft shadow
dist = -dist;
- css = TQString::fromLatin1("#bebebe %1pt %1pt").arg(dist).arg(dist);
+ css = TQString::tqfromLatin1("#bebebe %1pt %1pt").tqarg(dist).tqarg(dist);
}
shadowElem.setAttribute( "text-shadow", css );
format.appendChild( shadowElem );
@@ -568,16 +568,16 @@ void KWordTextHandler::writeOutParagraph( const TQString& styleName, const TQStr
m_paragraph = TQString( "" );
m_index = 0;
- m_oldLayout = layoutElement; // Keep a reference to the old layout for some hacks
+ m_oldLayout = layoutElement; // Keep a reference to the old tqlayout for some hacks
}
void KWordTextHandler::writeLayout( TQDomElement& parentElement, const wvWare::ParagraphProperties& paragraphProperties, const wvWare::Style* style )
{
const wvWare::Word97::PAP& pap = paragraphProperties.pap();
- // Always write out the alignment, it's required
+ // Always write out the tqalignment, it's required
TQDomElement flowElement = mainDocument().createElement("FLOW");
- TQString alignment = Conversion::alignment( pap.jc );
- flowElement.setAttribute( "align", alignment );
+ TQString tqalignment = Conversion::tqalignment( pap.jc );
+ flowElement.setAttribute( "align", tqalignment );
parentElement.appendChild( flowElement );
//kdDebug(30513) << k_funcinfo << " dxaLeft1=" << pap.dxaLeft1 << " dxaLeft=" << pap.dxaLeft << " dxaRight=" << pap.dxaRight << " dyaBefore=" << pap.dyaBefore << " dyaAfter=" << pap.dyaAfter << " lspd=" << pap.lspd.dyaLine << "/" << pap.lspd.fMultLinespace << endl;
@@ -659,7 +659,7 @@ void KWordTextHandler::writeLayout( TQDomElement& parentElement, const wvWare::P
// which kword doesn't support. We map it to 0 with a clever '%4' :)
tabElement.setAttribute( "type", td.tbd.jc % 4 );
int filling = 0;
- double width = 0.5; // default kword value, see koparaglayout.cc
+ double width = 0.5; // default kword value, see koparagtqlayout.cc
switch ( td.tbd.tlc ) {
case 1: // dots
case 2: // hyphenated
@@ -810,7 +810,7 @@ void KWordTextHandler::writeCounter( TQDomElement& parentElement, const wvWare::
( numberingType == 0 &&m_previousEnumLSID != 0 && m_previousEnumLSID != listInfo->lsid() ) )
counterElement.setAttribute( "restart", "true" );
- // listInfo->alignment() is not supported in KWord
+ // listInfo->tqalignment() is not supported in KWord
// listInfo->isLegal() hmm
// listInfo->notRestarted() [by higher level of lists] not supported
// listInfo->followingchar() ignored, it's always a space in KWord currently
diff --git a/filters/kword/msword/texthandler.h b/filters/kword/msword/texthandler.h
index c75cfd4e..ebea5202 100644
--- a/filters/kword/msword/texthandler.h
+++ b/filters/kword/msword/texthandler.h
@@ -88,7 +88,7 @@ public:
// Returns that element into pChildElement if set (in that case even an empty FORMAT can be appended)
void writeFormat( TQDomElement& parentElement, const wvWare::Word97::CHP* chp, const wvWare::Word97::CHP* refChp, int pos, int len, int formatId, TQDomElement* pChildElement );
- // Write the _contents_ (children) of a <LAYOUT> or <STYLE> tag, from the given parag props
+ // Write the _contents_ (tqchildren) of a <LAYOUT> or <STYLE> tag, from the given parag props
void writeLayout( TQDomElement& parentElement, const wvWare::ParagraphProperties& paragraphProperties, const wvWare::Style* style );
// Communication with Document, without having to know about Document
diff --git a/filters/kword/mswrite/ImportDialog.cc b/filters/kword/mswrite/ImportDialog.cc
index bf9c0668..460677cb 100644
--- a/filters/kword/mswrite/ImportDialog.cc
+++ b/filters/kword/mswrite/ImportDialog.cc
@@ -18,7 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <klocale.h>
#include <kcharsets.h>
@@ -29,7 +29,7 @@
#include <ImportDialogUI.h>
#include <ImportDialog.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqradiobutton.h>
#include <tqvbuttongroup.h>
#include <tqcombobox.h>
diff --git a/filters/kword/mswrite/ImportDialogUI.ui b/filters/kword/mswrite/ImportDialogUI.ui
index bed2bad1..db7dcc20 100644
--- a/filters/kword/mswrite/ImportDialogUI.ui
+++ b/filters/kword/mswrite/ImportDialogUI.ui
@@ -92,7 +92,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -126,7 +126,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -187,7 +187,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -218,7 +218,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -237,7 +237,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
diff --git a/filters/kword/mswrite/mswriteexport.cc b/filters/kword/mswrite/mswriteexport.cc
index b645649b..02d980ef 100644
--- a/filters/kword/mswrite/mswriteexport.cc
+++ b/filters/kword/mswrite/mswriteexport.cc
@@ -26,7 +26,7 @@
#include <tqfile.h>
#include <tqfont.h>
#include <tqimage.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqvaluelist.h>
#include <tqvaluestack.h>
@@ -1286,7 +1286,7 @@ public:
bool processTable (const Table &table)
{
- // just dump the table out for now (no layout)
+ // just dump the table out for now (no tqlayout)
for (TQValueList <TableCell>::ConstIterator it = table.cellList.begin ();
it != table.cellList.end ();
it++)
@@ -1417,12 +1417,12 @@ public:
bool doFullParagraph (const ParaData &paraData)
{
return doFullParagraph (paraData.text,
- paraData.layout,
+ paraData.tqlayout,
paraData.formattingList);
}
bool doFullParagraph (const TQString &paraText,
- const LayoutData &layout,
+ const LayoutData &tqlayout,
const ValueListFormatData &paraFormatDataList)
{
MSWrite::FormatParaProperty paraProp;
@@ -1446,34 +1446,34 @@ public:
paraProp.setIsText (true);
// Alignment
- if (!layout.alignment.isEmpty ())
+ if (!tqlayout.tqalignment.isEmpty ())
{
- if (layout.alignment == "left")
+ if (tqlayout.tqalignment == "left")
// quite useless since MSWrite::Alignment::Left is the default anyway
- paraProp.setAlignment (MSWrite::Alignment::Left);
- else if (layout.alignment == "right")
- paraProp.setAlignment (MSWrite::Alignment::Right);
- else if (layout.alignment == "center")
- paraProp.setAlignment (MSWrite::Alignment::Center);
- else if (layout.alignment == "justify")
- paraProp.setAlignment (MSWrite::Alignment::Justify);
+ paraProp.tqsetAlignment (MSWrite::Alignment::Left);
+ else if (tqlayout.tqalignment == "right")
+ paraProp.tqsetAlignment (MSWrite::Alignment::Right);
+ else if (tqlayout.tqalignment == "center")
+ paraProp.tqsetAlignment (MSWrite::Alignment::Center);
+ else if (tqlayout.tqalignment == "justify")
+ paraProp.tqsetAlignment (MSWrite::Alignment::Justify);
else
- kdWarning (30509) << "Unknown Alignment: " << layout.alignment << endl;
+ kdWarning (30509) << "Unknown Alignment: " << tqlayout.tqalignment << endl;
}
// Indentation
- if (layout.indentFirst) paraProp.setLeftIndentFirstLine (MSWrite::Short (Point2Twip (layout.indentFirst)));
- if (layout.indentLeft >= 0) paraProp.setLeftIndent (MSWrite::Word (Point2Twip (layout.indentLeft)));
- if (layout.indentRight >= 0) paraProp.setRightIndent (MSWrite::Word (Point2Twip (layout.indentRight)));
+ if (tqlayout.indentFirst) paraProp.setLeftIndentFirstLine (MSWrite::Short (Point2Twip (tqlayout.indentFirst)));
+ if (tqlayout.indentLeft >= 0) paraProp.setLeftIndent (MSWrite::Word (Point2Twip (tqlayout.indentLeft)));
+ if (tqlayout.indentRight >= 0) paraProp.setRightIndent (MSWrite::Word (Point2Twip (tqlayout.indentRight)));
#if 0
- kdDebug (30509) << "Indent: " << Point2Twip (layout.indentFirst) << " "
- << Point2Twip (layout.indentLeft) << " "
- << Point2Twip (layout.indentRight) << endl;
+ kdDebug (30509) << "Indent: " << Point2Twip (tqlayout.indentFirst) << " "
+ << Point2Twip (tqlayout.indentLeft) << " "
+ << Point2Twip (tqlayout.indentRight) << endl;
#endif
// Line Spacing
MSWrite::Word lineSpacing = MSWrite::LineSpacing::Normal;
- switch (layout.lineSpacingType)
+ switch (tqlayout.lineSpacingType)
{
case LayoutData::LS_SINGLE:
lineSpacing = MSWrite::LineSpacing::Normal;
@@ -1487,12 +1487,12 @@ public:
case LayoutData::LS_CUSTOM:
case LayoutData::LS_FIXED:
case LayoutData::LS_ATLEAST:
- lineSpacing = getClosestLineSpacing (layout.lineSpacing);
+ lineSpacing = getClosestLineSpacing (tqlayout.lineSpacing);
break;
case LayoutData::LS_MULTIPLE:
break;
default:
- kdWarning (30509) << "unknown lineSpacingType \'" << layout.lineSpacingType << "\'" << endl;
+ kdWarning (30509) << "unknown lineSpacingType \'" << tqlayout.lineSpacingType << "\'" << endl;
}
paraProp.setLineSpacing (lineSpacing);
@@ -1500,8 +1500,8 @@ public:
// It seems that Write applies the 1st paragraph's Tabulator settings to the _entire_ document
// Word97 and KWord, however, will treat them like a Paragraph Property
int numTabs = 0;
- for (TabulatorList::ConstIterator tabIt = layout.tabulatorList.begin ();
- tabIt != layout.tabulatorList.end ();
+ for (TabulatorList::ConstIterator tabIt = tqlayout.tabulatorList.begin ();
+ tabIt != tqlayout.tabulatorList.end ();
tabIt++)
{
MSWrite::FormatParaPropertyTabulator tab;
@@ -1544,7 +1544,7 @@ public:
// get this paragraph's "default formatting"
MSWrite::FormatCharProperty charPropDefault;
- processFormatData (charPropDefault, layout.formatData.text);
+ processFormatData (charPropDefault, tqlayout.formatData.text);
MSWrite::DWord uptoByte = 0; // relative to start of KWord paragraph
MSWrite::DWord numBytes = paraText.length (); // relative to start of KWord paragraph
@@ -1561,18 +1561,18 @@ public:
if (!m_generator->writeCharInfoBegin (&charPropDefault)) return false;
// page break at start of paragraph?
- if (layout.pageBreakBefore)
+ if (tqlayout.pageBreakBefore)
if (!m_generator->writePageBreak ()) return false;
// counter data
- processCounter (layout.counter);
+ processCounter (tqlayout.counter);
// end of line
if (!m_generator->writeCarriageReturn ()) return false;
if (!m_generator->writeNewLine (true/*end of paragraph*/)) return false;
// page break at end of paragraph?
- if (layout.pageBreakAfter)
+ if (tqlayout.pageBreakAfter)
if (!m_generator->writePageBreak ()) return false;
// write default character property end
@@ -1595,11 +1595,11 @@ public:
if (uptoByte == 0)
{
// page break at start of paragraph?
- if (layout.pageBreakBefore)
+ if (tqlayout.pageBreakBefore)
if (!m_generator->writePageBreak ()) return false;
// counter data
- processCounter (layout.counter);
+ processCounter (tqlayout.counter);
}
// yes, this is slightly premature but it doesn't matter
@@ -1733,7 +1733,7 @@ public:
}
// page break at end of paragraph?
- if (layout.pageBreakAfter)
+ if (tqlayout.pageBreakAfter)
if (!m_generator->writePageBreak ()) return false;
}
@@ -1903,7 +1903,7 @@ MSWriteExport::~MSWriteExport ()
{
}
-KoFilter::ConversionStatus MSWriteExport::convert (const TQCString &from, const TQCString &to)
+KoFilter::ConversiontqStatus MSWriteExport::convert (const TQCString &from, const TQCString &to)
{
kdDebug (30509) << "MSWriteExport $Date: 2006-02-12 19:28:12 +0100 (Sun, 12 Feb 2006) $ using LibMSWrite "
<< MSWrite::Version << endl;
@@ -1929,7 +1929,7 @@ KoFilter::ConversionStatus MSWriteExport::convert (const TQCString &from, const
return KoFilter::OutOfMemory;
}
- KoFilter::ConversionStatus ret = leader->convert (m_chain, from, to);
+ KoFilter::ConversiontqStatus ret = leader->convert (m_chain, from, to);
int errorCode = worker->getError ();
delete leader;
diff --git a/filters/kword/mswrite/mswriteexport.h b/filters/kword/mswrite/mswriteexport.h
index adfbc4ba..796ce705 100644
--- a/filters/kword/mswrite/mswriteexport.h
+++ b/filters/kword/mswrite/mswriteexport.h
@@ -31,7 +31,7 @@ public:
MSWriteExport (KoFilter *parent, const char *name, const TQStringList &);
virtual ~MSWriteExport ();
- KoFilter::ConversionStatus convert (const TQCString &from, const TQCString &to);
+ KoFilter::ConversiontqStatus convert (const TQCString &from, const TQCString &to);
};
#endif // MSWRITEEXPORT_H
diff --git a/filters/kword/mswrite/mswriteimport.cc b/filters/kword/mswrite/mswriteimport.cc
index a1ccc150..379d3c01 100644
--- a/filters/kword/mswrite/mswriteimport.cc
+++ b/filters/kword/mswrite/mswriteimport.cc
@@ -27,8 +27,8 @@
#include <tqfile.h>
#include <tqobject.h>
#include <tqstring.h>
-#include <textcodec.h>
-#include <textstream.h>
+#include <tqtextcodec.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <kgenericfactory.h>
@@ -1345,7 +1345,7 @@ MSWriteImport::~MSWriteImport ()
delete m_device;
}
-KoFilter::ConversionStatus MSWriteImport::convert (const TQCString &from, const TQCString &to)
+KoFilter::ConversiontqStatus MSWriteImport::convert (const TQCString &from, const TQCString &to)
{
kdDebug (30509) << "MSWriteImport $Date: 2006-02-12 19:28:12 +0100 (Sun, 12 Feb 2006) $ using LibMSWrite "
<< MSWrite::Version << endl;
diff --git a/filters/kword/mswrite/mswriteimport.h b/filters/kword/mswrite/mswriteimport.h
index 8d59fe38..65be7e7a 100644
--- a/filters/kword/mswrite/mswriteimport.h
+++ b/filters/kword/mswrite/mswriteimport.h
@@ -40,7 +40,7 @@ public:
MSWriteImport (KoFilter *parent, const char *name, const TQStringList &);
virtual ~MSWriteImport ();
- KoFilter::ConversionStatus convert (const TQCString &from, const TQCString &to);
+ KoFilter::ConversiontqStatus convert (const TQCString &from, const TQCString &to);
void sigProgress (const int value)
{
diff --git a/filters/kword/mswrite/status.html b/filters/kword/mswrite/status.html
index 5a8bddd1..6ede1caf 100644
--- a/filters/kword/mswrite/status.html
+++ b/filters/kword/mswrite/status.html
@@ -51,7 +51,7 @@
<td><b>Imports almost everything except OLE from MS WinWrite (3.0 &amp; 3.1) documents</b> <br>
- Character formatting (fonts, bold, italic, underline, superscript, subscript, &quot;(page)&quot; numbering) <br>
- Optional/Soft Hyphenation <br>
- - Paragraph formatting (alignment, linespacing, indentation, tabulation) <br>
+ - Paragraph formatting (tqalignment, linespacing, indentation, tabulation) <br>
- Paragraphs with multiple newlines <br>
- Pagebreaking (at the start or end of the line and on the next line) <br>
- Images (Standard WMFs, monochrome BMPs, position from left margin) <br>
@@ -126,7 +126,7 @@
<br>
<b> Version 0.1 (7 Oct 2001): Initial release </b> <br>
- - the underlying code to read in the format is there but the filter can only do plain text with alignment
+ - the underlying code to read in the format is there but the filter can only do plain text with tqalignment
<br>
</td>
</tr>
diff --git a/filters/kword/mswrite/structures.h b/filters/kword/mswrite/structures.h
index 5aa4f6a3..af687b3a 100644
--- a/filters/kword/mswrite/structures.h
+++ b/filters/kword/mswrite/structures.h
@@ -378,7 +378,7 @@ namespace MSWrite
// convenience functions
Byte getAlign (void) const { return getAlignment (); }
- void setAlign (const Byte val) { setAlignment (val); }
+ void setAlign (const Byte val) { tqsetAlignment (val); }
Short getLeftIndentFirstLine (const bool purist = false) const
{
diff --git a/filters/kword/mswrite/structures_generated.cpp b/filters/kword/mswrite/structures_generated.cpp
index c443f252..6b6e5575 100644
--- a/filters/kword/mswrite/structures_generated.cpp
+++ b/filters/kword/mswrite/structures_generated.cpp
@@ -1166,7 +1166,7 @@ namespace MSWrite
// --- set defaults in raw array (needed because it's a useThisMuch structure) ---
WriteByte ((Byte) (60), m_data + 1);// magic0_60_or_61
- m_data [2] = 0; // alignment
+ m_data [2] = 0; // tqalignment
WriteWord ((Word) (30), m_data + 3);// magic30
memset (m_data + 5, 0, 6); // rightIndent, leftIndent, leftIndentFirstLine
WriteWord ((Word) (240), m_data + 11);// lineSpacing
@@ -1176,7 +1176,7 @@ namespace MSWrite
// --- set defaults for variables --
m_numDataBytes = (Byte) (0);
m_magic0_60_or_61 = (Byte) (60);
- m_alignment = (Byte) (0);
+ m_tqalignment = (Byte) (0);
m_magic30 = (Word) (30);
m_rightIndent = (Word) (0);
m_leftIndent = (Word) (0);
@@ -1210,7 +1210,7 @@ namespace MSWrite
m_numDataBytes = rhs.m_numDataBytes;
m_magic0_60_or_61 = rhs.m_magic0_60_or_61;
- m_alignment = rhs.m_alignment;
+ m_tqalignment = rhs.m_tqalignment;
m_magic30 = rhs.m_magic30;
m_rightIndent = rhs.m_rightIndent;
m_leftIndent = rhs.m_leftIndent;
@@ -1235,7 +1235,7 @@ namespace MSWrite
if (!Verify (Error::InvalidFormat, m_numDataBytes >= 1 && m_numDataBytes <= s_size - sizeof (Byte), DWord (m_numDataBytes))) return false;
if (!Verify (Error::Warn, m_magic0_60_or_61 == 0 || m_magic0_60_or_61 == 60 || m_magic0_60_or_61 == 61, DWord (m_magic0_60_or_61))) return false;
- // m_alignment will not be checked
+ // m_tqalignment will not be checked
if (!Verify (Error::Warn, m_magic30 == 30, DWord (m_magic30))) return false;
// m_rightIndent will not be checked
// m_leftIndent will not be checked
@@ -1275,8 +1275,8 @@ namespace MSWrite
ReadByte (m_magic0_60_or_61, m_data + 1);
signalHaveSetData (m_magic0_60_or_61 == Byte (60), 0/*offset*/ + 8/*size*/);
- ReadByte (m_alignment, m_data + 2);
- signalHaveSetData (m_alignment == Byte (0), 8/*offset*/ + 8/*size*/);
+ ReadByte (m_tqalignment, m_data + 2);
+ signalHaveSetData (m_tqalignment == Byte (0), 8/*offset*/ + 8/*size*/);
ReadWord (m_magic30, m_data + 3);
signalHaveSetData (m_magic30 == Word (30), 16/*offset*/ + 16/*size*/);
ReadWord (m_rightIndent, m_data + 5);
@@ -1323,7 +1323,7 @@ namespace MSWrite
WriteByte (m_numDataBytes, m_data + 0);
WriteByte (m_magic0_60_or_61, m_data + 1);
- WriteByte (m_alignment, m_data + 2);
+ WriteByte (m_tqalignment, m_data + 2);
WriteWord (m_magic30, m_data + 3);
WriteWord (m_rightIndent, m_data + 5);
WriteWord (m_leftIndent, m_data + 7);
diff --git a/filters/kword/mswrite/structures_generated.h b/filters/kword/mswrite/structures_generated.h
index feb0f563..0ee985ce 100644
--- a/filters/kword/mswrite/structures_generated.h
+++ b/filters/kword/mswrite/structures_generated.h
@@ -183,7 +183,7 @@ namespace MSWrite
void setNumPages (const Word val) { m_numPages = val; }
};
- // Page layout information (margins, dimensions, ...)
+ // Page tqlayout information (margins, dimensions, ...)
class PageLayoutGenerated : public NeedsDevice
{
public:
@@ -701,7 +701,7 @@ namespace MSWrite
Byte m_numDataBytes; // number of bytes that follow
Byte m_magic0_60_or_61; // =0? =60? =61? 60 is the most common
- Byte m_alignment;
+ Byte m_tqalignment;
Word m_magic30; // =30?
Word m_rightIndent; // indent from right margin + right margin (if in header/footer)
Word m_leftIndent; // indent from left margin + left margin (if in header/footer)
@@ -758,8 +758,8 @@ namespace MSWrite
// get and set functions
//
- Byte getAlignment (void) const { return m_alignment; }
- void setAlignment (const Byte val) { m_alignment = val; signalHaveSetData (m_alignment == Byte (0), 8/*offset*/ + 8/*size*/); }
+ Byte getAlignment (void) const { return m_tqalignment; }
+ void tqsetAlignment (const Byte val) { m_tqalignment = val; signalHaveSetData (m_tqalignment == Byte (0), 8/*offset*/ + 8/*size*/); }
Word getRightIndent (void) const { return m_rightIndent; }
void setRightIndent (const Word val) { m_rightIndent = val; signalHaveSetData (m_rightIndent == Word (0), 32/*offset*/ + 16/*size*/); }
diff --git a/filters/kword/oowriter/ExportFilter.cc b/filters/kword/oowriter/ExportFilter.cc
index 2e6e515e..ff9c8276 100644
--- a/filters/kword/oowriter/ExportFilter.cc
+++ b/filters/kword/oowriter/ExportFilter.cc
@@ -33,7 +33,7 @@
#include <tqmap.h>
#include <tqiodevice.h>
#include <tqbuffer.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqdom.h>
#include <kdebug.h>
@@ -96,7 +96,7 @@ TQString OOWriterWorker::escapeOOSpan(const TQString& strText) const
}
// ### TODO: would be switch/case or if/elseif the best?
- switch (ch.unicode())
+ switch (ch.tqunicode())
{
case 9: // Tab
{
@@ -180,7 +180,7 @@ TQString OOWriterWorker::escapeOOSpan(const TQString& strText) const
case 30:
case 31:
{
- kdWarning(30518) << "Not allowed XML character: " << ch.unicode() << endl;
+ kdWarning(30518) << "Not allowed XML character: " << ch.tqunicode() << endl;
strReturn += '?';
break;
}
@@ -1206,9 +1206,9 @@ bool OOWriterWorker::makeTable( const FrameAnchor& anchor, const AnchorType anch
// Be careful that while being similar the following 5 strings have different purposes
const TQString automaticTableStyle ( makeAutomaticStyleName( "Table", m_tableNumber ) ); // It also increases m_tableNumber
const TQString tableName( TQString( "Table" ) + TQString::number( m_tableNumber ) ); // m_tableNumber was already increased
- const TQString translatedName( i18n( "Object name", "Table %1").arg( m_tableNumber ) );
+ const TQString translatedName( i18n( "Object name", "Table %1").tqarg( m_tableNumber ) );
const TQString automaticFrameStyle ( makeAutomaticStyleName( "TableFrame", m_textBoxNumber ) ); // It also increases m_textBoxNumber
- const TQString translatedFrameName( i18n( "Object name", "Table Frame %1").arg( m_textBoxNumber ) );
+ const TQString translatedFrameName( i18n( "Object name", "Table Frame %1").tqarg( m_textBoxNumber ) );
kdDebug(30518) << "Processing table " << anchor.key.toString() << " => " << tableName << endl;
@@ -1729,38 +1729,38 @@ void OOWriterWorker::processParagraphData ( const TQString &paraText,
}
TQString OOWriterWorker::layoutToParagraphStyle(const LayoutData& layoutOrigin,
- const LayoutData& layout, const bool force, TQString& styleKey)
+ const LayoutData& tqlayout, const bool force, TQString& styleKey)
{
TQString props; // Props has to remain empty, if there is no difference.
- styleKey += layout.styleName;
+ styleKey += tqlayout.styleName;
styleKey += ',';
- if (force || (layoutOrigin.alignment!=layout.alignment))
+ if (force || (layoutOrigin.tqalignment!=tqlayout.tqalignment))
{
// NOTE: OO 1.0.x uses start and end like left and right (section 3.11.4)
// Unfortunately in XSL-FO's text-align, they are really supposed to be the start and the end.
- if (layout.alignment == "left")
+ if (tqlayout.tqalignment == "left")
{
props += "fo:text-align=\"start\" ";
styleKey += 'L';
}
- else if (layout.alignment == "right")
+ else if (tqlayout.tqalignment == "right")
{
props += "fo:text-align=\"end\" ";
styleKey += 'R';
}
- else if (layout.alignment == "center")
+ else if (tqlayout.tqalignment == "center")
{
props += "fo:text-align=\"center\" ";
styleKey += 'C';
}
- else if (layout.alignment == "justify")
+ else if (tqlayout.tqalignment == "justify")
{
props += "fo:text-align=\"justify\" ";
styleKey += 'J';
}
- else if (layout.alignment == "auto")
+ else if (tqlayout.tqalignment == "auto")
{
props += "fo:text-align=\"start\" ";
#ifndef STRICT_OOWRITER_VERSION_1
@@ -1770,68 +1770,68 @@ TQString OOWriterWorker::layoutToParagraphStyle(const LayoutData& layoutOrigin,
}
else
{
- kdWarning(30518) << "Unknown alignment: " << layout.alignment << endl;
+ kdWarning(30518) << "Unknown tqalignment: " << tqlayout.tqalignment << endl;
}
}
styleKey += ',';
- if ((layout.indentLeft>=0.0)
- && (force || (layoutOrigin.indentLeft!=layout.indentLeft)))
+ if ((tqlayout.indentLeft>=0.0)
+ && (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft)))
{
- props += TQString("fo:margin-left=\"%1pt\" ").arg(layout.indentLeft);
- styleKey += TQString::number(layout.indentLeft);
+ props += TQString("fo:margin-left=\"%1pt\" ").tqarg(tqlayout.indentLeft);
+ styleKey += TQString::number(tqlayout.indentLeft);
}
styleKey += ',';
- if ((layout.indentRight>=0.0)
- && (force || (layoutOrigin.indentRight!=layout.indentRight)))
+ if ((tqlayout.indentRight>=0.0)
+ && (force || (layoutOrigin.indentRight!=tqlayout.indentRight)))
{
- props += TQString("fo:margin-right=\"%1pt\" ").arg(layout.indentRight);
- styleKey += TQString::number(layout.indentRight);
+ props += TQString("fo:margin-right=\"%1pt\" ").tqarg(tqlayout.indentRight);
+ styleKey += TQString::number(tqlayout.indentRight);
}
styleKey += ',';
- if (force || (layoutOrigin.indentLeft!=layout.indentLeft))
+ if (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft))
{
props += "fo:text-indent=\"";
- props += TQString::number(layout.indentFirst);
+ props += TQString::number(tqlayout.indentFirst);
props += "\" ";
- styleKey += TQString::number(layout.indentFirst);
+ styleKey += TQString::number(tqlayout.indentFirst);
}
styleKey += ',';
- if ((layout.marginBottom>=0.0)
- && ( force || ( layoutOrigin.marginBottom != layout.marginBottom ) ) )
+ if ((tqlayout.marginBottom>=0.0)
+ && ( force || ( layoutOrigin.marginBottom != tqlayout.marginBottom ) ) )
{
- props += TQString("fo:margin-bottom=\"%1pt\" ").arg(layout.marginBottom);
- styleKey += TQString::number(layout.marginBottom);
+ props += TQString("fo:margin-bottom=\"%1pt\" ").tqarg(tqlayout.marginBottom);
+ styleKey += TQString::number(tqlayout.marginBottom);
}
styleKey += ',';
- if ((layout.marginTop>=0.0)
- && ( force || ( layoutOrigin.marginTop != layout.marginTop ) ) )
+ if ((tqlayout.marginTop>=0.0)
+ && ( force || ( layoutOrigin.marginTop != tqlayout.marginTop ) ) )
{
- props += TQString("fo:margin-top=\"%1pt\" ").arg(layout.marginTop);
- styleKey += TQString::number(layout.marginTop);
+ props += TQString("fo:margin-top=\"%1pt\" ").tqarg(tqlayout.marginTop);
+ styleKey += TQString::number(tqlayout.marginTop);
}
styleKey += ',';
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)
- const TQString height ( TQString::number(layout.lineSpacing) ); // ### TODO: rounding?
+ const TQString height ( TQString::number(tqlayout.lineSpacing) ); // ### TODO: rounding?
props += "style:line-spacing=\"";
props += height;
props += "pt\" ";
@@ -1860,7 +1860,7 @@ TQString OOWriterWorker::layoutToParagraphStyle(const LayoutData& layoutOrigin,
case LayoutData::LS_MULTIPLE:
{
// OOWriter 1.1 only allows up to 200%
- const TQString mult ( TQString::number( tqRound( layout.lineSpacing * 100 ) ) );
+ const TQString mult ( TQString::number( tqRound( tqlayout.lineSpacing * 100 ) ) );
props += "fo:line-height=\"";
props += mult;
props += "%\" ";
@@ -1871,7 +1871,7 @@ TQString OOWriterWorker::layoutToParagraphStyle(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?
props += "fo:line-height=\"";
props += height;
props += "pt\" ";
@@ -1882,7 +1882,7 @@ TQString OOWriterWorker::layoutToParagraphStyle(const LayoutData& layoutOrigin,
case LayoutData::LS_ATLEAST:
{
// 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?
props += "style:line-height-at-least=\"";
props += height;
props += "pt\" ";
@@ -1892,7 +1892,7 @@ TQString OOWriterWorker::layoutToParagraphStyle(const LayoutData& layoutOrigin,
}
default:
{
- kdWarning(30518) << "Unsupported lineSpacingType: " << layout.lineSpacingType << " (Ignoring!)" << endl;
+ kdWarning(30518) << "Unsupported lineSpacingType: " << tqlayout.lineSpacingType << " (Ignoring!)" << endl;
break;
}
}
@@ -1900,7 +1900,7 @@ TQString OOWriterWorker::layoutToParagraphStyle(const LayoutData& layoutOrigin,
styleKey += ',';
- if ( layout.pageBreakBefore )
+ if ( tqlayout.pageBreakBefore )
{
// We have a page break before the paragraph
props += "fo:page-break-before=\"page\" ";
@@ -1909,7 +1909,7 @@ TQString OOWriterWorker::layoutToParagraphStyle(const LayoutData& layoutOrigin,
styleKey += ',';
- if ( layout.pageBreakAfter )
+ if ( tqlayout.pageBreakAfter )
{
// We have a page break after the paragraph
props += "fo:page-break-after=\"page\" ";
@@ -1918,20 +1918,20 @@ TQString OOWriterWorker::layoutToParagraphStyle(const LayoutData& layoutOrigin,
styleKey += '@'; // A more visible seperator
- props += textFormatToStyle(layoutOrigin.formatData.text,layout.formatData.text,force,styleKey);
+ props += textFormatToStyle(layoutOrigin.formatData.text,tqlayout.formatData.text,force,styleKey);
props += ">";
styleKey += '@'; // A more visible seperator
// ### TODO/FIXME: what if all tabulators must be erased?
- if (!layout.tabulatorList.isEmpty()
- && (force || (layoutOrigin.tabulatorList!=layout.tabulatorList) ))
+ if (!tqlayout.tabulatorList.isEmpty()
+ && (force || (layoutOrigin.tabulatorList!=tqlayout.tabulatorList) ))
{
props += "\n <style:tab-stops>\n";
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)
{
props+=" <style:tab-stop style:position=\"";
props += TQString::number((*it).m_ptpos);
@@ -1966,27 +1966,27 @@ TQString OOWriterWorker::layoutToParagraphStyle(const LayoutData& layoutOrigin,
return props;
}
-bool OOWriterWorker::doFullParagraph(const TQString& paraText, const LayoutData& layout,
+bool OOWriterWorker::doFullParagraph(const TQString& paraText, const LayoutData& tqlayout,
const ValueListFormatData& paraFormatDataList)
{
- const bool header = ( (layout.counter.numbering == CounterData::NUM_CHAPTER)
- && (layout.counter.depth<10) ); // ### TODO: Does OOWriter really limits to 10?
+ const bool header = ( (tqlayout.counter.numbering == CounterData::NUM_CHAPTER)
+ && (tqlayout.counter.depth<10) ); // ### TODO: Does OOWriter really limits to 10?
if (header)
{
*m_streamOut << " <text:h text:level=\"";
- *m_streamOut << TQString::number(layout.counter.depth+1,10);
+ *m_streamOut << TQString::number(tqlayout.counter.depth+1,10);
*m_streamOut << "\" ";
}
else
*m_streamOut << " <text:p ";
- const LayoutData& styleLayout=m_styleMap[layout.styleName];
+ const LayoutData& styleLayout=m_styleMap[tqlayout.styleName];
TQString styleKey;
- const TQString props(layoutToParagraphStyle(styleLayout,layout,false,styleKey));
+ const TQString props(layoutToParagraphStyle(styleLayout,tqlayout,false,styleKey));
- TQString actualStyle(layout.styleName);
+ TQString actualStyle(tqlayout.styleName);
if (!props.isEmpty())
{
TQMap<TQString,TQString>::ConstIterator it ( m_mapParaStyleKeys.find(styleKey) );
@@ -2003,7 +2003,7 @@ bool OOWriterWorker::doFullParagraph(const TQString& paraText, const LayoutData&
m_contentAutomaticStyles += " <style:style";
m_contentAutomaticStyles += " style:name=\"" + escapeOOText(automaticStyle) + "\"";
- m_contentAutomaticStyles += " style:parent-style-name=\"" + escapeOOText(layout.styleName) + "\"";
+ m_contentAutomaticStyles += " style:parent-style-name=\"" + escapeOOText(tqlayout.styleName) + "\"";
m_contentAutomaticStyles += " style:family=\"paragraph\" style:class=\"text\"";
m_contentAutomaticStyles += ">\n";
m_contentAutomaticStyles += " <style:properties ";
@@ -2032,7 +2032,7 @@ bool OOWriterWorker::doFullParagraph(const TQString& paraText, const LayoutData&
*m_streamOut << ">";
- processParagraphData(paraText, layout.formatData.text, paraFormatDataList);
+ processParagraphData(paraText, tqlayout.formatData.text, paraFormatDataList);
if (header)
*m_streamOut << "</text:h>\n";
@@ -2054,21 +2054,21 @@ bool OOWriterWorker::doOpenStyles(void)
return true;
}
-bool OOWriterWorker::doFullDefineStyle(LayoutData& layout)
+bool OOWriterWorker::doFullDefineStyle(LayoutData& tqlayout)
{
//Register style in the style map
- m_styleMap[layout.styleName]=layout;
+ m_styleMap[tqlayout.styleName]=tqlayout;
m_styles += " <style:style";
- m_styles += " style:name=\"" + escapeOOText( layout.styleName ) + "\"";
- m_styles += " style:next-style-name=\"" + escapeOOText( layout.styleFollowing ) + "\"";
+ m_styles += " style:name=\"" + escapeOOText( tqlayout.styleName ) + "\"";
+ m_styles += " style:next-style-name=\"" + escapeOOText( tqlayout.styleFollowing ) + "\"";
m_styles += " style:family=\"paragraph\" style:class=\"text\"";
m_styles += ">\n";
m_styles += " <style:properties ";
TQString debugKey; // Not needed
- m_styles += layoutToParagraphStyle(layout,layout,true,debugKey);
+ m_styles += layoutToParagraphStyle(tqlayout,tqlayout,true,debugKey);
kdDebug(30518) << "Defining style: " << debugKey << endl;
m_styles += "</style:properties>\n";
@@ -2160,12 +2160,12 @@ void OOWriterWorker::declareFont(const TQString& fontName)
{
TQString props;
- // Disabled, as TQFontInfo::styleHint() cannot guess
+ // Disabled, as TQFontInfo::tqstyleHint() cannot guess
#if 0
TQFont font(fontName);
TQFontInfo info(font);
props+="style:font-family-generic=\""
- switch (info.styleHint())
+ switch (info.tqstyleHint())
{
case TQFont::SansSerif:
default:
@@ -2217,7 +2217,7 @@ TQString OOWriterWorker::makeAutomaticStyleName(const TQString& prefix, ulong& c
return str2;
// If it is still not unique, try a time stamp.
- const TQDateTime dt(TQDateTime::currentDateTime(Qt::UTC));
+ const TQDateTime dt(TQDateTime::tqcurrentDateTime(Qt::UTC));
str2 = str + "_" + TQString::number(dt.toTime_t(),16);
if (m_styleMap.find(str2)==m_styleMap.end())
diff --git a/filters/kword/oowriter/ExportFilter.h b/filters/kword/oowriter/ExportFilter.h
index c89e15ac..0a898227 100644
--- a/filters/kword/oowriter/ExportFilter.h
+++ b/filters/kword/oowriter/ExportFilter.h
@@ -68,7 +68,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 doFullPaperFormat(const int format,
const double width, const double height, const int orientation);
@@ -81,7 +81,7 @@ public:
virtual bool doFullPaperFormatOther ( const int columns, const double columnspacing, const int numPages );
virtual bool doOpenStyles(void);
virtual bool doCloseStyles(void);
- virtual bool doFullDefineStyle(LayoutData& layout);
+ virtual bool doFullDefineStyle(LayoutData& tqlayout);
virtual bool doFullDocumentInfo(const KWEFDocumentInfo& docInfo);
virtual bool doVariableSettings(const VariableSettingsData& vs);
virtual bool doOpenBody (void);
@@ -107,7 +107,7 @@ private:
TQString textFormatToStyle(const TextFormatting& formatOrigin,
const TextFormatting& formatData, const bool force, TQString& key);
TQString layoutToParagraphStyle(const LayoutData& layoutOrigin,
- const LayoutData& layout, const bool force, TQString& styleKey);
+ const LayoutData& tqlayout, const bool force, TQString& styleKey);
TQString escapeOOText(const TQString& strText) const;
TQString escapeOOSpan(const TQString& strText) const;
TQString cellToProperties( const TableCell& cell, TQString& key) const;
diff --git a/filters/kword/oowriter/conversion.cc b/filters/kword/oowriter/conversion.cc
index 22d9fed5..209b2bec 100644
--- a/filters/kword/oowriter/conversion.cc
+++ b/filters/kword/oowriter/conversion.cc
@@ -10,7 +10,7 @@ TQString Conversion::importAlignment( const TQString& align )
return "left";
if ( align == "end" )
return "right";
- kdWarning(30518) << "Conversion::importAlignment unknown alignment " << align << endl;
+ kdWarning(30518) << "Conversion::importAlignment unknown tqalignment " << align << endl;
return "auto";
}
@@ -22,7 +22,7 @@ TQString Conversion::exportAlignment( const TQString& align )
return "start";
if ( align == "right" )
return "end";
- kdWarning(30518) << "Conversion::exportAlignment unknown alignment " << align << endl;
+ kdWarning(30518) << "Conversion::exportAlignment unknown tqalignment " << align << endl;
return "auto";
}
@@ -37,13 +37,13 @@ TQPair<int,TQString> Conversion::importWrapping( const TQString& oowrap )
if ( oowrap == "run-through" )
return tqMakePair( 0, TQString() );
if ( oowrap == "biggest" ) // OASIS extension
- return tqMakePair( 1, TQString::fromLatin1( "biggest" ) );
+ return tqMakePair( 1, TQString::tqfromLatin1( "biggest" ) );
////if ( oowrap == "parallel" || oowrap == "dynamic" )
// dynamic is called "optimal" in the OO GUI. It's different from biggest because it can lead to parallel.
// Those are not supported in KWord, let's use biggest instead
- return tqMakePair( 1, TQString::fromLatin1( "biggest" ) );
+ return tqMakePair( 1, TQString::tqfromLatin1( "biggest" ) );
}
TQString Conversion::exportWrapping( const TQPair<int,TQString>& runAroundAttribs )
diff --git a/filters/kword/oowriter/conversion.h b/filters/kword/oowriter/conversion.h
index ee6b41f6..d9388268 100644
--- a/filters/kword/oowriter/conversion.h
+++ b/filters/kword/oowriter/conversion.h
@@ -32,7 +32,7 @@
namespace Conversion
{
- // Convert paragraph alignment value
+ // Convert paragraph tqalignment value
TQString importAlignment( const TQString& );
TQString exportAlignment( const TQString& );
diff --git a/filters/kword/oowriter/oowriterexport.cc b/filters/kword/oowriter/oowriterexport.cc
index aba0ee9f..426105e8 100644
--- a/filters/kword/oowriter/oowriterexport.cc
+++ b/filters/kword/oowriter/oowriterexport.cc
@@ -52,7 +52,7 @@ OOWRITERExport::OOWRITERExport(KoFilter */*parent*/, const char */*name*/, const
KoFilter() {
}
-KoFilter::ConversionStatus OOWRITERExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus OOWRITERExport::convert( const TQCString& from, const TQCString& to )
{
if ( to != "application/vnd.sun.xml.writer" || from != "application/x-kword" )
{
@@ -79,7 +79,7 @@ KoFilter::ConversionStatus OOWRITERExport::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/oowriter/oowriterexport.h b/filters/kword/oowriter/oowriterexport.h
index bd1a0f40..8f4695b8 100644
--- a/filters/kword/oowriter/oowriterexport.h
+++ b/filters/kword/oowriter/oowriterexport.h
@@ -47,6 +47,6 @@ public:
OOWRITERExport(KoFilter *parent, const char *name, const TQStringList &);
virtual ~OOWRITERExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // OOWRITEREXPORT_H
diff --git a/filters/kword/oowriter/oowriterimport.cc b/filters/kword/oowriter/oowriterimport.cc
index 07262c86..5fd196f8 100644
--- a/filters/kword/oowriter/oowriterimport.cc
+++ b/filters/kword/oowriter/oowriterimport.cc
@@ -69,7 +69,7 @@ OoWriterImport::~OoWriterImport()
{
}
-KoFilter::ConversionStatus OoWriterImport::convert( TQCString const & from, TQCString const & to )
+KoFilter::ConversiontqStatus OoWriterImport::convert( TQCString const & from, TQCString const & to )
{
kdDebug(30518) << "Entering Oowriter Import filter: " << from << " - " << to << endl;
@@ -99,20 +99,20 @@ KoFilter::ConversionStatus OoWriterImport::convert( TQCString const & from, TQCS
}
- KoFilter::ConversionStatus preStatus = openFile();
+ KoFilter::ConversiontqStatus pretqStatus = openFile();
TQImage thumbnail;
- if ( preStatus == KoFilter::OK )
+ if ( pretqStatus == KoFilter::OK )
{
// We do not care about the failure
OoUtils::loadThumbnail( thumbnail, m_zip );
}
- if ( preStatus != KoFilter::OK )
+ if ( pretqStatus != KoFilter::OK )
{
m_zip->close();
delete m_zip;
- return preStatus;
+ return pretqStatus;
}
m_currentMasterPage = TQString();
@@ -535,14 +535,14 @@ TQDomElement OoWriterImport::createInitialFrame( TQDomElement& parentFramesetEle
return frameElementOut;
}
-KoFilter::ConversionStatus OoWriterImport::loadAndParse(const TQString& filename, TQDomDocument& doc)
+KoFilter::ConversiontqStatus OoWriterImport::loadAndParse(const TQString& filename, TQDomDocument& doc)
{
return OoUtils::loadAndParse( filename, doc, m_zip);
}
-KoFilter::ConversionStatus OoWriterImport::openFile()
+KoFilter::ConversiontqStatus OoWriterImport::openFile()
{
- KoFilter::ConversionStatus status=loadAndParse("content.xml", m_content);
+ KoFilter::ConversiontqStatus status=loadAndParse("content.xml", m_content);
if ( status != KoFilter::OK )
{
kdError(30518) << "Content.xml could not be parsed correctly! Aborting!" << endl;
@@ -596,7 +596,7 @@ bool OoWriterImport::createStyleMap( const TQDomDocument & styles, TQDomDocument
if ( d > 1.0 )
{
TQString message( i18n("This document was created with OpenOffice.org version '%1'. This filter was written for version 1.0. Reading this file could cause strange behavior, crashes or incorrect display of the data. Do you want to continue converting the document?") );
- message = message.arg( docElement.attributeNS( ooNS::office, "version", TQString() ) );
+ message = message.tqarg( docElement.attributeNS( ooNS::office, "version", TQString() ) );
if ( KMessageBox::warningYesNo( 0, message, i18n( "Unsupported document version" ) ) == KMessageBox::No )
return false;
}
@@ -873,13 +873,13 @@ void OoWriterImport::writeCounter( TQDomDocument& doc, TQDomElement& layoutEleme
TQString bulletChar = listStyle.attributeNS( ooNS::text, "bullet-char", TQString() );
if ( !bulletChar.isEmpty() ) {
#if 0 // doesn't work well. Fonts lack those symbols!
- counter.setAttribute( "bullet", bulletChar[0].unicode() );
- kdDebug(30518) << "bullet code " << bulletChar[0].unicode() << endl;
+ counter.setAttribute( "bullet", bulletChar[0].tqunicode() );
+ kdDebug(30518) << "bullet code " << bulletChar[0].tqunicode() << endl;
TQString fontName = listStyleProperties.attributeNS( ooNS::style, "font-name", TQString() );
counter.setAttribute( "bulletfont", fontName );
#endif
// Reverse engineering, I found those codes:
- switch( bulletChar[0].unicode() ) {
+ switch( bulletChar[0].tqunicode() ) {
case 0x2022: // small disc
counter.setAttribute( "type", 10 ); // a disc bullet
break;
@@ -992,11 +992,11 @@ void OoWriterImport::parseList( TQDomDocument& doc, const TQDomElement& list, TQ
static int numberOfParagraphs( const TQDomElement& frameset )
{
- const TQDomNodeList children = frameset.childNodes();
+ const TQDomNodeList tqchildren = frameset.childNodes();
const TQString paragStr = "PARAGRAPH";
int paragCount = 0;
- for ( unsigned int i = 0 ; i < children.length() ; ++i ) {
- if ( children.item( i ).toElement().tagName() == paragStr )
+ for ( unsigned int i = 0 ; i < tqchildren.length() ; ++i ) {
+ if ( tqchildren.item( i ).toElement().tagName() == paragStr )
++paragCount;
}
return paragCount;
@@ -1209,12 +1209,12 @@ TQDomElement OoWriterImport::parseParagraph( TQDomDocument& doc, const TQDomElem
TQDomElement* paragraphStyle = m_styles[paragraph.attributeNS( ooNS::text, "style-name", TQString() )];
TQString masterPageName = paragraphStyle ? paragraphStyle->attributeNS( ooNS::style, "master-page-name", TQString() ) : TQString();
if ( masterPageName.isEmpty() )
- masterPageName = "Standard"; // Seems to be a builtin name for the default layout...
+ masterPageName = "Standard"; // Seems to be a builtin name for the default tqlayout...
if ( masterPageName != m_currentMasterPage )
{
- // Detected a change in the master page -> this means we have to use a new page layout
+ // Detected a change in the master page -> this means we have to use a new page tqlayout
// and insert a frame break if not on the first paragraph.
- // In KWord we don't support sections so the first paragraph is the one that determines the page layout.
+ // In KWord we don't support sections so the first paragraph is the one that determines the page tqlayout.
if ( m_currentMasterPage.isEmpty() ) {
m_currentMasterPage = masterPageName; // before writePageLayout to avoid recursion
writePageLayout( doc, masterPageName );
@@ -1228,7 +1228,7 @@ TQDomElement OoWriterImport::parseParagraph( TQDomDocument& doc, const TQDomElem
layoutElement.appendChild( pageBreakElem );
}
pageBreakElem.setAttribute( "hardFrameBreak", "true" );
- // We have no way to store the new page layout, KWord doesn't have sections.
+ // We have no way to store the new page tqlayout, KWord doesn't have sections.
}
}
@@ -1458,7 +1458,7 @@ void OoWriterImport::writeLayout( TQDomDocument& doc, TQDomElement& layoutElemen
{
Q_ASSERT( layoutElement.ownerDocument() == doc );
- // Always write out the alignment, it's required
+ // Always write out the tqalignment, it's required
TQDomElement flowElement = doc.createElement("FLOW");
/* This was only an intermediate OASIS decision. The final decision is:
@@ -1563,7 +1563,7 @@ void OoWriterImport::writeLayout( TQDomDocument& doc, TQDomElement& layoutElemen
style:background-image
line numbering
punctuation wrap, 3.10.36
- vertical alignment - a bit like offsetfrombaseline (but not for subscript/superscript, in general)
+ vertical tqalignment - a bit like offsetfrombaseline (but not for subscript/superscript, in general)
Michael said those are in fact parag properties:
style:text-autospace, 3.10.32 - not implemented in kotext
style:line-break, 3.10.37 - apparently that's for some Asian languages
@@ -1817,7 +1817,7 @@ TQString OoWriterImport::appendPicture(TQDomDocument& doc, const TQDomElement& o
strExtension=href.mid(result+1); // As we are using KoPicture, the extension should be without the dot.
}
TQString filename(href.mid(1));
- KoPictureKey key(filename, TQDateTime::currentDateTime(Qt::UTC));
+ KoPictureKey key(filename, TQDateTime::tqcurrentDateTime(Qt::UTC));
picture.setKey(key);
if (!m_zip)
@@ -1966,7 +1966,7 @@ void OoWriterImport::appendField(TQDomDocument& doc, TQDomElement& outputFormats
bool fixed = (object.hasAttributeNS( ooNS::text, "fixed") && object.attributeNS( ooNS::text, "fixed", TQString())=="true");
if (!dt.isValid())
{
- dt = TQDateTime::currentDateTime(); // OOo docs say so :)
+ dt = TQDateTime::tqcurrentDateTime(); // OOo docs say so :)
fixed = false;
}
const TQDate date(dt.date());
@@ -1995,7 +1995,7 @@ void OoWriterImport::appendField(TQDomDocument& doc, TQDomElement& outputFormats
bool fixed = (object.hasAttributeNS( ooNS::text, "fixed") && object.attributeNS( ooNS::text, "fixed", TQString())=="true");
if (!dt.isValid()) {
- dt = TQDateTime::currentDateTime(); // OOo docs say so :)
+ dt = TQDateTime::tqcurrentDateTime(); // OOo docs say so :)
fixed = false;
}
@@ -2303,7 +2303,7 @@ void OoWriterImport::parseInsideOfTable( TQDomDocument &doc, const TQDomElement&
if ( localName == "table-cell" ) // OOo SPEC 4.8.1 p267
{
const TQString frameName(i18n("Frameset name","Table %3, row %1, column %2")
- .arg(row).arg(column).arg(tableName)); // The table name could have a % sequence, so use the table name as last!
+ .tqarg(row).tqarg(column).tqarg(tableName)); // The table name could have a % sequence, so use the table name as last!
kdDebug(30518) << "Trying to create " << frameName << endl;
// We need to create a frameset for the cell
diff --git a/filters/kword/oowriter/oowriterimport.h b/filters/kword/oowriter/oowriterimport.h
index 4de60534..80586a31 100644
--- a/filters/kword/oowriter/oowriterimport.h
+++ b/filters/kword/oowriter/oowriterimport.h
@@ -38,7 +38,7 @@ public:
OoWriterImport( KoFilter * parent, const char * name, const TQStringList & );
virtual ~OoWriterImport();
- virtual KoFilter::ConversionStatus convert( TQCString const & from, TQCString const & to );
+ virtual KoFilter::ConversiontqStatus convert( TQCString const & from, TQCString const & to );
private:
void prepareDocument( TQDomDocument& mainDocument, TQDomElement& framesetsElem );
@@ -61,8 +61,8 @@ private:
void createDocumentInfo( TQDomDocument &docinfo );
void createDocumentContent( TQDomDocument &doccontent, TQDomElement& mainFramesetElement );
void parseBodyOrSimilar( TQDomDocument &doc, const TQDomElement& parent, TQDomElement& currentFramesetElement );
- KoFilter::ConversionStatus loadAndParse(const TQString& filename, TQDomDocument& doc);
- KoFilter::ConversionStatus openFile();
+ KoFilter::ConversiontqStatus loadAndParse(const TQString& filename, TQDomDocument& doc);
+ KoFilter::ConversiontqStatus openFile();
bool createStyleMap( const TQDomDocument & styles, TQDomDocument& doc );
void insertStyles( const TQDomElement& element, TQDomDocument& doc );
void importDateTimeStyle( const TQDomElement& parent );
diff --git a/filters/kword/palmdoc/palmdb.cpp b/filters/kword/palmdoc/palmdb.cpp
index b7155fa8..65a83518 100644
--- a/filters/kword/palmdoc/palmdb.cpp
+++ b/filters/kword/palmdoc/palmdb.cpp
@@ -18,7 +18,7 @@
*/
/*
- The database layout for PalmDB files is described in
+ The database tqlayout for PalmDB files is described in
http://www.palmos.com/dev/support/docs/protein_books/FileFormats/Intro.html
*/
@@ -38,9 +38,9 @@ PalmDB::PalmDB()
setName( "Unnamed" );
setAttributes( 0 );
setVersion( 0 );
- setCreationDate( TQDateTime::currentDateTime() );
- setModificationDate( TQDateTime::currentDateTime() );
- setLastBackupDate( TQDateTime::currentDateTime() );
+ setCreationDate( TQDateTime::tqcurrentDateTime() );
+ setModificationDate( TQDateTime::tqcurrentDateTime() );
+ setLastBackupDate( TQDateTime::tqcurrentDateTime() );
setType( TQString() );
setCreator( TQString() );
@@ -73,11 +73,11 @@ bool PalmDB::load( const char* filename )
// read and encode database name
// The name field is 32 bytes long, and is NUL terminated.
- // Use the length parameter of fromLatin1() anyway.
+ // Use the length parameter of tqfromLatin1() anyway.
TQ_UINT8 name[32];
for(int k = 0; k < 32; k++)
stream >> name[k];
- m_name = TQString::fromLatin1( (char*) name, 31 );
+ m_name = TQString::tqfromLatin1( (char*) name, 31 );
// read database attribute
TQ_UINT16 attr;
@@ -121,12 +121,12 @@ bool PalmDB::load( const char* filename )
// read and encode database type
TQ_UINT8 dbt[4];
stream >> dbt[0] >> dbt[1] >> dbt[2] >> dbt[3];
- m_type = TQString::fromLatin1( (char*) dbt, 4 );
+ m_type = TQString::tqfromLatin1( (char*) dbt, 4 );
// read and encode database creator
TQ_UINT8 dbc[4];
stream >> dbc[0] >> dbc[1] >> dbc[2] >> dbc[3];
- m_creator = TQString::fromLatin1( (char*) dbc, 4 );
+ m_creator = TQString::tqfromLatin1( (char*) dbc, 4 );
// read unique id seed
TQ_UINT32 idseed;
@@ -184,9 +184,9 @@ bool PalmDB::load( const char* filename )
if( recsize[r] >= 0 )
{
data->resize( recsize[r] );
- stream.device()->at( recpos[r] );
+ stream.tqdevice()->at( recpos[r] );
for( int q = 0; q < recsize[r]; q++ )
- { TQ_UINT8 c; stream >> c; data->at(q) = c; }
+ { TQ_UINT8 c; stream >> c; data->tqat(q) = c; }
}
records.append( data );
}
diff --git a/filters/kword/palmdoc/palmdoc.cpp b/filters/kword/palmdoc/palmdoc.cpp
index 72bb0434..791fa356 100644
--- a/filters/kword/palmdoc/palmdoc.cpp
+++ b/filters/kword/palmdoc/palmdoc.cpp
@@ -106,7 +106,7 @@ bool PalmDoc::load( const char* filename )
// if the text is not compressed, simply append as string
if( format == 1 )
- setText( TQString::fromLatin1( rec.data(),rec.count() ) );
+ setText( TQString::tqfromLatin1( rec.data(),rec.count() ) );
// done
m_result = OK;
@@ -120,7 +120,7 @@ bool PalmDoc::save( const char* filename )
setCreator( "REAd" );
// "touch" the database :-)
- setModificationDate( TQDateTime::currentDateTime() );
+ setModificationDate( TQDateTime::tqcurrentDateTime() );
// Palm record size is always 4 KB
unsigned recsize = 4096;
diff --git a/filters/kword/palmdoc/palmdocexport.cc b/filters/kword/palmdoc/palmdocexport.cc
index 9bbb980f..5e18ff6f 100644
--- a/filters/kword/palmdoc/palmdocexport.cc
+++ b/filters/kword/palmdoc/palmdocexport.cc
@@ -25,7 +25,7 @@
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <KoFilterChain.h>
@@ -53,7 +53,7 @@ public:
virtual bool doOpenDocument(void);
virtual bool doCloseDocument(void);
virtual bool doFullDocumentInfo(const KWEFDocumentInfo& docInfo);
- virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& tqlayout,
const ValueListFormatData& paraFormatDataList);
private:
TQString title;
@@ -101,7 +101,7 @@ bool PalmDocWorker::doFullDocumentInfo( const KWEFDocumentInfo& docInfo )
}
bool PalmDocWorker::doFullParagraph(const TQString& paraText,
- const LayoutData& /*layout*/, const ValueListFormatData& /*paraFormatDataList*/)
+ const LayoutData& /*tqlayout*/, const ValueListFormatData& /*paraFormatDataList*/)
{
kdDebug(30525) << "Entering ::doFullParagraph" << endl;
text.append( paraText );
@@ -115,7 +115,7 @@ PalmDocExport::PalmDocExport( KoFilter *, const char *, const TQStringList& ):
{
}
-KoFilter::ConversionStatus PalmDocExport::convert( const TQCString& from,
+KoFilter::ConversiontqStatus PalmDocExport::convert( const TQCString& from,
const TQCString& to )
{
// check for proper conversion
@@ -125,7 +125,7 @@ KoFilter::ConversionStatus PalmDocExport::convert( const TQCString& from,
PalmDocWorker* worker = new PalmDocWorker();
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/palmdoc/palmdocexport.h b/filters/kword/palmdoc/palmdocexport.h
index 4c09946b..fd2a1140 100644
--- a/filters/kword/palmdoc/palmdocexport.h
+++ b/filters/kword/palmdoc/palmdocexport.h
@@ -35,7 +35,7 @@ class PalmDocExport : public KoFilter
virtual ~PalmDocExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // __PALMDOCEXPORT_H
diff --git a/filters/kword/palmdoc/palmdocimport.cc b/filters/kword/palmdoc/palmdocimport.cc
index a1e8107b..98cd7629 100644
--- a/filters/kword/palmdoc/palmdocimport.cc
+++ b/filters/kword/palmdoc/palmdocimport.cc
@@ -46,7 +46,7 @@ PalmDocImport::PalmDocImport( KoFilter *, const char *, const TQStringList& ):
{
}
-KoFilter::ConversionStatus PalmDocImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus PalmDocImport::convert( const TQCString& from, const TQCString& to )
{
// check for proper conversion
if( to!= "application/x-kword" || from != "application/vnd.palm" )
@@ -96,7 +96,7 @@ KoFilter::ConversionStatus PalmDocImport::convert( const TQCString& from, const
TQString PalmDocImport::processPlainParagraph( TQString text )
{
- TQString formats, layout, result;
+ TQString formats, tqlayout, result;
// specify FORMAT (just empty element)
formats.append ( " <FORMAT id=\"1\" pos=\"0\" len=\"" +
@@ -108,29 +108,29 @@ TQString PalmDocImport::processPlainParagraph( TQString text )
double fontSize = font.pointSizeFloat();
// default LAYOUT
- layout.append( "<LAYOUT>\n" );
- layout.append( " <NAME value=\"Standard\" />\n" );
- layout.append( " <FLOW align=\"left\" />\n" );
- layout.append( " <LINESPACING value=\"0\" />\n" );
- layout.append( " <LEFTBORDER width=\"0\" style=\"0\" />\n" );
- layout.append( " <RIGHTBORDER width=\"0\" style=\"0\" />\n" );
- layout.append( " <TOPBORDER width=\"0\" style=\"0\" />\n" );
- layout.append( " <BOTTOMBORDER width=\"0\" style=\"0\" />\n" );
- layout.append( " <INDENTS />\n" );
- layout.append( " <OFFSETS after=\"9\" />\n" );
- layout.append( " <PAGEBREAKING />\n" );
- layout.append( " <COUNTER />\n" );
- layout.append( " <FORMAT id=\"1\">\n" );
- layout.append( " <SIZE value=\"" + TQString::number( fontSize ) + "\" />\n" );
- layout.append( " <WEIGHT value=\"50\" />\n" );
- layout.append( " <ITALIC value=\"0\" />\n" );
- layout.append( " <UNDERLINE value=\"0\" />\n" );
- layout.append( " <STRIKEOUT value=\"0\" />\n" );
- layout.append( " <CHARSET value=\"0\" />\n" );
- layout.append( " <VERTALIGN value=\"0\" />\n" );
- layout.append( " <FONT name=\"" + fontFamily + "\" />\n" );
- layout.append( " </FORMAT>\n" );
- layout.append( "</LAYOUT>\n" );
+ tqlayout.append( "<LAYOUT>\n" );
+ tqlayout.append( " <NAME value=\"Standard\" />\n" );
+ tqlayout.append( " <FLOW align=\"left\" />\n" );
+ tqlayout.append( " <LINESPACING value=\"0\" />\n" );
+ tqlayout.append( " <LEFTBORDER width=\"0\" style=\"0\" />\n" );
+ tqlayout.append( " <RIGHTBORDER width=\"0\" style=\"0\" />\n" );
+ tqlayout.append( " <TOPBORDER width=\"0\" style=\"0\" />\n" );
+ tqlayout.append( " <BOTTOMBORDER width=\"0\" style=\"0\" />\n" );
+ tqlayout.append( " <INDENTS />\n" );
+ tqlayout.append( " <OFFSETS after=\"9\" />\n" );
+ tqlayout.append( " <PAGEBREAKING />\n" );
+ tqlayout.append( " <COUNTER />\n" );
+ tqlayout.append( " <FORMAT id=\"1\">\n" );
+ tqlayout.append( " <SIZE value=\"" + TQString::number( fontSize ) + "\" />\n" );
+ tqlayout.append( " <WEIGHT value=\"50\" />\n" );
+ tqlayout.append( " <ITALIC value=\"0\" />\n" );
+ tqlayout.append( " <UNDERLINE value=\"0\" />\n" );
+ tqlayout.append( " <STRIKEOUT value=\"0\" />\n" );
+ tqlayout.append( " <CHARSET value=\"0\" />\n" );
+ tqlayout.append( " <VERTALIGN value=\"0\" />\n" );
+ tqlayout.append( " <FONT name=\"" + fontFamily + "\" />\n" );
+ tqlayout.append( " </FORMAT>\n" );
+ tqlayout.append( "</LAYOUT>\n" );
// encode text for XML-ness
text.replace( '&', "&amp;" );
@@ -145,7 +145,7 @@ TQString PalmDocImport::processPlainParagraph( TQString text )
result.append( "<FORMATS>\n");
result.append( formats );
result.append( "</FORMATS>\n");
- result.append( layout );
+ result.append( tqlayout );
result.append( "</PARAGRAPH>\n" );
return result;
diff --git a/filters/kword/palmdoc/palmdocimport.h b/filters/kword/palmdoc/palmdocimport.h
index 77b4cc73..a97f9729 100644
--- a/filters/kword/palmdoc/palmdocimport.h
+++ b/filters/kword/palmdoc/palmdocimport.h
@@ -37,7 +37,7 @@ class PalmDocImport : public KoFilter
virtual ~PalmDocImport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
private:
diff --git a/filters/kword/pdf/FilterDevice.cpp b/filters/kword/pdf/FilterDevice.cpp
index 8a08c95c..5182f188 100644
--- a/filters/kword/pdf/FilterDevice.cpp
+++ b/filters/kword/pdf/FilterDevice.cpp
@@ -196,7 +196,7 @@ void Device::addImage()
}
// add image
- TQString name = TQString("pictures/picture%1.png").arg(_data.imageIndex());
+ TQString name = TQString("pictures/picture%1.png").tqarg(_data.imageIndex());
TQDomElement frameset = _data.pictureFrameset(_currentImage.rect);
current()->pictures.append(frameset);
TQDomElement picture = _data.createElement("PICTURE");
@@ -253,7 +253,7 @@ void Device::computeGeometry(GfxState *state, Image &image)
uint Device::initImage(GfxState *state, int width, int height,
bool withMask)
{
- // get image geometry
+ // get image tqgeometry
Image image;
image.mask = withMask;
computeGeometry(state, image);
diff --git a/filters/kword/pdf/FilterPage.cpp b/filters/kword/pdf/FilterPage.cpp
index 14d3d384..5391cb24 100644
--- a/filters/kword/pdf/FilterPage.cpp
+++ b/filters/kword/pdf/FilterPage.cpp
@@ -85,7 +85,7 @@ void Page::addString(TextString *str)
// TQString s;
// for (int i=0; i<str->len; i++) s += TQChar(str->text[i]);
// kdDebug(30516) << "string: " << s << " ("
-// << (str->len>0 ? s[0].unicode() : 0) << ")" << endl;
+// << (str->len>0 ? s[0].tqunicode() : 0) << ")" << endl;
TextPage::addString(str);
// kdDebug(30516) << " ...addString done" << endl;
}
@@ -245,9 +245,9 @@ void Page::initParagraph(Paragraph &par) const
if ( res==-1 ) {
tab.pos = dx;
if (tabRightAligned) {
- tab.alignment = Tabulator::Right;
+ tab.tqalignment = Tabulator::Right;
kdDebug(30516) << "tabulated text right aligned.." << endl;
- } else tab.alignment = Tabulator::Left;
+ } else tab.tqalignment = Tabulator::Left;
par.tabs.push_back(tab);
}
}
@@ -262,7 +262,7 @@ void Page::initParagraph(Paragraph &par) const
else par.leftIndent = kMin(par.leftIndent, left);
}
- // compute alignment
+ // compute tqalignment
for (it = par.lines().begin(); it!=par.lines().end(); ++it) {
double left = (*it)->blocks->xMin;
double right = block(*it, -1)->xMax;
@@ -287,7 +287,7 @@ void Page::initParagraph(Paragraph &par) const
}
}
- // finalize alignment
+ // finalize tqalignment
if (rightAligned) par.align = (leftAligned ? AlignBlock : AlignRight);
else if (centered) par.align = AlignCenter;
}
@@ -315,14 +315,14 @@ void Page::fillParagraph(Paragraph &par, double &offset) const
TQChar c = par.blocks[bi].text[si];
int psi = par.charFromEnd(1, pbi);
TQChar prev = (psi<0 ? TQChar::null : par.blocks[pbi].text[psi]);
- if ( !prev.isNull() && type(c.unicode())==Hyphen )
+ if ( !prev.isNull() && type(c.tqunicode())==Hyphen )
kdDebug(30516) << "hyphen ? " << TQString(prev)
- << " type=" << type(prev.unicode())
+ << " type=" << type(prev.tqunicode())
<< endl;
TextString *next =
((*it)->next ? (*it)->next->blocks->strings : 0);
- if ( !prev.isNull() && type(c.unicode())==Hyphen
- && isLetter( type(prev.unicode()) )
+ if ( !prev.isNull() && type(c.tqunicode())==Hyphen
+ && isLetter( type(prev.tqunicode()) )
&& next && next->len>0
&& isLetter( type(next->text[next->len-1]) ) ) {
kdDebug(30516) << "found hyphen" << endl;
@@ -389,7 +389,7 @@ void Page::fillParagraph(Paragraph &par, double &offset) const
FontFamily Page::checkSpecial(TQChar &c, const Font &font) const
{
Unicode res = 0;
- switch ( PDFImport::checkSpecial(c.unicode(), res) ) {
+ switch ( PDFImport::checkSpecial(c.tqunicode(), res) ) {
case Bullet:
kdDebug(30516) << "found bullet" << endl;
// #### FIXME : if list, use a COUNTER
@@ -405,7 +405,7 @@ FontFamily Page::checkSpecial(TQChar &c, const Font &font) const
kdDebug(30516) << "found latex special" << endl;
return Times;
case SpecialSymbol:
- kdDebug(30516) << "found symbol=" << c.unicode() << endl;
+ kdDebug(30516) << "found symbol=" << c.tqunicode() << endl;
return Times;
//return Symbol;
default:
diff --git a/filters/kword/pdf/data.cpp b/filters/kword/pdf/data.cpp
index 3236aa39..a6abf929 100644
--- a/filters/kword/pdf/data.cpp
+++ b/filters/kword/pdf/data.cpp
@@ -117,7 +117,7 @@ TQDomElement Data::createFrameset(FramesetType type, const TQString &n)
TQString name = n;
if ( name.isNull() )
name = (text ? i18n("Text Frameset %1")
- : i18n("Picture %1")).arg(index);
+ : i18n("Picture %1")).tqarg(index);
frameset.setAttribute("name", name);
frameset.setAttribute("frameInfo", 0);
@@ -154,7 +154,7 @@ void Data::initPage(const TQValueVector<DRect> &rects,
// kdDebug(30516) << "page #" << pageIndex << " rect #" << i
// << ": " << rects[i].toString() << endl;
if ( !rects[i].isValid() ) continue;
- TQString name = i18n(TEXT_FRAMESET_NAMES[i]).arg(pageIndex);
+ TQString name = i18n(TEXT_FRAMESET_NAMES[i]).tqarg(pageIndex);
_textFramesets[i] = createFrameset(Text, name);
_framesets.appendChild(_textFramesets[i]);
TQDomElement frame = createFrame(Text, rects[i], true);
@@ -189,13 +189,13 @@ void Data::createParagraph(const TQString &text, ParagraphType type,
textElement.appendChild( _document.createTextNode(text) );
paragraph.appendChild(textElement);
- TQDomElement layout = _document.createElement("LAYOUT");
- paragraph.appendChild(layout);
+ TQDomElement tqlayout = _document.createElement("LAYOUT");
+ paragraph.appendChild(tqlayout);
TQDomElement element = _document.createElement("NAME");
element.setAttribute("value", "Standard");
- layout.appendChild(element);
+ tqlayout.appendChild(element);
for (uint i=0; i<layouts.size(); i++)
- layout.appendChild(layouts[i]);
+ tqlayout.appendChild(layouts[i]);
if ( formats.size() ) {
TQDomElement format = _document.createElement("FORMATS");
diff --git a/filters/kword/pdf/dialog.cpp b/filters/kword/pdf/dialog.cpp
index 74aa89e2..29e0eabc 100644
--- a/filters/kword/pdf/dialog.cpp
+++ b/filters/kword/pdf/dialog.cpp
@@ -26,7 +26,7 @@
#include <tqapplication.h>
#include <tqgrid.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqbuttongroup.h>
#include <tqradiobutton.h>
#include <tqwhatsthis.h>
@@ -128,7 +128,7 @@ Dialog::Dialog(uint nbPages, bool isEncrypted, TQWidget *widget)
gbox->setInsideSpacing(KDialogBase::spacingHint());
top->addWidget(gbox);
_group = new TQButtonGroup;
- _allButton = new TQRadioButton(i18n("All (%1 pages)").arg(nbPages), gbox);
+ _allButton = new TQRadioButton(i18n("All (%1 pages)").tqarg(nbPages), gbox);
_allButton->setChecked(true);
_group->insert(_allButton);
TQHBox *hbox = new TQHBox(gbox);
@@ -147,8 +147,8 @@ Dialog::Dialog(uint nbPages, bool isEncrypted, TQWidget *widget)
_smart->setChecked(true);
TQWhatsThis::add(_smart,
i18n("Removes returns and hyphens at end of line. "
- "Also tries to compute the paragraph alignment. "
- "Note that the layout of some pages can "
+ "Also tries to compute the paragraph tqalignment. "
+ "Note that the tqlayout of some pages can "
"get messed up."));
top->addWidget(_smart);
@@ -181,7 +181,7 @@ Options Dialog::options() const
{
Options o;
o.range = SelectionRange( (_allButton->isChecked() ?
- TQString("1-%1").arg(_nbPages) : _range->text()) );
+ TQString("1-%1").tqarg(_nbPages) : _range->text()) );
o.ownerPassword = _owner->text();
o.userPassword = _user->text();
o.importImages = _images->isChecked();
diff --git a/filters/kword/pdf/fstring.cpp b/filters/kword/pdf/fstring.cpp
index c8ecabcb..1dd953aa 100644
--- a/filters/kword/pdf/fstring.cpp
+++ b/filters/kword/pdf/fstring.cpp
@@ -32,10 +32,10 @@ namespace PDFImport {
TQDomElement Tabulator::createElement(Data &data) const
{
TQDomElement element = data.createElement("TABULATOR");
- element.setAttribute("type", alignment);
+ element.setAttribute("type", tqalignment);
element.setAttribute("ptpos", pos);
element.setAttribute("filling", filling);
- if ( alignment==Character )
+ if ( tqalignment==Character )
element.setAttribute("alignchar", TQString(alignmentChar));
return element;
}
diff --git a/filters/kword/pdf/fstring.h b/filters/kword/pdf/fstring.h
index 644c9398..6e4d0b6a 100644
--- a/filters/kword/pdf/fstring.h
+++ b/filters/kword/pdf/fstring.h
@@ -39,13 +39,13 @@ public:
enum Alignment { Left = 0, Center, Right, Character };
enum Filling { Blank = 0, Dots, Line, Dash, DashDot, DashDotDot };
- Tabulator() : alignment(Left) {}
+ Tabulator() : tqalignment(Left) {}
TQDomElement createElement(Data &data) const;
public:
double pos;
- Alignment alignment;
+ Alignment tqalignment;
Filling filling;
TQChar alignmentChar;
};
diff --git a/filters/kword/pdf/misc.cpp b/filters/kword/pdf/misc.cpp
index 3cd0e1bf..0ffc9dba 100644
--- a/filters/kword/pdf/misc.cpp
+++ b/filters/kword/pdf/misc.cpp
@@ -70,8 +70,8 @@ void DRect::unite(const DRect &r)
TQString DRect::toString() const
{
if ( !isValid() ) return "invalid rect";
- return TQString("left=%1 right=%2 top=%3 bottom=%4").arg(_left).arg(_right)
- .arg(_top).arg(_bottom);
+ return TQString("left=%1 right=%2 top=%3 bottom=%4").tqarg(_left).tqarg(_right)
+ .tqarg(_top).tqarg(_bottom);
}
bool DPath::isRectangle() const
@@ -211,7 +211,7 @@ void Font::init(const TQString &n)
_data->family = FAMILY_DATA[Symbol];
else { // with TQt
TQFontDatabase fdb;
- TQStringList list = fdb.families();
+ TQStringList list = fdb.tqfamilies();
list = list.grep(name, false);
if ( !list.isEmpty() ) {
_data->family = list[0];
diff --git a/filters/kword/pdf/pdfdocument.cpp b/filters/kword/pdf/pdfdocument.cpp
index 80ec92d0..ffe27e1c 100644
--- a/filters/kword/pdf/pdfdocument.cpp
+++ b/filters/kword/pdf/pdfdocument.cpp
@@ -38,7 +38,7 @@ Document::Document()
: _file(0), _object(0), _fileStream(0), _document(0), _device(0)
{}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
Document::init(const TQString &name, const TQString &ownerPassword,
const TQString &userPassword)
{
diff --git a/filters/kword/pdf/pdfdocument.h b/filters/kword/pdf/pdfdocument.h
index b2da781f..c54606f4 100644
--- a/filters/kword/pdf/pdfdocument.h
+++ b/filters/kword/pdf/pdfdocument.h
@@ -43,7 +43,7 @@ class Document
Document();
~Document() { clear(); }
- KoFilter::ConversionStatus init(const TQString &name,
+ KoFilter::ConversiontqStatus init(const TQString &name,
const TQString &ownerPassword, const TQString &userPassword);
void clear();
diff --git a/filters/kword/pdf/pdfimport.cpp b/filters/kword/pdf/pdfimport.cpp
index dfc56703..bee3e39a 100644
--- a/filters/kword/pdf/pdfimport.cpp
+++ b/filters/kword/pdf/pdfimport.cpp
@@ -55,7 +55,7 @@ K_EXPORT_COMPONENT_FACTORY(libpdfimport, PdfImportFactory())
PdfImport::PdfImport(KoFilter *, const char *, const TQStringList&)
{}
-KoFilter::ConversionStatus PdfImport::convert(const TQCString& from,
+KoFilter::ConversiontqStatus PdfImport::convert(const TQCString& from,
const TQCString& to)
{
// check for proper conversion
@@ -63,7 +63,7 @@ KoFilter::ConversionStatus PdfImport::convert(const TQCString& from,
return KoFilter::NotImplemented;
// read file
- KoFilter::ConversionStatus result
+ KoFilter::ConversiontqStatus result
= _doc.init(m_chain->inputFile(), TQString(), TQString());
if ( result!=KoFilter::OK ) return result;
@@ -111,7 +111,7 @@ KoFilter::ConversionStatus PdfImport::convert(const TQCString& from,
for (it.toFirst(); it.current()!=it.end(); it.next()) {
TQString s = (first ? i18n("First pass: page #%1...")
: i18n("Second pass: page #%1..."));
- pd.setLabel( s.arg(it.current()) );
+ pd.setLabel( s.tqarg(it.current()) );
tqApp->processEvents();
if (pd.wasCancelled()) return KoFilter::UserCancelled;
kdDebug(30516) << "-- " << "pass #" << k
diff --git a/filters/kword/pdf/pdfimport.h b/filters/kword/pdf/pdfimport.h
index 53ca8f97..9686714e 100644
--- a/filters/kword/pdf/pdfimport.h
+++ b/filters/kword/pdf/pdfimport.h
@@ -33,7 +33,7 @@ class PdfImport : public KoFilter
public:
PdfImport(KoFilter *parent, const char *name, const TQStringList&);
- KoFilter::ConversionStatus
+ KoFilter::ConversiontqStatus
convert(const TQCString& from, const TQCString& to);
private:
diff --git a/filters/kword/pdf/xpdf/xpdf/FTFont.cc b/filters/kword/pdf/xpdf/xpdf/FTFont.cc
index 8de09e0e..ebbbff40 100644
--- a/filters/kword/pdf/xpdf/xpdf/FTFont.cc
+++ b/filters/kword/pdf/xpdf/xpdf/FTFont.cc
@@ -50,7 +50,7 @@ FTFontEngine::~FTFontEngine() {
FTFontFile::FTFontFile(FTFontEngine *engineA, char *fontFileName,
char **fontEnc, GBool pdfFontHasEncoding) {
char *name;
- int unicodeCmap, macRomanCmap, msSymbolCmap;
+ int tqunicodeCmap, macRomanCmap, msSymbolCmap;
int i, j;
ok = gFalse;
@@ -89,11 +89,11 @@ FTFontFile::FTFontFile(FTFontEngine *engineA, char *fontFileName,
// and use (0xf000 + char code).
// 3. If none of these rules apply, use the first cmap and hope for
// the best (this shouldn't happen).
- unicodeCmap = macRomanCmap = msSymbolCmap = 0xffff;
+ tqunicodeCmap = macRomanCmap = msSymbolCmap = 0xffff;
for (i = 0; i < face->num_charmaps; ++i) {
if (face->charmaps[i]->platform_id == 3 &&
face->charmaps[i]->encoding_id == 1) {
- unicodeCmap = i;
+ tqunicodeCmap = i;
} else if (face->charmaps[i]->platform_id == 1 &&
face->charmaps[i]->encoding_id == 0) {
macRomanCmap = i;
@@ -106,8 +106,8 @@ FTFontFile::FTFontFile(FTFontEngine *engineA, char *fontFileName,
mode = ftFontModeCharCode;
charMapOffset = 0;
if (pdfFontHasEncoding) {
- if (unicodeCmap != 0xffff) {
- i = unicodeCmap;
+ if (tqunicodeCmap != 0xffff) {
+ i = tqunicodeCmap;
mode = ftFontModeUnicode;
} else if (macRomanCmap != 0xffff) {
i = macRomanCmap;
diff --git a/filters/kword/pdf/xpdf/xpdf/FontFile.cc b/filters/kword/pdf/xpdf/xpdf/FontFile.cc
index ccb880bf..73a7f1d3 100644
--- a/filters/kword/pdf/xpdf/xpdf/FontFile.cc
+++ b/filters/kword/pdf/xpdf/xpdf/FontFile.cc
@@ -3206,7 +3206,7 @@ void TrueTypeFontFile::cvtCharStrings(const char **encodingA,
GBool pdfFontHasEncoding,
FontFileOutputFunc outputFunc,
void *outputStream) {
- int unicodeCmap, macRomanCmap, msSymbolCmap;
+ int tqunicodeCmap, macRomanCmap, msSymbolCmap;
int nCmaps, cmapPlatform, cmapEncoding, cmapFmt, cmapOffset;
T42FontIndexMode mode;
const char *name;
@@ -3239,13 +3239,13 @@ void TrueTypeFontFile::cvtCharStrings(const char **encodingA,
// 3. If none of these rules apply, use the first cmap and hope for
// the best (this shouldn't happen).
nCmaps = getUShort(pos+2);
- unicodeCmap = macRomanCmap = msSymbolCmap = -1;
+ tqunicodeCmap = macRomanCmap = msSymbolCmap = -1;
cmapOffset = 0;
for (i = 0; i < nCmaps; ++i) {
cmapPlatform = getUShort(pos + 4 + 8*i);
cmapEncoding = getUShort(pos + 4 + 8*i + 2);
if (cmapPlatform == 3 && cmapEncoding == 1) {
- unicodeCmap = i;
+ tqunicodeCmap = i;
} else if (cmapPlatform == 1 && cmapEncoding == 0) {
macRomanCmap = i;
} else if (cmapPlatform == 3 && cmapEncoding == 0) {
@@ -3255,8 +3255,8 @@ void TrueTypeFontFile::cvtCharStrings(const char **encodingA,
i = 0;
mode = t42FontModeCharCode;
if (pdfFontHasEncoding) {
- if (unicodeCmap >= 0) {
- i = unicodeCmap;
+ if (tqunicodeCmap >= 0) {
+ i = tqunicodeCmap;
mode = t42FontModeUnicode;
} else if (macRomanCmap >= 0) {
i = macRomanCmap;
diff --git a/filters/kword/pdf/xpdf/xpdf/GlobalParams.cc b/filters/kword/pdf/xpdf/xpdf/GlobalParams.cc
index 8a7b36de..d25970de 100644
--- a/filters/kword/pdf/xpdf/xpdf/GlobalParams.cc
+++ b/filters/kword/pdf/xpdf/xpdf/GlobalParams.cc
@@ -139,7 +139,7 @@ GlobalParams::GlobalParams(const char *cfgFileName) {
nameToUnicode = new NameToCharCode();
cidToUnicodes = new GHash(gTrue);
residentUnicodeMaps = new GHash();
- unicodeMaps = new GHash(gTrue);
+ tqunicodeMaps = new GHash(gTrue);
cMapDirs = new GHash(gTrue);
toUnicodeDirs = new GList();
displayFonts = new GHash();
@@ -195,7 +195,7 @@ GlobalParams::GlobalParams(const char *cfgFileName) {
errQuiet = gFalse;
cidToUnicodeCache = new CIDToUnicodeCache();
- unicodeMapCache = new UnicodeMapCache();
+ tqunicodeMapCache = new UnicodeMapCache();
cMapCache = new CMapCache();
// set up the initial nameToUnicode table
@@ -318,7 +318,7 @@ void GlobalParams::parseFile(GString *fileName, FILE *f) {
parseNameToUnicode(tokens, fileName, line);
} else if (!cmd->cmp("cidToUnicode")) {
parseCIDToUnicode(tokens, fileName, line);
- } else if (!cmd->cmp("unicodeMap")) {
+ } else if (!cmd->cmp("tqunicodeMap")) {
parseUnicodeMap(tokens, fileName, line);
} else if (!cmd->cmp("cMapDir")) {
parseCMapDir(tokens, fileName, line);
@@ -465,16 +465,16 @@ void GlobalParams::parseUnicodeMap(GList *tokens, GString *fileName,
GString *encodingName, *name, *old;
if (tokens->getLength() != 3) {
- error(-1, "Bad 'unicodeMap' config file command (%s:%d)",
+ error(-1, "Bad 'tqunicodeMap' config file command (%s:%d)",
fileName->getCString(), line);
return;
}
encodingName = (GString *)tokens->get(1);
name = (GString *)tokens->get(2);
- if ((old = (GString *)unicodeMaps->remove(encodingName))) {
+ if ((old = (GString *)tqunicodeMaps->remove(encodingName))) {
delete old;
}
- unicodeMaps->add(encodingName->copy(), name->copy());
+ tqunicodeMaps->add(encodingName->copy(), name->copy());
}
void GlobalParams::parseCMapDir(GList *tokens, GString *fileName, int line) {
@@ -765,7 +765,7 @@ GlobalParams::~GlobalParams() {
delete nameToUnicode;
deleteGHash(cidToUnicodes, GString);
deleteGHash(residentUnicodeMaps, UnicodeMap);
- deleteGHash(unicodeMaps, GString);
+ deleteGHash(tqunicodeMaps, GString);
deleteGList(toUnicodeDirs, GString);
deleteGHash(displayFonts, DisplayFontParam);
deleteGHash(displayCIDFonts, DisplayFontParam);
@@ -793,7 +793,7 @@ GlobalParams::~GlobalParams() {
delete cMapDirs;
delete cidToUnicodeCache;
- delete unicodeMapCache;
+ delete tqunicodeMapCache;
delete cMapCache;
}
@@ -825,7 +825,7 @@ UnicodeMap *GlobalParams::getResidentUnicodeMap(const GString *encodingName) {
FILE *GlobalParams::getUnicodeMapFile(const GString *encodingName) {
GString *fileName;
- if (!(fileName = (GString *)unicodeMaps->lookup(encodingName))) {
+ if (!(fileName = (GString *)tqunicodeMaps->lookup(encodingName))) {
return NULL;
}
return fopen(fileName->getCString(), "r");
@@ -959,7 +959,7 @@ UnicodeMap *GlobalParams::getUnicodeMap(GString *encodingName) {
map->incRefCnt();
return map;
}
- return unicodeMapCache->getUnicodeMap(encodingName);
+ return tqunicodeMapCache->getUnicodeMap(encodingName);
}
CMap *GlobalParams::getCMap(GString *collection, GString *cMapName) {
diff --git a/filters/kword/pdf/xpdf/xpdf/GlobalParams.h b/filters/kword/pdf/xpdf/xpdf/GlobalParams.h
index 86114a15..1f3e4c53 100644
--- a/filters/kword/pdf/xpdf/xpdf/GlobalParams.h
+++ b/filters/kword/pdf/xpdf/xpdf/GlobalParams.h
@@ -237,7 +237,7 @@ private:
// [GString]
GHash *residentUnicodeMaps; // mappings from Unicode to char codes,
// indexed by encoding name [UnicodeMap]
- GHash *unicodeMaps; // files for mappings from Unicode to char
+ GHash *tqunicodeMaps; // files for mappings from Unicode to char
// codes, indexed by encoding name [GString]
GHash *cMapDirs; // list of CMap dirs, indexed by collection
// name [GList[GString]]
@@ -263,7 +263,7 @@ private:
GBool psEmbedCIDTrueType; // embed CID TrueType fonts?
GBool psOPI; // generate PostScript OPI comments?
GBool psASCIIHex; // use ASCIIHex instead of ASCII85?
- GString *textEncoding; // encoding (unicodeMap) to use for text
+ GString *textEncoding; // encoding (tqunicodeMap) to use for text
// output
EndOfLineKind textEOL; // type of EOL marker to use for text
// output
@@ -280,7 +280,7 @@ private:
GBool errQuiet; // suppress error messages?
CIDToUnicodeCache *cidToUnicodeCache;
- UnicodeMapCache *unicodeMapCache;
+ UnicodeMapCache *tqunicodeMapCache;
CMapCache *cMapCache;
};
diff --git a/filters/kword/pdf/xpdf/xpdf/TTFont.cc b/filters/kword/pdf/xpdf/xpdf/TTFont.cc
index 6107fd43..6077f3c0 100644
--- a/filters/kword/pdf/xpdf/xpdf/TTFont.cc
+++ b/filters/kword/pdf/xpdf/xpdf/TTFont.cc
@@ -48,7 +48,7 @@ TTFontEngine::~TTFontEngine() {
TTFontFile::TTFontFile(TTFontEngine *engineA, char *fontFileName,
char **fontEnc, GBool pdfFontHasEncoding) {
TT_Face_Properties props;
- TT_UShort unicodeCmap, macRomanCmap, msSymbolCmap;
+ TT_UShort tqunicodeCmap, macRomanCmap, msSymbolCmap;
TT_UShort platform, encoding, i;
int j;
@@ -77,11 +77,11 @@ TTFontFile::TTFontFile(TTFontEngine *engineA, char *fontFileName,
// and use (0xf000 + char code).
// 3. If none of these rules apply, use the first cmap and hope for
// the best (this shouldn't happen).
- unicodeCmap = macRomanCmap = msSymbolCmap = 0xffff;
+ tqunicodeCmap = macRomanCmap = msSymbolCmap = 0xffff;
for (i = 0; i < props.num_CharMaps; ++i) {
if (!TT_Get_CharMap_ID(face, i, &platform, &encoding)) {
if (platform == 3 && encoding == 1) {
- unicodeCmap = i;
+ tqunicodeCmap = i;
} else if (platform == 1 && encoding == 0) {
macRomanCmap = i;
} else if (platform == 3 && encoding == 0) {
@@ -93,8 +93,8 @@ TTFontFile::TTFontFile(TTFontEngine *engineA, char *fontFileName,
mode = ttFontModeCharCode;
charMapOffset = 0;
if (pdfFontHasEncoding) {
- if (unicodeCmap != 0xffff) {
- i = unicodeCmap;
+ if (tqunicodeCmap != 0xffff) {
+ i = tqunicodeCmap;
mode = ttFontModeUnicode;
} else if (macRomanCmap != 0xffff) {
i = macRomanCmap;
diff --git a/filters/kword/pdf/xpdf/xpdf/UnicodeMap.cc b/filters/kword/pdf/xpdf/xpdf/UnicodeMap.cc
index fe1185d7..d197e5cf 100644
--- a/filters/kword/pdf/xpdf/xpdf/UnicodeMap.cc
+++ b/filters/kword/pdf/xpdf/xpdf/UnicodeMap.cc
@@ -46,7 +46,7 @@ UnicodeMap *UnicodeMap::parse(GString *encodingNameA) {
char *tok1, *tok2, *tok3;
if (!(f = globalParams->getUnicodeMapFile(encodingNameA))) {
- error(-1, "Couldn't find unicodeMap file for the '%s' encoding",
+ error(-1, "Couldn't find tqunicodeMap file for the '%s' encoding",
encodingNameA->getCString());
return NULL;
}
@@ -93,11 +93,11 @@ UnicodeMap *UnicodeMap::parse(GString *encodingNameA) {
eMap->nBytes = nBytes;
++map->eMapsLen;
} else {
- error(-1, "Bad line (%d) in unicodeMap file for the '%s' encoding",
+ error(-1, "Bad line (%d) in tqunicodeMap file for the '%s' encoding",
line, encodingNameA->getCString());
}
} else {
- error(-1, "Bad line (%d) in unicodeMap file for the '%s' encoding",
+ error(-1, "Bad line (%d) in tqunicodeMap file for the '%s' encoding",
line, encodingNameA->getCString());
}
++line;
@@ -110,8 +110,8 @@ UnicodeMap *UnicodeMap::parse(GString *encodingNameA) {
UnicodeMap::UnicodeMap(GString *encodingNameA) {
encodingName = encodingNameA;
- unicodeOut = gFalse;
- kind = unicodeMapUser;
+ tqunicodeOut = gFalse;
+ kind = tqunicodeMapUser;
ranges = NULL;
len = 0;
eMaps = NULL;
@@ -119,11 +119,11 @@ UnicodeMap::UnicodeMap(GString *encodingNameA) {
refCnt = 1;
}
-UnicodeMap::UnicodeMap(const char *encodingNameA, GBool unicodeOutA,
+UnicodeMap::UnicodeMap(const char *encodingNameA, GBool tqunicodeOutA,
UnicodeMapRange *rangesA, int lenA) {
encodingName = new GString(encodingNameA);
- unicodeOut = unicodeOutA;
- kind = unicodeMapResident;
+ tqunicodeOut = tqunicodeOutA;
+ kind = tqunicodeMapResident;
ranges = rangesA;
len = lenA;
eMaps = NULL;
@@ -131,11 +131,11 @@ UnicodeMap::UnicodeMap(const char *encodingNameA, GBool unicodeOutA,
refCnt = 1;
}
-UnicodeMap::UnicodeMap(const char *encodingNameA, GBool unicodeOutA,
+UnicodeMap::UnicodeMap(const char *encodingNameA, GBool tqunicodeOutA,
UnicodeMapFunc funcA) {
encodingName = new GString(encodingNameA);
- unicodeOut = unicodeOutA;
- kind = unicodeMapFunc;
+ tqunicodeOut = tqunicodeOutA;
+ kind = tqunicodeMapFunc;
func = funcA;
eMaps = NULL;
eMapsLen = 0;
@@ -144,7 +144,7 @@ UnicodeMap::UnicodeMap(const char *encodingNameA, GBool unicodeOutA,
UnicodeMap::~UnicodeMap() {
delete encodingName;
- if (kind == unicodeMapUser && ranges) {
+ if (kind == tqunicodeMapUser && ranges) {
gfree(ranges);
}
if (eMaps) {
@@ -170,7 +170,7 @@ int UnicodeMap::mapUnicode(Unicode u, char *buf, int bufSize) {
int a, b, m, n, i, j;
Guint code;
- if (kind == unicodeMapFunc) {
+ if (kind == tqunicodeMapFunc) {
return (*func)(u, buf, bufSize);
}
@@ -219,7 +219,7 @@ int UnicodeMap::mapUnicode(Unicode u, char *buf, int bufSize) {
UnicodeMapCache::UnicodeMapCache() {
int i;
- for (i = 0; i < unicodeMapCacheSize; ++i) {
+ for (i = 0; i < tqunicodeMapCacheSize; ++i) {
cache[i] = NULL;
}
}
@@ -227,7 +227,7 @@ UnicodeMapCache::UnicodeMapCache() {
UnicodeMapCache::~UnicodeMapCache() {
int i;
- for (i = 0; i < unicodeMapCacheSize; ++i) {
+ for (i = 0; i < tqunicodeMapCacheSize; ++i) {
if (cache[i]) {
cache[i]->decRefCnt();
}
@@ -242,7 +242,7 @@ UnicodeMap *UnicodeMapCache::getUnicodeMap(GString *encodingName) {
cache[0]->incRefCnt();
return cache[0];
}
- for (i = 1; i < unicodeMapCacheSize; ++i) {
+ for (i = 1; i < tqunicodeMapCacheSize; ++i) {
if (cache[i] && cache[i]->match(encodingName)) {
map = cache[i];
for (j = i; j >= 1; --j) {
@@ -254,10 +254,10 @@ UnicodeMap *UnicodeMapCache::getUnicodeMap(GString *encodingName) {
}
}
if ((map = UnicodeMap::parse(encodingName))) {
- if (cache[unicodeMapCacheSize - 1]) {
- cache[unicodeMapCacheSize - 1]->decRefCnt();
+ if (cache[tqunicodeMapCacheSize - 1]) {
+ cache[tqunicodeMapCacheSize - 1]->decRefCnt();
}
- for (j = unicodeMapCacheSize - 1; j >= 1; --j) {
+ for (j = tqunicodeMapCacheSize - 1; j >= 1; --j) {
cache[j] = cache[j - 1];
}
cache[0] = map;
diff --git a/filters/kword/pdf/xpdf/xpdf/UnicodeMap.h b/filters/kword/pdf/xpdf/xpdf/UnicodeMap.h
index 189f3154..35506aab 100644
--- a/filters/kword/pdf/xpdf/xpdf/UnicodeMap.h
+++ b/filters/kword/pdf/xpdf/xpdf/UnicodeMap.h
@@ -25,9 +25,9 @@ class GString;
//------------------------------------------------------------------------
enum UnicodeMapKind {
- unicodeMapUser, // read from a file
- unicodeMapResident, // static list of ranges
- unicodeMapFunc // function pointer
+ tqunicodeMapUser, // read from a file
+ tqunicodeMapResident, // static list of ranges
+ tqunicodeMapFunc // function pointer
};
typedef int (*UnicodeMapFunc)(Unicode u, char *buf, int bufSize);
@@ -49,12 +49,12 @@ public:
static UnicodeMap *parse(GString *encodingNameA);
// Create a resident UnicodeMap.
- UnicodeMap(const char *encodingNameA, GBool unicodeOutA,
+ UnicodeMap(const char *encodingNameA, GBool tqunicodeOutA,
UnicodeMapRange *rangesA, int lenA);
// Create a resident UnicodeMap that uses a function instead of a
// list of ranges.
- UnicodeMap(const char *encodingNameA, GBool unicodeOutA,
+ UnicodeMap(const char *encodingNameA, GBool tqunicodeOutA,
UnicodeMapFunc funcA);
~UnicodeMap();
@@ -64,7 +64,7 @@ public:
GString *getEncodingName() { return encodingName; }
- GBool isUnicode() { return unicodeOut; }
+ GBool isUnicode() { return tqunicodeOut; }
// Return true if this UnicodeMap matches the specified
// <encodingNameA>.
@@ -82,7 +82,7 @@ private:
GString *encodingName;
UnicodeMapKind kind;
- GBool unicodeOut;
+ GBool tqunicodeOut;
union {
UnicodeMapRange *ranges; // (user, resident)
UnicodeMapFunc func; // (func)
@@ -95,7 +95,7 @@ private:
//------------------------------------------------------------------------
-#define unicodeMapCacheSize 4
+#define tqunicodeMapCacheSize 4
class UnicodeMapCache {
public:
@@ -110,7 +110,7 @@ public:
private:
- UnicodeMap *cache[unicodeMapCacheSize];
+ UnicodeMap *cache[tqunicodeMapCacheSize];
};
#endif
diff --git a/filters/kword/pdf/xpdf/xpdf/XPDFApp.cc b/filters/kword/pdf/xpdf/xpdf/XPDFApp.cc
index e456310b..d0bda665 100644
--- a/filters/kword/pdf/xpdf/xpdf/XPDFApp.cc
+++ b/filters/kword/pdf/xpdf/xpdf/XPDFApp.cc
@@ -54,8 +54,8 @@ static XrmOptionDescRec xOpts[] = {
{"-fg", "*Foreground", XrmoptionSepArg, NULL},
{"-background", "*Background", XrmoptionSepArg, NULL},
{"-bg", "*Background", XrmoptionSepArg, NULL},
- {"-geometry", ".geometry", XrmoptionSepArg, NULL},
- {"-g", ".geometry", XrmoptionSepArg, NULL},
+ {"-tqgeometry", ".tqgeometry", XrmoptionSepArg, NULL},
+ {"-g", ".tqgeometry", XrmoptionSepArg, NULL},
{"-font", "*.fontList", XrmoptionSepArg, NULL},
{"-fn", "*.fontList", XrmoptionSepArg, NULL},
{"-title", ".title", XrmoptionSepArg, NULL},
@@ -69,7 +69,7 @@ static XrmOptionDescRec xOpts[] = {
#define nXOpts (sizeof(xOpts) / sizeof(XrmOptionDescRec))
struct XPDFAppResources {
- String geometry;
+ String tqgeometry;
String title;
Bool installCmap;
int rgbCubeSize;
@@ -85,7 +85,7 @@ static Bool defReverseVideo = False;
static Bool defViKeys = False;
static XtResource xResources[] = {
- { "geometry", "Geometry", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, geometry), XtRString, (XtPointer)NULL },
+ { "geometry", "Geometry", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, tqgeometry), XtRString, (XtPointer)NULL },
{ "title", "Title", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, title), XtRString, (XtPointer)NULL },
{ "installCmap", "InstallCmap", XtRBool, sizeof(Bool), XtOffsetOf(XPDFAppResources, installCmap), XtRBool, (XtPointer)&defInstallCmap },
{ "rgbCubeSize", "RgbCubeSize", XtRInt, sizeof(int), XtOffsetOf(XPDFAppResources, rgbCubeSize), XtRInt, (XtPointer)&defRGBCubeSize },
@@ -156,7 +156,7 @@ void XPDFApp::getResources() {
XtGetApplicationResources(appShell, &resources, xResources, nXResources,
NULL, 0);
- geometry = resources.geometry ? new GString(resources.geometry)
+ tqgeometry = resources.tqgeometry ? new GString(resources.tqgeometry)
: (GString *)NULL;
title = resources.title ? new GString(resources.title) : (GString *)NULL;
installCmap = (GBool)resources.installCmap;
@@ -180,8 +180,8 @@ void XPDFApp::getResources() {
XPDFApp::~XPDFApp() {
deleteGList(viewers, XPDFViewer);
- if (geometry) {
- delete geometry;
+ if (tqgeometry) {
+ delete tqgeometry;
}
if (title) {
delete title;
diff --git a/filters/kword/pdf/xpdf/xpdf/XPDFApp.h b/filters/kword/pdf/xpdf/xpdf/XPDFApp.h
index 4875456e..46aa28dc 100644
--- a/filters/kword/pdf/xpdf/xpdf/XPDFApp.h
+++ b/filters/kword/pdf/xpdf/xpdf/XPDFApp.h
@@ -58,7 +58,7 @@ public:
void remoteQuit();
//----- resource/option values
- GString *getGeometry() { return geometry; }
+ GString *getGeometry() { return tqgeometry; }
GString *getTitle() { return title; }
GBool getInstallCmap() { return installCmap; }
int getRGBCubeSize() { return rgbCubeSize; }
@@ -90,7 +90,7 @@ private:
Widget remoteWin;
//----- resource/option values
- GString *geometry;
+ GString *tqgeometry;
GString *title;
GBool installCmap;
int rgbCubeSize;
diff --git a/filters/kword/pdf/xpdf/xpdf/XPDFTree.cc b/filters/kword/pdf/xpdf/xpdf/XPDFTree.cc
index 8f5baeb5..290861b9 100644
--- a/filters/kword/pdf/xpdf/xpdf/XPDFTree.cc
+++ b/filters/kword/pdf/xpdf/xpdf/XPDFTree.cc
@@ -16,7 +16,7 @@
struct _XPDFTreeEntry {
Widget widget;
- XPDFTreeEntry *children;
+ XPDFTreeEntry *tqchildren;
XPDFTreeEntry *next;
};
@@ -56,7 +56,7 @@ static void insertChildOnList(XPDFTreeEntry *e, XPDFTreeEntry **listHead);
static void deleteChildFromList(XPDFTreeEntry *e, XPDFTreeEntry **listHead);
static void createGC(Widget widget);
static void destroyGC(Widget widget);
-static void layout(Widget widget, Widget instigator);
+static void tqlayout(Widget widget, Widget instigator);
static int layoutSubtree(XPDFTreeWidget w, Widget instigator,
XPDFTreeEntry *e, Position x, Position y,
Boolean visible);
@@ -66,7 +66,7 @@ static void calcSize(Widget widget, Widget instigator,
static void calcSubtreeSize(XPDFTreeWidget w, Widget instigator,
XPDFTreeEntry *e,
Dimension *width, Dimension *height);
-static Boolean needRelayout(Widget oldWidget, Widget newWidget);
+static Boolean needRetqlayout(Widget oldWidget, Widget newWidget);
static void click(Widget widget, XEvent *event,
String *params, Cardinal *numParams);
static Boolean findPosition(XPDFTreeWidget w, int x, int y,
@@ -158,7 +158,7 @@ externaldef(xpdftreeclassrec) XPDFTreeClassRec xpdfTreeClassRec = {
XtVersion, // version
NULL, // callback_private
defaultTranslations, // tm_table
- &queryGeometry, // query_geometry
+ &queryGeometry, // query_tqgeometry
NULL, // display_accelerator
NULL // extension
},
@@ -195,9 +195,9 @@ externaldef(xpdftreeclassrec) XPDFTreeClassRec xpdfTreeClassRec = {
{ // XPDFTree
&createGC, // createGC
&destroyGC, // destroyGC
- &layout, // layout
+ &tqlayout, // tqlayout
&calcSize, // calcSize
- &needRelayout, // needRelayout
+ &needRetqlayout, // needRetqlayout
NULL // extension
}
};
@@ -218,14 +218,14 @@ static void classPartInitialize(WidgetClass widgetCls) {
if (wc->treeClass.destroyGC == XPDFInheritDestroyGC) {
wc->treeClass.destroyGC = sc->treeClass.destroyGC;
}
- if (wc->treeClass.layout == XPDFInheritLayout) {
- wc->treeClass.layout = sc->treeClass.layout;
+ if (wc->treeClass.tqlayout == XPDFInheritLayout) {
+ wc->treeClass.tqlayout = sc->treeClass.tqlayout;
}
if (wc->treeClass.calcSize == XPDFInheritCalcSize) {
wc->treeClass.calcSize = sc->treeClass.calcSize;
}
- if (wc->treeClass.needRelayout == XPDFInheritNeedRelayout) {
- wc->treeClass.needRelayout = sc->treeClass.needRelayout;
+ if (wc->treeClass.needRetqlayout == XPDFInheritNeedRetqlayout) {
+ wc->treeClass.needRetqlayout = sc->treeClass.needRetqlayout;
}
}
@@ -259,8 +259,8 @@ static void destroy(Widget widget) {
}
static void destroySubtree(XPDFTreeEntry *e) {
- if (e->children) {
- destroySubtree(e->children);
+ if (e->tqchildren) {
+ destroySubtree(e->tqchildren);
}
if (e->next) {
destroySubtree(e->next);
@@ -270,10 +270,10 @@ static void destroySubtree(XPDFTreeEntry *e) {
static void resize(Widget widget) {
XPDFTreeWidgetClass cls = (XPDFTreeWidgetClass)XtClass(widget);
- if (cls->treeClass.layout) {
- (*cls->treeClass.layout)(widget, NULL);
+ if (cls->treeClass.tqlayout) {
+ (*cls->treeClass.tqlayout)(widget, NULL);
} else {
- layout(widget, NULL);
+ tqlayout(widget, NULL);
}
}
@@ -301,11 +301,11 @@ static void redisplaySubtree(XPDFTreeWidget w, XPDFTreeEntry *e,
c = XPDFTreeCPart(e->widget);
x = e->widget->core.x;
y = e->widget->core.y + e->widget->core.height / 2;
- if (e->children) {
+ if (e->tqchildren) {
if (c->entryExpanded) {
drawExpandedIcon(w, x - 8, y);
y2 = y; // make gcc happy
- for (child = e->children; child; child = child->next) {
+ for (child = e->tqchildren; child; child = child->next) {
y2 = child->widget->core.y + child->widget->core.height / 2;
XDrawLine(XtDisplay((Widget)w), XtWindow((Widget)w), w->tree.dottedGC,
x - 8, y2, x + 6, y2);
@@ -346,16 +346,16 @@ static Boolean setValues(Widget oldWidget, Widget requestWidget,
XPDFTreeWidget ow = (XPDFTreeWidget)oldWidget;
XPDFTreeWidget nw = (XPDFTreeWidget)newWidget;
XPDFTreeWidgetClass cls = (XPDFTreeWidgetClass)XtClass(nw);
- Boolean relayout, redisp;
+ Boolean retqlayout, redisp;
- // check to see if layout-affecting resources have changed
- if (cls->treeClass.needRelayout) {
- relayout = (*cls->treeClass.needRelayout)((Widget)ow, (Widget)nw);
+ // check to see if tqlayout-affecting resources have changed
+ if (cls->treeClass.needRetqlayout) {
+ retqlayout = (*cls->treeClass.needRetqlayout)((Widget)ow, (Widget)nw);
} else {
- relayout = needRelayout((Widget)ow, (Widget)nw);
+ retqlayout = needRetqlayout((Widget)ow, (Widget)nw);
}
redisp = False;
- if (relayout) {
+ if (retqlayout) {
// calculate a new ideal size (reset the widget size first so
// calcSize will compute a new one)
@@ -372,14 +372,14 @@ static Boolean setValues(Widget oldWidget, Widget requestWidget,
calcSize((Widget)nw, NULL, &nw->core.width, &nw->core.height);
}
- // if resources have changed but size hasn't, layout manually
+ // if resources have changed but size hasn't, tqlayout manually
// (because Xt just looks at the size)
if (nw->core.width == ow->core.width &&
nw->core.height == ow->core.height) {
- if (cls->treeClass.layout) {
- (*cls->treeClass.layout)((Widget)nw, NULL);
+ if (cls->treeClass.tqlayout) {
+ (*cls->treeClass.tqlayout)((Widget)nw, NULL);
} else {
- layout((Widget)nw, NULL);
+ tqlayout((Widget)nw, NULL);
}
redisp = True;
}
@@ -393,13 +393,13 @@ static void setValuesAlmost(Widget oldWidget, Widget newWidget,
XtWidgetGeometry *reply) {
XPDFTreeWidgetClass cls = (XPDFTreeWidgetClass)XtClass(newWidget);
- // our parent rejected a geometry request, so accept the compromise
- // and relayout
+ // our parent rejected a tqgeometry request, so accept the compromise
+ // and retqlayout
if (!reply->request_mode) {
- if (cls->treeClass.layout) {
- (*cls->treeClass.layout)(newWidget, NULL);
+ if (cls->treeClass.tqlayout) {
+ (*cls->treeClass.tqlayout)(newWidget, NULL);
} else {
- layout(newWidget, NULL);
+ tqlayout(newWidget, NULL);
}
}
*request = *reply;
@@ -454,7 +454,7 @@ static XtGeometryResult geometryManager(Widget widget,
return XtGeometryNo;
}
- // save the current geometry
+ // save the current tqgeometry
curWidth = w->core.width;
curHeight = w->core.height;
curBW = w->core.border_width;
@@ -480,7 +480,7 @@ static XtGeometryResult geometryManager(Widget widget,
calcSize((Widget)w, widget, &parentReq.width, &reply->height);
}
- // send geometry request to our parent
+ // send tqgeometry request to our parent
parentReq.request_mode = CWWidth | CWHeight;
if (request->request_mode & XtCWQueryOnly) {
parentReq.request_mode |= XtCWQueryOnly;
@@ -491,15 +491,15 @@ static XtGeometryResult geometryManager(Widget widget,
}
if (result == XtGeometryNo || (request->request_mode & XtCWQueryOnly)) {
- // restore the original geometry
+ // restore the original tqgeometry
w->core.width = curWidth;
w->core.height = curHeight;
w->core.border_width = curBW;
} else {
- if (cls->treeClass.layout) {
- (*cls->treeClass.layout)((Widget)w, widget);
+ if (cls->treeClass.tqlayout) {
+ (*cls->treeClass.tqlayout)((Widget)w, widget);
} else {
- layout((Widget)w, widget);
+ tqlayout((Widget)w, widget);
}
}
@@ -529,11 +529,11 @@ static void changeManaged(Widget widget) {
while (XtMakeResizeRequest(widget, width, height, &width, &height)
== XtGeometryAlmost) ;
- // relayout
- if (cls->treeClass.layout) {
- (*cls->treeClass.layout)(widget, NULL);
+ // retqlayout
+ if (cls->treeClass.tqlayout) {
+ (*cls->treeClass.tqlayout)(widget, NULL);
} else {
- layout(widget, NULL);
+ tqlayout(widget, NULL);
}
#if XmVERSION > 1
@@ -552,10 +552,10 @@ static void initConstraint(Widget requestWidget, Widget newWidget,
c = XPDFTreeCPart(newWidget);
c->e = (XPDFTreeEntry *)gmalloc(sizeof(XPDFTreeEntry));
c->e->widget = newWidget;
- c->e->children = NULL;
+ c->e->tqchildren = NULL;
c->e->next = NULL;
if (c->entryParent) {
- insertChildOnList(c->e, &XPDFTreeCPart(c->entryParent)->e->children);
+ insertChildOnList(c->e, &XPDFTreeCPart(c->entryParent)->e->tqchildren);
} else {
insertChildOnList(c->e, &w->tree.root);
}
@@ -573,11 +573,11 @@ static void deleteSubtree(Widget widget) {
if (!c->e) {
return;
}
- while (c->e->children) {
- deleteSubtree(c->e->children->widget);
+ while (c->e->tqchildren) {
+ deleteSubtree(c->e->tqchildren->widget);
}
if (c->entryParent) {
- deleteChildFromList(c->e, &XPDFTreeCPart(c->entryParent)->e->children);
+ deleteChildFromList(c->e, &XPDFTreeCPart(c->entryParent)->e->tqchildren);
} else {
deleteChildFromList(c->e, &w->tree.root);
}
@@ -591,7 +591,7 @@ static Boolean constraintSetValues(Widget oldWidget, Widget requestWidget,
XPDFTreeWidget w = (XPDFTreeWidget)XtParent(newWidget);
XPDFTreeWidgetClass cls = (XPDFTreeWidgetClass)XtClass((Widget)w);
XPDFTreeConstraint oc, nc;
- Boolean relayout;
+ Boolean retqlayout;
Dimension width, height;
if (!XtIsManaged(newWidget)) {
@@ -599,25 +599,25 @@ static Boolean constraintSetValues(Widget oldWidget, Widget requestWidget,
}
oc = XPDFTreeCPart(oldWidget);
nc = XPDFTreeCPart(newWidget);
- relayout = False;
+ retqlayout = False;
if (nc->entryParent != oc->entryParent ||
nc->entryPosition != oc->entryPosition) {
if (oc->entryParent) {
- deleteChildFromList(oc->e, &XPDFTreeCPart(oc->entryParent)->e->children);
+ deleteChildFromList(oc->e, &XPDFTreeCPart(oc->entryParent)->e->tqchildren);
} else {
deleteChildFromList(oc->e, &w->tree.root);
}
if (nc->entryParent) {
- insertChildOnList(nc->e, &XPDFTreeCPart(nc->entryParent)->e->children);
+ insertChildOnList(nc->e, &XPDFTreeCPart(nc->entryParent)->e->tqchildren);
} else {
insertChildOnList(nc->e, &w->tree.root);
}
- relayout = True;
+ retqlayout = True;
} else if (nc->entryExpanded != oc->entryExpanded) {
- relayout = True;
+ retqlayout = True;
}
- if (relayout) {
+ if (retqlayout) {
// calculate a new ideal size (reset the widget size first so
// calcSize will compute a new one)
@@ -634,15 +634,15 @@ static Boolean constraintSetValues(Widget oldWidget, Widget requestWidget,
while (XtMakeResizeRequest((Widget)w, width, height, &width, &height)
== XtGeometryAlmost) ;
- // relayout the widget
- if (cls->treeClass.layout) {
- (*cls->treeClass.layout)((Widget)w, NULL);
+ // retqlayout the widget
+ if (cls->treeClass.tqlayout) {
+ (*cls->treeClass.tqlayout)((Widget)w, NULL);
} else {
- layout((Widget)w, NULL);
+ tqlayout((Widget)w, NULL);
}
}
- return relayout;
+ return retqlayout;
}
static void insertChildOnList(XPDFTreeEntry *e, XPDFTreeEntry **listHead) {
@@ -701,7 +701,7 @@ static void destroyGC(Widget widget) {
XtReleaseGC(widget, w->tree.dottedGC);
}
-static void layout(Widget widget, Widget instigator) {
+static void tqlayout(Widget widget, Widget instigator) {
XPDFTreeWidget w = (XPDFTreeWidget)widget;
XPDFTreeEntry *e;
Position x, y;
@@ -745,9 +745,9 @@ static int layoutSubtree(XPDFTreeWidget w, Widget instigator,
}
}
- // place this entry's children
+ // place this entry's tqchildren
x += xpdfTreeIndent;
- for (child = e->children; child; child = child->next) {
+ for (child = e->tqchildren; child; child = child->next) {
y = layoutSubtree(w, instigator, child, x, y,
visible && (!c || c->entryExpanded));
}
@@ -820,9 +820,9 @@ static void calcSubtreeSize(XPDFTreeWidget w, Widget instigator,
h1 = 0;
}
- // if this entry is expanded, get size of all of its children
+ // if this entry is expanded, get size of all of its tqchildren
if (c->entryExpanded) {
- for (child = e->children; child; child = child->next) {
+ for (child = e->tqchildren; child; child = child->next) {
calcSubtreeSize(w, instigator, child, &w2, &h2);
w2 += xpdfTreeIndent;
if (w2 > w1) {
@@ -836,7 +836,7 @@ static void calcSubtreeSize(XPDFTreeWidget w, Widget instigator,
*height = h1;
}
-static Boolean needRelayout(Widget oldWidget, Widget newWidget) {
+static Boolean needRetqlayout(Widget oldWidget, Widget newWidget) {
XPDFTreeWidget ow = (XPDFTreeWidget)oldWidget;
XPDFTreeWidget nw = (XPDFTreeWidget)newWidget;
@@ -907,13 +907,13 @@ static Boolean findPositionInSubtree(XPDFTreeWidget w, int x, int y,
return True;
} else if (x >= child->core.x - 16 && x < child->core.x - 4 &&
y >= y1 - 6 && y < y1 + 6 &&
- (*e)->children) {
+ (*e)->tqchildren) {
*onExpandIcon = True;
return True;
}
c = XPDFTreeCPart(child);
if (!c || c->entryExpanded) {
- for (e2 = (*e)->children; e2; e2 = e2->next) {
+ for (e2 = (*e)->tqchildren; e2; e2 = e2->next) {
*e = e2;
if (findPositionInSubtree(w, x, y, e, onExpandIcon)) {
return True;
diff --git a/filters/kword/pdf/xpdf/xpdf/XPDFTreeP.h b/filters/kword/pdf/xpdf/xpdf/XPDFTreeP.h
index 16ab137a..9f31f9e2 100644
--- a/filters/kword/pdf/xpdf/xpdf/XPDFTreeP.h
+++ b/filters/kword/pdf/xpdf/xpdf/XPDFTreeP.h
@@ -22,14 +22,14 @@ typedef Boolean (*XPDFNeedRelayoutProc)(Widget oldWidget, Widget newWidget);
#define XPDFInheritDestroyGC ((XtWidgetProc)_XtInherit)
#define XPDFInheritLayout ((XPDFLayoutProc)_XtInherit)
#define XPDFInheritCalcSize ((XPDFCalcSizeProc)_XtInherit)
-#define XPDFInheritNeedRelayout ((XPDFNeedRelayoutProc)_XtInherit)
+#define XPDFInheritNeedRetqlayout ((XPDFNeedRelayoutProc)_XtInherit)
typedef struct {
XtWidgetProc createGC;
XtWidgetProc destroyGC;
- XPDFLayoutProc layout;
+ XPDFLayoutProc tqlayout;
XPDFCalcSizeProc calcSize;
- XPDFNeedRelayoutProc needRelayout;
+ XPDFNeedRelayoutProc needRetqlayout;
XtPointer extension;
} XPDFTreeClassPart;
diff --git a/filters/kword/pdf/xpdf/xpdf/XPDFViewer.cc b/filters/kword/pdf/xpdf/xpdf/XPDFViewer.cc
index a8c8f8f0..de691914 100644
--- a/filters/kword/pdf/xpdf/xpdf/XPDFViewer.cc
+++ b/filters/kword/pdf/xpdf/xpdf/XPDFViewer.cc
@@ -501,9 +501,9 @@ void XPDFViewer::initWindow() {
XtSetArg(args[n], XmNdeleteResponse, XmDO_NOTHING); ++n;
if (app->getFullScreen()) {
XtSetArg(args[n], XmNmwmDecorations, 0); ++n;
- XtSetArg(args[n], XmNgeometry, "+0+0"); ++n;
+ XtSetArg(args[n], XmNtqgeometry, "+0+0"); ++n;
} else if (app->getGeometry()) {
- XtSetArg(args[n], XmNgeometry, app->getGeometry()->getCString()); ++n;
+ XtSetArg(args[n], XmNtqgeometry, app->getGeometry()->getCString()); ++n;
}
win = XtCreatePopupShell("win", topLevelShellWidgetClass,
app->getAppShell(), args, n);
@@ -633,7 +633,7 @@ void XPDFViewer::initWindow() {
XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM); ++n;
s = XmStringCreateLocalized(" of 00000");
XtSetArg(args[n], XmNlabelString, s); ++n;
- XtSetArg(args[n], XmNalignment, XmALIGNMENT_BEGINNING); ++n;
+ XtSetArg(args[n], XmNtqalignment, XmALIGNMENT_BEGINNING); ++n;
XtSetArg(args[n], XmNrecomputeSize, False); ++n;
pageCountLabel = XmCreateLabel(toolBar, "pageCountLabel", args, n);
XmStringFree(s);
@@ -751,7 +751,7 @@ void XPDFViewer::initWindow() {
s = XmStringCreateLocalized("");
XtSetArg(args[n], XmNlabelString, s); ++n;
XtSetArg(args[n], XmNrecomputeSize, True); ++n;
- XtSetArg(args[n], XmNalignment, XmALIGNMENT_BEGINNING); ++n;
+ XtSetArg(args[n], XmNtqalignment, XmALIGNMENT_BEGINNING); ++n;
linkLabel = XmCreateLabel(toolBar, "linkLabel", args, n);
XmStringFree(s);
XtManageChild(linkLabel);
diff --git a/filters/kword/pdf/xpdf/xpdf/xpdf.cc b/filters/kword/pdf/xpdf/xpdf/xpdf.cc
index ef47fb6e..d4103df2 100644
--- a/filters/kword/pdf/xpdf/xpdf/xpdf.cc
+++ b/filters/kword/pdf/xpdf/xpdf/xpdf.cc
@@ -44,9 +44,9 @@ static GBool printHelp = gFalse;
static ArgDesc argDesc[] = {
{"-g", argStringDummy, NULL, 0,
- "initial window geometry"},
- {"-geometry", argStringDummy, NULL, 0,
- "initial window geometry"},
+ "initial window tqgeometry"},
+ {"-tqgeometry", argStringDummy, NULL, 0,
+ "initial window tqgeometry"},
{"-title", argStringDummy, NULL, 0,
"window title"},
{"-cmap", argFlagDummy, NULL, 0,
diff --git a/filters/kword/rtf/export/ExportFilter.cc b/filters/kword/rtf/export/ExportFilter.cc
index 8d160b57..2fa566fa 100644
--- a/filters/kword/rtf/export/ExportFilter.cc
+++ b/filters/kword/rtf/export/ExportFilter.cc
@@ -21,7 +21,7 @@
*/
#include <tqstring.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
#include <tqfontinfo.h>
@@ -174,7 +174,7 @@ TQString RTFWorker::makeTable(const FrameAnchor& anchor)
for (it=paraList->begin();it!=end;++it)
{
rowText += endOfParagraph;
- rowText += ProcessParagraphData( (*it).text,(*it).layout,(*it).formattingList);
+ rowText += ProcessParagraphData( (*it).text,(*it).tqlayout,(*it).formattingList);
rowText += m_eol;
endOfParagraph = "\\par"; // The problem is that the last paragraph ends with \cell not with \par
}
@@ -264,7 +264,7 @@ TQString RTFWorker::makeImage(const FrameAnchor& anchor)
// throw away WMF metaheader (22 bytes)
for( uint i=0; i<image.size()-22; i++)
- image.at(i) = image.at(i+22); // As we use uint, we need at() ( [] uses int only .)
+ image.tqat(i) = image.tqat(i+22); // As we use uint, we need at() ( [] uses int only .)
image.resize( image.size()-22 );
}
}
@@ -362,7 +362,7 @@ TQString RTFWorker::formatTextParagraph(const TQString& strText,
}
TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
- const LayoutData& layout, const ValueListFormatData &paraFormatDataList)
+ const LayoutData& tqlayout, const ValueListFormatData &paraFormatDataList)
{
TQString str;
TQString content;
@@ -374,40 +374,40 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
markup += "\\intbl";
//lists
- if (layout.counter.style)
+ if (tqlayout.counter.style)
{
markup += "{\\pntext\\pard\\plain";
- if( layout.formatData.text.fontSize >= 0)
+ if( tqlayout.formatData.text.fontSize >= 0)
{
markup += "\\fs";
- markup += TQString::number((2 * layout.formatData.text.fontSize));
- markup += lookupFont("\\f",layout.formatData.text.fontName);
+ markup += TQString::number((2 * tqlayout.formatData.text.fontSize));
+ markup += lookupFont("\\f",tqlayout.formatData.text.fontName);
}
markup += " ";
- markup += layout.counter.text;
+ markup += tqlayout.counter.text;
markup += "\\tab}{\\*\\pn";
- if (layout.counter.style > 5)
+ if (tqlayout.counter.style > 5)
{
markup += "\\pnlvlblt ";
markup += "{\\pntxtb ";
- if (!layout.counter.lefttext.isEmpty() && layout.counter.lefttext != "{" && layout.counter.lefttext != "}")
+ if (!tqlayout.counter.lefttext.isEmpty() && tqlayout.counter.lefttext != "{" && tqlayout.counter.lefttext != "}")
{
- markup += layout.counter.lefttext;
+ markup += tqlayout.counter.lefttext;
}
- switch (layout.counter.style)
+ switch (tqlayout.counter.style)
{
case 6:
{
//custom bullets (one char)
//TODO: use correct character/sign for bullet
- markup += layout.counter.customCharacter;
+ markup += tqlayout.counter.customCharacter;
break;
}
case 7:
{
//custom bullets (complex)
- markup += layout.counter.text;
+ markup += tqlayout.counter.text;
break;
}
case 8:
@@ -435,7 +435,7 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
{
//disc bullets
//TODO: use correct character/sign for bullet
- markup += layout.counter.text;
+ markup += tqlayout.counter.text;
break;
}
default:
@@ -445,23 +445,23 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
}
else
{
- if (layout.counter.numbering!=0)
+ if (tqlayout.counter.numbering!=0)
{
markup += "\\pnlvl";
- markup += TQString::number(layout.counter.depth + 1);
+ markup += TQString::number(tqlayout.counter.depth + 1);
markup += "\\pnprev1";
}
- else if (layout.counter.style==1)
+ else if (tqlayout.counter.style==1)
{
markup += "\\pnlvlbody";
}
else
{
markup += "\\pnlvl";
- markup += TQString::number(11 - layout.counter.style);
+ markup += TQString::number(11 - tqlayout.counter.style);
}
- switch (layout.counter.style)
+ switch (tqlayout.counter.style)
{
case 1:
{
@@ -492,18 +492,18 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
markup += "\\pndec";
}
markup += "{\\pntxtb ";
- markup += layout.counter.lefttext;
+ markup += tqlayout.counter.lefttext;
markup += " }";
}
markup += "{\\pntxta ";
- markup += layout.counter.righttext;
+ markup += tqlayout.counter.righttext;
markup += " }";
// ### FIXME: that is too late! And why at every list paragraph? (See bug #88241)
- if (layout.counter.start!=0)
+ if (tqlayout.counter.start!=0)
{
markup += "\\pnstart";
- markup += TQString::number(layout.counter.start);
+ markup += TQString::number(tqlayout.counter.start);
}
else
{
@@ -511,15 +511,15 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
}
markup += "\\pnindent0\\pnhang";
- if( layout.formatData.text.fontSize > 0 )
+ if( tqlayout.formatData.text.fontSize > 0 )
{
markup += "\\pnfs";
- markup += TQString::number((2 * layout.formatData.text.fontSize));
+ markup += TQString::number((2 * tqlayout.formatData.text.fontSize));
}
- if( !layout.formatData.text.fontName.isEmpty() )
+ if( !tqlayout.formatData.text.fontName.isEmpty() )
{
- markup += lookupFont("\\pnf", layout.formatData.text.fontName);
+ markup += lookupFont("\\pnf", tqlayout.formatData.text.fontName);
}
markup += "}";
@@ -527,20 +527,20 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
LayoutData styleLayout;
- markup += lookupStyle(layout.styleName, styleLayout);
- markup += layoutToRtf(styleLayout,layout,true);
+ markup += lookupStyle(tqlayout.styleName, styleLayout);
+ markup += layoutToRtf(styleLayout,tqlayout,true);
- if ( 1==layout.formatData.text.verticalAlignment )
+ if ( 1==tqlayout.formatData.text.verticalAlignment )
{
markup += "\\sub"; //Subscript
}
- else if ( 2==layout.formatData.text.verticalAlignment )
+ else if ( 2==tqlayout.formatData.text.verticalAlignment )
{
markup += "\\super"; //Superscript
}
- if (layout.pageBreakBefore)
+ if (tqlayout.pageBreakBefore)
content += "\\page ";
@@ -554,7 +554,7 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
TQString partialText;
- FormatData formatRef = layout.formatData;
+ FormatData formatRef = tqlayout.formatData;
for ( paraFormatDataIt = paraFormatDataList.begin ();
paraFormatDataIt != paraFormatDataList.end ();
@@ -728,7 +728,7 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
const TQString prefixSaved = m_prefix;
m_prefix = TQString();
for (it=paraList->begin();it!=end;++it)
- fstr += ProcessParagraphData( (*it).text, (*it).layout,(*it).formattingList);
+ fstr += ProcessParagraphData( (*it).text, (*it).tqlayout,(*it).formattingList);
m_prefix = prefixSaved;
content += "{\\super ";
content += automatic ? "\\chftn " : value;
@@ -779,7 +779,7 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
}
}
- if (layout.pageBreakAfter)
+ if (tqlayout.pageBreakAfter)
content += "\\page";
if (!content.isEmpty())
@@ -807,10 +807,10 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
}
bool RTFWorker::doFullParagraph(const TQString& paraText,
- const LayoutData& layout, const ValueListFormatData& paraFormatDataList)
+ const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList)
{
kdDebug(30515) << "Entering RTFWorker::doFullParagraph" << endl << paraText << endl;
- TQString par = ProcessParagraphData( paraText, layout, paraFormatDataList);
+ TQString par = ProcessParagraphData( paraText, tqlayout, paraFormatDataList);
m_textBody += par;
kdDebug(30515) << "Quiting RTFWorker::doFullParagraph" << endl;
return true;
@@ -836,7 +836,7 @@ bool RTFWorker::doHeader(const HeaderData& header)
TQValueList<ParaData>::ConstIterator it;
TQValueList<ParaData>::ConstIterator end(header.para.end());
for (it=header.para.begin();it!=end;++it)
- content += ProcessParagraphData( (*it).text,(*it).layout,(*it).formattingList);
+ content += ProcessParagraphData( (*it).text,(*it).tqlayout,(*it).formattingList);
if (content!="\\par\\pard\\plain")
{
@@ -871,7 +871,7 @@ bool RTFWorker::doFooter(const FooterData& footer)
TQValueList<ParaData>::ConstIterator it;
TQValueList<ParaData>::ConstIterator end(footer.para.end());
for (it=footer.para.begin();it!=end;++it)
- content += ProcessParagraphData( (*it).text,(*it).layout,(*it).formattingList);
+ content += ProcessParagraphData( (*it).text,(*it).tqlayout,(*it).formattingList);
if (content!="\\par\\pard\\plain")
{
@@ -967,10 +967,10 @@ void RTFWorker::writeFontData(void)
}
#else
else
- // TQFontInfo:styleHint() does not guess anything, it just returns what is in the TQFont. Nothing put in, nothing gets out.
+ // TQFontInfo:tqstyleHint() does not guess anything, it just returns what is in the TQFont. Nothing put in, nothing gets out.
{
TQFontInfo info(*it);
- switch (info.styleHint())
+ switch (info.tqstyleHint())
{
case TQFont::SansSerif:
default:
@@ -1182,7 +1182,7 @@ TQString RTFWorker::closeSpan(const FormatData& , const FormatData& )
return result;
}
-// The following function encodes the kword unicode characters into
+// The following function encodes the kword tqunicode characters into
// RTF seven bit ASCII. This affects any 8 bit characters.
// They are encoded either with \' or with \u
TQString RTFWorker::escapeRtfText ( const TQString& text ) const
@@ -1192,8 +1192,8 @@ TQString RTFWorker::escapeRtfText ( const TQString& text ) const
const uint length = text.length();
for ( uint i = 0; i < length; i++ )
{
- TQChar TQCh ( text.at( i ) ); // get out one unicode char from the string
- const ushort ch = TQCh.unicode(); // take unicode value of the char
+ TQChar TQCh ( text.at( i ) ); // get out one tqunicode char from the string
+ const ushort ch = TQCh.tqunicode(); // take tqunicode value of the char
if ( TQCh == '\\' ) escapedText += "\\\\"; // back-slash
else if ( TQCh == '{' ) escapedText += "\\{";
@@ -1226,7 +1226,7 @@ TQString RTFWorker::escapeRtfText ( const TQString& text ) const
}
else if ( ch >= 256) // check for a higher code non-ASCII character
{
- // encode this as decimal unicode with a replacement character.
+ // encode this as decimal tqunicode with a replacement character.
escapedText += "\\u";
escapedText += TQString::number ( ch, 10 );
// We decompose the character. If it works, the first character is whitout any accent.
@@ -1270,15 +1270,15 @@ bool RTFWorker::doFullPaperBorders (const double top, const double left,
return true;
}
-bool RTFWorker::doFullDefineStyle(LayoutData& layout)
+bool RTFWorker::doFullDefineStyle(LayoutData& tqlayout)
{
//Register the new style in the style list
- m_styleList << layout;
+ m_styleList << tqlayout;
// Now we must register a few things (with help of the lookup methods.)
- lookupFont("\\f", layout.formatData.text.fontName);
- lookupColor(TQString(), layout.formatData.text.fgColor);
- lookupColor(TQString(), layout.formatData.text.bgColor);
+ lookupFont("\\f", tqlayout.formatData.text.fontName);
+ lookupColor(TQString(), tqlayout.formatData.text.fgColor);
+ lookupColor(TQString(), tqlayout.formatData.text.bgColor);
return true;
}
@@ -1459,121 +1459,121 @@ TQString RTFWorker::textFormatToRtf(const TextFormatting& formatOrigin,
}
TQString RTFWorker::layoutToRtf(const LayoutData& layoutOrigin,
- const LayoutData& layout, const bool force)
+ const LayoutData& tqlayout, const bool force)
{
TQString strLayout;
- if (force || (layoutOrigin.alignment!=layout.alignment))
+ if (force || (layoutOrigin.tqalignment!=tqlayout.tqalignment))
{
- if (layout.alignment=="left")
+ if (tqlayout.tqalignment=="left")
strLayout += "\\ql";
- else if (layout.alignment== "right")
+ else if (tqlayout.tqalignment== "right")
strLayout += "\\qr";
- else if (layout.alignment=="center")
+ else if (tqlayout.tqalignment=="center")
strLayout += "\\qc";
- else if (layout.alignment=="justify")
+ else if (tqlayout.tqalignment=="justify")
strLayout += "\\qj";
- else if ( layout.alignment=="auto")
+ else if ( tqlayout.tqalignment=="auto")
{
// ### TODO: what for BIDI?
//strLayout += "\\ql";
}
else
{
- kdWarning(30515) << "Unknown alignment: " << layout.alignment << endl;
+ kdWarning(30515) << "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 += "\\li";
- strLayout += TQString::number(int(layout.indentLeft)*20, 10);
+ strLayout += TQString::number(int(tqlayout.indentLeft)*20, 10);
}
- if ((layout.indentRight>=0.0)
- && (force || (layoutOrigin.indentRight!=layout.indentRight)))
+ if ((tqlayout.indentRight>=0.0)
+ && (force || (layoutOrigin.indentRight!=tqlayout.indentRight)))
{
strLayout += "\\ri";
- strLayout += TQString::number(int(layout.indentRight)*20, 10);
+ strLayout += TQString::number(int(tqlayout.indentRight)*20, 10);
}
- if (force || (layoutOrigin.indentFirst!=layout.indentFirst))
+ if (force || (layoutOrigin.indentFirst!=tqlayout.indentFirst))
{
strLayout += "\\fi";
- strLayout += TQString::number(int(layout.indentFirst)*20, 10);
+ strLayout += TQString::number(int(tqlayout.indentFirst)*20, 10);
}
- if ((layout.marginBottom>=0.0)
- && (force || (layoutOrigin.marginBottom!=layout.marginBottom)))
+ if ((tqlayout.marginBottom>=0.0)
+ && (force || (layoutOrigin.marginBottom!=tqlayout.marginBottom)))
{
strLayout += "\\sa";
- strLayout += TQString::number(int(layout.marginBottom)*20 ,10);
+ strLayout += TQString::number(int(tqlayout.marginBottom)*20 ,10);
}
- if ((layout.marginTop>=0.0)
- && (force || (layoutOrigin.marginTop!=layout.marginTop)))
+ if ((tqlayout.marginTop>=0.0)
+ && (force || (layoutOrigin.marginTop!=tqlayout.marginTop)))
{
strLayout += "\\sb";
- strLayout += TQString::number(int(layout.marginTop)*20, 10);
+ strLayout += TQString::number(int(tqlayout.marginTop)*20, 10);
}
- if (force || (layoutOrigin.keepLinesTogether!=layout.keepLinesTogether))
+ if (force || (layoutOrigin.keepLinesTogether!=tqlayout.keepLinesTogether))
{
- if(layout.keepLinesTogether) strLayout += "\\keep";
+ if(tqlayout.keepLinesTogether) strLayout += "\\keep";
}
- // Note: there seems to be too many problems of using a page break in a layout
+ // Note: there seems to be too many problems of using a page break in a tqlayout
// - KWord's RTF import filter makes the page break immediately (also in styles)
// - AbiWord's RTF import does not like \*\pgbrk
// ### TODO: decide if we really remove this code
#if 0
- if (force || (layoutOrigin.pageBreakBefore!=layout.pageBreakBefore))
+ if (force || (layoutOrigin.pageBreakBefore!=tqlayout.pageBreakBefore))
{
- if(layout.pageBreakBefore) strLayout += "\\pagebb";
+ if(tqlayout.pageBreakBefore) strLayout += "\\pagebb";
}
// Note: RTF doesn't specify "page break after"
// \*\pgbrk0 is used after OpenOffice.org Writer
- if (force || (layoutOrigin.pageBreakAfter!=layout.pageBreakAfter))
+ if (force || (layoutOrigin.pageBreakAfter!=tqlayout.pageBreakAfter))
{
- if(layout.pageBreakAfter) strLayout += "\\*\\pgbrk0";
+ if(tqlayout.pageBreakAfter) strLayout += "\\*\\pgbrk0";
}
#endif
if (force
- || ( layoutOrigin.lineSpacingType != layout.lineSpacingType )
- || ( layoutOrigin.lineSpacing != layout.lineSpacing ) )
+ || ( layoutOrigin.lineSpacingType != tqlayout.lineSpacingType )
+ || ( layoutOrigin.lineSpacing != tqlayout.lineSpacing ) )
{
- if ( layout.lineSpacingType==LayoutData::LS_SINGLE )
+ if ( tqlayout.lineSpacingType==LayoutData::LS_SINGLE )
;// do nothing, single linespace is default in RTF
- else if ( layout.lineSpacingType==LayoutData::LS_ONEANDHALF )
+ else if ( tqlayout.lineSpacingType==LayoutData::LS_ONEANDHALF )
strLayout += "\\sl360\\slmult1"; // one-and-half linespace
- else if ( layout.lineSpacingType==LayoutData::LS_DOUBLE )
+ else if ( tqlayout.lineSpacingType==LayoutData::LS_DOUBLE )
strLayout += "\\sl480\\slmult1"; // double linespace
- else if ( layout.lineSpacingType==LayoutData::LS_ATLEAST )
- strLayout += TQString("\\sl%1\\slmult0").arg(int(layout.lineSpacing)*20);
+ else if ( tqlayout.lineSpacingType==LayoutData::LS_ATLEAST )
+ strLayout += TQString("\\sl%1\\slmult0").tqarg(int(tqlayout.lineSpacing)*20);
- else if ( layout.lineSpacingType==LayoutData::LS_MULTIPLE )
- strLayout += TQString("\\sl%1\\slmult1").arg( int(layout.lineSpacing)*240 );
+ else if ( tqlayout.lineSpacingType==LayoutData::LS_MULTIPLE )
+ strLayout += TQString("\\sl%1\\slmult1").tqarg( int(tqlayout.lineSpacing)*240 );
- else if ( layout.lineSpacingType==LayoutData::LS_CUSTOM )
+ else if ( tqlayout.lineSpacingType==LayoutData::LS_CUSTOM )
// "Custom" in KWord is like "Exactly" in MS Word
- strLayout += TQString("\\sl-%1\\slmult0").arg(int(layout.lineSpacing)*20);
+ strLayout += TQString("\\sl-%1\\slmult0").tqarg(int(tqlayout.lineSpacing)*20);
else
- kdWarning(30515) << "Unsupported lineSpacingType: " << layout.lineSpacingType << " (Ignoring!)" << endl;
+ kdWarning(30515) << "Unsupported lineSpacingType: " << tqlayout.lineSpacingType << " (Ignoring!)" << endl;
}
- if (!layout.tabulatorList.isEmpty()
- && (force || (layoutOrigin.tabulatorList!=layout.tabulatorList) ))
+ if (!tqlayout.tabulatorList.isEmpty()
+ && (force || (layoutOrigin.tabulatorList!=tqlayout.tabulatorList) ))
{
TabulatorList::ConstIterator it;
- for (it=layout.tabulatorList.begin();it!=layout.tabulatorList.end();++it)
+ for (it=tqlayout.tabulatorList.begin();it!=tqlayout.tabulatorList.end();++it)
{
switch ((*it).m_type)
{
@@ -1606,7 +1606,7 @@ TQString RTFWorker::layoutToRtf(const LayoutData& layoutOrigin,
// shadow support
// note shadow in KWord is more full-feature/sophisticated than RTF
// here we just treat KWord's shadow as simple \shad mark-up
- if( layout.shadowDistance > 0 )
+ if( tqlayout.shadowDistance > 0 )
{
strLayout += "\\shad";
}
@@ -1615,7 +1615,7 @@ TQString RTFWorker::layoutToRtf(const LayoutData& layoutOrigin,
// This must remain last, as it adds a terminating space.
strLayout+=textFormatToRtf(layoutOrigin.formatData.text,
- layout.formatData.text,force);
+ tqlayout.formatData.text,force);
return strLayout;
}
@@ -1708,9 +1708,9 @@ TQString RTFWorker::lookupStyle(const TQString& styleName, LayoutData& returnLay
}
kdDebug(30515) << "New style: " << styleName << " count: " << counter << endl;
- LayoutData layout;
- m_styleList << layout;
- returnLayout=layout;
+ LayoutData tqlayout;
+ m_styleList << tqlayout;
+ returnLayout=tqlayout;
strMarkup += TQString::number(counter);
return strMarkup;
diff --git a/filters/kword/rtf/export/ExportFilter.h b/filters/kword/rtf/export/ExportFilter.h
index f5707680..88158efe 100644
--- a/filters/kword/rtf/export/ExportFilter.h
+++ b/filters/kword/rtf/export/ExportFilter.h
@@ -44,7 +44,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);
@@ -53,7 +53,7 @@ public:
const double width, const double height, const int orientation);
virtual bool doFullPaperBorders (const double top, const double left,
const double bottom, const double right);
- virtual bool doFullDefineStyle(LayoutData& layout);
+ virtual bool doFullDefineStyle(LayoutData& tqlayout);
virtual bool doHeader(const HeaderData& header);
virtual bool doFooter(const FooterData& footer);
virtual bool doVariableSettings(const VariableSettingsData& vs);
@@ -69,7 +69,7 @@ private:
*/
TQString escapeRtfText ( const TQString& text ) const;
TQString ProcessParagraphData ( const TQString &paraText,
- const LayoutData& layout, const ValueListFormatData &paraFormatDataList);
+ const LayoutData& tqlayout, const ValueListFormatData &paraFormatDataList);
TQString formatTextParagraph(const TQString& strText,
const FormatData& formatOrigin, const FormatData& format);
TQString makeTable(const FrameAnchor& anchor);
@@ -81,7 +81,7 @@ private:
TQString textFormatToRtf(const TextFormatting& formatOrigin,
const TextFormatting& formatData, const bool force);
TQString layoutToRtf(const LayoutData& layoutOrigin,
- const LayoutData& layout, const bool force);
+ const LayoutData& tqlayout, const bool force);
TQString lookupFont(const TQString& markup, const TQString& fontName);
TQString lookupColor(const TQString& markup, const TQColor& color);
TQString lookupStyle(const TQString& styleName, LayoutData& returnLayout);
diff --git a/filters/kword/rtf/export/rtfexport.cc b/filters/kword/rtf/export/rtfexport.cc
index 6f23530b..15ff976b 100644
--- a/filters/kword/rtf/export/rtfexport.cc
+++ b/filters/kword/rtf/export/rtfexport.cc
@@ -57,7 +57,7 @@ RTFExport::RTFExport(KoFilter *, const char *, const TQStringList &) :
KoFilter() {
}
-KoFilter::ConversionStatus RTFExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus RTFExport::convert( const TQCString& from, const TQCString& to )
{
if ((from != "application/x-kword") || (to != "text/rtf" && to != "application/msword" ))
{
@@ -77,7 +77,7 @@ KoFilter::ConversionStatus RTFExport::convert( const TQCString& from, const TQCS
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/rtf/export/rtfexport.h b/filters/kword/rtf/export/rtfexport.h
index f43f6a07..060139ed 100644
--- a/filters/kword/rtf/export/rtfexport.h
+++ b/filters/kword/rtf/export/rtfexport.h
@@ -22,7 +22,7 @@
#define RTFEXPORT_H
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -39,7 +39,7 @@ public:
RTFExport(KoFilter *parent, const char *name, const TQStringList &);
virtual ~RTFExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // RTFEXPORT_H
diff --git a/filters/kword/rtf/import/rtfimport.cpp b/filters/kword/rtf/import/rtfimport.cpp
index eb8c467d..94fad697 100644
--- a/filters/kword/rtf/import/rtfimport.cpp
+++ b/filters/kword/rtf/import/rtfimport.cpp
@@ -98,7 +98,7 @@ static RTFProperty propertyTable[] =
MEMBER( 0L, "b", setToggleProperty, state.format.bold, 0 ),
// \bin is handled in the tokenizer
MEMBER( "@colortbl", "blue", setNumericProperty, blue, 0 ),
- MEMBER( 0L, "box", setEnumProperty, state.layout.border, 0 ),
+ MEMBER( 0L, "box", setEnumProperty, state.tqlayout.border, 0 ),
PROP( 0L, "brdrb", selectLayoutBorder, 0L, 3 ),
PROP( 0L, "brdrcf", setBorderColor, 0L, 0 ),
PROP( 0L, "brdrdash", setBorderStyle, 0L, RTFBorder::Dashes ),
@@ -148,7 +148,7 @@ static RTFProperty propertyTable[] =
MEMBER( "@rtf", "facingp", setFlagProperty, facingPages, true ),
PROP( 0L, "fcharset", setCharset, 0L, 0 ), // Not needed with TQt
PROP( "@fonttbl", "fdecor", setFontStyleHint, 0L, TQFont::Decorative ),
- MEMBER( 0L, "fi", setNumericProperty, state.layout.firstIndent, 0 ),
+ MEMBER( 0L, "fi", setNumericProperty, state.tqlayout.firstIndent, 0 ),
PROP( "@fonttbl", "fmodern", setFontStyleHint, 0L, TQFont::TypeWriter ),
PROP( "@fonttbl", "fnil", setFontStyleHint, 0L, TQFont::AnyStyle ),
MEMBER( 0L, "footery", setNumericProperty, state.section.footerMargin, 0 ),
@@ -162,13 +162,13 @@ static RTFProperty propertyTable[] =
MEMBER( "@colortbl", "green", setNumericProperty, green, 0 ),
MEMBER( 0L, "headery", setNumericProperty, state.section.headerMargin, 0 ),
MEMBER( 0L, "i", setToggleProperty, state.format.italic, 0 ),
- MEMBER( 0L, "intbl", setFlagProperty, state.layout.inTable, true ),
+ MEMBER( 0L, "intbl", setFlagProperty, state.tqlayout.inTable, true ),
PROP( "@pict", "jpegblip", setPictureType, 0L, RTFPicture::JPEG ),
- MEMBER( 0L, "keep", setFlagProperty, state.layout.keep, true ),
- MEMBER( 0L, "keepn", setFlagProperty, state.layout.keepNext, true ),
+ MEMBER( 0L, "keep", setFlagProperty, state.tqlayout.keep, true ),
+ MEMBER( 0L, "keepn", setFlagProperty, state.tqlayout.keepNext, true ),
MEMBER( "@rtf", "landscape", setFlagProperty, landscape, true ),
PROP( 0L, "ldblquote", insertSymbol, 0L, 0x201c ),
- MEMBER( 0L, "li", setNumericProperty, state.layout.leftIndent, 0 ),
+ MEMBER( 0L, "li", setNumericProperty, state.tqlayout.leftIndent, 0 ),
PROP( 0L, "line", insertSymbol, 0L, 0x000a ),
PROP( 0L, "lquote", insertSymbol, 0L, 0x2018 ),
PROP( 0L, "ltrmark", insertSymbol, 0L, 0x200e ),
@@ -180,14 +180,14 @@ static RTFProperty propertyTable[] =
MEMBER( "@rtf", "margt", setNumericProperty, topMargin, 0 ),
MEMBER( 0L, "nosupersub", setEnumProperty, state.format.vertAlign, RTFFormat::Normal ),
PROP( "Text", "page", insertPageBreak, 0L, 0 ),
- MEMBER( 0L, "pagebb", setFlagProperty, state.layout.pageBB, true ),
+ MEMBER( 0L, "pagebb", setFlagProperty, state.tqlayout.pageBB, true ),
MEMBER( "@rtf", "paperh", setNumericProperty, paperHeight, 0 ),
MEMBER( "@rtf", "paperw", setNumericProperty, paperWidth, 0 ),
PROP( "Text", "par", insertParagraph, 0L, 0 ),
PROP( 0L, "pard", setParagraphDefaults, 0L, 0 ),
PROP( 0L, "pc", setPcCodepage, 0L, 0 ),
PROP( 0L, "pca", setPcaCodepage, 0L, 0 ),
- MEMBER( 0L, "pgbrk", setToggleProperty, state.layout.pageBA, true ),
+ MEMBER( 0L, "pgbrk", setToggleProperty, state.tqlayout.pageBA, true ),
MEMBER( "@pict", "piccropb", setNumericProperty, picture.cropBottom, 0 ),
MEMBER( "@pict", "piccropl", setNumericProperty, picture.cropLeft, 0 ),
MEMBER( "@pict", "piccropr", setNumericProperty, picture.cropRight, 0 ),
@@ -202,25 +202,25 @@ static RTFProperty propertyTable[] =
PROP( 0L, "plain", setPlainFormatting, 0L, 0 ),
PROP( "@pict", "pmmetafile", setPictureType, 0L, RTFPicture::WMF ),
PROP( "@pict", "pngblip", setPictureType, 0L, RTFPicture::PNG ),
- MEMBER( 0L, "qc", setEnumProperty, state.layout.alignment, RTFLayout::Centered ),
- MEMBER( 0L, "qj", setEnumProperty, state.layout.alignment, RTFLayout::Justified ),
- MEMBER( 0L, "ql", setEnumProperty, state.layout.alignment, RTFLayout::Left ),
+ MEMBER( 0L, "qc", setEnumProperty, state.tqlayout.tqalignment, RTFLayout::Centered ),
+ MEMBER( 0L, "qj", setEnumProperty, state.tqlayout.tqalignment, RTFLayout::Justified ),
+ MEMBER( 0L, "ql", setEnumProperty, state.tqlayout.tqalignment, RTFLayout::Left ),
PROP( 0L, "qmspace", insertSymbol, 0L, 0x2004 ),
- MEMBER( 0L, "qr", setEnumProperty, state.layout.alignment, RTFLayout::Right ),
+ MEMBER( 0L, "qr", setEnumProperty, state.tqlayout.tqalignment, RTFLayout::Right ),
PROP( 0L, "rdblquote", insertSymbol, 0L, 0x201d ),
MEMBER( "@colortbl", "red", setNumericProperty, red, 0 ),
- MEMBER( 0L, "ri", setNumericProperty, state.layout.rightIndent, 0 ),
+ MEMBER( 0L, "ri", setNumericProperty, state.tqlayout.rightIndent, 0 ),
PROP( "Text", "row", insertTableRow, 0L, 0 ),
PROP( 0L, "rquote", insertSymbol, 0L, 0x2019 ),
PROP( 0L, "rtlmark", insertSymbol, 0L, 0x200f ),
- MEMBER( 0L, "s", setNumericProperty, state.layout.style, 0 ),
- MEMBER( 0L, "sa", setNumericProperty, state.layout.spaceAfter, 0 ),
- MEMBER( 0L, "sb", setNumericProperty, state.layout.spaceBefore, 0 ),
+ MEMBER( 0L, "s", setNumericProperty, state.tqlayout.style, 0 ),
+ MEMBER( 0L, "sa", setNumericProperty, state.tqlayout.spaceAfter, 0 ),
+ MEMBER( 0L, "sb", setNumericProperty, state.tqlayout.spaceBefore, 0 ),
MEMBER( 0L, "scaps", setToggleProperty, state.format.smallCaps, 0 ),
PROP( "Text", "sect", insertPageBreak, 0L, 0 ),
PROP( 0L, "sectd", setSectionDefaults, 0L, 0 ),
- MEMBER( 0L, "sl", setNumericProperty, state.layout.spaceBetween, 0 ),
- MEMBER( 0L, "slmult", setToggleProperty, state.layout.spaceBetweenMultiple, 0 ),
+ MEMBER( 0L, "sl", setNumericProperty, state.tqlayout.spaceBetween, 0 ),
+ MEMBER( 0L, "slmult", setToggleProperty, state.tqlayout.spaceBetweenMultiple, 0 ),
MEMBER( "@stylesheet", "snext", setNumericProperty, style.next, 0 ),
MEMBER( 0L, "strike", setToggleProperty, state.format.strike, 0 ),
MEMBER( 0L, "striked", setToggleProperty, state.format.striked, 0 ),
@@ -228,18 +228,18 @@ static RTFProperty propertyTable[] =
MEMBER( 0L, "super", setEnumProperty, state.format.vertAlign, RTFFormat::SuperScript ),
PROP( 0L, "tab", insertSymbol, 0L, 0x0009 ),
MEMBER( 0L, "titlepg", setFlagProperty, state.section.titlePage, true ),
- MEMBER( 0L, "tldot", setEnumProperty, state.layout.tab.leader, RTFTab::Dots ),
- MEMBER( 0L, "tlhyph", setEnumProperty, state.layout.tab.leader, RTFTab::Hyphens ),
- MEMBER( 0L, "tlth", setEnumProperty, state.layout.tab.leader, RTFTab::ThickLine ),
- MEMBER( 0L, "tlul", setEnumProperty, state.layout.tab.leader, RTFTab::Underline ),
- MEMBER( 0L, "tqc", setEnumProperty, state.layout.tab.type, RTFTab::Centered ),
- MEMBER( 0L, "tqdec", setEnumProperty, state.layout.tab.type, RTFTab::Decimal ),
- MEMBER( 0L, "tqr", setEnumProperty, state.layout.tab.type, RTFTab::FlushRight ),
+ MEMBER( 0L, "tldot", setEnumProperty, state.tqlayout.tab.leader, RTFTab::Dots ),
+ MEMBER( 0L, "tlhyph", setEnumProperty, state.tqlayout.tab.leader, RTFTab::Hyphens ),
+ MEMBER( 0L, "tlth", setEnumProperty, state.tqlayout.tab.leader, RTFTab::ThickLine ),
+ MEMBER( 0L, "tlul", setEnumProperty, state.tqlayout.tab.leader, RTFTab::Underline ),
+ MEMBER( 0L, "tqc", setEnumProperty, state.tqlayout.tab.type, RTFTab::Centered ),
+ MEMBER( 0L, "tqdec", setEnumProperty, state.tqlayout.tab.type, RTFTab::Decimal ),
+ MEMBER( 0L, "tqr", setEnumProperty, state.tqlayout.tab.type, RTFTab::FlushRight ),
MEMBER( 0L, "trleft", setNumericProperty, state.tableRow.left, 0 ),
MEMBER( 0L, "trowd", setTableRowDefaults, state.tableRow, 0 ),
- MEMBER( 0L, "trqc", setEnumProperty, state.tableRow.alignment, RTFLayout::Centered ),
- MEMBER( 0L, "trql", setEnumProperty, state.tableRow.alignment, RTFLayout::Left ),
- MEMBER( 0L, "trqr", setEnumProperty, state.tableRow.alignment, RTFLayout::Right ),
+ MEMBER( 0L, "trqc", setEnumProperty, state.tableRow.tqalignment, RTFLayout::Centered ),
+ MEMBER( 0L, "trql", setEnumProperty, state.tableRow.tqalignment, RTFLayout::Left ),
+ MEMBER( 0L, "trqr", setEnumProperty, state.tableRow.tqalignment, RTFLayout::Right ),
MEMBER( 0L, "trrh", setNumericProperty, state.tableRow.height, 0 ),
PROP( 0L, "tx", insertTabDef, 0L, 0 ),
MEMBER( 0L, "u", insertUnicodeSymbol, state.format.uc, 0 ),
@@ -309,7 +309,7 @@ RTFImport::RTFImport( KoFilter *, const char *, const TQStringList& )
fnnum=0;
}
-KoFilter::ConversionStatus RTFImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus RTFImport::convert( const TQCString& from, const TQCString& to )
{
// This filter only supports RTF to KWord conversion
if ((from != "text/rtf") || (to != "application/x-kword"))
@@ -384,7 +384,7 @@ KoFilter::ConversionStatus RTFImport::convert( const TQCString& from, const TQCS
if ( !m_batch )
{
force = ( KMessageBox::warningYesNo( 0L,
- i18n("The RTF (Rich Text Format) document has an unexpected version number: %1. Continuing might result in an erroneous conversion. Do you want to continue?").arg( token.value ),
+ i18n("The RTF (Rich Text Format) document has an unexpected version number: %1. Continuing might result in an erroneous conversion. Do you want to continue?").tqarg( token.value ),
i18n("KWord's RTF Import Filter") ) == KMessageBox::Yes );
}
if ( !force )
@@ -403,7 +403,7 @@ KoFilter::ConversionStatus RTFImport::convert( const TQCString& from, const TQCS
if ( !m_batch )
{
force = ( KMessageBox::warningYesNo( 0L,
- i18n("The PWD (PocketWord's Rich Text Format) document has an unexpected version number: %1. Continuing might result in an erroneous conversion. Do you want to continue?").arg( token.value ),
+ i18n("The PWD (PocketWord's Rich Text Format) document has an unexpected version number: %1. Continuing might result in an erroneous conversion. Do you want to continue?").tqarg( token.value ),
i18n("KWord's RTF Import Filter") ) == KMessageBox::Yes );
}
if ( !force )
@@ -422,7 +422,7 @@ KoFilter::ConversionStatus RTFImport::convert( const TQCString& from, const TQCS
if ( !m_batch )
{
force = ( KMessageBox::warningYesNo( 0L,
- i18n("The URTF (\"Unicode Rich Text Format\") document has an unexpected version number: %1. Continuing might result in an erroneous conversion. Do you want to continue?").arg( token.value ),
+ i18n("The URTF (\"Unicode Rich Text Format\") document has an unexpected version number: %1. Continuing might result in an erroneous conversion. Do you want to continue?").tqarg( token.value ),
i18n("KWord's RTF Import Filter") ) == KMessageBox::Yes );
}
if ( !force )
@@ -439,7 +439,7 @@ KoFilter::ConversionStatus RTFImport::convert( const TQCString& from, const TQCS
if ( !m_batch )
{
KMessageBox::error( 0L,
- i18n("The RTF document cannot be loaded, as it has an unexpected first keyword: \\%1.").arg( token.text ),
+ i18n("The RTF document cannot be loaded, as it has an unexpected first keyword: \\%1.").tqarg( token.text ),
i18n("KWord's RTF Import Filter"), 0 );
}
return KoFilter::WrongFormat;
@@ -731,7 +731,7 @@ KoFilter::ConversionStatus RTFImport::convert( const TQCString& from, const TQCS
// Search for 'following' style
for (TQValueList<RTFStyle>::ConstIterator it2=styleSheet.begin();it2!=endStyleSheet;++it2)
{
- if ((*it2).layout.style == (*it).next)
+ if ((*it2).tqlayout.style == (*it).next)
{
mainDoc.addNode( "FOLLOWING" );
mainDoc.setAttribute( "name", CheckAndEscapeXmlText( (*it2).name ));
@@ -739,7 +739,7 @@ KoFilter::ConversionStatus RTFImport::convert( const TQCString& from, const TQCS
break;
}
}
- addLayout( mainDoc, (*it).name, (*it).layout, false );
+ addLayout( mainDoc, (*it).name, (*it).tqlayout, false );
addFormat( mainDoc, kwFormat, 0L );
mainDoc.closeNode( "STYLE" );
}
@@ -793,7 +793,7 @@ KoFilter::ConversionStatus RTFImport::convert( const TQCString& from, const TQCS
for (TQMap<TQString,int>::ConstIterator it=debugUnknownKeywords.begin();
it!=debugUnknownKeywords.end();it++)
- kdDebug(30515) << "Unknown keyword: " << TQString( "%1" ).arg( it.data(), 4 ) << " * " << it.key() << endl;
+ kdDebug(30515) << "Unknown keyword: " << TQString( "%1" ).tqarg( it.data(), 4 ) << " * " << it.key() << endl;
return KoFilter::OK;
}
@@ -911,7 +911,7 @@ void RTFImport::setEnumProperty( RTFProperty *property )
void RTFImport::setFontStyleHint( RTFProperty* property )
{
- font.styleHint = TQFont::StyleHint( property->value );
+ font.tqstyleHint = TQFont::StyleHint( property->value );
}
void RTFImport::setPictureType( RTFProperty* property )
@@ -933,15 +933,15 @@ void RTFImport::setUnderlineProperty( RTFProperty* property )
void RTFImport::setBorderStyle( RTFProperty *property )
{
- if (state.layout.border)
+ if (state.tqlayout.border)
{
- state.layout.border->style = static_cast <RTFBorder::BorderStyle> ( property->value );
+ state.tqlayout.border->style = static_cast <RTFBorder::BorderStyle> ( property->value );
}
else
{
for (uint i=0; i < 4; i++)
{
- state.layout.borders[i].style = static_cast <RTFBorder::BorderStyle> ( property->value );
+ state.tqlayout.borders[i].style = static_cast <RTFBorder::BorderStyle> ( property->value );
}
}
}
@@ -949,30 +949,30 @@ void RTFImport::setBorderStyle( RTFProperty *property )
void RTFImport::setBorderProperty( RTFProperty *property )
{
//kdDebug() << "setBorderProperty: " << endl;
- if (state.layout.border)
+ if (state.tqlayout.border)
{
- state.layout.border->width = token.value;
+ state.tqlayout.border->width = token.value;
}
else
{
for (uint i=0; i < 4; i++)
{
- state.layout.borders[i].width = token.value;
+ state.tqlayout.borders[i].width = token.value;
}
}
}
void RTFImport::setBorderColor( RTFProperty * )
{
- if (state.layout.border)
+ if (state.tqlayout.border)
{
- state.layout.border->color = token.value;
+ state.tqlayout.border->color = token.value;
}
else
{
for (uint i=0; i < 4; i++)
{
- state.layout.borders[i].color = token.value;
+ state.tqlayout.borders[i].color = token.value;
}
}
}
@@ -1008,34 +1008,34 @@ void RTFImport::setPlainFormatting( RTFProperty * )
void RTFImport::setParagraphDefaults( RTFProperty * )
{
- RTFLayout &layout = state.layout;
+ RTFLayout &tqlayout = state.tqlayout;
- layout.tablist.clear();
- layout.tab.type = RTFTab::Left;
- layout.tab.leader = RTFTab::None;
+ tqlayout.tablist.clear();
+ tqlayout.tab.type = RTFTab::Left;
+ tqlayout.tab.leader = RTFTab::None;
for (uint i=0; i < 4; i++)
{
- RTFBorder &border = layout.borders[i];
+ RTFBorder &border = tqlayout.borders[i];
border.color = -1;
border.width = 0;
border.style = RTFBorder::None;
}
- layout.firstIndent = 0;
- layout.leftIndent = 0;
- layout.rightIndent = 0;
- layout.spaceBefore = 0;
- layout.spaceAfter = 0;
- layout.spaceBetween = 0;
- layout.spaceBetweenMultiple = false;
- layout.style = 0;
- layout.alignment = RTFLayout::Left;
- layout.border = 0L;
- layout.inTable = false;
- layout.keep = false;
- layout.keepNext = false;
- layout.pageBB = false;
- layout.pageBA = false;
+ tqlayout.firstIndent = 0;
+ tqlayout.leftIndent = 0;
+ tqlayout.rightIndent = 0;
+ tqlayout.spaceBefore = 0;
+ tqlayout.spaceAfter = 0;
+ tqlayout.spaceBetween = 0;
+ tqlayout.spaceBetweenMultiple = false;
+ tqlayout.style = 0;
+ tqlayout.tqalignment = RTFLayout::Left;
+ tqlayout.border = 0L;
+ tqlayout.inTable = false;
+ tqlayout.keep = false;
+ tqlayout.keepNext = false;
+ tqlayout.pageBB = false;
+ tqlayout.pageBA = false;
}
void RTFImport::setSectionDefaults( RTFProperty * )
@@ -1054,7 +1054,7 @@ void RTFImport::setTableRowDefaults( RTFProperty * )
tableRow.height = 0;
tableRow.left = 0;
- tableRow.alignment = RTFLayout::Left;
+ tableRow.tqalignment = RTFLayout::Left;
tableRow.cells.clear();
tableCell.bgcolor = -1;
@@ -1069,17 +1069,17 @@ void RTFImport::setTableRowDefaults( RTFProperty * )
void RTFImport::selectLayoutBorder( RTFProperty * property )
{
- state.layout.border = & state.layout.borders [ property->value ];
+ state.tqlayout.border = & state.tqlayout.borders [ property->value ];
}
void RTFImport::selectLayoutBorderFromCell( RTFProperty * property )
{
- state.layout.border = & state.tableCell.borders [ property->value ];
+ state.tqlayout.border = & state.tableCell.borders [ property->value ];
}
void RTFImport::insertParagraph( RTFProperty * )
{
- if (state.layout.inTable)
+ if (state.tqlayout.inTable)
{
if (textState->table == 0)
{
@@ -1110,10 +1110,10 @@ void RTFImport::insertPageBreak( RTFProperty * )
void RTFImport::insertTableCell( RTFProperty * )
{
//{{
- bool b = state.layout.inTable;
- state.layout.inTable = true;
+ bool b = state.tqlayout.inTable;
+ state.tqlayout.inTable = true;
insertParagraph();
- state.layout.inTable = b;
+ state.tqlayout.inTable = b;
//}}
textState->frameSets << textState->cell.toString();
textState->cell.clear( 3 );
@@ -1130,14 +1130,14 @@ void RTFImport::insertTableRow( RTFProperty * )
{
char buf[64];
sprintf( buf, "Table %d", textState->table );
- RTFLayout::Alignment align = row.alignment;
+ RTFLayout::Alignment align = row.tqalignment;
// Store the current state on the stack
stateStack.push( state );
resetState();
- state.layout.alignment = align; // table alignment
+ state.tqlayout.tqalignment = align; // table tqalignment
- // Add anchor for new table (default layout)
+ // Add anchor for new table (default tqlayout)
addAnchor( buf );
addParagraph( textState->node, false );
@@ -1202,9 +1202,9 @@ void RTFImport::insertCellDef( RTFProperty * )
void RTFImport::insertTabDef( RTFProperty * )
{
- RTFTab tab = state.layout.tab;
+ RTFTab tab = state.tqlayout.tab;
tab.position = token.value;
- state.layout.tablist.push( tab );
+ state.tqlayout.tablist.push( tab );
tab.type = RTFTab::Left;
tab.leader = RTFTab::None;
}
@@ -1321,7 +1321,7 @@ void RTFImport::parseFontTable( RTFProperty * )
if (token.type == RTFTokenizer::OpenGroup)
{
font.name = TQString();
- font.styleHint = TQFont::AnyStyle;
+ font.tqstyleHint = TQFont::AnyStyle;
font.fixedPitch = 0;
}
else if (token.type == RTFTokenizer::PlainText)
@@ -1344,7 +1344,7 @@ void RTFImport::parseFontTable( RTFProperty * )
// Use TQt to look up the closest matching installed font
TQFont qFont( font.name );
qFont.setFixedPitch( (font.fixedPitch == 1) );
- qFont.setStyleHint( font.styleHint );
+ qFont.setStyleHint( font.tqstyleHint );
for(;!qFont.exactMatch();)
{
int space=font.name.findRev(' ', font.name.length());
@@ -1362,7 +1362,7 @@ void RTFImport::parseFontTable( RTFProperty * )
else
fontTable.insert( state.format.font, newFontName );
font.name.truncate( 0 );
- font.styleHint = TQFont::AnyStyle;
+ font.tqstyleHint = TQFont::AnyStyle;
font.fixedPitch = 0;
}
}
@@ -1386,8 +1386,8 @@ void RTFImport::parseStyleSheet( RTFProperty * )
*strchr( token.text, ';' ) = 0; // ### TODO: is this allowed with multi-byte Asian characters?
style.name += textCodec->toUnicode( token.text );
style.format = state.format;
- style.layout = state.layout;
- style.next = (style.next == -1) ? style.layout.style : style.next;
+ style.tqlayout = state.tqlayout;
+ style.next = (style.next == -1) ? style.tqlayout.style : style.next;
styleSheet << style;
style.name.truncate( 0 );
style.next = -1;
@@ -1538,8 +1538,8 @@ void RTFImport::parsePicture( RTFProperty * )
// Add anchor to rich text destination
addAnchor( frameName );
- // It is safe, as we call currentDateTime only once for each picture
- const TQDateTime dt(TQDateTime::currentDateTime());
+ // It is safe, as we call tqcurrentDateTime only once for each picture
+ const TQDateTime dt(TQDateTime::tqcurrentDateTime());
// Add pixmap or clipart (key)
pictures.addKey( dt, idStr, pictName );
@@ -1614,7 +1614,7 @@ void RTFImport::addImportedPicture( const TQString& rawFileName )
// Add anchor to rich text destination
addAnchor( frameName );
- // It is safe, as we call currentDateTime only once for each picture
+ // It is safe, as we call tqcurrentDateTime only once for each picture
const TQDateTime dt( pic.getKey().lastModified() );
// Add picture key
@@ -2055,7 +2055,7 @@ void RTFImport::addFormat( DomNode &node, const KWFormat& format, const RTFForma
int vertAlign0 = ~vertAlign;
int fontSize0 = ~fontSize;
- // Adjust vertical alignment and font size if (\dn, \up) are used
+ // Adjust vertical tqalignment and font size if (\dn, \up) are used
if (format.fmt.vertAlign == RTFFormat::Normal && format.fmt.baseline)
{
if (format.fmt.baseline < 0)
@@ -2261,40 +2261,40 @@ void RTFImport::addFormat( DomNode &node, const KWFormat& format, const RTFForma
node.closeNode( "FORMAT" );
}
-void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout &layout, bool frameBreak )
+void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout &tqlayout, bool frameBreak )
{
- // Style name and alignment
+ // Style name and tqalignment
node.addNode( "NAME" );
node.setAttribute( "value", CheckAndEscapeXmlText(name) );
node.closeNode( "NAME" );
node.addNode( "FLOW" );
- node.setAttribute( "align", alignN[layout.alignment] );
+ node.setAttribute( "align", alignN[tqlayout.tqalignment] );
node.closeNode( "FLOW" );
// Indents
- if (layout.firstIndent || layout.leftIndent || layout.rightIndent)
+ if (tqlayout.firstIndent || tqlayout.leftIndent || tqlayout.rightIndent)
{
node.addNode( "INDENTS" );
- if (layout.firstIndent)
- node.setAttribute( "first", .05*layout.firstIndent );
- if (layout.leftIndent)
- node.setAttribute( "left", .05*layout.leftIndent );
- if (layout.rightIndent)
- node.setAttribute( "right", .05*layout.rightIndent );
+ if (tqlayout.firstIndent)
+ node.setAttribute( "first", .05*tqlayout.firstIndent );
+ if (tqlayout.leftIndent)
+ node.setAttribute( "left", .05*tqlayout.leftIndent );
+ if (tqlayout.rightIndent)
+ node.setAttribute( "right", .05*tqlayout.rightIndent );
node.closeNode( "INDENTS" );
}
// Offets
- if (layout.spaceBefore || layout.spaceAfter)
+ if (tqlayout.spaceBefore || tqlayout.spaceAfter)
{
node.addNode( "OFFSETS" );
- if (layout.spaceBefore)
- node.setAttribute( "before", .05*layout.spaceBefore );
- if (layout.spaceAfter)
- node.setAttribute( "after", .05*layout.spaceAfter );
+ if (tqlayout.spaceBefore)
+ node.setAttribute( "before", .05*tqlayout.spaceBefore );
+ if (tqlayout.spaceAfter)
+ node.setAttribute( "after", .05*tqlayout.spaceAfter );
node.closeNode( "OFFSETS" );
}
@@ -2304,10 +2304,10 @@ void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout
TQString lineSpacingType;
TQString lineSpacingValue;
- if ( layout.spaceBetweenMultiple )
+ if ( tqlayout.spaceBetweenMultiple )
{
// Note: 240 is a sort of magic value for one line (Once upon a time, it meant 12pt for a single line)
- switch (layout.spaceBetween )
+ switch (tqlayout.spaceBetween )
{
case 240:
{
@@ -2326,10 +2326,10 @@ void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout
}
default:
{
- if ( layout.spaceBetween > 0 )
+ if ( tqlayout.spaceBetween > 0 )
{
lineSpacingType = "multiple";
- lineSpacingValue.setNum( layout.spaceBetween / 240.0 );
+ lineSpacingValue.setNum( tqlayout.spaceBetween / 240.0 );
}
break;
}
@@ -2337,16 +2337,16 @@ void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout
}
else
{
- if (layout.spaceBetween > 0)
+ if (tqlayout.spaceBetween > 0)
{
lineSpacingType = "atleast";
- lineSpacingValue.setNum( 0.05*layout.spaceBetween );
+ lineSpacingValue.setNum( 0.05*tqlayout.spaceBetween );
}
- if (layout.spaceBetween < 0)
+ if (tqlayout.spaceBetween < 0)
{
// negative linespace means "exact"
lineSpacingType = "fixed" ;
- lineSpacingValue.setNum( -0.05*layout.spaceBetween );
+ lineSpacingValue.setNum( -0.05*tqlayout.spaceBetween );
}
}
@@ -2359,20 +2359,20 @@ void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout
node.closeNode( "LINESPACING" );
}
- if (layout.keep || layout.pageBB || layout.pageBA || frameBreak || layout.keepNext)
+ if (tqlayout.keep || tqlayout.pageBB || tqlayout.pageBA || frameBreak || tqlayout.keepNext)
{
node.addNode( "PAGEBREAKING" );
- node.setAttribute( "linesTogether", boolN[layout.keep] );
- node.setAttribute( "hardFrameBreak", boolN[layout.pageBB] );
- node.setAttribute( "hardFrameBreakAfter", boolN[layout.pageBA || frameBreak] );
- node.setAttribute( "keepWithNext", boolN[layout.keepNext] );
+ node.setAttribute( "linesTogether", boolN[tqlayout.keep] );
+ node.setAttribute( "hardFrameBreak", boolN[tqlayout.pageBB] );
+ node.setAttribute( "hardFrameBreakAfter", boolN[tqlayout.pageBA || frameBreak] );
+ node.setAttribute( "keepWithNext", boolN[tqlayout.keepNext] );
node.closeNode( "PAGEBREAKING" );
}
// Paragraph borders
for (uint i=0; i < 4; i++)
{
- const RTFBorder &border = layout.borders[i];
+ const RTFBorder &border = tqlayout.borders[i];
if (border.style != RTFBorder::None || border.width > 0)
{
@@ -2386,21 +2386,21 @@ void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout
}
// Add automatic tab stop for hanging indent
- if (layout.firstIndent < 0 && layout.leftIndent > 0)
+ if (tqlayout.firstIndent < 0 && tqlayout.leftIndent > 0)
{
node.addNode( "TABULATOR" );
node.setAttribute( "type", 0 );
- node.setAttribute( "ptpos", .05*layout.leftIndent );
+ node.setAttribute( "ptpos", .05*tqlayout.leftIndent );
node.closeNode( "TABULATOR" );
}
// Tabulators
- if (!layout.tablist.isEmpty())
+ if (!tqlayout.tablist.isEmpty())
{
// ### TODO: use ConstIterator
- for (uint i=0; i < layout.tablist.count(); i++)
+ for (uint i=0; i < tqlayout.tablist.count(); i++)
{
- const RTFTab &tab = layout.tablist[i];
+ const RTFTab &tab = tqlayout.tablist[i];
int l = (int)tab.leader;
node.addNode( "TABULATOR" );
node.setAttribute( "type", tab.type );
@@ -2422,12 +2422,12 @@ void RTFImport::addParagraph( DomNode &node, bool frameBreak )
// Search for style in style sheet
TQString name;
const RTFFormat* format = &state.format;
- const int styleNum = state.layout.style;
+ const int styleNum = state.tqlayout.style;
const TQValueList<RTFStyle>::ConstIterator endStyleSheet = styleSheet.end();
for ( TQValueList<RTFStyle>::ConstIterator it=styleSheet.begin(); it!=endStyleSheet; ++it )
{
- if ( (*it).layout.style == styleNum )
+ if ( (*it).tqlayout.style == styleNum )
{
if ( textState->length > 0 )
{
@@ -2468,9 +2468,9 @@ void RTFImport::addParagraph( DomNode &node, bool frameBreak )
node.closeNode( "FORMATS" );
}
- // Write out layout and format
+ // Write out tqlayout and format
node.addNode( "LAYOUT" );
- addLayout( node, name, state.layout, frameBreak );
+ addLayout( node, name, state.tqlayout, frameBreak );
addFormat( node, kwFormat, 0L );
node.closeNode( "LAYOUT" );
node.closeNode( "PARAGRAPH" );
diff --git a/filters/kword/rtf/import/rtfimport.h b/filters/kword/rtf/import/rtfimport.h
index 37ecfce6..bf4f20b7 100644
--- a/filters/kword/rtf/import/rtfimport.h
+++ b/filters/kword/rtf/import/rtfimport.h
@@ -25,7 +25,7 @@
#include <tqstring.h>
#include <tqvaluelist.h>
#include <tqvaluestack.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include "rtfimport_dom.h"
#include "rtfimport_tokenizer.h"
#include <tqptrlist.h>
@@ -93,7 +93,7 @@ struct RTFTab
struct RTFFont
{
TQString name;
- TQFont::StyleHint styleHint;
+ TQFont::StyleHint tqstyleHint;
int fixedPitch;
int number;
};
@@ -124,7 +124,7 @@ struct RTFLayout
RTFTab tab;
RTFBorder borders[4];
RTFBorder *border;
- Alignment alignment;
+ Alignment tqalignment;
int style;
int firstIndent, leftIndent, rightIndent;
int spaceBefore, spaceAfter;
@@ -173,7 +173,7 @@ struct RTFStyle
{
TQString name;
RTFFormat format;
- RTFLayout layout;
+ RTFLayout tqlayout;
int next;
};
@@ -198,7 +198,7 @@ struct RTFTableRow
{
TQValueList<RTFTableCell> cells;
TQStringList frameSets;
- RTFLayout::Alignment alignment;
+ RTFLayout::Alignment tqalignment;
int height;
int left;
};
@@ -232,7 +232,7 @@ struct RTFGroupState
RTFTableRow tableRow;
RTFTableCell tableCell;
RTFFormat format;
- RTFLayout layout;
+ RTFLayout tqlayout;
RTFSectionLayout section;
/// '}' will close the current destination
bool brace0;
@@ -255,7 +255,7 @@ public:
* @param to the mimetype for KWord
* @return true if the document was successfully converted
*/
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
/**
* Skip the keyword, as we do not need to do anything with it
@@ -408,7 +408,7 @@ public:
void insertSymbol( RTFProperty *property );
/// Insert special character (hexadecimal escape value).
void insertHexSymbol( RTFProperty * );
- /// Insert unicode character (keyword \\u).
+ /// Insert tqunicode character (keyword \\u).
void insertUnicodeSymbol( RTFProperty * );
/**
* Insert a date or time field
@@ -489,13 +489,13 @@ public:
*/
void addFormat( DomNode &node, const KWFormat& format, const RTFFormat* baseFormat );
/**
- * Add layout information to document node.
+ * Add tqlayout information to document node.
* @param node the document node (destination)
* @param name the name of the current style
- * @param layout the paragraph layout information
+ * @param tqlayout the paragraph tqlayout information
* @param frameBreak paragraph is always the last in a frame if true
*/
- void addLayout( DomNode &node, const TQString &name, const RTFLayout &layout, bool frameBreak );
+ void addLayout( DomNode &node, const TQString &name, const RTFLayout &tqlayout, bool frameBreak );
/**
* Add paragraph information to document node.
* @param node the document node (destination)
diff --git a/filters/kword/rtf/import/rtfimport_dom.cpp b/filters/kword/rtf/import/rtfimport_dom.cpp
index 75855dbf..95fa43fc 100644
--- a/filters/kword/rtf/import/rtfimport_dom.cpp
+++ b/filters/kword/rtf/import/rtfimport_dom.cpp
@@ -12,7 +12,7 @@
#include <stdio.h>
#include <tqdatetime.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqcolor.h>
#include <kdebug.h>
@@ -30,7 +30,7 @@ TQString CheckAndEscapeXmlText(const TQString& strText)
for (uint i=0; i<strReturn.length(); i++)
{
ch = strReturn[i];
- const int test = ch.unicode();
+ const int test = ch.tqunicode();
// The i+= is for the additional characters
if (test == 38) { strReturn.replace(i, 1, "&amp;"); i+=4; } // &
diff --git a/filters/kword/rtf/status.html b/filters/kword/rtf/status.html
index 904da9db..27239e52 100644
--- a/filters/kword/rtf/status.html
+++ b/filters/kword/rtf/status.html
@@ -52,14 +52,14 @@
- Document information (author, title, comments, company).<br>
- Page size and margins.<br>
- Headers and footers (with margins).<br>
- - Tables (including non-rectangular), horizontal alignment.<br>
+ - Tables (including non-rectangular), horizontal tqalignment.<br>
- Table cell background color and borders (style, color, width).<br>
- Embedded pictures (JPEG/PNG/BMP) and clipart (EMF/WMF).<br>
- Word 97-2000 picture support.<br>
- Style sheet.<br>
- Character formatting (size, color, bold, italic, underline, strikeout, subscript, superscript...).<br>
- Font mapping (using TQFont/TQFontInfo).<br>
- - Paragraph layout (horizontal alignment, indents, space before/after, frame break).<br>
+ - Paragraph tqlayout (horizontal tqalignment, indents, space before/after, frame break).<br>
- Paragraph borders (style, color, width).<br>
- Tabulators, automatic tabulator for hanging indent.<br>
- Unicode and codepages support.<br>
@@ -76,7 +76,7 @@
- Fix line spacing.<br>
- Columns.<br>
- Improve list handling.<br>
- - Shaps, especially picture that are in shapes<br>
+ - Shaps, especially picture that are in tqshapes<br>
</td>
</tr>
@@ -85,7 +85,7 @@
<td>
15 July 2001: First useful version (rewritten for TQDom).<br>
18 July 2001: Fixed function <code>finishTable()</code> (some tables crashed KWord).<br>
- 23 July 2001: Added table alignment, background color and cell borders.<br>
+ 23 July 2001: Added table tqalignment, background color and cell borders.<br>
31 August 2001: Faster version, uses read buffers and optimized XML output.<br>
2 October 2001: Clipart import fixed (requires libwmf).<br>
23 July 2002: Added field and hyperlink support, fixed embedded pictures.<br>
diff --git a/filters/kword/starwriter/pole.cpp b/filters/kword/starwriter/pole.cpp
index 9323cdbc..d9751e15 100644
--- a/filters/kword/starwriter/pole.cpp
+++ b/filters/kword/starwriter/pole.cpp
@@ -36,7 +36,7 @@ class Entry
unsigned long size;
unsigned start;
bool dir;
- std::vector<Entry*> children;
+ std::vector<Entry*> tqchildren;
Entry();
~Entry();
private:
@@ -257,9 +257,9 @@ Entry::Entry()
Entry::~Entry()
{
- for( unsigned i=0; i<children.size(); i++ )
+ for( unsigned i=0; i<tqchildren.size(); i++ )
{
- Entry* entry = children[ i ];
+ Entry* entry = tqchildren[ i ];
delete entry;
}
}
@@ -657,7 +657,7 @@ Entry* StorageIO::buildTree( Entry* parent, int index, const unsigned char* dire
// append as another child
entry->parent = parent;
- if( parent ) parent->children.push_back( entry );
+ if( parent ) parent->tqchildren.push_back( entry );
// check previous
int prev = readU32( dirent + 0x44+p );
@@ -725,9 +725,9 @@ Entry* StorageIO::entry( const std::string& name )
std::string entryname = *it;
Entry *child = (Entry*) 0L;
if( entry->dir )
- for( unsigned j=0; j < entry->children.size(); j++ )
- if( entry->children[j]->name == entryname )
- child = entry->children[j];
+ for( unsigned j=0; j < entry->tqchildren.size(); j++ )
+ if( entry->tqchildren[j]->name == entryname )
+ child = entry->tqchildren[j];
if( !child ) return (Entry*) 0L;
entry = child;
}
@@ -912,10 +912,10 @@ std::list<std::string> Storage::listDirectory()
// sentinel: do nothing if not a directory
if( !io->current_dir->dir ) return entries;
- // find all children belongs to this directory
- for( unsigned i = 0; i<io->current_dir->children.size(); i++ )
+ // find all tqchildren belongs to this directory
+ for( unsigned i = 0; i<io->current_dir->tqchildren.size(); i++ )
{
- Entry* e = io->current_dir->children[i];
+ Entry* e = io->current_dir->tqchildren[i];
if( e ) entries.push_back( e->name );
}
@@ -930,9 +930,9 @@ bool Storage::enterDirectory( const std::string& directory )
if( !io->current_dir ) return false;
// look for the specified sub-dir
- for( unsigned i = 0; i<io->current_dir->children.size(); i++ )
+ for( unsigned i = 0; i<io->current_dir->tqchildren.size(); i++ )
{
- Entry* e = io->current_dir->children[i];
+ Entry* e = io->current_dir->tqchildren[i];
if( e ) if( e->name == directory )
if ( e->dir )
{
diff --git a/filters/kword/starwriter/starwriterimport.cc b/filters/kword/starwriter/starwriterimport.cc
index 43dc1b62..a9bd80d3 100644
--- a/filters/kword/starwriter/starwriterimport.cc
+++ b/filters/kword/starwriter/starwriterimport.cc
@@ -58,7 +58,7 @@ StarWriterImport::~StarWriterImport()
{
}
-KoFilter::ConversionStatus StarWriterImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversiontqStatus StarWriterImport::convert(const TQCString& from, const TQCString& to)
{
// Check for proper conversion
// When 4.x is supported, use also: || (from != "application/x-starwriter")
@@ -345,7 +345,7 @@ bool StarWriterImport::parseTable(TQByteArray n)
TQ_UINT8 row, column;
// Set table name
- tableName = TQString("Table %1").arg(tablesNumber);
+ tableName = TQString("Table %1").tqarg(tablesNumber);
tablesNumber++;
// Skip useless sections and retrieve the right point
@@ -381,8 +381,8 @@ bool StarWriterImport::parseTable(TQByteArray n)
text = convertToKWordString(s);
// FIXME: check this stuff
- TQString frameName = TQString("%1 Cell %2,%3").arg(tableName).arg(row).arg(column);
- tableText.append(TQString(" <FRAMESET name=\"%1\" frameType=\"1\" frameInfo=\"0\" removable=\"0\" visible=\"1\" grpMgr=\"%2\" row=\"%3\" col=\"%4\" rows=\"1\" cols=\"1\" protectSize=\"0\">\n").arg(frameName).arg(tableName).arg(row).arg(column));
+ TQString frameName = TQString("%1 Cell %2,%3").tqarg(tableName).tqarg(row).tqarg(column);
+ tableText.append(TQString(" <FRAMESET name=\"%1\" frameType=\"1\" frameInfo=\"0\" removable=\"0\" visible=\"1\" grpMgr=\"%2\" row=\"%3\" col=\"%4\" rows=\"1\" cols=\"1\" protectSize=\"0\">\n").tqarg(frameName).tqarg(tableName).tqarg(row).tqarg(column));
tableText.append(" <FRAME runaround=\"1\" copy=\"0\" newFrameBehavior=\"1\" runaroundSide=\"biggest\" autoCreateNewFrame=\"0\" bleftpt=\"2.8\" brightpt=\"2.8\" btoppt=\"2.8\" bbottompt=\"2.8\" runaroundGap=\"2.8\" />\n");
tableText.append(" <PARAGRAPH>\n");
tableText.append(" <TEXT xml:space=\"preserve\">" + text + "</TEXT>\n");
@@ -408,7 +408,7 @@ bool StarWriterImport::parseTable(TQByteArray n)
bodyStuff.append(" <TEXT xml:space=\"preserve\">#</TEXT>\n");
bodyStuff.append(" <FORMATS>\n");
bodyStuff.append(" <FORMAT id=\"6\" pos=\"0\" len=\"1\">\n");
- bodyStuff.append(TQString(" <ANCHOR type=\"frameset\" instance=\"%1\" />\n").arg(tableName));
+ bodyStuff.append(TQString(" <ANCHOR type=\"frameset\" instance=\"%1\" />\n").tqarg(tableName));
bodyStuff.append(" </FORMAT>\n");
bodyStuff.append(" </FORMATS>\n");
bodyStuff.append(" </PARAGRAPH>\n");
diff --git a/filters/kword/starwriter/starwriterimport.h b/filters/kword/starwriter/starwriterimport.h
index f71a71ed..b030c2ba 100644
--- a/filters/kword/starwriter/starwriterimport.h
+++ b/filters/kword/starwriter/starwriterimport.h
@@ -34,7 +34,7 @@ class StarWriterImport: public KoFilter
public:
StarWriterImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~StarWriterImport();
- KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
+ KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
private:
// most important OLE streams
diff --git a/filters/kword/starwriter/status.html b/filters/kword/starwriter/status.html
index d7667e6c..6919c589 100644
--- a/filters/kword/starwriter/status.html
+++ b/filters/kword/starwriter/status.html
@@ -7,7 +7,7 @@
<META NAME="GENERATOR" CONTENT="Quanta Plus">
</HEAD>
<BODY>
- <H2 align="center">Status of the</H2>
+ <H2 align="center">tqStatus of the</H2>
<H1 align="center">StarWriter 5.x filter for KWord</H1>
<P>Author: <A HREF="mailto:info@marcozanon.com">Marco Zanon</A>
diff --git a/filters/kword/wml/wmlexport.cc b/filters/kword/wml/wmlexport.cc
index 36d267be..92908c57 100644
--- a/filters/kword/wml/wmlexport.cc
+++ b/filters/kword/wml/wmlexport.cc
@@ -23,10 +23,10 @@
#include <unistd.h>
#endif
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <KoFilterChain.h>
@@ -51,7 +51,7 @@ class WMLWorker : 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;
@@ -97,7 +97,7 @@ bool WMLWorker::doCloseDocument(void)
}
bool WMLWorker::doFullParagraph(const TQString& paraText,
- const LayoutData& layout, const ValueListFormatData& paraFormatDataList)
+ const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList)
{
TQString wmlText;
TQString text = paraText;
@@ -131,7 +131,7 @@ bool WMLWorker::doFullParagraph(const TQString& paraText,
}
// sentinel check
- TQString align = layout.alignment.lower();
+ TQString align = tqlayout.tqalignment.lower();
if( ( align!="left" ) && ( align!="right" ) && ( align!="center" ) )
align = "left";
@@ -145,7 +145,7 @@ WMLExport::WMLExport( KoFilter *, const char *, const TQStringList& ):
{
}
-KoFilter::ConversionStatus WMLExport::convert( const TQCString& from,
+KoFilter::ConversiontqStatus WMLExport::convert( const TQCString& from,
const TQCString& to )
{
// check for proper conversion
@@ -155,7 +155,7 @@ KoFilter::ConversionStatus WMLExport::convert( const TQCString& from,
WMLWorker* worker = new WMLWorker();
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/wml/wmlexport.h b/filters/kword/wml/wmlexport.h
index 2f81c897..8d3a105e 100644
--- a/filters/kword/wml/wmlexport.h
+++ b/filters/kword/wml/wmlexport.h
@@ -35,7 +35,7 @@ class WMLExport : public KoFilter
virtual ~WMLExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // __WMLEXPORT_H
diff --git a/filters/kword/wml/wmlimport.cc b/filters/kword/wml/wmlimport.cc
index 83e14d9f..e44c10ae 100644
--- a/filters/kword/wml/wmlimport.cc
+++ b/filters/kword/wml/wmlimport.cc
@@ -54,7 +54,7 @@ class WMLConverter: public WMLParser
virtual bool doOpenCard( TQString, TQString );
virtual bool doCloseCard();
virtual bool doParagraph( TQString text, WMLFormatList formatList,
- WMLLayout layout );
+ WMLLayout tqlayout );
private:
TQString m_title;
};
@@ -105,13 +105,13 @@ static TQString WMLFormatAsXML( WMLFormat format )
return result;
}
-static TQString WMLLayoutAsXML( WMLLayout layout )
+static TQString WMLLayoutAsXML( WMLLayout tqlayout )
{
TQString result;
TQString align = "left";
- if( layout.align == WMLLayout::Center ) align = "center";
- if( layout.align == WMLLayout::Right ) align = "right";
+ if( tqlayout.align == WMLLayout::Center ) align = "center";
+ if( tqlayout.align == WMLLayout::Right ) align = "right";
TQFont font = KoGlobal::defaultFont();
TQString fontFamily = font.family();
@@ -161,7 +161,7 @@ bool WMLConverter::doCloseCard()
}
bool WMLConverter::doParagraph( TQString atext, WMLFormatList formatList,
- WMLLayout layout )
+ WMLLayout tqlayout )
{
TQString text, formats;
@@ -183,7 +183,7 @@ bool WMLConverter::doParagraph( TQString atext, WMLFormatList formatList,
root.append( "<PARAGRAPH>\n" );
root.append( "<TEXT>" + text + "</TEXT>\n" );
root.append( "<FORMATS>" + formats + "</FORMATS>\n" );
- root.append( WMLLayoutAsXML( layout) );
+ root.append( WMLLayoutAsXML( tqlayout) );
root.append( "</PARAGRAPH>\n" );
return TRUE;
@@ -231,7 +231,7 @@ void WMLConverter::parse( const char* filename )
}
-KoFilter::ConversionStatus WMLImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus WMLImport::convert( const TQCString& from, const TQCString& to )
{
// check for proper conversion
if( to!= "application/x-kword" || from != "text/vnd.wap.wml" )
diff --git a/filters/kword/wml/wmlimport.h b/filters/kword/wml/wmlimport.h
index 1c169af1..049ff8db 100644
--- a/filters/kword/wml/wmlimport.h
+++ b/filters/kword/wml/wmlimport.h
@@ -37,7 +37,7 @@ class WMLImport : public KoFilter
virtual ~WMLImport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // __WMLIMPORT_H
diff --git a/filters/kword/wml/wmlparser.cpp b/filters/kword/wml/wmlparser.cpp
index 81ccbd24..ecbb235c 100644
--- a/filters/kword/wml/wmlparser.cpp
+++ b/filters/kword/wml/wmlparser.cpp
@@ -403,7 +403,7 @@ WMLFormat& WMLFormat::operator=( const WMLFormat& f )
return *this;
}
-// paragraph layout info
+// paragraph tqlayout info
WMLLayout::WMLLayout()
{
align = Left;
diff --git a/filters/kword/wordperfect/export/wp5.cc b/filters/kword/wordperfect/export/wp5.cc
index ac211d04..bffdecf1 100644
--- a/filters/kword/wordperfect/export/wp5.cc
+++ b/filters/kword/wordperfect/export/wp5.cc
@@ -23,10 +23,10 @@
#include <unistd.h>
#endif
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <KWEFBaseWorker.h>
#include <KWEFKWordLeader.h>
@@ -125,7 +125,7 @@ bool WPFiveWorker::doOpenDocument(void)
for( int i=0; i<14; i++ ) output << index_header[i];
// document area starts, mark it for the header fields
- document_area_ptr = output.device()->at();
+ document_area_ptr = output.tqdevice()->at();
return true;
}
@@ -143,7 +143,7 @@ static TQCString WPFiveEscape( const TQString& text )
for( unsigned int i=0; i < text.length(); i++ )
{
- int c = text[i].unicode();
+ int c = text[i].tqunicode();
if( c < 32 ) result += '.';
else if ( c == 32 ) result += 0x20 ; // hard space
else if ( c < 128 ) result += text[i].latin1();
@@ -155,7 +155,7 @@ static TQCString WPFiveEscape( const TQString& text )
bool WPFiveWorker::doFullParagraph(const TQString& paraText,
- const LayoutData& /*layout*/, const ValueListFormatData& paraFormatDataList)
+ const LayoutData& /*tqlayout*/, const ValueListFormatData& paraFormatDataList)
{
ValueListFormatData::ConstIterator it;
for( it = paraFormatDataList.begin(); it!=paraFormatDataList.end(); ++it )
diff --git a/filters/kword/wordperfect/export/wp5.h b/filters/kword/wordperfect/export/wp5.h
index dc75e2f7..0791459b 100644
--- a/filters/kword/wordperfect/export/wp5.h
+++ b/filters/kword/wordperfect/export/wp5.h
@@ -36,7 +36,7 @@ class WPFiveWorker : 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;
diff --git a/filters/kword/wordperfect/export/wp6.cc b/filters/kword/wordperfect/export/wp6.cc
index a9dd9109..21c59606 100644
--- a/filters/kword/wordperfect/export/wp6.cc
+++ b/filters/kword/wordperfect/export/wp6.cc
@@ -23,10 +23,10 @@
#include <unistd.h>
#endif
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqvaluevector.h>
#include <KWEFBaseWorker.h>
@@ -125,7 +125,7 @@ bool WPSixWorker::doOpenDocument(void)
for( int i=0; i<14; i++ ) output << index_header[i];
// document area starts, mark it for the header fields
- document_area_ptr = output.device()->at();
+ document_area_ptr = output.tqdevice()->at();
return true;
}
@@ -144,7 +144,7 @@ static TQCString WPSixEscape( const TQString& text )
for( unsigned int i=0; i < text.length(); i++ )
{
- int c = text[i].unicode();
+ int c = text[i].tqunicode();
if( c < 32 ) result += '.';
else if ( c == 32 ) result += 0x80 ; // hard space
else if ( c < 128 ) result += text[i].latin1();
@@ -155,14 +155,14 @@ static TQCString WPSixEscape( const TQString& text )
}
bool WPSixWorker::doFullParagraph(const TQString& paraText,
- const LayoutData& layout, const ValueListFormatData& paraFormatDataList)
+ const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList)
{
- // handle paragraph alignment/justification (default to left)
+ // handle paragraph tqalignment/justification (default to left)
unsigned char wp_align[] = { 0xd3, 5, 12, 0, 0, 1, 0, 0, 2, 12, 0, 0xd3 };
- if( layout.alignment == "left" ) wp_align[7] = 0;
- if( layout.alignment == "justify" ) wp_align[7] = 1;
- if( layout.alignment == "center" ) wp_align[7] = 2;
- if( layout.alignment == "right" ) wp_align[7] = 3;
+ if( tqlayout.tqalignment == "left" ) wp_align[7] = 0;
+ if( tqlayout.tqalignment == "justify" ) wp_align[7] = 1;
+ if( tqlayout.tqalignment == "center" ) wp_align[7] = 2;
+ if( tqlayout.tqalignment == "right" ) wp_align[7] = 3;
output.writeRawBytes( (const char*)wp_align, 12 );
ValueListFormatData::ConstIterator it;
diff --git a/filters/kword/wordperfect/export/wp6.h b/filters/kword/wordperfect/export/wp6.h
index 05abb60f..73397338 100644
--- a/filters/kword/wordperfect/export/wp6.h
+++ b/filters/kword/wordperfect/export/wp6.h
@@ -36,7 +36,7 @@ class WPSixWorker : 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;
diff --git a/filters/kword/wordperfect/export/wpexport.cc b/filters/kword/wordperfect/export/wpexport.cc
index f1dde8ad..43a688c3 100644
--- a/filters/kword/wordperfect/export/wpexport.cc
+++ b/filters/kword/wordperfect/export/wpexport.cc
@@ -23,10 +23,10 @@
#include <unistd.h>
#endif
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <KoFilterChain.h>
@@ -47,7 +47,7 @@ WPExport::WPExport( KoFilter *, const char *, const TQStringList& ):
{
}
-KoFilter::ConversionStatus
+KoFilter::ConversiontqStatus
WPExport::convert( const TQCString& from,
const TQCString& to )
{
@@ -69,7 +69,7 @@ WPExport::convert( const TQCString& from,
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/wordperfect/export/wpexport.h b/filters/kword/wordperfect/export/wpexport.h
index 16e81a1b..55f43a47 100644
--- a/filters/kword/wordperfect/export/wpexport.h
+++ b/filters/kword/wordperfect/export/wpexport.h
@@ -35,7 +35,7 @@ class WPExport : public KoFilter
virtual ~WPExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // __WPEXPORT_H
diff --git a/filters/kword/wordperfect/import/kwordfilter.cpp b/filters/kword/wordperfect/import/kwordfilter.cpp
index 1b3b83df..de9246cc 100644
--- a/filters/kword/wordperfect/import/kwordfilter.cpp
+++ b/filters/kword/wordperfect/import/kwordfilter.cpp
@@ -128,7 +128,7 @@ KWordFilter::parse (const TQString & filename)
tokens.append( new Token( Token::HardReturn ) );
TQString text;
- TQString layout;
+ TQString tqlayout;
TQString formats;
int LeftMargin = 0;
int TopMargin = 36;
@@ -253,32 +253,32 @@ KWordFilter::parse (const TQString & filename)
formats.append( " " + fmt );
formats.append ( " </FORMAT>\n" );
- layout = "";
- layout.append( "<LAYOUT>\n" );
- layout.append( " <NAME value=\"Standard\" />\n" );
- layout.append( " <FLOW align=\"" + mapAlign( align ) + "\" />\n" );
- layout.append( " <LINESPACING value=\"" + mapLinespace( linespace) + "\" />\n" );
- layout.append( " <LEFTBORDER width=\"0\" style=\"0\" />\n" );
- layout.append( " <RIGHTBORDER width=\"0\" style=\"0\" />\n" );
- layout.append( " <TOPBORDER width=\"0\" style=\"0\" />\n" );
- layout.append( " <BOTTOMBORDER width=\"0\" style=\"0\" />\n" );
+ tqlayout = "";
+ tqlayout.append( "<LAYOUT>\n" );
+ tqlayout.append( " <NAME value=\"Standard\" />\n" );
+ tqlayout.append( " <FLOW align=\"" + mapAlign( align ) + "\" />\n" );
+ tqlayout.append( " <LINESPACING value=\"" + mapLinespace( linespace) + "\" />\n" );
+ tqlayout.append( " <LEFTBORDER width=\"0\" style=\"0\" />\n" );
+ tqlayout.append( " <RIGHTBORDER width=\"0\" style=\"0\" />\n" );
+ tqlayout.append( " <TOPBORDER width=\"0\" style=\"0\" />\n" );
+ tqlayout.append( " <BOTTOMBORDER width=\"0\" style=\"0\" />\n" );
lm = LeftMargin + LeftMarginAdjust - frameLeftMargin;
rm = RightMargin + RightMarginAdjust - frameRightMargin;
- layout.append( " <INDENTS left=\"" + TQString::number( TQMAX( 0, lm ) ) + "\"" +
+ tqlayout.append( " <INDENTS left=\"" + TQString::number( TQMAX( 0, lm ) ) + "\"" +
" right=\"" + TQString::number( TQMAX( 0 , rm ) ) + "\"" +
" first=\"0\" />\n" );
- layout.append( " <OFFSETS />\n" );
- layout.append( " <PAGEBREAKING />\n" );
- layout.append( " <COUNTER />\n" );
- layout.append( " <FORMAT id=\"1\">\n" );
- layout.append( " <WEIGHT value=\"50\" />\n" );
- layout.append( " <ITALIC value=\"0\" />\n" );
- layout.append( " <UNDERLINE value=\"0\" />\n" );
- layout.append( " <STRIKEOUT value=\"0\" />\n" );
- layout.append( " <CHARSET value=\"0\" />\n" );
- layout.append( " <VERTALIGN value=\"0\" />\n" );
- layout.append( " </FORMAT>\n" );
- layout.append( "</LAYOUT>\n" );
+ tqlayout.append( " <OFFSETS />\n" );
+ tqlayout.append( " <PAGEBREAKING />\n" );
+ tqlayout.append( " <COUNTER />\n" );
+ tqlayout.append( " <FORMAT id=\"1\">\n" );
+ tqlayout.append( " <WEIGHT value=\"50\" />\n" );
+ tqlayout.append( " <ITALIC value=\"0\" />\n" );
+ tqlayout.append( " <UNDERLINE value=\"0\" />\n" );
+ tqlayout.append( " <STRIKEOUT value=\"0\" />\n" );
+ tqlayout.append( " <CHARSET value=\"0\" />\n" );
+ tqlayout.append( " <VERTALIGN value=\"0\" />\n" );
+ tqlayout.append( " </FORMAT>\n" );
+ tqlayout.append( "</LAYOUT>\n" );
// encode text for XML-ness
// FIXME could be faster without TQRegExp
@@ -294,7 +294,7 @@ KWordFilter::parse (const TQString & filename)
root.append( "<FORMATS>\n");
root.append( formats );
root.append( "</FORMATS>\n");
- root.append( layout );
+ root.append( tqlayout );
root.append( "</PARAGRAPH>\n" );
// for the next paragraph
diff --git a/filters/kword/wordperfect/import/parser.cpp b/filters/kword/wordperfect/import/parser.cpp
index 96a2559c..7b87e5a6 100644
--- a/filters/kword/wordperfect/import/parser.cpp
+++ b/filters/kword/wordperfect/import/parser.cpp
@@ -1002,7 +1002,7 @@ Parser::handleTab (TQMemArray < TQ_UINT8 > data)
}
-// the following tables maps WP charset/charcode to unicode character
+// the following tables maps WP charset/charcode to tqunicode character
// WP multinational characters (charset 1)
static unsigned multinational_map[] = {
diff --git a/filters/kword/wordperfect/import/wpimport.cc b/filters/kword/wordperfect/import/wpimport.cc
index 09fc4d5c..460915af 100644
--- a/filters/kword/wordperfect/import/wpimport.cc
+++ b/filters/kword/wordperfect/import/wpimport.cc
@@ -227,7 +227,7 @@ WPImport::WPImport( KoFilter *, const char *, const TQStringList& ): KoFilter()
{
}
-KoFilter::ConversionStatus WPImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus WPImport::convert( const TQCString& from, const TQCString& to )
{
// check for proper conversion
if(to!= "application/vnd.sun.xml.writer" || from != "application/wordperfect" )
diff --git a/filters/kword/wordperfect/import/wpimport.h b/filters/kword/wordperfect/import/wpimport.h
index 3fc52796..02cd323d 100644
--- a/filters/kword/wordperfect/import/wpimport.h
+++ b/filters/kword/wordperfect/import/wpimport.h
@@ -48,7 +48,7 @@ class WPImport : public KoFilter
virtual ~WPImport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif // __WPIMPORT_H
diff --git a/filters/kword/wordperfect/status_old.html b/filters/kword/wordperfect/status_old.html
index 5465048d..1db3dc09 100644
--- a/filters/kword/wordperfect/status_old.html
+++ b/filters/kword/wordperfect/status_old.html
@@ -55,7 +55,7 @@
<li>font information: size, typeface, color</li>
<li>WP extended character converted to Unicode</li>
<li>character formatting: bold, italics, underline, double underline, strikeout, superscript, subscript</li>
- <li>paragraph layout: linespacing, justification</li>
+ <li>paragraph tqlayout: linespacing, justification</li>
<li>page settings: margins</li>
<li>document summary: title, author, abstract</li>
</ul>
diff --git a/filters/libdialogfilter/exportsizedia.cpp b/filters/libdialogfilter/exportsizedia.cpp
index f632080e..f079e2a5 100644
--- a/filters/libdialogfilter/exportsizedia.cpp
+++ b/filters/libdialogfilter/exportsizedia.cpp
@@ -20,7 +20,7 @@
#include <tqcheckbox.h>
#include <tqimage.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlineedit.h>
#include <tqpaintdevice.h>
#include <tqrect.h>
@@ -107,7 +107,7 @@ void ExportSizeDia::setupGUI()
mainLayout->addWidget( percentHeight, 4, 0 );
mainLayout->addWidget( m_percWidthEdit, 4, 1 );
- /* Display the main layout */
+ /* Display the main tqlayout */
//mainLayout->addStretch( 5 );
mainLayout->activate();
}
diff --git a/filters/liboofilter/ooutils.cc b/filters/liboofilter/ooutils.cc
index a04633fe..9a4ac58b 100644
--- a/filters/liboofilter/ooutils.cc
+++ b/filters/liboofilter/ooutils.cc
@@ -209,7 +209,7 @@ void OoUtils::importTabulators( TQDomElement& parentElement, const KoStyleStack&
if ( !styleStack.hasChildNodeNS( ooNS::style, "tab-stops" ) ) // 3.11.10
return;
TQDomElement tabStops = styleStack.childNodeNS( ooNS::style, "tab-stops" );
- //kdDebug(30519) << k_funcinfo << tabStops.childNodes().count() << " tab stops in layout." << endl;
+ //kdDebug(30519) << k_funcinfo << tabStops.childNodes().count() << " tab stops in tqlayout." << endl;
for ( TQDomNode it = tabStops.firstChild(); !it.isNull(); it = it.nextSibling() )
{
TQDomElement tabStop = it.toElement();
@@ -227,7 +227,7 @@ void OoUtils::importTabulators( TQDomElement& parentElement, const KoStyleStack&
else if ( type == "char" ) {
TQString delimiterChar = tabStop.attributeNS( ooNS::style, "char", TQString() ); // single character
elem.setAttribute( "alignchar", delimiterChar );
- kOfficeType = 3; // "alignment on decimal point"
+ kOfficeType = 3; // "tqalignment on decimal point"
}
elem.setAttribute( "type", kOfficeType );
@@ -235,7 +235,7 @@ void OoUtils::importTabulators( TQDomElement& parentElement, const KoStyleStack&
double pos = KoUnit::parseValue( tabStop.attributeNS( ooNS::style, "position", TQString() ) );
elem.setAttribute( "ptpos", pos );
- // TODO Convert leaderChar's unicode value to the KOffice enum
+ // TODO Convert leaderChar's tqunicode value to the KOffice enum
// (blank/dots/line/dash/dash-dot/dash-dot-dot, 0 to 5)
TQString leaderChar = tabStop.attributeNS( ooNS::style, "leader-char", TQString() ); // single character
if ( !leaderChar.isEmpty() )
@@ -499,7 +499,7 @@ void OoUtils::createDocumentInfo(TQDomDocument &_meta, TQDomDocument & docinfo)
}
}
-KoFilter::ConversionStatus OoUtils::loadAndParse(const TQString& fileName, TQDomDocument& doc, KoStore *m_store )
+KoFilter::ConversiontqStatus OoUtils::loadAndParse(const TQString& fileName, TQDomDocument& doc, KoStore *m_store )
{
kdDebug(30518) << "loadAndParse: Trying to open " << fileName << endl;
@@ -508,13 +508,13 @@ KoFilter::ConversionStatus OoUtils::loadAndParse(const TQString& fileName, TQDom
kdWarning(30519) << "Entry " << fileName << " not found!" << endl;
return KoFilter::FileNotFound;
}
- KoFilter::ConversionStatus convertStatus = loadAndParse( m_store->device(),doc, fileName );
+ KoFilter::ConversiontqStatus converttqStatus = loadAndParse( m_store->device(),doc, fileName );
m_store->close();
- return convertStatus;
+ return converttqStatus;
}
-KoFilter::ConversionStatus OoUtils::loadAndParse(TQIODevice* io, TQDomDocument& doc, const TQString & fileName)
+KoFilter::ConversiontqStatus OoUtils::loadAndParse(TQIODevice* io, TQDomDocument& doc, const TQString & fileName)
{
TQXmlInputSource source( io );
// Copied from TQDomDocumentPrivate::setContent, to change the whitespace thing
@@ -538,7 +538,7 @@ KoFilter::ConversionStatus OoUtils::loadAndParse(TQIODevice* io, TQDomDocument&
}
-KoFilter::ConversionStatus OoUtils::loadAndParse(const TQString& filename, TQDomDocument& doc, KZip * m_zip)
+KoFilter::ConversiontqStatus OoUtils::loadAndParse(const TQString& filename, TQDomDocument& doc, KZip * m_zip)
{
kdDebug(30519) << "Trying to open " << filename << endl;
@@ -562,12 +562,12 @@ KoFilter::ConversionStatus OoUtils::loadAndParse(const TQString& filename, TQDom
const KZipFileEntry* f = static_cast<const KZipFileEntry *>(entry);
kdDebug(30519) << "Entry " << filename << " has size " << f->size() << endl;
TQIODevice* io = f->device();
- KoFilter::ConversionStatus convertStatus = loadAndParse( io,doc, filename );
+ KoFilter::ConversiontqStatus converttqStatus = loadAndParse( io,doc, filename );
delete io;
- return convertStatus;
+ return converttqStatus;
}
-KoFilter::ConversionStatus OoUtils::loadThumbnail( TQImage& thumbnail, KZip * m_zip )
+KoFilter::ConversiontqStatus OoUtils::loadThumbnail( TQImage& thumbnail, KZip * m_zip )
{
const TQString filename( "Thumbnails/thumbnail.png" );
kdDebug(30519) << "Trying to open thumbnail " << filename << endl;
diff --git a/filters/liboofilter/ooutils.h b/filters/liboofilter/ooutils.h
index a668d961..70de64c8 100644
--- a/filters/liboofilter/ooutils.h
+++ b/filters/liboofilter/ooutils.h
@@ -80,14 +80,14 @@ namespace OoUtils
void importTextPosition( const TQString& text_position, TQString& value, TQString& relativetextsize );
void createDocumentInfo(TQDomDocument &_meta, TQDomDocument & docinfo);
- KoFilter::ConversionStatus loadAndParse(const TQString& filename, TQDomDocument& doc, KZip * m_zip);
- KoFilter::ConversionStatus loadAndParse(const TQString& filename, TQDomDocument& doc, KoStore *m_store );
+ KoFilter::ConversiontqStatus loadAndParse(const TQString& filename, TQDomDocument& doc, KZip * m_zip);
+ KoFilter::ConversiontqStatus loadAndParse(const TQString& filename, TQDomDocument& doc, KoStore *m_store );
/// Load an OASIS thumbnail
- KoFilter::ConversionStatus loadThumbnail( TQImage& thumbnail, KZip * m_zip );
+ KoFilter::ConversiontqStatus loadThumbnail( TQImage& thumbnail, KZip * m_zip );
// Internal
- KoFilter::ConversionStatus loadAndParse(TQIODevice* io, TQDomDocument& doc, const TQString & fileName);
+ KoFilter::ConversiontqStatus loadAndParse(TQIODevice* io, TQDomDocument& doc, const TQString & fileName);
}
#endif /* OOUTILS_H */
diff --git a/filters/olefilters/olefilter.cc b/filters/olefilters/olefilter.cc
index 0f052e13..ef4f6cd0 100644
--- a/filters/olefilters/olefilter.cc
+++ b/filters/olefilters/olefilter.cc
@@ -69,7 +69,7 @@ OLEFilter::~OLEFilter()
delete docfile;
}
-KoFilter::ConversionStatus OLEFilter::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversiontqStatus OLEFilter::convert( const TQCString& from, const TQCString& to )
{
if(to!="application/x-kword" &&
to!="application/x-kspread" &&
@@ -118,9 +118,9 @@ void OLEFilter::commSlotDelayStream( const char* delay )
emit internalCommDelayStream( delay );
}
-void OLEFilter::commSlotShapeID( unsigned int& shapeID )
+void OLEFilter::commSlotShapeID( unsigned int& tqshapeID )
{
- emit internalCommShapeID( shapeID );
+ emit internalCommShapeID( tqshapeID );
}
void OLEFilter::slotSavePart(
@@ -153,7 +153,7 @@ void OLEFilter::slotSavePart(
if ( srcMime == KMimeType::defaultMimeType() )
kdWarning( s_area ) << "Couldn't determine the mimetype from the extension" << endl;
- KoFilter::ConversionStatus status;
+ KoFilter::ConversiontqStatus status;
TQCString destMime( mimeType.latin1() );
storageId = TQString::number( embedPart( srcMime.latin1(), destMime, status, nameIN ) );
@@ -234,7 +234,7 @@ void OLEFilter::slotSavePic(
else
{
// It's not here, so let's generate one.
- storageId = TQString( "pictures/picture%1.%2" ).arg( numPic++ ).arg( extension );
+ storageId = TQString( "pictures/picture%1.%2" ).tqarg( numPic++ ).tqarg( extension );
imageMap.insert(nameIN, storageId);
KoStoreDevice* pic = m_chain->storageFile( storageId, KoStore::Write );
if(!pic)
diff --git a/filters/olefilters/olefilter.h b/filters/olefilters/olefilter.h
index 2759ea50..80a03737 100644
--- a/filters/olefilters/olefilter.h
+++ b/filters/olefilters/olefilter.h
@@ -39,11 +39,11 @@ public:
OLEFilter(KoFilter *parent, const char *name, const TQStringList&);
virtual ~OLEFilter();
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
public slots:
void commSlotDelayStream( const char* delay );
- void commSlotShapeID( unsigned int& shapeID );
+ void commSlotShapeID( unsigned int& tqshapeID );
protected slots:
// This slot saves the document informations to the KOffice tar storage.
@@ -100,7 +100,7 @@ protected slots:
signals:
// Forwarding signals for inter-filter communication
- void internalCommShapeID( unsigned int& shapeID );
+ void internalCommShapeID( unsigned int& tqshapeID );
void internalCommDelayStream( const char* delay );
private:
diff --git a/filters/olefilters/powerpoint97/powerpoint.cc b/filters/olefilters/powerpoint97/powerpoint.cc
index d28430dd..b53acfc5 100644
--- a/filters/olefilters/powerpoint97/powerpoint.cc
+++ b/filters/olefilters/powerpoint97/powerpoint.cc
@@ -782,7 +782,7 @@ void Powerpoint::opSlideAtom(
{
struct
{
- TQ_UINT8 layout[12]; // Slide layout descriptor.
+ TQ_UINT8 tqlayout[12]; // Slide tqlayout descriptor.
TQ_INT32 masterId; // Id of the master of the slide. Zero for a master slide.
TQ_INT32 notesId; // Id for the corresponding notes slide. Zero if slide has no notes.
TQ_UINT16 flags;
@@ -790,7 +790,7 @@ void Powerpoint::opSlideAtom(
Header tmp;
tmp.type = 1015;
- tmp.length = sizeof(data.layout);
+ tmp.length = sizeof(data.tqlayout);
invokeHandler(tmp, tmp.length, operands);
operands >> data.masterId >> data.notesId >> data.flags;
@@ -819,7 +819,7 @@ void Powerpoint::opSlidePersistAtom(
struct
{
TQ_UINT32 psrReference; // Logical reference to the slide persist object.
- TQ_UINT32 flags; // If bit 3 set then slide contains shapes other than placeholders.
+ TQ_UINT32 flags; // If bit 3 set then slide contains tqshapes other than placeholders.
TQ_INT32 numberTexts; // Number of placeholder texts stored with the persist object.
TQ_INT32 slideId; // Unique slide identifier, used for OLE link monikers for example.
TQ_UINT32 reserved;
@@ -1056,7 +1056,7 @@ void Powerpoint::opTextHeaderAtom(
// 1 Body
// 2 Notes
// 3 Not Used
- // 4 Other (Text in a shape)
+ // 4 Other (Text in a tqshape)
// 5 Center body (subtitle in title slide)
// 6 Center title (title in title slide)
// 7 Half body (body in two-column slide)
diff --git a/filters/olefilters/powerpoint97/pptSlide.h b/filters/olefilters/powerpoint97/pptSlide.h
index 78e9cb0a..026e2ef1 100644
--- a/filters/olefilters/powerpoint97/pptSlide.h
+++ b/filters/olefilters/powerpoint97/pptSlide.h
@@ -34,7 +34,7 @@ DESCRIPTION
#define BODY_TEXT 1 //body
#define NOTES_TEXT 2 //notes
#define NOTUSED_TEXT 3 //not used
-#define OTHER_TEXT 4 //other(test in shape)
+#define OTHER_TEXT 4 //other(test in tqshape)
#define CENTER_BODY_TEXT 5 //center body(subtitle in title slide)
#define CENTER_TITLE_TEXT 6 //center title(title in title slide)
#define HALF_BODY_TEXT 7 //half body(body in two-column slide)
diff --git a/filters/olefilters/powerpoint97/pptxml.cc b/filters/olefilters/powerpoint97/pptxml.cc
index 270cc30f..96a03567 100644
--- a/filters/olefilters/powerpoint97/pptxml.cc
+++ b/filters/olefilters/powerpoint97/pptxml.cc
@@ -143,7 +143,7 @@ void PptXml::gotDrawing(
ourKey = "vectorGraphic" + TQString::number(id) + "." + type;
if (type == "msod")
{
- filterArgs = "shape-id=";
+ filterArgs = "tqshape-id=";
filterArgs += TQString::number(id);
filterArgs += ";delay-stream=";
filterArgs += TQString::number(0);
diff --git a/filters/xsltfilter/export/xsl/kword/xslfo/main.xsl b/filters/xsltfilter/export/xsl/kword/xslfo/main.xsl
index e619bf21..b8bb24de 100644
--- a/filters/xsltfilter/export/xsl/kword/xslfo/main.xsl
+++ b/filters/xsltfilter/export/xsl/kword/xslfo/main.xsl
@@ -39,7 +39,7 @@
<xsl:value-of select="@editor"/>
</xsl:comment>
<fo:root>
- <fo:layout-master-set>
+ <fo:tqlayout-master-set>
<fo:simple-page-master
margin-right="0.5cm" margin-left="0.5cm" margin-bottom="0.5cm" margin-top="0.75cm"
page-width="21cm" page-height="29.7cm" master-name="first">
@@ -61,7 +61,7 @@
<fo:conditional-page-master-reference master-name="rest" />
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
- </fo:layout-master-set>
+ </fo:tqlayout-master-set>
<xsl:apply-templates select="FRAMESETS"/>
</fo:root>
</xsl:template>
diff --git a/filters/xsltfilter/export/xsltdialog.ui b/filters/xsltfilter/export/xsltdialog.ui
index ff542dc3..a52e922c 100644
--- a/filters/xsltfilter/export/xsltdialog.ui
+++ b/filters/xsltfilter/export/xsltdialog.ui
@@ -49,7 +49,7 @@
<property name="name">
<cstring>xsltList</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>200</height>
@@ -104,7 +104,7 @@
<property name="sizeType">
<enum>Minimum</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -145,7 +145,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
diff --git a/filters/xsltfilter/export/xsltexport.cc b/filters/xsltfilter/export/xsltexport.cc
index b1d9d84e..545ffde2 100644
--- a/filters/xsltfilter/export/xsltexport.cc
+++ b/filters/xsltfilter/export/xsltexport.cc
@@ -40,7 +40,7 @@ XSLTExport::XSLTExport(KoFilter *, const char *, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversionStatus XSLTExport::convert( const TQCString& from, const TQCString&)
+KoFilter::ConversiontqStatus XSLTExport::convert( const TQCString& from, const TQCString&)
{
if(from != "application/x-kword" &&
from != "application/x-kontour" && from != "application/x-kspread" &&
diff --git a/filters/xsltfilter/export/xsltexport.h b/filters/xsltfilter/export/xsltexport.h
index b9947255..eac9712a 100644
--- a/filters/xsltfilter/export/xsltexport.h
+++ b/filters/xsltfilter/export/xsltexport.h
@@ -32,6 +32,6 @@ public:
XSLTExport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~XSLTExport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
};
#endif /* __XSLTEXPORT_H__ */
diff --git a/filters/xsltfilter/export/xsltexportdia.cc b/filters/xsltfilter/export/xsltexportdia.cc
index aade6891..8d36f43b 100644
--- a/filters/xsltfilter/export/xsltexportdia.cc
+++ b/filters/xsltfilter/export/xsltexportdia.cc
@@ -64,7 +64,7 @@ XSLTExportDia::XSLTExportDia(KoStoreDevice* in, const TQCString &format, TQWidge
TQString value;
while(i < 10)
{
- value = _config->readPathEntry( TQString("Recent%1").arg(i) );
+ value = _config->readPathEntry( TQString("Recent%1").tqarg(i) );
kdDebug() << "recent : " << value << endl;
if(!value.isEmpty())
{
@@ -227,9 +227,9 @@ void XSLTExportDia::okSlot()
{
kdDebug() << "save : " << _recentList.first() << endl;
#if KDE_IS_VERSION(3,1,3)
- _config->writePathEntry( TQString("Recent%1").arg(i), _recentList.first());
+ _config->writePathEntry( TQString("Recent%1").tqarg(i), _recentList.first());
#else
- _config->writeEntry( TQString("Recent%1").arg(i), _recentList.first());
+ _config->writeEntry( TQString("Recent%1").tqarg(i), _recentList.first());
#endif
_recentList.pop_front();
i = i + 1;
diff --git a/filters/xsltfilter/import/xsltdialog.ui b/filters/xsltfilter/import/xsltdialog.ui
index ff542dc3..a52e922c 100644
--- a/filters/xsltfilter/import/xsltdialog.ui
+++ b/filters/xsltfilter/import/xsltdialog.ui
@@ -49,7 +49,7 @@
<property name="name">
<cstring>xsltList</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>200</height>
@@ -104,7 +104,7 @@
<property name="sizeType">
<enum>Minimum</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -145,7 +145,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
diff --git a/filters/xsltfilter/import/xsltimport.cc b/filters/xsltfilter/import/xsltimport.cc
index 999d9594..e73bdf18 100644
--- a/filters/xsltfilter/import/xsltimport.cc
+++ b/filters/xsltfilter/import/xsltimport.cc
@@ -24,7 +24,7 @@
#include <kgenericfactory.h>
#include <kglobal.h>
#include <klocale.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include "xsltimportdia.h"
@@ -36,7 +36,7 @@ XSLTImport::XSLTImport(KoFilter *, const char *, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversionStatus XSLTImport::convert( const TQCString&, const TQCString& to )
+KoFilter::ConversiontqStatus XSLTImport::convert( const TQCString&, const TQCString& to )
{
TQString config;
diff --git a/filters/xsltfilter/import/xsltimport.h b/filters/xsltfilter/import/xsltimport.h
index 89767a32..fead8d80 100644
--- a/filters/xsltfilter/import/xsltimport.h
+++ b/filters/xsltfilter/import/xsltimport.h
@@ -21,7 +21,7 @@
#define __XSLTIMPORT_H__
#include <tqstring.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -38,7 +38,7 @@ class XSLTImport : public KoFilter
XSLTImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~XSLTImport() {}
- virtual KoFilter::ConversionStatus convert( const TQCString& from,
+ virtual KoFilter::ConversiontqStatus convert( const TQCString& from,
const TQCString& to );
};
diff --git a/filters/xsltfilter/import/xsltimportdia.cc b/filters/xsltfilter/import/xsltimportdia.cc
index c3fb4b97..2e278bf2 100644
--- a/filters/xsltfilter/import/xsltimportdia.cc
+++ b/filters/xsltfilter/import/xsltimportdia.cc
@@ -59,7 +59,7 @@ XSLTImportDia::XSLTImportDia(KoStore* out, const TQCString &format, TQWidget* pa
TQString value;
while(i < 10)
{
- value = _config->readPathEntry( TQString("Recent%1").arg(i) );
+ value = _config->readPathEntry( TQString("Recent%1").tqarg(i) );
kdDebug() << "recent : " << value << endl;
if(!value.isEmpty())
{
@@ -226,9 +226,9 @@ void XSLTImportDia::okSlot()
{
kdDebug() << "save : " << _recentList.first() << endl;
#if KDE_IS_VERSION(3,1,3)
- _config->writePathEntry( TQString("Recent%1").arg(i), _recentList.first());
+ _config->writePathEntry( TQString("Recent%1").tqarg(i), _recentList.first());
#else
- _config->writeEntry( TQString("Recent%1").arg(i), _recentList.first());
+ _config->writeEntry( TQString("Recent%1").tqarg(i), _recentList.first());
#endif
_recentList.pop_front();
i = i + 1;
diff --git a/filters/xsltfilter/kword2xslfo.xsl b/filters/xsltfilter/kword2xslfo.xsl
index 4268afba..ea36238b 100644
--- a/filters/xsltfilter/kword2xslfo.xsl
+++ b/filters/xsltfilter/kword2xslfo.xsl
@@ -36,7 +36,7 @@
<xsl:value-of select="@editor"/>
</xsl:comment>
<fo:root>
- <fo:layout-master-set>
+ <fo:tqlayout-master-set>
<fo:simple-page-master
margin-right="0.5cm" margin-left="0.5cm" margin-bottom="0.5cm" margin-top="0.75cm"
page-width="21cm" page-height="29.7cm" master-name="first">
@@ -58,7 +58,7 @@
<fo:conditional-page-master-reference master-name="rest" />
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
- </fo:layout-master-set>
+ </fo:tqlayout-master-set>
<xsl:apply-templates select="FRAMESETS"/>
</fo:root>
</xsl:template>