summaryrefslogtreecommitdiffstats
path: root/filters
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
commit94844816550ad672ccfcdc25659c625546239998 (patch)
treee35fc60fd736c645d59f6408af032774ad8023d3 /filters
parent2a811c38c74c03648ecf857e566c44483cbad706 (diff)
downloadkoffice-94844816550ad672ccfcdc25659c625546239998.tar.gz
koffice-94844816550ad672ccfcdc25659c625546239998.zip
Rename a number of old tq methods that are no longer tq specific
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 2194831a..5bce37b2 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").tqarg(TQString(imgAttr -> key)), "", rawdata );
+ KisAnnotation* annotation = new KisAnnotation( TQString("chalk_attribute:%1").arg(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").tqarg(TQString(attr -> key)), "", rawdata);
+ TQString("chalk_attribute:%1").arg(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 e56f53d2..2c49532a 100644
--- a/filters/chalk/gmagick/magickexport.cpp
+++ b/filters/chalk/gmagick/magickexport.cpp
@@ -39,7 +39,7 @@ MagickExport::~MagickExport()
{
}
-KoFilter::ConversiontqStatus MagickExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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 46a080f4..b1b73bb5 100644
--- a/filters/chalk/gmagick/magickexport.h
+++ b/filters/chalk/gmagick/magickexport.h
@@ -30,7 +30,7 @@ public:
virtual ~MagickExport();
public:
- virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 dbfe6da8..9400c5bd 100644
--- a/filters/chalk/gmagick/magickimport.cpp
+++ b/filters/chalk/gmagick/magickimport.cpp
@@ -41,7 +41,7 @@ MagickImport::~MagickImport()
{
}
-KoFilter::ConversiontqStatus MagickImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversionStatus 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 22bf3002..6ade3a20 100644
--- a/filters/chalk/gmagick/magickimport.h
+++ b/filters/chalk/gmagick/magickimport.h
@@ -30,7 +30,7 @@ public:
virtual ~MagickImport();
public:
- virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 5fa8e78a..c9772d9a 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").tqarg(cs->id().name()) ) ;
+ KMessageBox::error(0, i18n("Cannot export images in %1.\n").arg(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 edfbbc02..c0eef02d 100644
--- a/filters/chalk/jpeg/kis_jpeg_export.cc
+++ b/filters/chalk/jpeg/kis_jpeg_export.cc
@@ -85,7 +85,7 @@ KisJPEGExport::~KisJPEGExport()
{
}
-KoFilter::ConversiontqStatus KisJPEGExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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 ea55c12c..918c44b5 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 2ca7c4c2..bacec679 100644
--- a/filters/chalk/jpeg/kis_jpeg_import.cc
+++ b/filters/chalk/jpeg/kis_jpeg_import.cc
@@ -41,7 +41,7 @@ KisJPEGImport::~KisJPEGImport()
{
}
-KoFilter::ConversiontqStatus KisJPEGImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversionStatus 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 a32c367f..9db52292 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 cb405324..456fc67a 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>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@@ -34,13 +34,13 @@
<property name="text">
<string>Quality:</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignTop</set>
</property>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout5</cstring>
+ <cstring>layout5</cstring>
</property>
<vbox>
<property name="name">
@@ -80,7 +80,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@@ -101,7 +101,7 @@
<property name="text">
<string>Best</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<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="tqsizeHint">
+ <property name="sizeHint">
<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 dd16dd0e..880a52c6 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").tqarg(TQString(attr -> key)), "", rawdata);
+ TQString("chalk_attribute:%1").arg(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 09f351c1..8c1e3365 100644
--- a/filters/chalk/magick/magickexport.cpp
+++ b/filters/chalk/magick/magickexport.cpp
@@ -39,7 +39,7 @@ MagickExport::~MagickExport()
{
}
-KoFilter::ConversiontqStatus MagickExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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 46a080f4..b1b73bb5 100644
--- a/filters/chalk/magick/magickexport.h
+++ b/filters/chalk/magick/magickexport.h
@@ -30,7 +30,7 @@ public:
virtual ~MagickExport();
public:
- virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 b5f73d19..d3e5bbb9 100644
--- a/filters/chalk/magick/magickimport.cpp
+++ b/filters/chalk/magick/magickimport.cpp
@@ -41,7 +41,7 @@ MagickImport::~MagickImport()
{
}
-KoFilter::ConversiontqStatus MagickImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversionStatus 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 22bf3002..6ade3a20 100644
--- a/filters/chalk/magick/magickimport.h
+++ b/filters/chalk/magick/magickimport.h
@@ -30,7 +30,7 @@ public:
virtual ~MagickImport();
public:
- virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 4859f5d9..062a072f 100644
--- a/filters/chalk/openexr/kis_openexr_export.cpp
+++ b/filters/chalk/openexr/kis_openexr_export.cpp
@@ -57,7 +57,7 @@ KisOpenEXRExport::~KisOpenEXRExport()
{
}
-KoFilter::ConversiontqStatus KisOpenEXRExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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 7f0c71f9..ea62421c 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 974d4a67..8546edb2 100644
--- a/filters/chalk/openexr/kis_openexr_import.cpp
+++ b/filters/chalk/openexr/kis_openexr_import.cpp
@@ -62,7 +62,7 @@ KisOpenEXRImport::~KisOpenEXRImport()
{
}
-KoFilter::ConversiontqStatus KisOpenEXRImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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 8bddb4f5..8654df54 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 2cef93e9..ed504f67 100644
--- a/filters/chalk/pdf/kis_pdf_import.cpp
+++ b/filters/chalk/pdf/kis_pdf_import.cpp
@@ -63,7 +63,7 @@ KisPDFImport::~KisPDFImport()
{
}
-KisPDFImport::ConversiontqStatus KisPDFImport::convert(const TQCString& , const TQCString& )
+KisPDFImport::ConversionStatus KisPDFImport::convert(const TQCString& , const TQCString& )
{
TQString filename = m_chain -> inputFile();
kdDebug(41008) << "Importing using PDFImport!" << filename << endl;
@@ -141,7 +141,7 @@ KisPDFImport::ConversiontqStatus KisPDFImport::convert(const TQCString& , const
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")).tqarg( TQString::number(*it) + 1), TQ_UINT8_MAX);
+ KisPaintLayer* layer = new KisPaintLayer(img, TQString(i18n("Page %1")).arg( 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 06e22288..ffb9c79e 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
};
#endif
diff --git a/filters/chalk/pdf/pdfimportwidgetbase.ui b/filters/chalk/pdf/pdfimportwidgetbase.ui
index 697a3e30..88d24dc6 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>tqlayout6</cstring>
+ <cstring>layout6</cstring>
</property>
<hbox>
<property name="name">
@@ -56,7 +56,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -65,7 +65,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout2</cstring>
+ <cstring>layout2</cstring>
</property>
<grid>
<property name="name">
@@ -141,7 +141,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>31</width>
<height>20</height>
@@ -160,7 +160,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@@ -176,7 +176,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -185,7 +185,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<grid>
<property name="name">
@@ -235,7 +235,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<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 d3cce618..d5c4a080 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").tqarg(cs->id().name()) ) ;
+ KMessageBox::error(0, i18n("Cannot export images in %1.\n").arg(cs->id().name()) ) ;
return -1;
}
diff --git a/filters/chalk/png/kis_png_export.cc b/filters/chalk/png/kis_png_export.cc
index 8154866a..ace65954 100644
--- a/filters/chalk/png/kis_png_export.cc
+++ b/filters/chalk/png/kis_png_export.cc
@@ -49,7 +49,7 @@ KisPNGExport::~KisPNGExport()
{
}
-KoFilter::ConversiontqStatus KisPNGExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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 433b68e3..562628a9 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 ccfe4388..dc2a6325 100644
--- a/filters/chalk/png/kis_png_import.cc
+++ b/filters/chalk/png/kis_png_import.cc
@@ -41,7 +41,7 @@ KisPNGImport::~KisPNGImport()
{
}
-KoFilter::ConversiontqStatus KisPNGImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversionStatus 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 3487d24d..0412e7bd 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 ec5e0ba8..5797c407 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>tqlayout6</cstring>
+ <cstring>layout6</cstring>
</property>
<hbox>
<property name="name">
@@ -37,7 +37,7 @@
<property name="text">
<string>Compress:</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignTop</set>
</property>
<property name="toolTip" stdset="0">
@@ -50,7 +50,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout5</cstring>
+ <cstring>layout5</cstring>
</property>
<vbox>
<property name="name">
@@ -88,7 +88,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@@ -113,7 +113,7 @@
<property name="text">
<string>Small</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="whatsThis" stdset="0">
@@ -137,7 +137,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<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 f006f913..4ec8f028 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::ConversiontqStatus KisRawImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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->tqresize(oldSize + buflen, TQGArray::SpeedOptim);
+ m_data->resize(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 17fd576c..e02caeed 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
private slots:
diff --git a/filters/chalk/raw/wdgrawimport.ui b/filters/chalk/raw/wdgrawimport.ui
index 26115762..59d9642e 100644
--- a/filters/chalk/raw/wdgrawimport.ui
+++ b/filters/chalk/raw/wdgrawimport.ui
@@ -36,7 +36,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>200</width>
<height>150</height>
@@ -45,7 +45,7 @@
</widget>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>tqlayout2</cstring>
+ <cstring>layout2</cstring>
</property>
<vbox>
<property name="name">
@@ -304,7 +304,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>500</width>
<height>20</height>
@@ -321,7 +321,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<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>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@@ -355,7 +355,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout10</cstring>
+ <cstring>layout10</cstring>
</property>
<hbox>
<property name="name">
@@ -408,7 +408,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<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 7a6ad9ca..59784009 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();
- tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum) );
+ setSizePolicy(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 bcd3f22e..28495ff4 100644
--- a/filters/chalk/tiff/kis_tiff_export.cc
+++ b/filters/chalk/tiff/kis_tiff_export.cc
@@ -50,7 +50,7 @@ KisTIFFExport::~KisTIFFExport()
{
}
-KoFilter::ConversiontqStatus KisTIFFExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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 9efeb940..bb78fd4f 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 89d1763f..8c785ffe 100644
--- a/filters/chalk/tiff/kis_tiff_import.cc
+++ b/filters/chalk/tiff/kis_tiff_import.cc
@@ -41,7 +41,7 @@ KisTIFFImport::~KisTIFFImport()
{
}
-KoFilter::ConversiontqStatus KisTIFFImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversionStatus 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 b9e33d06..77cfd0de 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 681e66b7..da399a53 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").tqarg(cs->id().name()) ) ;
+ KMessageBox::error(0, i18n("Cannot export images in %1.\n").arg(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 d840dc8d..29038890 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>tqlayout10</cstring>
+ <cstring>layout10</cstring>
</property>
<hbox>
<property name="name">
@@ -119,7 +119,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout7</cstring>
+ <cstring>layout7</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="tqalignment">
+ <property name="alignment">
<set>AlignTop</set>
</property>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout5</cstring>
+ <cstring>layout5</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>tqlayout4_2</cstring>
+ <cstring>layout4_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="tqalignment">
+ <property name="alignment">
<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="tqalignment">
+ <property name="alignment">
<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>tqlayout5_2</cstring>
+ <cstring>layout5_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>tqlayout4</cstring>
+ <cstring>layout4</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="tqalignment">
+ <property name="alignment">
<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="tqalignment">
+ <property name="alignment">
<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>tqlayout5_2_2</cstring>
+ <cstring>layout5_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>tqlayout4_3</cstring>
+ <cstring>layout4_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="tqalignment">
+ <property name="alignment">
<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="tqsizeHint">
+ <property name="sizeHint">
<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 90d61755..3209e181 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_tqchildren (gimage->layers));
+ gimp_container_num_children (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_tqchildren (gimage->vectors));
+ gimp_container_num_children (gimage->vectors));
return TRUE;
}
@@ -1674,7 +1674,7 @@ xcf_load_vector (XcfInfo * info, KisImage * gimage)
}
gimp_image_add_vectors (gimage, vectors,
- gimp_container_num_tqchildren (gimage->vectors));
+ gimp_container_num_children (gimage->vectors));
return TRUE;
}
diff --git a/filters/chalk/xcf/xcf/xcf-save.cc b/filters/chalk/xcf/xcf/xcf-save.cc
index 3544baf4..a0dbb9b5 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_tqchildren (gimage->layers);
- nchannels = (TQ_UINT32) gimp_container_num_tqchildren (gimage->channels);
+ nlayers = (TQ_UINT32) gimp_container_num_children (gimage->layers);
+ nchannels = (TQ_UINT32) gimp_container_num_children (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_tqchildren (gimage->vectors) > 0)
+ if (gimp_container_num_children (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_tqchildren (gimage->vectors);
+ num_paths = gimp_container_num_children (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_tqchildren (gimage->vectors);
+ num_paths = gimp_container_num_children (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 b26fdba8..06bcf96f 100644
--- a/filters/chalk/xcf/xcfexport.cpp
+++ b/filters/chalk/xcf/xcfexport.cpp
@@ -41,7 +41,7 @@ XCFExport::~XCFExport()
{
}
-KoFilter::ConversiontqStatus XCFExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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 b8f260fb..34595b06 100644
--- a/filters/chalk/xcf/xcfexport.h
+++ b/filters/chalk/xcf/xcfexport.h
@@ -30,7 +30,7 @@ public:
virtual ~XCFExport();
public:
- virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 6f07ebcf..6b81ec67 100644
--- a/filters/chalk/xcf/xcfimport.cpp
+++ b/filters/chalk/xcf/xcfimport.cpp
@@ -39,7 +39,7 @@ XCFImport::~XCFImport()
{
}
-KoFilter::ConversiontqStatus XCFImport::convert(const TQCString&, const TQCString& to)
+KoFilter::ConversionStatus 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 434566ba..27f2cbfe 100644
--- a/filters/chalk/xcf/xcfimport.h
+++ b/filters/chalk/xcf/xcfimport.h
@@ -30,7 +30,7 @@ public:
virtual ~XCFImport();
public:
- virtual KoFilter::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 f3ae2b13..4a1b1f08 100644
--- a/filters/generic_wrapper/generic_filter.cc
+++ b/filters/generic_wrapper/generic_filter.cc
@@ -19,7 +19,7 @@
#include <stdlib.h>
-#include <tqtextcodec.h>
+#include <textcodec.h>
#include <tqfile.h>
#include <kdebug.h>
@@ -41,7 +41,7 @@ GenericFilter::GenericFilter(KoFilter *, const char *, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversiontqStatus GenericFilter::convert( const TQCString &from, const TQCString &to )
+KoFilter::ConversionStatus GenericFilter::convert( const TQCString &from, const TQCString &to )
{
//find the right script to use
@@ -80,7 +80,7 @@ KoFilter::ConversiontqStatus GenericFilter::convert( const TQCString &from, cons
return KoFilter::NotImplemented;
}
-KoFilter::ConversiontqStatus GenericFilter::doImport()
+KoFilter::ConversionStatus GenericFilter::doImport()
{
KTempFile temp(TQString("genericfilter-"));
temp.setAutoDelete(true);
@@ -119,7 +119,7 @@ KoFilter::ConversiontqStatus GenericFilter::doImport()
return KoFilter::OK;
}
-KoFilter::ConversiontqStatus GenericFilter::doExport()
+KoFilter::ConversionStatus GenericFilter::doExport()
{
return KoFilter::NotImplemented;
}
diff --git a/filters/generic_wrapper/generic_filter.h b/filters/generic_wrapper/generic_filter.h
index 7b47406b..71448fce 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::ConversiontqStatus convert( const TQCString& from,
+ virtual KoFilter::ConversionStatus convert( const TQCString& from,
const TQCString& to );
private:
- KoFilter::ConversiontqStatus doImport();
- KoFilter::ConversiontqStatus doExport();
+ KoFilter::ConversionStatus doImport();
+ KoFilter::ConversionStatus 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 608bdf61..023943b9 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::tqfromLatin1( toCString() );
+ return TQString::fromLatin1( 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 4a201ec5..4e854995 100644
--- a/filters/karbon/ai/aiimport.cc
+++ b/filters/karbon/ai/aiimport.cc
@@ -56,7 +56,7 @@ AiImport::~AiImport()
{
}
-KoFilter::ConversiontqStatus
+KoFilter::ConversionStatus
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 c305b536..3dd9a560 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 b3df1581..47c5f2b6 100644
--- a/filters/karbon/applixgraphics/applixgraphicimport.cc
+++ b/filters/karbon/applixgraphics/applixgraphicimport.cc
@@ -26,7 +26,7 @@
#include <kdebug.h>
#include <tqfile.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqmessagebox.h>
#include <KoFilterChain.h>
#include <kgenericfactory.h>
@@ -133,7 +133,7 @@ APPLIXGRAPHICImport::APPLIXGRAPHICImport (KoFilter *, const char *, const TQStri
* *
* *
******************************************************************************/
-KoFilter::ConversiontqStatus APPLIXGRAPHICImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus APPLIXGRAPHICImport::convert( const TQCString& from, const TQCString& to )
{
// Check MIME Types
@@ -156,7 +156,7 @@ KoFilter::ConversiontqStatus 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 += " <tqlayout width=\"210\" lmargin=\"0\" format=\"a4\" bmargin=\"0\" height=\"297\" rmargin=\"0\" tmargin=\"0\" orientation=\"portrait\"/>\n";
+// str += " <layout 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::ConversiontqStatus 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>").tqarg(mystr.latin1()),
+ "This is the header line I did read:<BR><B>%1</B>").arg(mystr.latin1()),
"Comma");
- // i18n( "What is the separator used in this file ? First line is \n%1" ).tqarg(firstLine),
+ // i18n( "What is the separator used in this file ? First line is \n%1" ).arg(firstLine),
return KoFilter::StupidError;
}
diff --git a/filters/karbon/applixgraphics/applixgraphicimport.h b/filters/karbon/applixgraphics/applixgraphicimport.h
index 3e42256e..e0eff76c 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
};
diff --git a/filters/karbon/eps/epsexport.cc b/filters/karbon/eps/epsexport.cc
index e1bd06a5..8696e6a3 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::ConversiontqStatus
+KoFilter::ConversionStatus
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::ConversiontqStatus status = KoFilter::OK;
+ KoFilter::ConversionStatus 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::tqcurrentDateTime() );
+ TQDateTime now( TQDateTime::currentDateTime() );
*m_stream <<
"%%CreationDate: (" << now.toString( Qt::LocalDate ) << ")\n"
diff --git a/filters/karbon/eps/epsexport.h b/filters/karbon/eps/epsexport.h
index 1313294e..f5867b43 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 0fefb3e0..77a650bb 100644
--- a/filters/karbon/eps/epsimport.cc
+++ b/filters/karbon/eps/epsimport.cc
@@ -57,7 +57,7 @@ EpsImport::~EpsImport()
{
}
-KoFilter::ConversiontqStatus
+KoFilter::ConversionStatus
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\"").
- tqarg(llx).tqarg(lly).tqarg(urx).tqarg(ury);
+ arg(llx).arg(lly).arg(urx).arg(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 873dc169..c86be29d 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
};
#endif
diff --git a/filters/karbon/kontour/kontourimport.cpp b/filters/karbon/kontour/kontourimport.cpp
index a260fd50..30b77ccf 100644
--- a/filters/karbon/kontour/kontourimport.cpp
+++ b/filters/karbon/kontour/kontourimport.cpp
@@ -49,7 +49,7 @@ KontourImport::~KontourImport()
}
-KoFilter::ConversiontqStatus KontourImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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( "tqlayout" ).toElement().attribute( "height" ).toDouble();
- width = lay.firstChild().namedItem( "tqlayout" ).toElement().attribute( "width" ).toDouble();
+ height = lay.firstChild().namedItem( "layout" ).toElement().attribute( "height" ).toDouble();
+ width = lay.firstChild().namedItem( "layout" ).toElement().attribute( "width" ).toDouble();
}
else
{
diff --git a/filters/karbon/kontour/kontourimport.h b/filters/karbon/kontour/kontourimport.h
index e140f088..92e27a09 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 3e79e3ab..8c4c2795 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_tqshape.data = 0L;
- m_tqshape.length = 0;
+ m_shape.data = 0L;
+ m_shape.length = 0;
}
Msod::~Msod()
{
- delete [] m_tqshape.data;
+ delete [] m_shape.data;
delete m_opt;
}
void Msod::drawShape(
- unsigned tqshapeType,
+ unsigned shapeType,
TQ_UINT32 bytes,
TQDataStream &operands)
{
@@ -262,25 +262,25 @@ void Msod::drawShape(
};
struct
{
- TQ_UINT32 spid; // The tqshape id
+ TQ_UINT32 spid; // The shape id
union
{
TQ_UINT32 info;
struct
{
- 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.
+ 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.
// Exactly one of these per drawing.
TQ_UINT32 fDeleted : 1; // The shape.has been deleted
- TQ_UINT32 fOleShape : 1; // The tqshape is an OLE object
+ TQ_UINT32 fOleShape : 1; // The shape 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 tqshape
+ TQ_UINT32 fConnector : 1; // Connector type of shape
TQ_UINT32 fHaveAnchor : 1; // Shape has an anchor of some kind
- TQ_UINT32 fBackground : 1; // Background tqshape
- TQ_UINT32 fHaveSpt : 1; // Shape has a tqshape type property
+ TQ_UINT32 fBackground : 1; // Background shape
+ TQ_UINT32 fHaveSpt : 1; // Shape has a shape 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) << "tqshape-id: " << data.spid << " type: " << funcTab[tqshapeType] << " (" << tqshapeType << ")" <<
+ kdDebug(s_area) << "shape-id: " << data.spid << " type: " << funcTab[shapeType] << " (" << shapeType << ")" <<
(data.grfPersistent.fields.fGroup ? " group" : "") <<
(data.grfPersistent.fields.fChild ? " child" : "") <<
(data.grfPersistent.fields.fPatriarch ? " patriarch" : "") <<
(data.grfPersistent.fields.fDeleted ? " deleted" : "") <<
- (data.grfPersistent.fields.fOleShape ? " oletqshape" : "") <<
+ (data.grfPersistent.fields.fOleShape ? " oleshape" : "") <<
(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 tqshape! Let's draw it...
+ // An active shape! Let's draw it...
- switch (tqshapeType)
+ switch (shapeType)
{
case 0:
if (m_opt->m_pVertices)
@@ -493,7 +493,7 @@ TQSize Msod::normaliseSize(
}
bool Msod::parse(
- unsigned tqshapeId,
+ unsigned shapeId,
const TQString &file,
const char *delayStream)
{
@@ -505,19 +505,19 @@ bool Msod::parse(
return false;
}
TQDataStream stream(&in);
- bool result = parse(tqshapeId, stream, in.size(), delayStream);
+ bool result = parse(shapeId, stream, in.size(), delayStream);
in.close();
return result;
}
bool Msod::parse(
- unsigned tqshapeId,
+ unsigned shapeId,
TQDataStream &stream,
unsigned size,
const char *delayStream)
{
stream.setByteOrder(TQDataStream::LittleEndian); // Great, I love TQt !
- m_requestedShapeId = tqshapeId;
+ m_requestedShapeId = shapeId;
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 tqshapes in this drawing.
- TQ_UINT32 spidCur; // The last tqshape ID given to an SP in this DG.
+ TQ_UINT32 csp; // The number of shapes in this drawing.
+ TQ_UINT32 spidCur; // The last shape 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 tqshape ID.
+ TQ_UINT32 spidMax; // The current maximum shape ID.
TQ_UINT32 cidcl; // The number of ID clusters (FIDCLs).
- TQ_UINT32 cspSaved; // The total number of tqshapes saved.
- // (including deleted tqshapes, if undo
+ TQ_UINT32 cspSaved; // The total number of shapes saved.
+ // (including deleted shapes, 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 << " tqshapes in " <<
+ kdDebug(s_area) << data.cspSaved << " shapes 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 tqshape until we have seen any options
+ // We want to defer the act of drawing a shape 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_tqshape.type = op.opcode.fields.inst;
- m_tqshape.length = bytes;
- m_tqshape.data = new char [bytes];
- operands.readRawBytes(m_tqshape.data, bytes);
+ m_shape.type = op.opcode.fields.inst;
+ m_shape.length = bytes;
+ m_shape.data = new char [bytes];
+ operands.readRawBytes(m_shape.data, bytes);
}
void Msod::opSpcontainer(Header &, TQ_UINT32 bytes, TQDataStream &operands)
{
walk(bytes, operands);
- // Having gathered all the information for this tqshape, we can now draw it.
+ // Having gathered all the information for this shape, we can now draw it.
TQByteArray a;
- a.setRawData(m_tqshape.data, m_tqshape.length);
+ a.setRawData(m_shape.data, m_shape.length);
TQDataStream s(a, IO_ReadOnly);
s.setByteOrder(TQDataStream::LittleEndian); // Great, I love TQt !
- drawShape(m_tqshape.type, m_tqshape.length, s);
- a.resetRawData(m_tqshape.data, m_tqshape.length);
- delete [] m_tqshape.data;
- m_tqshape.data = 0L;
+ drawShape(m_shape.type, m_shape.length, s);
+ a.resetRawData(m_shape.data, m_shape.length);
+ delete [] m_shape.data;
+ m_shape.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_tqshapePath = 1;
+ m_shapePath = 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_tqshapePath = op.value;
+ m_shapePath = 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 f53146bf..3db6fc2f 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 tqshapeId.
+ // Called to parse the given file. We extract a drawing by shapeId.
// If the drawing is not found, the return value will be false.
bool parse(
- unsigned tqshapeId,
+ unsigned shapeId,
const TQString &file,
const char *delayStream = 0L);
bool parse(
- unsigned tqshapeId,
+ unsigned shapeId,
TQDataStream &stream,
unsigned size,
const char *delayStream = 0L);
@@ -114,14 +114,14 @@ private:
unsigned type;
char *data;
unsigned length;
- } m_tqshape;
+ } m_shape;
TQPoint normalisePoint(
TQDataStream &operands);
TQSize normaliseSize(
TQDataStream &operands);
void drawShape(
- unsigned tqshapeType,
+ unsigned shapeType,
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_tqshapePath;
+ TQ_UINT32 m_shapePath;
TQPointArray *m_pVertices;
bool m_fShadowOK;
bool m_f3DOK;
diff --git a/filters/karbon/msod/msodimport.cc b/filters/karbon/msod/msodimport.cc
index 903d50a2..e25889c0 100644
--- a/filters/karbon/msod/msodimport.cc
+++ b/filters/karbon/msod/msodimport.cc
@@ -46,18 +46,18 @@ MSODImport::~MSODImport()
{
}
-KoFilter::ConversiontqStatus MSODImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus MSODImport::convert( const TQCString& from, const TQCString& to )
{
if (to != "application/x-karbon" || from != "image/x-msod")
return KoFilter::NotImplemented;
- // Get configuration data: the tqshape id, and any delay stream that we were given.
- unsigned tqshapeId;
- emit commSignalShapeID( tqshapeId );
+ // Get configuration data: the shape id, and any delay stream that we were given.
+ unsigned shapeId;
+ emit commSignalShapeID( shapeId );
const char *delayStream = 0L;
emit commSignalDelayStream( delayStream );
kdDebug( s_area ) << "##################################################################" << endl;
- kdDebug( s_area ) << "tqshape id: " << tqshapeId << endl;
+ kdDebug( s_area ) << "shape id: " << shapeId << endl;
kdDebug( s_area ) << "delay stream: " << delayStream << endl;
kdDebug( s_area ) << "##################################################################" << endl;
/*
@@ -68,9 +68,9 @@ KoFilter::ConversiontqStatus MSODImport::convert( const TQCString& from, const T
kdDebug(s_area) << "MSODImport::filter: config: " << config << endl;
for (i = 0; i < args.count(); i++)
{
- if (args[i].startsWith("tqshape-id="))
+ if (args[i].startsWith("shape-id="))
{
- tqshapeId = args[i].mid(9).toUInt();
+ shapeId = args[i].mid(9).toUInt();
}
else
if (args[i].startsWith("delay-stream="))
@@ -91,7 +91,7 @@ KoFilter::ConversiontqStatus MSODImport::convert( const TQCString& from, const T
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(tqshapeId, m_chain->inputFile(), delayStream))
+ if (!parse(shapeId, 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::ConversiontqStatus status;
+ KoFilter::ConversionStatus 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 162176de..9264b7d5 100644
--- a/filters/karbon/msod/msodimport.h
+++ b/filters/karbon/msod/msodimport.h
@@ -39,7 +39,7 @@ public:
const TQStringList&);
virtual ~MSODImport();
- virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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& tqshapeID );
+ void commSignalShapeID( unsigned int& shapeID );
private:
virtual void savePartContents( TQIODevice* file );
diff --git a/filters/karbon/oodraw/oodrawimport.cc b/filters/karbon/oodraw/oodrawimport.cc
index 90320d7e..fba48867 100644
--- a/filters/karbon/oodraw/oodrawimport.cc
+++ b/filters/karbon/oodraw/oodrawimport.cc
@@ -62,7 +62,7 @@ OoDrawImport::~OoDrawImport()
{
}
-KoFilter::ConversiontqStatus OoDrawImport::convert( TQCString const & from, TQCString const & to )
+KoFilter::ConversionStatus OoDrawImport::convert( TQCString const & from, TQCString const & to )
{
kdDebug() << "Entering Oodraw Import filter: " << from << " - " << to << endl;
@@ -81,13 +81,13 @@ KoFilter::ConversiontqStatus OoDrawImport::convert( TQCString const & from, TQCS
return KoFilter::FileNotFound;
}
- KoFilter::ConversiontqStatus pretqStatus = openFile();
+ KoFilter::ConversionStatus preStatus = openFile();
- if( pretqStatus != KoFilter::OK )
+ if( preStatus != KoFilter::OK )
{
m_zip->close();
delete m_zip;
- return pretqStatus;
+ return preStatus;
}
/*TQDomDocument docinfo;
createDocumentInfo( docinfo );
@@ -149,9 +149,9 @@ void OoDrawImport::createDocumentInfo( TQDomDocument &docinfo )
// Very related to OoWriterImport::openFile()
-KoFilter::ConversiontqStatus OoDrawImport::openFile()
+KoFilter::ConversionStatus OoDrawImport::openFile()
{
- KoFilter::ConversiontqStatus status = loadAndParse( "content.xml", m_content );
+ KoFilter::ConversionStatus 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::ConversiontqStatus OoDrawImport::loadAndParse(const TQString& filename, TQDomDocument& doc)
+KoFilter::ConversionStatus 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 2b395f48..6e753d7d 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::ConversiontqStatus convert( TQCString const & from, TQCString const & to );
+ virtual KoFilter::ConversionStatus 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::ConversiontqStatus openFile();
- KoFilter::ConversiontqStatus loadAndParse(const TQString& filename, TQDomDocument& doc);
+ KoFilter::ConversionStatus openFile();
+ KoFilter::ConversionStatus 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 4de61a44..89b43d03 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::ConversiontqStatus
+KoFilter::ConversionStatus
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 3758daa3..df893965 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
};
#endif
diff --git a/filters/karbon/svg/svgexport.cc b/filters/karbon/svg/svgexport.cc
index 2e661039..a5ed9b40 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::ConversiontqStatus
+KoFilter::ConversionStatus
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\"" ).tqarg( obj->name() );
+ return TQString( " id=\"%1\"" ).arg( 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.tqalignment() == VText::Center )
+ if( text.alignment() == VText::Center )
*m_body << " text-anchor=\"middle\"";
- else if( text.tqalignment() == VText::Right )
+ else if( text.alignment() == 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 6bfe5d98..c79d1fde 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 5a5e90aa..9d323d3d 100644
--- a/filters/karbon/svg/svgimport.cc
+++ b/filters/karbon/svg/svgimport.cc
@@ -54,7 +54,7 @@ SvgImport::~SvgImport()
{
}
-KoFilter::ConversiontqStatus SvgImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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.").tqarg(m_time.elapsed()));
+ //m_debug->append(TQString("%1\tUndo Y-mirroring.").arg(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%" ).tqarg( gc->fill.gradient().origin().x() ), true, false, bbox );
- double offsety = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().origin().y() ), false, true, bbox );
+ 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 );
gc->fill.gradient().setOrigin( KoPoint( bbox.x() + offsetx, bbox.y() + offsety ) );
if(gc->fill.gradient().type() == VGradient::radial)
{
- 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 );
+ 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 );
gc->fill.gradient().setFocalPoint( KoPoint( bbox.x() + offsetx, bbox.y() + offsety ) );
}
- 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 );
+ 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 );
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->tqsetAlignment( VText::Center );
+ text->setAlignment( VText::Center );
else if( anchor == "end" )
- text->tqsetAlignment( VText::Right );
+ text->setAlignment( VText::Right );
if( offset > 0.0 )
text->setOffset( offset );
diff --git a/filters/karbon/svg/svgimport.h b/filters/karbon/svg/svgimport.h
index e4e3f56a..636077a1 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 a04dfc11..de929ca8 100644
--- a/filters/karbon/wmf/wmfexport.cc
+++ b/filters/karbon/wmf/wmfexport.cc
@@ -57,7 +57,7 @@ WmfExport::~WmfExport()
{
}
-KoFilter::ConversiontqStatus WmfExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 e0c9be57..2c464f13 100644
--- a/filters/karbon/wmf/wmfexport.h
+++ b/filters/karbon/wmf/wmfexport.h
@@ -20,7 +20,7 @@
#define WMFEXPORT_H
#include <tqpen.h>
-#include <tqbrush.h>
+#include <brush.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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 23eaaa12..f7dcdcf3 100644
--- a/filters/karbon/wmf/wmfimport.cc
+++ b/filters/karbon/wmf/wmfimport.cc
@@ -45,7 +45,7 @@ WMFImport::~WMFImport()
{
}
-KoFilter::ConversiontqStatus WMFImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 21bcee74..34ee8140 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
};
diff --git a/filters/karbon/xaml/xamlexport.cc b/filters/karbon/xaml/xamlexport.cc
index 228024f3..e1599a8c 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::ConversiontqStatus
+KoFilter::ConversionStatus
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\"" ).tqarg( obj->name() );
+ return TQString( " Name=\"%1\"" ).arg( obj->name() );
return TQString();
}
diff --git a/filters/karbon/xaml/xamlexport.h b/filters/karbon/xaml/xamlexport.h
index b1a0f4fd..124ea3fd 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 3a755181..002001e2 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 <tqshapes/vellipse.h>
-#include <tqshapes/vrectangle.h>
-#include <tqshapes/vpolygon.h>
+#include <shapes/vellipse.h>
+#include <shapes/vrectangle.h>
+#include <shapes/vpolygon.h>
#include <commands/vtransformcmd.h>
#include <core/vsegment.h>
#include <core/vtext.h>
@@ -52,7 +52,7 @@ XAMLImport::~XAMLImport()
{
}
-KoFilter::ConversiontqStatus XAMLImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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%" ).tqarg( gc->fill.gradient().origin().x() ), true, false, bbox );
- double offsety = parseUnit( TQString( "%1%" ).tqarg( gc->fill.gradient().origin().y() ), false, true, bbox );
+ 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 );
gc->fill.gradient().setOrigin( KoPoint( bbox.x() + offsetx, bbox.y() + offsety ) );
- 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 );
+ 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 );
gc->fill.gradient().setFocalPoint( KoPoint( bbox.x() + offsetx, bbox.y() + offsety ) );
- 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 );
+ 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 );
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 b61313b9..001d1dc3 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 3e9237fb..215c4f01 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::ConversiontqStatus
+KoFilter::ConversionStatus
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->tqdevice()->at();
+ current = m_stream->device()->at();
// Leave space for layer and channel offsets.
- m_stream->tqdevice()->at(
+ m_stream->device()->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->tqdevice()->at();
+ start = m_stream->device()->at();
// Write layer.
@@ -150,31 +150,31 @@ XcfExport::visitVDocument( VDocument& document )
// Save end offset.
- end = m_stream->tqdevice()->at();
+ end = m_stream->device()->at();
// Return to current offset.
- m_stream->tqdevice()->at( current );
+ m_stream->device()->at( current );
// Save layer offset.
*m_stream << start;
// Increment offset.
- current = m_stream->tqdevice()->at();
+ current = m_stream->device()->at();
// Return to end offset.
- m_stream->tqdevice()->at( end );
+ m_stream->device()->at( end );
}
// Return to current offset.
- m_stream->tqdevice()->at( current );
+ m_stream->device()->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->tqdevice()->at( end );
+ m_stream->device()->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->tqdevice()->at();
+ current = m_stream->device()->at();
// Leave space for hierarchy offsets.
- m_stream->tqdevice()->at( current + 8 );
+ m_stream->device()->at( current + 8 );
// Save start offset.
- start = m_stream->tqdevice()->at();
+ start = m_stream->device()->at();
// Write hierarchy.
@@ -293,10 +293,10 @@ XcfExport::visitVLayer( VLayer& layer )
// Save end offset.
- end = m_stream->tqdevice()->at();
+ end = m_stream->device()->at();
// Return to current offset.
- m_stream->tqdevice()->at( current );
+ m_stream->device()->at( current );
// Save hierarchy offset.
*m_stream << start;
@@ -333,15 +333,15 @@ XcfExport::writeHierarchy()
int height = m_height;
// Save current offset.
- current = m_stream->tqdevice()->at();
+ current = m_stream->device()->at();
// Leave space for level offsets.
- m_stream->tqdevice()->at( current + ( levels + 1 ) * 4 );
+ m_stream->device()->at( current + ( levels + 1 ) * 4 );
for( int i = 0; i < levels; ++i )
{
// Save start offset.
- start = m_stream->tqdevice()->at();
+ start = m_stream->device()->at();
if( i == 0 )
{
@@ -360,23 +360,23 @@ XcfExport::writeHierarchy()
}
// Save end offset.
- end = m_stream->tqdevice()->at();
+ end = m_stream->device()->at();
// Return to current offset.
- m_stream->tqdevice()->at( current );
+ m_stream->device()->at( current );
// Save level offset.
*m_stream << start;
// Increment offset.
- current = m_stream->tqdevice()->at();
+ current = m_stream->device()->at();
// Return to end offset.
- m_stream->tqdevice()->at( end );
+ m_stream->device()->at( end );
}
// Return to current offset.
- m_stream->tqdevice()->at( current );
+ m_stream->device()->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->tqdevice()->at();
+ current = m_stream->device()->at();
// Leave space for tile offsets.
- m_stream->tqdevice()->at( current + ( tiles + 1 ) * 4 );
+ m_stream->device()->at( current + ( tiles + 1 ) * 4 );
for( int i = 0; i < tiles; ++i )
{
// Save start offset.
- start = m_stream->tqdevice()->at();
+ start = m_stream->device()->at();
// TODO: Save tile.
@@ -425,19 +425,19 @@ XcfExport::writeLevel()
// Save end offset.
- end = m_stream->tqdevice()->at();
+ end = m_stream->device()->at();
// Return to current offset.
- m_stream->tqdevice()->at( current );
+ m_stream->device()->at( current );
// Save tile offset.
*m_stream << start;
// Increment offset.
- current = m_stream->tqdevice()->at();
+ current = m_stream->device()->at();
// Return to end offset.
- m_stream->tqdevice()->at( end );
+ m_stream->device()->at( end );
}
}
diff --git a/filters/karbon/xcf/xcfexport.h b/filters/karbon/xcf/xcfexport.h
index 82d86883..f6a7be70 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 015c4006..c3d6ab6a 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 tqlayout;
+ KoPageLayout layout;
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();
- tqlayout = gdoc->activePage()->pageLayout ();
+ layout = 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)
- tqlayout.orientation = PG_LANDSCAPE;
+ layout.orientation = PG_LANDSCAPE;
else if (::strcmp (buf, "Portrait") == 0)
- tqlayout.orientation = PG_PORTRAIT;
+ layout.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)
- tqlayout.unit = PG_MM;
+ layout.unit = PG_MM;
else if (::strcmp (buf, "Inches") == 0)
- tqlayout.unit = PG_INCH;
+ layout.unit = PG_INCH;
else
kdDebug() << "ERROR: invalid units" << endl;
diff --git a/filters/kchart/libimageexport/imageexport.cpp b/filters/kchart/libimageexport/imageexport.cpp
index 5033762b..faff17ff 100644
--- a/filters/kchart/libimageexport/imageexport.cpp
+++ b/filters/kchart/libimageexport/imageexport.cpp
@@ -40,7 +40,7 @@ ImageExport::~ImageExport()
}
-KoFilter::ConversiontqStatus
+KoFilter::ConversionStatus
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 825b0156..d1a73abe 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 8d8ad52c..1507f536 100644
--- a/filters/kchart/svg/svgexport.cc
+++ b/filters/kchart/svg/svgexport.cc
@@ -45,7 +45,7 @@ SvgExport::~SvgExport()
}
-KoFilter::ConversiontqStatus
+KoFilter::ConversionStatus
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 c04c0f22..653aae9b 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 77488fa9..3f184674 100644
--- a/filters/kformula/latex/latexexport.cc
+++ b/filters/kformula/latex/latexexport.cc
@@ -18,7 +18,7 @@
*/
#include <tqstring.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqfile.h>
#include <kapplication.h>
@@ -46,7 +46,7 @@ LATEXExport::LATEXExport( KoFilter */*parent*/, const char */*name*/, const TQSt
}
-KoFilter::ConversiontqStatus LATEXExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 091ed125..83672fae 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 507c13a2..6103da18 100644
--- a/filters/kformula/mathml/mathmlexport.cc
+++ b/filters/kformula/mathml/mathmlexport.cc
@@ -18,7 +18,7 @@
*/
#include <tqstring.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqfile.h>
#include <kapplication.h>
@@ -46,7 +46,7 @@ MathMLExport::MathMLExport( KoFilter */*parent*/, const char */*name*/, const TQ
}
-KoFilter::ConversiontqStatus MathMLExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 a49b837b..2a442a22 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 87ce2182..6900c61b 100644
--- a/filters/kformula/mathml/mathmlimport.cc
+++ b/filters/kformula/mathml/mathmlimport.cc
@@ -25,7 +25,7 @@
#include <kmessagebox.h>
#include <KoFilterChain.h>
-#include <tqtextcodec.h>
+#include <textcodec.h>
#include <kformuladocument.h>
#include <kformulacontainer.h>
@@ -44,7 +44,7 @@ MathMLImport::MathMLImport(KoFilter *, const char *, const TQStringList&)
{
}
-KoFilter::ConversiontqStatus MathMLImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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::ConversiontqStatus MathMLImport::convert( const TQCString& from, const
const TQString filename( m_chain->inputFile() );
TQFile f( filename );
if ( !f.open( IO_ReadOnly ) ) {
- KMessageBox::error( 0, i18n( "Failed to open input file: %1" ).tqarg( filename ), i18n( "MathML Import Error" ) );
+ KMessageBox::error( 0, i18n( "Failed to open input file: %1" ).arg( filename ), i18n( "MathML Import Error" ) );
delete wrapper;
return KoFilter::FileNotFound;
}
@@ -84,7 +84,7 @@ KoFilter::ConversiontqStatus MathMLImport::convert( const TQCString& from, const
<< " 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" )
- .tqarg( errorLine ).tqarg( errorColumn ).tqarg( i18n ( "TQXml", errorMsg.utf8() ).tqarg( filename ) ), i18n( "MathML Import Error" ) );
+ .arg( errorLine ).arg( errorColumn ).arg( i18n ( "TQXml", errorMsg.utf8() ).arg( 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 a4a28e18..4835b69b 100644
--- a/filters/kformula/mathml/mathmlimport.h
+++ b/filters/kformula/mathml/mathmlimport.h
@@ -21,7 +21,7 @@
#define MATHMLIMPORT_H
#include <tqstring.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -36,7 +36,7 @@ public:
MathMLImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~MathMLImport() {}
- virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 c6d3611e..764cfc2b 100644
--- a/filters/kformula/png/pngexport.cc
+++ b/filters/kformula/png/pngexport.cc
@@ -18,7 +18,7 @@
*/
#include <tqstring.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -46,7 +46,7 @@ PNGExport::PNGExport( KoFilter */*parent*/, const char */*name*/, const TQString
}
-KoFilter::ConversiontqStatus PNGExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 8dd3de34..eb71df94 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 fb0407e0..36741fa2 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 <tqlayout.h>
+#include <layout.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* tqlayout1 = new TQGridLayout;
- tqlayout1->addWidget( height, 1, 0 );
- tqlayout1->addWidget( widthEdit, 0, 1 );
- tqlayout1->addWidget( width, 0, 0 );
- tqlayout1->addWidget( heightEdit, 1, 1 );
+ TQGridLayout* layout1 = new TQGridLayout;
+ layout1->addWidget( height, 1, 0 );
+ layout1->addWidget( widthEdit, 0, 1 );
+ layout1->addWidget( width, 0, 0 );
+ layout1->addWidget( heightEdit, 1, 1 );
- mainLayout->addLayout( tqlayout1 );
+ mainLayout->addLayout( layout1 );
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* tqlayout2 = new TQGridLayout;
- tqlayout2->addWidget( percWidthEdit, 0, 1 );
- tqlayout2->addWidget( percHeightEdit, 1, 1 );
- tqlayout2->addWidget( percentHeight, 1, 0 );
- tqlayout2->addWidget( percentWidth, 0, 0 );
+ TQGridLayout* layout2 = new TQGridLayout;
+ layout2->addWidget( percWidthEdit, 0, 1 );
+ layout2->addWidget( percHeightEdit, 1, 1 );
+ layout2->addWidget( percentHeight, 1, 0 );
+ layout2->addWidget( percentWidth, 0, 0 );
- mainLayout->addLayout( tqlayout2 );
+ mainLayout->addLayout( layout2 );
- /* Display the main tqlayout */
+ /* Display the main layout */
mainLayout->addStretch( 5 );
mainLayout->activate();
}
diff --git a/filters/kformula/svg/svgexport.cc b/filters/kformula/svg/svgexport.cc
index 25758e82..328f1518 100644
--- a/filters/kformula/svg/svgexport.cc
+++ b/filters/kformula/svg/svgexport.cc
@@ -48,7 +48,7 @@ SvgExport::~SvgExport()
}
-KoFilter::ConversiontqStatus
+KoFilter::ConversionStatus
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 65a5cef1..0296e574 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 cd983fe6..2339dbf0 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::ConversiontqStatus ImageExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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 e1946f0f..498204fa 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
};
}
diff --git a/filters/kivio/imageexport/kivio_imageexportwidget.ui b/filters/kivio/imageexport/kivio_imageexportwidget.ui
index 41d73a4c..34feba57 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="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>40</height>
@@ -81,7 +81,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>60</width>
<height>21</height>
@@ -103,7 +103,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>70</width>
<height>20</height>
diff --git a/filters/kpresenter/kword/kprkword.cc b/filters/kpresenter/kword/kprkword.cc
index d40cd608..8dd96c5f 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::ConversiontqStatus KprKword::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 f4141a09..30932652 100644
--- a/filters/kpresenter/kword/kprkword.h
+++ b/filters/kpresenter/kword/kprkword.h
@@ -33,7 +33,7 @@ public:
virtual ~KprKword() {}
- virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 b87b8635..c4ceb243 100644
--- a/filters/kpresenter/libimageexport/imageexport.cpp
+++ b/filters/kpresenter/libimageexport/imageexport.cpp
@@ -42,7 +42,7 @@ ImageExport::~ImageExport()
}
-KoFilter::ConversiontqStatus
+KoFilter::ConversionStatus
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 23f45e28..5cb89622 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 e2e5b50a..97527471 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.tqalignment="1" #text tqalignment, left
+ self.alignment="1" #text alignment, 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.tqalignment="8"
+ self.alignment="8"
elif (tokens[0]=='right'):
- self.tqalignment="2"
+ self.alignment="2"
elif (tokens[0]=='center'):
- self.tqalignment="4"
+ self.alignment="4"
else:
- self.tqalignment="1" #left
- #print self.tqalignment
+ self.alignment="1" #left
+ #print self.alignment
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.tqalignment)
+ pElem.setAttribute("align", self.alignment)
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(tqunicode(line, self.charset, 'ignore'))
+ text=self.document.createTextNode(unicode(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 tqalignment
+ command.startswith('right')): #text alignment
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 0e4771cf..47173cb9 100644
--- a/filters/kpresenter/ooimpress/ooimpressexport.cc
+++ b/filters/kpresenter/ooimpress/ooimpressexport.cc
@@ -54,7 +54,7 @@ OoImpressExport::~OoImpressExport()
delete m_storeinp;
}
-KoFilter::ConversiontqStatus OoImpressExport::convert( const TQCString & from,
+KoFilter::ConversionStatus OoImpressExport::convert( const TQCString & from,
const TQCString & to )
{
kdDebug(30518) << "Entering Ooimpress Export filter: " << from << " - " << to << endl;
@@ -66,10 +66,10 @@ KoFilter::ConversiontqStatus OoImpressExport::convert( const TQCString & from,
}
// read in the KPresenter file
- KoFilter::ConversiontqStatus pretqStatus = openFile();
+ KoFilter::ConversionStatus preStatus = openFile();
- if ( pretqStatus != KoFilter::OK )
- return pretqStatus;
+ if ( preStatus != KoFilter::OK )
+ return preStatus;
TQDomImplementation impl;
TQDomDocument meta( impl.createDocumentType( "office:document-meta",
@@ -178,7 +178,7 @@ KoFilter::ConversiontqStatus OoImpressExport::convert( const TQCString & from,
return KoFilter::OK;
}
-KoFilter::ConversiontqStatus OoImpressExport::openFile()
+KoFilter::ConversionStatus 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.tqarg( TQString::number( tmpX ) ).tqarg( TQString::number( tmpY ) );
+ m_helpLine+=str.arg( TQString::number( tmpX ) ).arg( 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="tqlayout" 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="layout" 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 tqgeometry
+ // set the geometry
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" ).tqarg( m_pictureIndex );
+ TQString pictureName = TQString( "Picture/Picture%1" ).arg( 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 tqgeometry
+// set the geometry
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 tqgeometry
+ // set the geometry
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 tqgeometry
+ // set the geometry
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 tqgeometry
+ // set the geometry
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 tqgeometry
+ // set the geometry
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" ).tqarg( KoUnit::toCM( y ) ) );
+ target.setAttribute( "svg:y", TQString( "%1cm" ).arg( 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" ).tqarg( tmpX ).tqarg( tmpY );
+ listOfPoint += TQString( " %1,%2" ).arg( tmpX ).arg( tmpY );
else
- listOfPoint = TQString( "%1,%2" ).tqarg( tmpX ).tqarg( tmpY );
+ listOfPoint = TQString( "%1,%2" ).arg( tmpX ).arg( 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" ).tqarg( maxX ).tqarg( maxY ) );
+ target.setAttribute( "svg:viewBox", TQString( "0 0 %1 %2" ).arg( maxX ).arg( 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)" ).tqarg( value );
+ str=TQString( "rotate (%1)" ).arg( 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" ).tqarg( KoUnit::toCM( x2 ) );
+ TQString xpos2 = TQString( "%1cm" ).arg( KoUnit::toCM( x2 ) );
if ( type == 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 ) ) );
+ target.setAttribute( "svg:y1", TQString( "%1cm" ).arg( KoUnit::toCM( y2/2.0 ) ) );
+ target.setAttribute( "svg:y2", TQString( "%1cm" ).arg( KoUnit::toCM( y2/2.0 ) ) );
}
else if ( type == 1 )
{
- 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 ) );
+ 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 ) );
xpos2 = xpos1;
}
else if ( type == 3 ) // from left bottom to right top
{
- target.setAttribute( "svg:y1", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2 ) ) );
- target.setAttribute( "svg:y2", TQString( "%1cm" ).tqarg( KoUnit::toCM( y1 ) ) );
+ target.setAttribute( "svg:y1", TQString( "%1cm" ).arg( KoUnit::toCM( y2 ) ) );
+ target.setAttribute( "svg:y2", TQString( "%1cm" ).arg( KoUnit::toCM( y1 ) ) );
}
else // from left top to right bottom
{
- target.setAttribute( "svg:y1", TQString( "%1cm" ).tqarg( KoUnit::toCM( y1 ) ) );
- target.setAttribute( "svg:y2", TQString( "%1cm" ).tqarg( KoUnit::toCM( y2 ) ) );
+ target.setAttribute( "svg:y1", TQString( "%1cm" ).arg( KoUnit::toCM( y1 ) ) );
+ target.setAttribute( "svg:y2", TQString( "%1cm" ).arg( 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 ac369192..dec5ec4c 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::ConversiontqStatus convert( const TQCString & from,
+ virtual KoFilter::ConversionStatus convert( const TQCString & from,
const TQCString & to );
private:
- KoFilter::ConversiontqStatus openFile();
+ KoFilter::ConversionStatus 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 1dab566d..77e1f38c 100644
--- a/filters/kpresenter/ooimpress/ooimpressimport.cc
+++ b/filters/kpresenter/ooimpress/ooimpressimport.cc
@@ -67,7 +67,7 @@ OoImpressImport::~OoImpressImport()
m_animations.clear();
}
-KoFilter::ConversiontqStatus OoImpressImport::convert( TQCString const & from, TQCString const & to )
+KoFilter::ConversionStatus OoImpressImport::convert( TQCString const & from, TQCString const & to )
{
kdDebug(30518) << "Entering Ooimpress Import filter: " << from << " - " << to << endl;
@@ -87,13 +87,13 @@ KoFilter::ConversiontqStatus OoImpressImport::convert( TQCString const & from, T
return KoFilter::FileNotFound;
}
- KoFilter::ConversiontqStatus pretqStatus = openFile();
+ KoFilter::ConversionStatus preStatus = openFile();
- if ( pretqStatus != KoFilter::OK )
+ if ( preStatus != KoFilter::OK )
{
m_zip->close();
delete m_zip;
- return pretqStatus;
+ return preStatus;
}
TQDomDocument docinfo;
@@ -129,9 +129,9 @@ KoFilter::ConversiontqStatus OoImpressImport::convert( TQCString const & from, T
}
// Very related to OoWriterImport::openFile()
-KoFilter::ConversiontqStatus OoImpressImport::openFile()
+KoFilter::ConversionStatus OoImpressImport::openFile()
{
- KoFilter::ConversiontqStatus status = loadAndParse( "content.xml", m_content );
+ KoFilter::ConversionStatus 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::ConversiontqStatus OoImpressImport::openFile()
return KoFilter::OK;
}
-KoFilter::ConversiontqStatus OoImpressImport::loadAndParse(const TQString& filename, TQDomDocument& doc)
+KoFilter::ConversionStatus 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::tqcurrentDate();
+ TQDate date = TQDate::currentDate();
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::tqcurrentDate();
+ TQDate date = TQDate::currentDate();
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 tqalignment
+ // vertical alignment
if ( m_styleStack.hasAttributeNS( ooNS::draw, "textarea-vertical-align" ) )
{
- TQString tqalignment = m_styleStack.attributeNS( ooNS::draw, "textarea-vertical-align" );
- if ( tqalignment == "top" )
+ TQString alignment = m_styleStack.attributeNS( ooNS::draw, "textarea-vertical-align" );
+ if ( alignment == "top" )
textObjectElement.setAttribute( "verticalAlign", "top" );
- else if ( tqalignment == "middle" )
+ else if ( alignment == "middle" )
textObjectElement.setAttribute( "verticalAlign", "center" );
- else if ( tqalignment == "bottom" )
+ else if ( alignment == "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 tqalignment
+ // Paragraph alignment
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" ).tqarg( m_numPicture++ ) + extension;
+ TQString fileName = TQString( "picture%1" ).arg( 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" ).tqarg( m_numSound++ ) + extension;
+ TQString fileName = TQString( "sound%1" ).arg( 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::tqcurrentDateTime(); // OOo docs say so :)
+ dt = TQDateTime::currentDateTime(); // 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::tqcurrentDateTime(); // OOo docs say so :)
+ dt = TQDateTime::currentDateTime(); // 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-tqshape" && e.hasAttributeNS( ooNS::draw, "tqshape-id" ) )
+ if ( ns == ooNS::presentation && localName == "show-shape" && e.hasAttributeNS( ooNS::draw, "shape-id" ) )
{
- TQString name = e.attributeNS( ooNS::draw, "tqshape-id", TQString() );
+ TQString name = e.attributeNS( ooNS::draw, "shape-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:tqshape-id) :"<<e.attributeNS( ooNS::draw, "tqshape-id", TQString())<<endl;
- if (e.tagName()=="presentation:show-tqshape" && e.attributeNS( ooNS::draw, "tqshape-id", TQString())==id)
+ 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)
return e;
}
diff --git a/filters/kpresenter/ooimpress/ooimpressimport.h b/filters/kpresenter/ooimpress/ooimpressimport.h
index 596ca703..b187d189 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::ConversiontqStatus convert( TQCString const & from, TQCString const & to );
+ virtual KoFilter::ConversionStatus 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::ConversiontqStatus openFile();
- KoFilter::ConversiontqStatus loadAndParse(const TQString& filename, TQDomDocument& doc);
+ KoFilter::ConversionStatus openFile();
+ KoFilter::ConversionStatus 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 f64a38b0..8c34c4d1 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 tqalignment for text<br>
+ -Qt::Vertical alignment 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 tqalignment for text<br>
+ -Qt::Vertical alignment 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 a25ba52a..e50b652e 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" ).tqarg( index );
+ m_name = TQString( "Gradient %1" ).arg( 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%" ).tqarg( cx / 4 + 50 );
- m_cy = TQString( "%1%" ).tqarg( cy / 4 + 50 );
+ m_cx = TQString( "%1%" ).arg( cx / 4 + 50 );
+ m_cy = TQString( "%1%" ).arg( 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%" ).tqarg( cx / 4 + 50 );
- m_cy = TQString( "%1%" ).tqarg( cy / 4 + 50 );
+ m_cx = TQString( "%1%" ).arg( cx / 4 + 50 );
+ m_cy = TQString( "%1%" ).arg( 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" ).tqarg( index );
- m_style = TQString( "Default%1" ).tqarg( index );
+ m_name = TQString( "PM%1" ).arg( index );
+ m_style = TQString( "Default%1" ).arg( 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" ).tqarg( index );
+ m_name = TQString( "dp%1" ).arg( 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" ).tqarg( hours ).tqarg( ms ).tqarg( sec );
+ m_page_duration = TQString( "PT%1H%2M%3S" ).arg( hours ).arg( ms ).arg( 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" ).tqarg( index );
+ m_name = TQString( "T%1" ).arg( index );
if ( e.hasAttribute( "family" ) )
m_font_family = e.attribute( "family" );
if ( e.hasAttribute( "pointSize" ) )
- m_font_size = TQString( "%1pt" ).tqarg( e.attribute( "pointSize" ) );
+ m_font_size = TQString( "%1pt" ).arg( 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" ).tqarg( textObjectElement.attribute( "bleftpt" ) );
+ m_textMarginLeft = TQString( "%1pt" ).arg( textObjectElement.attribute( "bleftpt" ) );
}
if ( textObjectElement.hasAttribute( "bbottompt" ) )
{
- m_textMarginBottom = TQString( "%1pt" ).tqarg( textObjectElement.attribute( "bbottompt" ) );
+ m_textMarginBottom = TQString( "%1pt" ).arg( textObjectElement.attribute( "bbottompt" ) );
}
if ( textObjectElement.hasAttribute( "btoppt" ) )
{
- m_textMarginTop = TQString( "%1pt" ).tqarg( textObjectElement.attribute( "btoppt" ) );
+ m_textMarginTop = TQString( "%1pt" ).arg( textObjectElement.attribute( "btoppt" ) );
}
if ( textObjectElement.hasAttribute( "brightpt" ) )
{
- m_textMarginRight = TQString( "%1pt" ).tqarg( textObjectElement.attribute( "brightpt" ) );
+ m_textMarginRight = TQString( "%1pt" ).arg( textObjectElement.attribute( "brightpt" ) );
}
}
- kdDebug(30518)<<" tqalignment :"<<m_textAlignment<<endl;
+ kdDebug(30518)<<" alignment :"<<m_textAlignment<<endl;
- m_name = TQString( "gr%1" ).tqarg( index );
+ m_name = TQString( "gr%1" ).arg( 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" ).tqarg( index );
+ m_name = TQString( "P%1" ).arg( 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" ).tqarg( s.attribute( "distance" ) );
+ TQString distance = TQString( "%1pt" ).arg( 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%" ).tqarg( l.attribute( "spacingvalue" ).toInt() * 100 );
+ m_line_height = TQString( "%1%" ).arg( 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" ).tqarg( width ).tqarg( style ).tqarg( color.name() );
+ return TQString( "%1 %2 %3" ).arg( width ).arg( style ).arg( 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" ).tqarg( index );
+ m_name = TQString( "L%1" ).arg( 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" ).tqarg( m_min_label_width ) );
+ TQString( "%1cm" ).arg( m_min_label_width ) );
properties.setAttribute( "text:space-before",
- TQString( "%1cm" ).tqarg( m_min_label_width * ( level - 1 ) ) );
+ TQString( "%1cm" ).arg( 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 4f41aac7..31d2b4a1 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 <tqtextstream.h>
+#include <textstream.h>
#include <kdebug.h>
#include <KoFilterChain.h>
@@ -80,7 +80,7 @@ PowerPointImport::~PowerPointImport()
delete d;
}
-KoFilter::ConversiontqStatus PowerPointImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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").tqarg( d->presentation->masterSlide()->pageWidth() );
- TQString pageHeight = TQString("%1pt").tqarg( d->presentation->masterSlide()->pageHeight() );
+ TQString pageWidth = TQString("%1pt").arg( d->presentation->masterSlide()->pageWidth() );
+ TQString pageHeight = TQString("%1pt").arg( 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-tqlayout" );
+ stylesWriter->startElement( "style:page-layout" );
stylesWriter->addAttribute( "style:name","pm1" );
stylesWriter->addAttribute( "style:page-usage","all" );
- stylesWriter->startElement( "style:page-tqlayout-properties" );
+ stylesWriter->startElement( "style:page-layout-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-tqlayout-properties
- stylesWriter->endElement(); // style:page-tqlayout
+ stylesWriter->endElement(); // style:page-layout-properties
+ stylesWriter->endElement(); // style:page-layout
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-tqlayout-name", "pm1" );
+ stylesWriter->addAttribute( "style:page-layout-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").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 );
+ 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 );
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", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
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").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 );
+ 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 );
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)").tqarg(rotAngle).tqarg(xNew+xMid).tqarg(yMid-yNew);
+ TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").arg(rotAngle).arg(xNew+xMid).arg(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", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
xmlWriter->endElement(); // draw:rect
}
@@ -409,13 +409,13 @@ void PowerPointImport::processRoundRectangle (DrawObject* drawObject, KoXmlWrite
{
if( !drawObject || !xmlWriter ) return;
- 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 );
+ 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 );
- xmlWriter->startElement( "draw:custom-tqshape" );
+ xmlWriter->startElement( "draw:custom-shape" );
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)").tqarg(rotAngle).tqarg(xNew+xMid).tqarg(yMid+yNew);
+ TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").arg(rotAngle).arg(xNew+xMid).arg(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)").tqarg(rotAngle).tqarg(xNew+xMid).tqarg(yMid-yNew);
+ TQString rot = TQString("rotate (%1) translate (%2mm %3mm)").arg(rotAngle).arg(xNew+xMid).arg(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", "tqlayout" );
- xmlWriter->startElement( "draw:enhanced-tqgeometry" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->startElement( "draw:enhanced-geometry" );
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-tqgeometry
- xmlWriter->endElement(); // draw:custom-tqshape
+ xmlWriter->endElement(); // draw:enhanced-geometry
+ xmlWriter->endElement(); // draw:custom-shape
}
void PowerPointImport::processDiamond (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- 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 );
+ 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 );
- xmlWriter->startElement( "draw:custom-tqshape" );
+ xmlWriter->startElement( "draw:custom-shape" );
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-tqgeometry" );
+ xmlWriter->startElement( "draw:enhanced-geometry" );
xmlWriter->addAttribute( "draw:type", "diamond");
xmlWriter->endElement();
- xmlWriter->addAttribute( "draw:layer", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
xmlWriter->endElement();
}
@@ -533,20 +533,20 @@ void PowerPointImport::processTriangle (DrawObject* drawObject, KoXmlWriter* xml
{
if( !drawObject || !xmlWriter ) return;
- 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 );
+ 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 );
/* draw IsocelesTriangle or RightTriangle */
- xmlWriter->startElement( "draw:custom-tqshape" );
+ xmlWriter->startElement( "draw:custom-shape" );
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", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
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-tqgeometry" );
+ xmlWriter->startElement( "draw:enhanced-geometry" );
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)").tqarg(rotAngle).tqarg(xMid).tqarg(yMid);
+ TQString rot = TQString("rotate (%1) translate (%2cm %3cm)").arg(rotAngle).arg(xMid).arg(yMid);
xmlWriter->addAttribute( "draw:transform", rot );
}
- if (drawObject->tqshape() == DrawObject::RightTriangle)
+ if (drawObject->shape() == DrawObject::RightTriangle)
{
xmlWriter->addAttribute( "draw:type", "right-triangle");
}
- else if (drawObject->tqshape() == DrawObject::IsoscelesTriangle)
+ else if (drawObject->shape() == 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-tqgeometry
- xmlWriter->endElement(); // custom-tqshape
+ xmlWriter->endElement(); // enhanced-geometry
+ xmlWriter->endElement(); // custom-shape
}
void PowerPointImport::processTrapezoid (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- 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 );
+ 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 );
- xmlWriter->startElement( "draw:custom-tqshape" );
+ xmlWriter->startElement( "draw:custom-shape" );
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", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
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-tqgeometry" );
+ xmlWriter->startElement( "draw:enhanced-geometry" );
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-tqgeometry
- xmlWriter->endElement(); // custom-tqshape
+ xmlWriter->endElement(); // enhanced-geometry
+ xmlWriter->endElement(); // custom-shape
}
void PowerPointImport::processParallelogram (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- 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 );
+ 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 );
- xmlWriter->startElement( "draw:custom-tqshape" );
+ xmlWriter->startElement( "draw:custom-shape" );
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", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
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-tqgeometry" );
+ xmlWriter->startElement( "draw:enhanced-geometry" );
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-tqgeometry
- xmlWriter->endElement(); // custom-tqshape
+ xmlWriter->endElement(); // enhanced-geometry
+ xmlWriter->endElement(); // custom-shape
}
void PowerPointImport::processHexagon (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- 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 );
+ 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 );
- xmlWriter->startElement( "draw:custom-tqshape" );
+ xmlWriter->startElement( "draw:custom-shape" );
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", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
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-tqgeometry" );
+ xmlWriter->startElement( "draw:enhanced-geometry" );
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-tqgeometry
- xmlWriter->endElement(); // custom-tqshape
+ xmlWriter->endElement(); // enhanced-geometry
+ xmlWriter->endElement(); // custom-shape
}
void PowerPointImport::processOctagon (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- 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 );
+ 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 );
- xmlWriter->startElement( "draw:custom-tqshape" );
+ xmlWriter->startElement( "draw:custom-shape" );
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", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
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-tqgeometry" );
+ xmlWriter->startElement( "draw:enhanced-geometry" );
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-tqgeometry
- xmlWriter->endElement(); // custom-tqshape
+ xmlWriter->endElement(); // enhanced-geometry
+ xmlWriter->endElement(); // custom-shape
}
void PowerPointImport::processArrow (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- 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 );
+ 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 );
- xmlWriter->startElement( "draw:custom-tqshape" );
+ xmlWriter->startElement( "draw:custom-shape" );
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", "tqlayout" );
- xmlWriter->startElement( "draw:enhanced-tqgeometry" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
+ xmlWriter->startElement( "draw:enhanced-geometry" );
- if (drawObject->tqshape() == DrawObject::RightArrow)
+ if (drawObject->shape() == DrawObject::RightArrow)
xmlWriter->addAttribute( "draw:type", "right-arrow" );
- else if (drawObject->tqshape() == DrawObject::LeftArrow)
+ else if (drawObject->shape() == DrawObject::LeftArrow)
xmlWriter->addAttribute( "draw:type", "left-arrow" );
- else if (drawObject->tqshape() == DrawObject::UpArrow)
+ else if (drawObject->shape() == DrawObject::UpArrow)
xmlWriter->addAttribute( "draw:type", "up-arrow" );
- else if (drawObject->tqshape() == DrawObject::DownArrow)
+ else if (drawObject->shape() == 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->tqshape() == DrawObject::RightArrow | drawObject->tqshape() == DrawObject::LeftArrow )
+ if ( drawObject->shape() == DrawObject::RightArrow | drawObject->shape() == 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->tqshape() == DrawObject::UpArrow | drawObject->tqshape() == DrawObject::DownArrow )
+ else if ( drawObject->shape() == DrawObject::UpArrow | drawObject->shape() == 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-tqgeometry
- xmlWriter->endElement(); // draw:custom-tqshape
+ xmlWriter->endElement(); // draw:enhanced-geometry
+ xmlWriter->endElement(); // draw:custom-shape
}
void PowerPointImport::processLine (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter) return;
- 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 );
+ 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 );
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", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
xmlWriter->endElement();
}
@@ -1099,19 +1099,19 @@ void PowerPointImport::processSmiley (DrawObject* drawObject, KoXmlWriter* xmlWr
{
if( !drawObject ||!xmlWriter ) return;
- 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 );
+ 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 );
- xmlWriter->startElement( "draw:custom-tqshape" );
+ xmlWriter->startElement( "draw:custom-shape" );
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", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
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-tqgeometry" );
+ xmlWriter->startElement( "draw:enhanced-geometry" );
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-tqgeometry
- xmlWriter->endElement(); // custom-tqshape
+ xmlWriter->endElement(); // enhanced-geometry
+ xmlWriter->endElement(); // custom-shape
}
void PowerPointImport::processHeart (DrawObject* drawObject, KoXmlWriter* xmlWriter )
{
if( !drawObject || !xmlWriter ) return;
- 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 );
+ 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 );
- xmlWriter->startElement( "draw:custom-tqshape" );
+ xmlWriter->startElement( "draw:custom-shape" );
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", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
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-tqgeometry" );
+ xmlWriter->startElement( "draw:enhanced-geometry" );
xmlWriter->addAttribute( "draw:type", "heart" );
- xmlWriter->endElement(); // enhanced-tqgeometry
- xmlWriter->endElement(); // custom-tqshape
+ xmlWriter->endElement(); // enhanced-geometry
+ xmlWriter->endElement(); // custom-shape
}
void PowerPointImport::processFreeLine (DrawObject* drawObject, KoXmlWriter* xmlWriter)
{
if( !drawObject ||!xmlWriter ) return;
- 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 );
+ 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 );
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", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
xmlWriter->endElement(); // path
}
@@ -1228,63 +1228,63 @@ void PowerPointImport::processDrawingObjectForBody( DrawObject* drawObject, KoXm
drawingObjectCounter++;
- if (drawObject->tqshape() == DrawObject::Ellipse)
+ if (drawObject->shape() == DrawObject::Ellipse)
{
processEllipse (drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::Rectangle)
+ else if (drawObject->shape() == DrawObject::Rectangle)
{
processRectangle (drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::RoundRectangle)
+ else if (drawObject->shape() == DrawObject::RoundRectangle)
{
processRoundRectangle (drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::Diamond)
+ else if (drawObject->shape() == DrawObject::Diamond)
{
processDiamond (drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::IsoscelesTriangle |
- drawObject->tqshape() == DrawObject::RightTriangle)
+ else if (drawObject->shape() == DrawObject::IsoscelesTriangle |
+ drawObject->shape() == DrawObject::RightTriangle)
{
processTriangle (drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::Trapezoid)
+ else if (drawObject->shape() == DrawObject::Trapezoid)
{
processTrapezoid (drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::Parallelogram)
+ else if (drawObject->shape() == DrawObject::Parallelogram)
{
processParallelogram( drawObject, xmlWriter);
}
- else if (drawObject->tqshape() == DrawObject::Hexagon)
+ else if (drawObject->shape() == DrawObject::Hexagon)
{
processHexagon ( drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::Octagon)
+ else if (drawObject->shape() == DrawObject::Octagon)
{
processOctagon ( drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::RightArrow |
- drawObject->tqshape() == DrawObject::LeftArrow |
- drawObject->tqshape() == DrawObject::UpArrow |
- drawObject->tqshape() == DrawObject::DownArrow )
+ else if (drawObject->shape() == DrawObject::RightArrow |
+ drawObject->shape() == DrawObject::LeftArrow |
+ drawObject->shape() == DrawObject::UpArrow |
+ drawObject->shape() == DrawObject::DownArrow )
{
processArrow ( drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::Line)
+ else if (drawObject->shape() == DrawObject::Line)
{
processLine ( drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::Smiley)
+ else if (drawObject->shape() == DrawObject::Smiley)
{
processSmiley (drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::Heart)
+ else if (drawObject->shape() == DrawObject::Heart)
{
processHeart (drawObject, xmlWriter );
}
- else if (drawObject->tqshape() == DrawObject::FreeLine)
+ else if (drawObject->shape() == 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").tqarg( textObject->width() );
- TQString heightStr = TQString("%1mm").tqarg( textObject->height() );
- TQString xStr = TQString("%1mm").tqarg( textObject->left() );
- TQString yStr = TQString("%1mm").tqarg( textObject->top() );
+ 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() );
xmlWriter->startElement( "draw:frame" );
xmlWriter->addAttribute( "presentation:style-name", "pr1" );
- xmlWriter->addAttribute( "draw:layer", "tqlayout" );
+ xmlWriter->addAttribute( "draw:layer", "layout" );
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").tqarg(slideNo+1);
+ nameStr = TQString("page%1").arg(slideNo+1);
- TQString styleNameStr = TQString("dp%1").tqarg(slideNo+1);
+ TQString styleNameStr = TQString("dp%1").arg(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-tqlayout-name", "AL1T0");
+ xmlWriter->addAttribute( "presentation:presentation-page-layout-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").tqarg( drawingObjectCounter );
+ TQString styleName = TQString("gr%1").arg( 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").tqarg( strokeWidth ) );
+ xmlWriter->addAttribute( "svg:stroke-width",TQString("%1mm").arg( 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").tqarg( arrowWidth ) );
+ xmlWriter->addAttribute( "draw:marker-start-width",TQString("%1cm").arg( 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").tqarg( arrowWidth ) );
+ xmlWriter->addAttribute( "draw:marker-end-width",TQString("%1cm").arg( 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%").tqarg( opacity ) );
+ xmlWriter->addAttribute( "draw:shadow-opacity",TQString("%1%").arg( opacity ) );
}
if( drawObject->hasProperty( "draw:shadow-offset-x" ) )
{
double offset = drawObject->getDoubleProperty("draw:shadow-offset-x") ;
- xmlWriter->addAttribute( "draw:shadow-offset-x",TQString("%1cm").tqarg( offset ) );
+ xmlWriter->addAttribute( "draw:shadow-offset-x",TQString("%1cm").arg( offset ) );
}
if( drawObject->hasProperty( "draw:shadow-offset-y" ) )
{
double offset = drawObject->getDoubleProperty("draw:shadow-offset-y");
- xmlWriter->addAttribute( "draw:shadow-offset-y",TQString("%1cm").tqarg( offset ) );
+ xmlWriter->addAttribute( "draw:shadow-offset-y",TQString("%1cm").arg( offset ) );
}
diff --git a/filters/kpresenter/powerpoint/import/powerpointimport.h b/filters/kpresenter/powerpoint/import/powerpointimport.h
index ca3e7365..6b75cfb3 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::ConversiontqStatus convert( const TQCString& from,
+ virtual KoFilter::ConversionStatus 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 d0343b43..29870cbd 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 tqshape;
+ unsigned shape;
bool isVerFlip;
bool isHorFlip;
};
@@ -387,7 +387,7 @@ public:
DrawObject::DrawObject()
{
d = new Private;
- d->tqshape = None;
+ d->shape = None;
}
DrawObject::~DrawObject()
@@ -395,14 +395,14 @@ DrawObject::~DrawObject()
delete d;
}
-unsigned DrawObject::tqshape() const
+unsigned DrawObject::shape() const
{
- return d->tqshape;
+ return d->shape;
}
void DrawObject::setShape( unsigned s )
{
- d->tqshape = s;
+ d->shape = s;
}
bool DrawObject::isVerFlip() const
diff --git a/filters/kpresenter/powerpoint/libppt/objects.h b/filters/kpresenter/powerpoint/libppt/objects.h
index a9160897..823e2a75 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 tqshape
+ Other = 4, // text in a shape
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 tqshape() const;
+ unsigned shape() 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 b905539d..2a78b79f 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 tqunicode anymore
+ std::string name; // the name, not in unicode 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> tqchildren( unsigned index );
+ std::vector<unsigned> children( 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 tqchildren
- // and check if one of the tqchildren is 'index'
+ // brute-force, basically we iterate for each entries, find its children
+ // and check if one of the children is 'index'
for( unsigned j=0; j<entryCount(); j++ )
{
- std::vector<unsigned> chi = tqchildren( j );
+ std::vector<unsigned> chi = children( 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 tqchildren of index
- std::vector<unsigned> chi = tqchildren( index );
+ // find among the children of index
+ std::vector<unsigned> chi = children( 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 tqchildren
+ // not found among children
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::tqchildren( unsigned index )
+std::vector<unsigned> DirTree::children( 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> tqchildren = dt->tqchildren( parent );
- for( unsigned i = 0; i < tqchildren.size(); i++ )
- result.push_back( dt->entry( tqchildren[i] )->name );
+ std::vector<unsigned> children = dt->children( parent );
+ for( unsigned i = 0; i < children.size(); i++ )
+ result.push_back( dt->entry( children[i] )->name );
}
return result;
diff --git a/filters/kpresenter/powerpoint/libppt/powerpoint.cpp b/filters/kpresenter/powerpoint/libppt/powerpoint.cpp
index bf3fc51f..af035c69 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 tqshapeId;
+ unsigned long shapeId;
unsigned long persistentFlag;
bool background;
bool hFlip;
@@ -4115,7 +4115,7 @@ public:
msofbtSpAtom ::msofbtSpAtom ()
{
d = new Private;
- d->tqshapeId = 0;
+ d->shapeId = 0;
d->persistentFlag = 0;
d->background = false;
d->hFlip = false;
@@ -4127,17 +4127,17 @@ msofbtSpAtom ::~msofbtSpAtom ()
delete d;
}
-unsigned long msofbtSpAtom::tqshapeId() const
+unsigned long msofbtSpAtom::shapeId() const
{
- return d->tqshapeId;
+ return d->shapeId;
}
void msofbtSpAtom::setShapeId( unsigned long id )
{
- d->tqshapeId = id;
+ d->shapeId = id;
}
-const char* msofbtSpAtom::tqshapeTypeAsString() const
+const char* msofbtSpAtom::shapeTypeAsString() const
{
switch( instance() )
{
@@ -5821,7 +5821,7 @@ void PPTReader::handleEscherGroupAtom( msofbtSpgrAtom* atom )
// set rect bound of current group
- // this is tqshape for the group, no need to
+ // this is shape 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 6eec1564..b2a0f649 100644
--- a/filters/kpresenter/powerpoint/libppt/powerpoint.h
+++ b/filters/kpresenter/powerpoint/libppt/powerpoint.h
@@ -1901,9 +1901,9 @@ public:
msofbtSpAtom ();
~msofbtSpAtom ();
- unsigned long tqshapeId() const;
+ unsigned long shapeId() const;
void setShapeId( unsigned long id );
- const char* tqshapeTypeAsString() const;
+ const char* shapeTypeAsString() 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 tqshape
+ FillPicture, // Center a picture in the shape
FillShade, // Shade from start to end points
FillShadeCenter, // Shade from bounding rectangle to end point
- FillShadeShape, // Shade from tqshape outline to end point
+ FillShadeShape, // Shade from shape 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 );// tqalignment
+ void setAlign( int align );// alignment
int cProxies() const;
- void setCProxies( int cProxies );// number of tqshapes governed by rule
+ void setCProxies( int cProxies );// number of shapes 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 23b61d30..b0a44e56 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.tqunicode() )
+ : uc( c.unicode() )
{
}
UChar UChar::toLower() const
{
- // ### properly support tqunicode tolower
+ // ### properly support unicode 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->tqunicode() < c2->tqunicode());
+ return (c1->unicode() < c2->unicode());
return (l1 < l2);
}
diff --git a/filters/kpresenter/powerpoint/libppt/ustring.h b/filters/kpresenter/powerpoint/libppt/ustring.h
index c0e34cf4..52a43afe 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 tqunicode() const { return uc; }
+ unsigned short unicode() const { return uc; }
public:
/**
* @return The character converted to lower case.
@@ -128,7 +128,7 @@ namespace Libppt {
/**
* @return Unicode value.
*/
- unsigned short tqunicode() const { return ref().tqunicode(); }
+ unsigned short unicode() const { return ref().unicode(); }
/**
* @return Lower byte.
*/
diff --git a/filters/kpresenter/svg/svgexport.cc b/filters/kpresenter/svg/svgexport.cc
index 990d12cd..9eae5cd8 100644
--- a/filters/kpresenter/svg/svgexport.cc
+++ b/filters/kpresenter/svg/svgexport.cc
@@ -48,7 +48,7 @@ SvgExport::~SvgExport()
}
-KoFilter::ConversiontqStatus
+KoFilter::ConversionStatus
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 eafdd792..17e3d79f 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 a75cccac..5b88d11c 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::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus APPLIXSPREADImport::convert( const TQCString& from, const TQCString& to )
{
if (to != "application/x-kspread" || from != "application/x-applixspread")
@@ -390,7 +390,7 @@ KoFilter::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from,
//kdDebug()<< " Type (%2d) >%s< ",
// nn, (*it).latin1() );
nn++;
- // Grep horizontal tqalignment
+ // Grep horizontal alignment
if ( (*it) == "1")
{
kdDebug()<< " = left align\n";
@@ -407,7 +407,7 @@ KoFilter::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from,
align = 2; // center
}
- // Grep verticale tqalignment
+ // Grep verticale alignment
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>").tqarg(mystr.latin1()),
+ "This is the header line I did read:<BR><B>%1</B>").arg(mystr.latin1()),
"Okay");
diff --git a/filters/kspread/applixspread/applixspreadimport.h b/filters/kspread/applixspread/applixspreadimport.h
index 78deb2ca..15decadc 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 <tqtextstream.h>
+#include <textstream.h>
#include <tqptrlist.h>
#include <KoFilter.h>
@@ -57,7 +57,7 @@ public:
APPLIXSPREADImport ( TQObject *parent, const char* name, const TQStringList& );
virtual ~APPLIXSPREADImport() {}
- virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 968bf333..c944ef5c 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 tqalignment, bold, italic, underline<br>
+ - converts fontsize, fontcolor, horizontal and vertical alignment, 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 tqalignment format for vertical, horizontal tqalignment<BR>
+ <spacer size="30">This is the alignment format for vertical, horizontal alignment<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 tqalignment</TD>
+ <TD>horizontal alignment</TD>
<TD>left</TD>
</TR>
<TR>
<TD>6.1.1.2&nbsp;&nbsp;</TD>
<TD><B>2</B></TD>
- <TD>horizontal tqalignment</TD>
+ <TD>horizontal alignment</TD>
<TD>right</TD>
</TR>
<TR>
<TD>6.1.1.3&nbsp;&nbsp;</TD>
<TD><B>3</B></TD>
- <TD>horizontal tqalignment</TD>
+ <TD>horizontal alignment</TD>
<TD>center</TD>
</TR>
<TR>
<TD>6.1.1.4&nbsp;&nbsp;</TD>
<TD><B>VT</B></TD>
- <TD>vertical tqalignment</TD>
+ <TD>vertical alignment</TD>
<TD>top</TD>
</TR>
<TR>
<TD>6.1.1.5&nbsp;&nbsp;</TD>
<TD><B>VC</B></TD>
- <TD>vertical tqalignment</TD>
+ <TD>vertical alignment</TD>
<TD>center</TD>
</TR>
<TR>
<TD>6.1.1.5&nbsp;&nbsp;</TD>
<TD><B>VB</B></TD>
- <TD>vertical tqalignment</TD>
+ <TD>vertical alignment</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 tqalignment format for the text<BR>
+ <spacer size="30">This is the alignment 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 tqalignment format for the text<BR>
+ <spacer size="30">This is the alignment 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 17e9cc65..3ea3f967 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 <tqtextstream.h>
+#include <textstream.h>
#include <tqbuttongroup.h>
#include <tqpushbutton.h>
#include <tqradiobutton.h>
-#include <tqtextcodec.h>
+#include <textcodec.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 )" ).tqarg( "UTF-8" );
- encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).tqarg( TQTextCodec::codecForLocale()->name() );
+ encodings << i18n( "Descriptive encoding name", "Recommended ( %1 )" ).arg( "UTF-8" );
+ encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).arg( 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.tqarg("Apple Roman"); // Apple
- encodings << description.tqarg("IBM 850") << description.tqarg("IBM 866"); // MS DOS
- encodings << description.tqarg("CP 1258"); // Windows
+ encodings << description.arg("Apple Roman"); // Apple
+ encodings << description.arg("IBM 850") << description.arg("IBM 866"); // MS DOS
+ encodings << description.arg("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(tqsizeHint());
+ //resize(sizeHint());
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").tqarg( strCodec ) );
+ KMessageBox::error( 0, i18n("Cannot find encoding: %1").arg( strCodec ) );
return 0;
}
diff --git a/filters/kspread/csv/csvexport.cc b/filters/kspread/csv/csvexport.cc
index 9961d218..b37d1c8f 100644
--- a/filters/kspread/csv/csvexport.cc
+++ b/filters/kspread/csv/csvexport.cc
@@ -21,7 +21,7 @@
#include <csvexport.h>
#include <tqfile.h>
-#include <tqtextcodec.h>
+#include <textcodec.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::ConversiontqStatus CSVExport::convert( const TQCString & from, const TQCString & to )
+KoFilter::ConversionStatus 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 decdb81c..ebc8a861 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::ConversiontqStatus convert( const TQCString & from, const TQCString & to );
+ virtual KoFilter::ConversionStatus 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 a4ef1347..e0a4db8c 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 <tqtextstream.h>
+#include <textstream.h>
#include <tqtabwidget.h>
-#include <tqtextcodec.h>
+#include <textcodec.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 )" ).tqarg( "UTF-8" );
- encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).tqarg( TQTextCodec::codecForLocale()->name() );
+ encodings << i18n( "Descriptive encoding name", "Recommended ( %1 )" ).arg( "UTF-8" );
+ encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).arg( 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.tqarg("Apple Roman"); // Apple
- encodings << description.tqarg("IBM 850") << description.tqarg("IBM 866"); // MS DOS
- encodings << description.tqarg("CP 1258"); // Windows
+ encodings << description.arg("Apple Roman"); // Apple
+ encodings << description.arg("IBM 850") << description.arg("IBM 866"); // MS DOS
+ encodings << description.arg("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").tqarg( strCodec ) );
+ KMessageBox::error( 0, i18n("Cannot find encoding: %1").arg( strCodec ) );
return 0;
}
diff --git a/filters/kspread/csv/csvimport.cc b/filters/kspread/csv/csvimport.cc
index cd93017b..e9852c61 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::ConversiontqStatus CSVFilter::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 df14a756..c68ecffb 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 8c3a72cf..f8960f4b 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>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -104,7 +104,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>106</width>
<height>20</height>
@@ -123,7 +123,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>60</height>
@@ -223,7 +223,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>30</width>
<height>32767</height>
@@ -313,7 +313,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>51</width>
<height>21</height>
@@ -330,7 +330,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>51</width>
<height>21</height>
@@ -379,7 +379,7 @@
<property name="textFormat">
<enum>AutoText</enum>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignCenter</set>
</property>
</widget>
@@ -428,7 +428,7 @@
<property name="textFormat">
<enum>AutoText</enum>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignCenter</set>
</property>
</widget>
@@ -472,7 +472,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>468</width>
<height>20</height>
@@ -489,7 +489,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>468</width>
<height>20</height>
@@ -506,7 +506,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>611</width>
<height>20</height>
@@ -523,7 +523,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>71</width>
<height>20</height>
diff --git a/filters/kspread/csv/exportdialogui.ui b/filters/kspread/csv/exportdialogui.ui
index 45eb6914..f6a552e1 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>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -85,7 +85,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>106</width>
<height>20</height>
@@ -156,7 +156,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<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="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@@ -375,7 +375,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqmaximumSize">
+ <property name="maximumSize">
<size>
<width>30</width>
<height>32767</height>
@@ -469,7 +469,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>0</width>
<height>81</height>
diff --git a/filters/kspread/csv/xmltree.h b/filters/kspread/csv/xmltree.h
index 247af4e5..1eede0dc 100644
--- a/filters/kspread/csv/xmltree.h
+++ b/filters/kspread/csv/xmltree.h
@@ -22,7 +22,7 @@
#include <tqdom.h>
#include <tqmemarray.h>
-#include <tqtextstream.h>
+#include <textstream.h>
class XMLTree
{
diff --git a/filters/kspread/dbase/dbase.cpp b/filters/kspread/dbase/dbase.cpp
index acc1e27d..2c8ba3b8 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.tqdevice()->at( m_headerLength );
+ m_stream.device()->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.tqdevice()->at( filepos );
+ m_stream.device()->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 bcbc98b8..6121baaf 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::ConversiontqStatus DBaseImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 39a0ac0e..293bda21 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 2e2c50e7..0ecf41f7 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::ConversiontqStatus ExcelExport::convert(const TQCString& from, const TQCString& to) {
+KoFilter::ConversionStatus 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::ConversiontqStatus ExcelExport::convert(const TQCString& from, const T
/*
-KoFilter::ConversiontqStatus ExcelWorker::startDocument(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus ExcelWorker::startDocument(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversiontqStatus ExcelWorker::startInfoLog(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus ExcelWorker::startInfoLog(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversiontqStatus ExcelWorker::startInfoAuthor(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus ExcelWorker::startInfoAuthor(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversiontqStatus ExcelWorker::startInfoAbout(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus ExcelWorker::startInfoAbout(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversiontqStatus ExcelWorker::startSpreadBook(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus ExcelWorker::startSpreadBook(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversiontqStatus ExcelWorker::startSpreadSheet(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus ExcelWorker::startSpreadSheet(KSpreadFilterProperty property) {
return KoFilter::OK;
}
-KoFilter::ConversiontqStatus ExcelWorker::startSpreadCell(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus ExcelWorker::startSpreadCell(KSpreadFilterProperty property) {
return KoFilter::OK;
}
*/
diff --git a/filters/kspread/excel/excelexport.h b/filters/kspread/excel/excelexport.h
index 029cdac1..e4b6b499 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus convert(const TQCString& from, const TQCString& to);
};
class ExcelWorker : public KSpreadBaseWorker {
public:
// Implement those
- //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);
+ //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);
};
#endif
diff --git a/filters/kspread/excel/import/excelimport.cc b/filters/kspread/excel/import/excelimport.cc
index f1bade9e..75ee412a 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 <tqtextstream.h>
+#include <textstream.h>
#include <kdebug.h>
#include <KoFilterChain.h>
@@ -107,7 +107,7 @@ ExcelImport::~ExcelImport()
delete d;
}
-KoFilter::ConversiontqStatus ExcelImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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").tqarg(sheetFormatIndex));
+ xmlWriter->addAttribute( "table:style-name", TQString("ta%1").arg(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").tqarg(sheetFormatIndex) );
+ xmlWriter->addAttribute( "style:name", TQString("ta%1").arg(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").tqarg(columnFormatIndex) );
+ xmlWriter->addAttribute( "table:style-name", TQString("co%1").arg(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").tqarg(columnFormatIndex) );
+ xmlWriter->addAttribute( "style:name", TQString("co%1").arg(columnFormatIndex) );
columnFormatIndex++;
xmlWriter->startElement( "style:table-column-properties" );
xmlWriter->addAttribute( "fo:break-before", "auto" );
- xmlWriter->addAttribute( "style:column-width", TQString("%1in").tqarg(column->width()/27) );
+ xmlWriter->addAttribute( "style:column-width", TQString("%1in").arg(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").tqarg(rowFormatIndex) );
+ xmlWriter->addAttribute( "table:style-name", TQString("ro%1").arg(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").tqarg(rowFormatIndex) );
+ xmlWriter->addAttribute( "style:name", TQString("ro%1").arg(rowFormatIndex) );
rowFormatIndex++;
xmlWriter->startElement( "style:table-row-properties" );
xmlWriter->addAttribute( "fo:break-before", "auto" );
- xmlWriter->addAttribute( "style:row-height", TQString("%1pt").tqarg(row->height()) );
+ xmlWriter->addAttribute( "style:row-height", TQString("%1pt").arg(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").tqarg(cell->formatIndex());
+ refName = TQString("N%1").arg(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").tqarg( cell->formatIndex() ) );
+ xmlWriter->addAttribute( "style:name", TQString("ce%1").arg( 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->tqalignment();
+ const FormatAlignment& align = format->alignment();
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").tqarg(font.fontSize()) );
+ xmlWriter->addAttribute( "fo:font-size", TQString("%1pt").arg(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 5b733733..84729b4d 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 8155bca5..2a3a6247 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 tqunicode;
+ bool unicode;
bool richText;
UString str;
unsigned size;
@@ -194,7 +194,7 @@ public:
EString::EString()
{
d = new EString::Private();
- d->tqunicode = false;
+ d->unicode = 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->tqunicode = es.d->tqunicode;
+ d->unicode = es.d->unicode;
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::tqunicode() const
+bool EString::unicode() const
{
- return d->tqunicode;
+ return d->unicode;
}
void EString::setUnicode( bool u )
{
- d->tqunicode = u;
+ d->unicode = 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 tqunicode = flag & 0x01;
+ bool unicode = 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( tqunicode ) size += len; // because tqunicode takes 2-bytes char
+ if( unicode ) size += len; // because unicode takes 2-bytes char
if( richText ) size += (formatRuns*4);
- if( !tqunicode )
+ if( !unicode )
{
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( tqunicode );
+ result.setUnicode( unicode );
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 tqunicode = flag & 1;
+ bool unicode = flag & 1;
if( len > datasize-2 ) len = datasize-2;
if( len == 0 ) return EString();
unsigned offset = 2;
- if( !tqunicode )
+ if( !unicode )
{
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( tqunicode );
+ result.setUnicode( unicode );
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 tqunicode string
+ /* FIXME: it turned out that sheet name is not normal unicode 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 tqalignment;
+ FormatAlignment alignment;
switch( xf.horizontalAlignment() )
{
case XFRecord::Left:
- tqalignment.setAlignX( Format::Left ); break;
+ alignment.setAlignX( Format::Left ); break;
case XFRecord::Right:
- tqalignment.setAlignX( Format::Right ); break;
+ alignment.setAlignX( Format::Right ); break;
case XFRecord::Centered:
- tqalignment.setAlignX( Format::Center ); break;
+ alignment.setAlignX( Format::Center ); break;
default: break;
// FIXME still unsupported: Repeat, Justified, Filled, Distributed
};
switch( xf.verticalAlignment() )
{
case XFRecord::Top:
- tqalignment.setAlignY( Format::Top ); break;
+ alignment.setAlignY( Format::Top ); break;
case XFRecord::VCentered:
- tqalignment.setAlignY( Format::Middle ); break;
+ alignment.setAlignY( Format::Middle ); break;
case XFRecord::Bottom:
- tqalignment.setAlignY( Format::Bottom ); break;
+ alignment.setAlignY( Format::Bottom ); break;
default: break;
// FIXME still unsupported: Justified, Distributed
}
- tqalignment.setWrap( xf.textWrap() );
- format.tqsetAlignment( tqalignment );
+ alignment.setWrap( xf.textWrap() );
+ format.setAlignment( alignment );
FormatBorders borders;
@@ -5929,31 +5929,31 @@ Format ExcelReader::convertFormat( unsigned xfIndex )
format.setFont( convertFont( xf.fontIndex() ) );
- FormatAlignment tqalignment;
+ FormatAlignment alignment;
switch( xf.horizontalAlignment() )
{
case XFRecord::Left:
- tqalignment.setAlignX( Format::Left ); break;
+ alignment.setAlignX( Format::Left ); break;
case XFRecord::Right:
- tqalignment.setAlignX( Format::Right ); break;
+ alignment.setAlignX( Format::Right ); break;
case XFRecord::Centered:
- tqalignment.setAlignX( Format::Center ); break;
+ alignment.setAlignX( Format::Center ); break;
default: break;
// FIXME still unsupported: Repeat, Justified, Filled, Distributed
};
switch( xf.verticalAlignment() )
{
case XFRecord::Top:
- tqalignment.setAlignY( Format::Top ); break;
+ alignment.setAlignY( Format::Top ); break;
case XFRecord::VCentered:
- tqalignment.setAlignY( Format::Middle ); break;
+ alignment.setAlignY( Format::Middle ); break;
case XFRecord::Bottom:
- tqalignment.setAlignY( Format::Bottom ); break;
+ alignment.setAlignY( Format::Bottom ); break;
default: break;
// FIXME still unsupported: Justified, Distributed
}
- tqalignment.setWrap( xf.textWrap() );
- format.tqsetAlignment( tqalignment );
+ alignment.setWrap( xf.textWrap() );
+ format.setAlignment( alignment );
FormatBorders borders;
diff --git a/filters/kspread/excel/sidewinder/excel.h b/filters/kspread/excel/sidewinder/excel.h
index 8cbdfd53..5221b518 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, tqunicode, far-east support Excel string
+// rich-text, unicode, far-east support Excel string
class EString
{
@@ -50,7 +50,7 @@ public:
~EString();
- bool tqunicode() const;
+ bool unicode() const;
void setUnicode( bool u );
@@ -2805,17 +2805,17 @@ public:
Distributed };
/**
- * Gets the horizontal tqalignment, e.g Left.
+ * Gets the horizontal alignment, e.g Left.
*/
unsigned horizontalAlignment() const;
/**
- * Sets the horizontal tqalignment, e.g Left.
+ * Sets the horizontal alignment, e.g Left.
*/
void setHorizontalAlignment( unsigned ha );
/**
- * Returns human-readable string representation of the horizontal tqalignment.
+ * Returns human-readable string representation of the horizontal alignment.
For example, XFRecord::Left will return "Left".
*/
const char* horizontalAlignmentAsString() const;
@@ -2828,21 +2828,21 @@ public:
VDistributed = 4 };
/**
- * Gets the vertical tqalignment, e.g Bottom.
+ * Gets the vertical alignment, e.g Bottom.
*
* \sa setVerticalAlignment
*/
unsigned verticalAlignment() const;
/**
- * Sets the vertical tqalignment, e.g Top.
+ * Sets the vertical alignment, e.g Top.
*
* \sa verticalAlignment
*/
void setVerticalAlignment( unsigned va );
/**
- * Returns human-readable string representation of the vertical tqalignment.
+ * Returns human-readable string representation of the vertical alignment.
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 29481fd0..8ce69f24 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 tqalignment
+// assign from another alignment
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 tqalignment
+// assign from another alignment
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 tqalignment
+// assign from another alignment
FormatBorders& FormatBorders::assign( const FormatBorders& border )
{
d->null = border.isNull();
@@ -581,7 +581,7 @@ class Format::Private
{
public:
FormatFont font;
- FormatAlignment tqalignment;
+ FormatAlignment alignment;
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->tqalignment = f.tqalignment();
+ d->alignment = f.alignment();
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->tqalignment.isNull() && d->borders.isNull();
+ return d->font.isNull() && d->alignment.isNull() && d->borders.isNull();
}
FormatFont& Format::font() const
@@ -639,14 +639,14 @@ void Format::setFont( const FormatFont& font )
d->font = font;
}
-FormatAlignment& Format::tqalignment() const
+FormatAlignment& Format::alignment() const
{
- return d->tqalignment;
+ return d->alignment;
}
-void Format::tqsetAlignment( const FormatAlignment& tqalignment )
+void Format::setAlignment( const FormatAlignment& alignment )
{
- d->tqalignment = tqalignment;
+ d->alignment = alignment;
}
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.tqalignment().isNull() )
- tqalignment() = f.tqalignment();
+ if( !f.alignment().isNull() )
+ alignment() = f.alignment();
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->tqalignment == format.d->tqalignment &&
+ d->alignment == format.d->alignment &&
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->tqalignment != format.d->tqalignment ||
+ d->alignment != format.d->alignment ||
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 dcadc1c2..acb566a5 100644
--- a/filters/kspread/excel/sidewinder/format.h
+++ b/filters/kspread/excel/sidewinder/format.h
@@ -266,9 +266,9 @@ private:
/**
- * Defines tqalignment information for cell format.
+ * Defines alignment information for cell format.
*
- * Class FormatAlignment defines the horizontal and vertical tqalignment
+ * Class FormatAlignment defines the horizontal and vertical alignment
* for the text inside a cell.
*
*/
@@ -278,37 +278,37 @@ class FormatAlignment
public:
/**
- * Creates a default tqalignment information.
+ * Creates a default alignment information.
*/
FormatAlignment();
/**
- * Destroys the tqalignment information
+ * Destroys the alignment information
*/
~FormatAlignment();
/**
- * Creates a copy of tqalignment information.
+ * Creates a copy of alignment information.
*/
FormatAlignment( const FormatAlignment& );
/**
- * Assigns from another tqalignment information.
+ * Assigns from another alignment information.
*/
FormatAlignment& operator=( const FormatAlignment& );
/**
- * Assigns from another tqalignment information.
+ * Assigns from another alignment information.
*/
FormatAlignment& assign( const FormatAlignment& );
/**
- * Returns true if it is a default tqalignment information.
+ * Returns true if it is a default alignment information.
*/
bool isNull() const;
/**
- * Returns horizontal tqalignment. Possible values are
+ * Returns horizontal alignment. Possible values are
* Format::Left, Format::Right and Format::Center.
*
* \sa setAlignX
@@ -316,14 +316,14 @@ public:
unsigned alignX() const;
/**
- * Sets the horizontal tqalignment.
+ * Sets the horizontal alignment.
*
* \sa alignX
*/
void setAlignX( unsigned xa );
/**
- * Returns horizontal tqalignment. Possible values are
+ * Returns horizontal alignment. Possible values are
* Format::Top, Format::Middle and Format::Bottom.
*
* \sa setAlignY
@@ -331,7 +331,7 @@ public:
unsigned alignY() const;
/**
- * Sets the horizontal tqalignment.
+ * Sets the horizontal alignment.
*
* \sa alignY
*/
@@ -380,12 +380,12 @@ public:
void setRotationAngle( unsigned r );
/**
- * Returns true if this tqalignment is equal to f; otherwise returns false.
+ * Returns true if this alignment is equal to f; otherwise returns false.
*/
bool operator==(const FormatAlignment& f) const;
/**
- * Returns true if this tqalignment is not equal to f; otherwise returns false.
+ * Returns true if this alignment 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 tqalignment information of this format.
+ * Returns a constant reference to the alignment information of this format.
*/
- FormatAlignment& tqalignment() const;
+ FormatAlignment& alignment() const;
/**
- * Sets new tqalignment information for this format.
+ * Sets new alignment information for this format.
*/
- void tqsetAlignment( const FormatAlignment& tqalignment );
+ void setAlignment( const FormatAlignment& alignment );
/**
* 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 38fe8cb5..e4090cd9 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 tqunicode anymore
+ std::string name; // the name, not in unicode 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> tqchildren( unsigned index );
+ std::vector<unsigned> children( 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 tqchildren
- // and check if one of the tqchildren is 'index'
+ // brute-force, basically we iterate for each entries, find its children
+ // and check if one of the children is 'index'
for( unsigned j=0; j<entryCount(); j++ )
{
- std::vector<unsigned> chi = tqchildren( j );
+ std::vector<unsigned> chi = children( 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 tqchildren of index
- std::vector<unsigned> chi = tqchildren( index );
+ // find among the children of index
+ std::vector<unsigned> chi = children( 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 tqchildren
+ // not found among children
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::tqchildren( unsigned index )
+std::vector<unsigned> DirTree::children( 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> tqchildren = dt->tqchildren( parent );
- for( unsigned i = 0; i < tqchildren.size(); i++ )
- result.push_back( dt->entry( tqchildren[i] )->name );
+ std::vector<unsigned> children = dt->children( parent );
+ for( unsigned i = 0; i < children.size(); i++ )
+ result.push_back( dt->entry( children[i] )->name );
}
return result;
diff --git a/filters/kspread/excel/sidewinder/ustring.cpp b/filters/kspread/excel/sidewinder/ustring.cpp
index b26ee196..304fed18 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.tqunicode() )
+ : uc( c.unicode() )
{
}
@@ -579,7 +579,7 @@ bool Swinder::operator<(const UString& s1, const UString& s2)
l++;
}
if (l < lmin)
- return (c1->tqunicode() < c2->tqunicode());
+ return (c1->unicode() < c2->unicode());
return (l1 < l2);
}
diff --git a/filters/kspread/excel/sidewinder/ustring.h b/filters/kspread/excel/sidewinder/ustring.h
index 1c4f2bc5..3f41867b 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 tqunicode() const { return uc; }
+ unsigned short unicode() const { return uc; }
public:
/**
* A static instance of UChar(0).
@@ -120,7 +120,7 @@ namespace Swinder {
/**
* @return Unicode value.
*/
- unsigned short tqunicode() const { return ref().uc; }
+ unsigned short unicode() const { return ref().uc; }
/**
* @return Lower byte.
*/
diff --git a/filters/kspread/gnumeric/gnumeric.xsd b/filters/kspread/gnumeric/gnumeric.xsd
index 04949083..7150f7e4 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_tqalignment"/>
- <xsd:attribute name="VAlign" type="gmr:vertical_tqalignment" />
+ <xsd:attribute name="HAlign" type="gmr:horizontal_alignment"/>
+ <xsd:attribute name="VAlign" type="gmr:vertical_alignment" />
<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_tqalignment">
+ <xsd:simpleType name="horizontal_alignment">
<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_tqalignment">
+ <xsd:simpleType name="vertical_alignment">
<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 tqshape attributes are only used if the type is
+ <!-- the arrow shape 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 cccfcc9f..f7416cc7 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 <tqtextstream.h>
+#include <textstream.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::tqpalette().active();
+ TQColorGroup defaultColorGroup = TQApplication::palette().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::ConversiontqStatus GNUMERICExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus GNUMERICExport::convert( const TQCString& from, const TQCString& to )
{
kdDebug(30521) << "Exporting GNUmeric" << endl;
@@ -1443,7 +1443,7 @@ KoFilter::ConversiontqStatus GNUMERICExport::convert( const TQCString& from, con
//<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" ).tqarg( Cell::columnName(currentcolumn ) ).tqarg( currentrow );
+ TQString sCell=TQString( "%1%2" ).arg( Cell::columnName(currentcolumn ) ).arg( currentrow );
cellComment.setAttribute("ObjectBound", sCell );
objects.appendChild(cellComment);
diff --git a/filters/kspread/gnumeric/gnumericexport.h b/filters/kspread/gnumeric/gnumericexport.h
index 392f0f72..0b2b0324 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 249258b3..b0833e87 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::ConversiontqStatus GNUMERICFilter::convert( const TQCString & from, const TQCString & to )
+KoFilter::ConversionStatus 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 b7fbd4bd..c449a599 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 7bd198cc..a25cdf4b 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 tqlayout
+<br>Paper layout
<br>area name
<br>Cell comment
<br>Text Rotation
diff --git a/filters/kspread/html/exportdialog.cc b/filters/kspread/html/exportdialog.cc
index 72dd6875..aa9366bf 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 <tqtextcodec.h>
+#include <textcodec.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)" ).tqarg( KGlobal::locale()->codecForEncoding()->name() ) );
+ m_mainwidget->mEncodingBox->insertItem( i18n( "Locale (%1)" ).arg( 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 df5dcc90..1b6ad59b 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>tqlayout1</cstring>
+ <cstring>layout1</cstring>
</property>
<hbox>
<property name="name">
@@ -56,7 +56,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -86,7 +86,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout7</cstring>
+ <cstring>layout7</cstring>
</property>
<hbox>
<property name="name">
@@ -124,7 +124,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>330</width>
<height>20</height>
@@ -222,7 +222,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@@ -271,7 +271,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -292,7 +292,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
diff --git a/filters/kspread/html/htmlexport.cc b/filters/kspread/html/htmlexport.cc
index 54711d8d..93991ad0 100644
--- a/filters/kspread/html/htmlexport.cc
+++ b/filters/kspread/html/htmlexport.cc
@@ -23,7 +23,7 @@
#include <exportdialog.h>
#include <tqfile.h>
-#include <tqtextcodec.h>
+#include <textcodec.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::ConversiontqStatus HTMLExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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").tqarg( m_dialog->encoding()->mimeName() );
+ str += TQString("content=\"text/html; charset=%1\">\n").arg( 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").tqarg(
+ str += TQString("<body bgcolor=\"#FFFFFF\" dir=\"%1\">\n").arg(
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.tqarg( m_dialog->useBorders() ? "1" : "0" ).tqarg( m_dialog->pixelsBetweenCells() ) +
- TQString("dir=\"%1\">\n").tqarg(sheet->isRightToLeft()?"rtl":"ltr");
+ 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");
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\" ").tqarg(text.isRightToLeft()?"rtl":"ltr");
+ line += TQString(" dir=\"%1\" ").arg(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 09f904d3..c7007157 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 15e8ee2a..ac725982 100644
--- a/filters/kspread/kexi/kspread_kexiimport.cc
+++ b/filters/kspread/kexi/kspread_kexiimport.cc
@@ -74,7 +74,7 @@ KSpreadKexiImport::~KSpreadKexiImport()
//=============================================================================
-KoFilter::ConversiontqStatus KSpreadKexiImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 aec65889..4de3e704 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 9ddf240f..f99b76a3 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 <tqtextedit.h>
+#include <textedit.h>
#include <tqcheckbox.h>
#include <klocale.h>
diff --git a/filters/kspread/kexi/kspread_kexiimportdialogbase.ui b/filters/kspread/kexi/kspread_kexiimportdialogbase.ui
index d9d28d55..fad0e0be 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>tqlayout5</cstring>
+ <cstring>layout5</cstring>
</property>
<vbox>
<property name="name">
@@ -110,7 +110,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout8</cstring>
+ <cstring>layout8</cstring>
</property>
<vbox>
<property name="name">
@@ -180,7 +180,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout4</cstring>
+ <cstring>layout4</cstring>
</property>
<hbox>
<property name="name">
@@ -196,7 +196,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>145</width>
<height>0</height>
diff --git a/filters/kspread/latex/export/config.h b/filters/kspread/latex/export/config.h
index 6e35bd1c..969d021d 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 <tqtextstream.h>
+#include <textstream.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 == "tqunicode"); }
- bool mustUseLatin1() const { return (_encoding != "tqunicode"); }
+ bool mustUseUnicode() const { return (_encoding == "unicode"); }
+ bool mustUseLatin1() const { return (_encoding != "unicode"); }
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 b8f0296c..733310bc 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 <tqtextstream.h> /* for TQTextStream class */
+#include <textstream.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 8ee9eee0..07b1fbe4 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 tqchildren markups --> PAPERBORDERS
+ // Analyse children 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]{tqgeometry}" << endl;
+ out << "\\usepackage[a4paper]{geometry}" << 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 5c4e7774..1d9b6025 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 <tqtextstream.h>
+#include <textstream.h>
#include "xmlparser.h"
diff --git a/filters/kspread/latex/export/format.h b/filters/kspread/latex/export/format.h
index 7025c371..9b03a258 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 <tqtextstream.h>
+#include <textstream.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 03ba4bd6..b023cdf6 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 <tqtextstream.h>
+#include <textstream.h>
/***********************************************************************/
/* Class: Formula */
diff --git a/filters/kspread/latex/export/kspreadlatexexportdiaImpl.cc b/filters/kspread/latex/export/kspreadlatexexportdiaImpl.cc
index a7f03f60..7a058550 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").tqarg(i) );
+ /*value = _config->readPathEntry( TQString("Recent%1").arg(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("tqunicode");
+ encodingComboBox->insertItem("unicode");
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 66927728..c1cdd389 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 <tqtextcodec.h>
+#include <textcodec.h>
#include "kspreadlatexexportdiaImpl.h"
typedef KGenericFactory<LATEXExport, KoFilter> LATEXExportFactory;
@@ -35,7 +35,7 @@ LATEXExport::LATEXExport(KoFilter *, const char *, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversiontqStatus LATEXExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 e7c0312b..4d34e0f0 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 <tqtextstream.h>
+#include <textstream.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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 8c3835ed..741a9c7e 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="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>0</height>
diff --git a/filters/kspread/latex/export/map.cc b/filters/kspread/latex/export/map.cc
index a2256d5e..886f6c11 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 tqchildren markups */
+ /* Analyse of the children 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 49da17e0..54792205 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 <tqtextstream.h>
+#include <textstream.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 03984105..dfc2f092 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 <tqtextstream.h>
+#include <textstream.h>
#include "map.h"
#include "config.h"
diff --git a/filters/kspread/latex/export/xmlparser.cc b/filters/kspread/latex/export/xmlparser.cc
index 6b85f243..fb2c8e1f 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 tqchildren = balise.toElement().elementsByTagName(name);
- if ( tqchildren.count() )
- return tqchildren.item(index);
+ TQDomNodeList children = balise.toElement().elementsByTagName(name);
+ if ( children.count() )
+ return children.item(index);
}
return TQDomNode();
}
TQDomNode XmlParser::getChild(TQDomNode balise, int index)
{
- TQDomNodeList tqchildren = balise.childNodes();
- if ( tqchildren.count() )
- return tqchildren.item(index);
+ TQDomNodeList children = balise.childNodes();
+ if ( children.count() )
+ return children.item(index);
return TQDomNode();
}
diff --git a/filters/kspread/libkspreadexport/KSpreadBaseWorker.cc b/filters/kspread/libkspreadexport/KSpreadBaseWorker.cc
index ba56c229..cc7b2b46 100644
--- a/filters/kspread/libkspreadexport/KSpreadBaseWorker.cc
+++ b/filters/kspread/libkspreadexport/KSpreadBaseWorker.cc
@@ -31,7 +31,7 @@ KSpreadBaseWorker::~KSpreadBaseWorker() {
}
-KoFilter::ConversiontqStatus KSpreadBaseWorker::startDocument(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus 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::ConversiontqStatus KSpreadBaseWorker::startDocument(KSpreadFilterPrope
}
-KoFilter::ConversiontqStatus KSpreadBaseWorker::startInfoLog(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus 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::ConversiontqStatus KSpreadBaseWorker::startInfoLog(KSpreadFilterProper
}
-KoFilter::ConversiontqStatus KSpreadBaseWorker::startInfoAuthor(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus 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::ConversiontqStatus KSpreadBaseWorker::startInfoAuthor(KSpreadFilterPro
}
-KoFilter::ConversiontqStatus KSpreadBaseWorker::startInfoAbout(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus 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::ConversiontqStatus KSpreadBaseWorker::startInfoAbout(KSpreadFilterProp
}
-KoFilter::ConversiontqStatus KSpreadBaseWorker::startSpreadBook(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus 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::ConversiontqStatus KSpreadBaseWorker::startSpreadBook(KSpreadFilterPro
}
-KoFilter::ConversiontqStatus KSpreadBaseWorker::startSpreadSheet(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus 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::ConversiontqStatus KSpreadBaseWorker::startSpreadSheet(KSpreadFilterPr
}
-KoFilter::ConversiontqStatus KSpreadBaseWorker::startSpreadCell(KSpreadFilterProperty property) {
+KoFilter::ConversionStatus 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 4ba82383..13b3d380 100644
--- a/filters/kspread/libkspreadexport/KSpreadBaseWorker.h
+++ b/filters/kspread/libkspreadexport/KSpreadBaseWorker.h
@@ -33,13 +33,13 @@ public:
KSpreadBaseWorker();
virtual ~KSpreadBaseWorker();
- 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);
+ 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);
};
#endif /* KSPREAD_BASE_WORKER_H */
diff --git a/filters/kspread/libkspreadexport/KSpreadLeader.cc b/filters/kspread/libkspreadexport/KSpreadLeader.cc
index 9ba2d874..b1b9a0aa 100644
--- a/filters/kspread/libkspreadexport/KSpreadLeader.cc
+++ b/filters/kspread/libkspreadexport/KSpreadLeader.cc
@@ -48,8 +48,8 @@ void Leader::setWorker(KSpreadBaseWorker *newWorker) {
}
-KoFilter::ConversiontqStatus Leader::convert() {
- KoFilter::ConversiontqStatus status;
+KoFilter::ConversionStatus Leader::convert() {
+ KoFilter::ConversionStatus status;
// Validate the filter chain and the worker
if (!m_filterChain) {
@@ -122,8 +122,8 @@ KoFilter::ConversiontqStatus Leader::convert() {
}
-KoFilter::ConversiontqStatus Leader::doInfo(KoDocumentInfo *info) {
- KoFilter::ConversiontqStatus status;
+KoFilter::ConversionStatus Leader::doInfo(KoDocumentInfo *info) {
+ KoFilter::ConversionStatus status;
#if 0 // this was never used, it's been removed now
// Gather data about the document log
@@ -164,7 +164,7 @@ KoFilter::ConversiontqStatus Leader::doInfo(KoDocumentInfo *info) {
}
-KoFilter::ConversiontqStatus Leader::doSpreadBook(KSpreadDoc *document) {
+KoFilter::ConversionStatus Leader::doSpreadBook(KSpreadDoc *document) {
KSpreadFilterProperty docSpreadBookProperty;
docSpreadBookProperty["spreadsheetcount"] = TQString::number(document->map()->count());
docSpreadBookProperty["decimalsymbol"] = document->locale()->decimalSymbol();
@@ -216,7 +216,7 @@ KoFilter::ConversiontqStatus Leader::doSpreadBook(KSpreadDoc *document) {
}
-KoFilter::ConversiontqStatus Leader::doSpreadSheet(KSpreadSheet *spreadSheet) {
+KoFilter::ConversionStatus Leader::doSpreadSheet(KSpreadSheet *spreadSheet) {
KSpreadFilterProperty docSpreadSheetProperty;
docSpreadSheetProperty["name"] = spreadSheet->tableName();
docSpreadSheetProperty["sizemaxx"] = TQString::number(spreadSheet->sizeMaxX());
@@ -257,7 +257,7 @@ KoFilter::ConversiontqStatus Leader::doSpreadSheet(KSpreadSheet *spreadSheet) {
}
-KoFilter::ConversiontqStatus Leader::doSpreadCell(Cell*spreadCell, int column, int row) {
+KoFilter::ConversionStatus 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 7e9abfed..eee950b9 100644
--- a/filters/kspread/libkspreadexport/KSpreadLeader.h
+++ b/filters/kspread/libkspreadexport/KSpreadLeader.h
@@ -78,10 +78,10 @@ private:
protected:
KSpreadBaseWorker *getWorker() const;
- KoFilter::ConversiontqStatus doSpreadCell(Cell *spreadCell, int column, int row);
- KoFilter::ConversiontqStatus doSpreadSheet(Sheet *spreadSheet);
- KoFilter::ConversiontqStatus doSpreadBook(Doc *document);
- KoFilter::ConversiontqStatus doInfo(KoDocumentInfo *info);
+ KoFilter::ConversionStatus doSpreadCell(Cell *spreadCell, int column, int row);
+ KoFilter::ConversionStatus doSpreadSheet(Sheet *spreadSheet);
+ KoFilter::ConversionStatus doSpreadBook(Doc *document);
+ KoFilter::ConversionStatus doInfo(KoDocumentInfo *info);
public:
/**
@@ -97,7 +97,7 @@ public:
*
* @return status of the conversion.
*/
- KoFilter::ConversiontqStatus convert();
+ KoFilter::ConversionStatus convert();
};
} // namespace KSpread
diff --git a/filters/kspread/opencalc/opencalcexport.cc b/filters/kspread/opencalc/opencalcexport.cc
index 9e37597c..ce1a55ad 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::ConversiontqStatus OpenCalcExport::convert( const TQCString & from,
+KoFilter::ConversionStatus OpenCalcExport::convert( const TQCString & from,
const TQCString & to )
{
/* later...
@@ -91,7 +91,7 @@ KoFilter::ConversiontqStatus OpenCalcExport::convert( const TQCString & from,
OpenCalcWorker * worker = new OpenCalcWorker();
leader->setWorker( worker );
- KoFilter::ConversiontqStatus status = leader->convert();
+ KoFilter::ConversionStatus 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::tqcurrentDateTime() );
+ const TQDateTime dt ( TQDateTime::currentDateTime() );
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" ).tqarg( font.pointSize() ) );
+ style.setAttribute( "fo:font-size", TQString( "%1pt" ).arg( 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" ).tqarg( width );
- TQString sHeight = TQString( "%1cm" ).tqarg( height );
+ TQString sWidth = TQString( "%1cm" ).arg( width );
+ TQString sHeight = TQString( "%1cm" ).arg( 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::tqcurrentDate().toString() ) );
+ t.appendChild( doc.createTextNode( TQDate::currentDate().toString() ) );
parent.appendChild( t );
}
else if ( var == "<time>" )
diff --git a/filters/kspread/opencalc/opencalcexport.h b/filters/kspread/opencalc/opencalcexport.h
index 97832a9a..03cfa245 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::ConversiontqStatus convert( const TQCString & from,
+ virtual KoFilter::ConversionStatus convert( const TQCString & from,
const TQCString & to );
private:
diff --git a/filters/kspread/opencalc/opencalcimport.cc b/filters/kspread/opencalc/opencalcimport.cc
index 376a8f77..60412181 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 tqlayout( table, table->doc()->styleManager()->defaultStyle() );
+ Format layout( table, table->doc()->styleManager()->defaultStyle() );
while( !node.isNull() )
{
@@ -190,7 +190,7 @@ bool OpenCalcImport::readRowFormat( TQDomElement & rowNode, TQDomElement * rowSt
}
}
- loadStyleProperties( &tqlayout, property );
+ loadStyleProperties( &layout, 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( tqlayout );
+ rowL->copy( layout );
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 * tqlayout = m_defaultStyles[psName];
+ Format * layout = m_defaultStyles[psName];
- if ( tqlayout )
- cell->format()->copy( *tqlayout );
+ if ( layout )
+ cell->format()->copy( *layout );
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 * tqlayout = m_defaultStyles[psName];
+ Format * layout = m_defaultStyles[psName];
- if ( tqlayout )
- cell->format()->copy( *tqlayout );
+ if ( layout )
+ cell->format()->copy( *layout );
}
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 * tqlayout = 0;
+ RowFormat * layout = 0;
if ( collapsed )
srcLayout->setHide( true );
for ( i = 1; i < number; ++i )
{
- tqlayout = table->nonDefaultRowFormat( backupRow + i );
+ layout = table->nonDefaultRowFormat( backupRow + i );
- tqlayout->copy( *srcLayout );
+ layout->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 * tqlayout = new Format( 0, m_doc->styleManager()->defaultStyle() );
+ Format * layout = new Format( 0, m_doc->styleManager()->defaultStyle() );
- readInStyle( tqlayout, *st );
+ readInStyle( layout, *st );
- m_defaultStyles.insert( name, tqlayout );
+ m_defaultStyles.insert( name, layout );
kdDebug(30518) << "Insert default cell style: " << name << endl;
- defaultStyle = tqlayout;
+ defaultStyle = layout;
}
}
@@ -1281,7 +1281,7 @@ void OpenCalcImport::loadOasisMasterLayoutPage( Sheet * table,KoStyleStack &styl
TQString orientation = "Portrait";
TQString format;
- // Laurent : Why we stored tqlayout information as Millimeter ?!!!!!
+ // Laurent : Why we stored layout 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" ).tqarg( width ).tqarg( height );
+ format = TQString( "%1x%2" ).arg( width ).arg( 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 * tqlayout, TQDomElement const * font ) const
+void OpenCalcImport::loadFontStyle( Format * layout, TQDomElement const * font ) const
{
- if ( !font || !tqlayout )
+ if ( !font || !layout )
return;
- kdDebug(30518) << "Copy font style from the tqlayout " << font->tagName() << ", " << font->nodeName() << endl;
+ kdDebug(30518) << "Copy font style from the layout " << font->tagName() << ", " << font->nodeName() << endl;
if ( font->hasAttributeNS( ooNS::fo, "font-family" ) )
- tqlayout->setTextFontFamily( font->attributeNS( ooNS::fo, "font-family", TQString() ) );
+ layout->setTextFontFamily( font->attributeNS( ooNS::fo, "font-family", TQString() ) );
if ( font->hasAttributeNS( ooNS::fo, "color" ) )
- tqlayout->setTextColor( TQColor( font->attributeNS( ooNS::fo, "color", TQString() ) ) );
+ layout->setTextColor( TQColor( font->attributeNS( ooNS::fo, "color", TQString() ) ) );
if ( font->hasAttributeNS( ooNS::fo, "font-size" ) )
- tqlayout->setTextFontSize( int( KoUnit::parseValue( font->attributeNS( ooNS::fo, "font-size", TQString() ), 10 ) ) );
+ layout->setTextFontSize( int( KoUnit::parseValue( font->attributeNS( ooNS::fo, "font-size", TQString() ), 10 ) ) );
else
- tqlayout->setTextFontSize( 10 );
+ layout->setTextFontSize( 10 );
if ( font->hasAttributeNS( ooNS::fo, "font-style" ) )
{
kdDebug(30518) << "italic" << endl;
- tqlayout->setTextFontItalic( true ); // only thing we support
+ layout->setTextFontItalic( true ); // only thing we support
}
if ( font->hasAttributeNS( ooNS::fo, "font-weight" ) )
- tqlayout->setTextFontBold( true ); // only thing we support
+ layout->setTextFontBold( true ); // only thing we support
if ( font->hasAttributeNS( ooNS::fo, "text-underline" ) || font->hasAttributeNS( ooNS::style, "text-underline" ) )
- tqlayout->setTextFontUnderline( true ); // only thing we support
+ layout->setTextFontUnderline( true ); // only thing we support
if ( font->hasAttributeNS( ooNS::style, "text-crossing-out" ) )
- tqlayout->setTextFontStrike( true ); // only thing we support
+ layout->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 * tqlayout, TQDomElement const * font
// text-underline-color
}
-void OpenCalcImport::loadBorder( Format * tqlayout, TQString const & borderDef, bPos pos ) const
+void OpenCalcImport::loadBorder( Format * layout, TQString const & borderDef, bPos pos ) const
{
if ( borderDef == "none" )
return;
@@ -2038,24 +2038,24 @@ void OpenCalcImport::loadBorder( Format * tqlayout, TQString const & borderDef,
pen.setColor( TQColor( borderDef.right( p - p2 ) ) );
if ( pos == Left )
- tqlayout->setLeftBorderPen( pen );
+ layout->setLeftBorderPen( pen );
else if ( pos == Top )
- tqlayout->setTopBorderPen( pen );
+ layout->setTopBorderPen( pen );
else if ( pos == Right )
- tqlayout->setRightBorderPen( pen );
+ layout->setRightBorderPen( pen );
else if ( pos == Bottom )
- tqlayout->setBottomBorderPen( pen );
+ layout->setBottomBorderPen( pen );
else if ( pos == Border )
{
- tqlayout->setLeftBorderPen( pen );
- tqlayout->setTopBorderPen( pen );
- tqlayout->setRightBorderPen( pen );
- tqlayout->setBottomBorderPen( pen );
+ layout->setLeftBorderPen( pen );
+ layout->setTopBorderPen( pen );
+ layout->setRightBorderPen( pen );
+ layout->setBottomBorderPen( pen );
}
// TODO Diagonals not supported by oocalc
}
-void OpenCalcImport::loadStyleProperties( Format * tqlayout, TQDomElement const & property ) const
+void OpenCalcImport::loadStyleProperties( Format * layout, TQDomElement const & property ) const
{
kdDebug(30518) << "*** Loading style properties *****" << endl;
@@ -2064,16 +2064,16 @@ void OpenCalcImport::loadStyleProperties( Format * tqlayout, TQDomElement const
bool ok = false;
int p = property.attributeNS( ooNS::style, "decimal-places", TQString() ).toInt( &ok );
if (ok )
- tqlayout->setPrecision( p );
+ layout->setPrecision( p );
}
if ( property.hasAttributeNS( ooNS::style, "font-name" ) )
{
TQDomElement * font = m_styles[ property.attributeNS( ooNS::style, "font-name", TQString() ) ];
- loadFontStyle( tqlayout, font ); // generell font style
+ loadFontStyle( layout, font ); // generell font style
}
- loadFontStyle( tqlayout, &property ); // specific font style
+ loadFontStyle( layout, &property ); // specific font style
// TODO:
// diagonal: fall + goup
@@ -2090,133 +2090,133 @@ void OpenCalcImport::loadStyleProperties( Format * tqlayout, TQDomElement const
bool ok = false;
int a = property.attributeNS( ooNS::style, "rotation-angle", TQString() ).toInt( &ok );
if ( ok )
- tqlayout->setAngle( -a + 1 );
+ layout->setAngle( -a + 1 );
}
if ( property.hasAttributeNS( ooNS::fo, "direction" ) )
{
- tqlayout->setVerticalText( true );
+ layout->setVerticalText( true );
}
if ( property.hasAttributeNS( ooNS::fo, "text-align" ) )
{
TQString s = property.attributeNS( ooNS::fo, "text-align", TQString() );
if ( s == "center" )
- tqlayout->setAlign( Format::Center );
+ layout->setAlign( Format::Center );
else if ( s == "end" )
- tqlayout->setAlign( Format::Right );
+ layout->setAlign( Format::Right );
else if ( s == "start" )
- tqlayout->setAlign( Format::Left );
+ layout->setAlign( Format::Left );
else if ( s == "justify" ) // TODO in KSpread!
- tqlayout->setAlign( Format::Center );
+ layout->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;
- tqlayout->setIndent( KoUnit::parseValue( property.attributeNS( ooNS::fo, "margin-left", TQString() ),0.0 ) );
+ layout->setIndent( KoUnit::parseValue( property.attributeNS( ooNS::fo, "margin-left", TQString() ),0.0 ) );
}
if ( property.hasAttributeNS( ooNS::fo, "background-color" ) )
- tqlayout->setBgColor( TQColor( property.attributeNS( ooNS::fo, "background-color", TQString() ) ) );
+ layout->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" )
- tqlayout->setDontPrintText( false );
+ layout->setDontPrintText( false );
}
if ( property.hasAttributeNS( ooNS::style, "cell-protect" ) )
{
TQString prot( property.attributeNS( ooNS::style, "cell-protect", TQString() ) );
if ( prot == "none" )
{
- tqlayout->setNotProtected( true );
- tqlayout->setHideFormula( false );
- tqlayout->setHideAll( false );
+ layout->setNotProtected( true );
+ layout->setHideFormula( false );
+ layout->setHideAll( false );
}
else if ( prot == "formula-hidden" )
{
- tqlayout->setNotProtected( true );
- tqlayout->setHideFormula( true );
- tqlayout->setHideAll( false );
+ layout->setNotProtected( true );
+ layout->setHideFormula( true );
+ layout->setHideAll( false );
}
else if ( prot == "protected formula-hidden" )
{
- tqlayout->setNotProtected( false );
- tqlayout->setHideFormula( true );
- tqlayout->setHideAll( false );
+ layout->setNotProtected( false );
+ layout->setHideFormula( true );
+ layout->setHideAll( false );
}
else if ( prot == "hidden-and-protected" )
{
- tqlayout->setNotProtected( false );
- tqlayout->setHideFormula( false );
- tqlayout->setHideAll( true );
+ layout->setNotProtected( false );
+ layout->setHideFormula( false );
+ layout->setHideAll( true );
}
else if ( prot == "protected" )
{
- tqlayout->setNotProtected( false );
- tqlayout->setHideFormula( false );
- tqlayout->setHideAll( false );
+ layout->setNotProtected( false );
+ layout->setHideFormula( false );
+ layout->setHideAll( false );
}
kdDebug(30518) << "Cell " << prot << endl;
}
if ( property.hasAttributeNS( ooNS::fo, "padding-left" ) )
- tqlayout->setIndent( KoUnit::parseValue(property.attributeNS( ooNS::fo, "padding-left", TQString() ) ) );
+ layout->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" )
- tqlayout->setAlignY( Format::Middle );
+ layout->setAlignY( Format::Middle );
else if ( s == "bottom" )
- tqlayout->setAlignY( Format::Bottom );
+ layout->setAlignY( Format::Bottom );
else
- tqlayout->setAlignY( Format::Top );
+ layout->setAlignY( Format::Top );
}
else
- tqlayout->setAlignY( Format::Bottom );
+ layout->setAlignY( Format::Bottom );
if ( property.hasAttributeNS( ooNS::fo, "wrap-option" ) )
{
- tqlayout->setMultiRow( true );
+ layout->setMultiRow( true );
/* we do not support anything else yet
TQString s = property.attributeNS( ooNS::fo, "wrap-option", TQString() );
if ( s == "wrap" )
- tqlayout->setMultiRow( true );
+ layout->setMultiRow( true );
*/
}
if ( property.hasAttributeNS( ooNS::fo, "border-bottom" ) )
{
- loadBorder( tqlayout, property.attributeNS( ooNS::fo, "border-bottom", TQString() ), Bottom );
+ loadBorder( layout, property.attributeNS( ooNS::fo, "border-bottom", TQString() ), Bottom );
// TODO: style:border-line-width-bottom if double!
}
if ( property.hasAttributeNS( ooNS::fo, "border-right" ) )
{
- loadBorder( tqlayout, property.attributeNS( ooNS::fo, "border-right", TQString() ), Right );
+ loadBorder( layout, property.attributeNS( ooNS::fo, "border-right", TQString() ), Right );
// TODO: style:border-line-width-right
}
if ( property.hasAttributeNS( ooNS::fo, "border-top" ) )
{
- loadBorder( tqlayout, property.attributeNS( ooNS::fo, "border-top", TQString() ), Top );
+ loadBorder( layout, property.attributeNS( ooNS::fo, "border-top", TQString() ), Top );
// TODO: style:border-line-width-top
}
if ( property.hasAttributeNS( ooNS::fo, "border-left" ) )
{
- loadBorder( tqlayout, property.attributeNS( ooNS::fo, "border-left", TQString() ), Left );
+ loadBorder( layout, property.attributeNS( ooNS::fo, "border-left", TQString() ), Left );
// TODO: style:border-line-width-left
}
if ( property.hasAttributeNS( ooNS::fo, "border" ) )
{
- loadBorder( tqlayout, property.attributeNS( ooNS::fo, "border", TQString() ), Border );
+ loadBorder( layout, property.attributeNS( ooNS::fo, "border", TQString() ), Border );
// TODO: style:border-line-width-left
}
}
-void OpenCalcImport::readInStyle( Format * tqlayout, TQDomElement const & style )
+void OpenCalcImport::readInStyle( Format * layout, 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 * tqlayout, TQDomElement const & style
{
Format * cp
= m_defaultStyles.find( style.attributeNS( ooNS::style, "parent-style-name", TQString() ) );
- kdDebug(30518) << "Copying tqlayout from " << style.attributeNS( ooNS::style, "parent-style-name", TQString() ) << endl;
+ kdDebug(30518) << "Copying layout from " << style.attributeNS( ooNS::style, "parent-style-name", TQString() ) << endl;
if ( cp != 0 )
- tqlayout->copy( *cp );
+ layout->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 tqlayout from " << name << ", " << !cp << endl;
+ kdDebug(30518) << "Copying layout from " << name << ", " << !cp << endl;
if ( cp != 0 )
- tqlayout->copy( *cp );
+ layout->copy( *cp );
}
if ( style.hasAttributeNS( ooNS::style, "data-style-name" ) )
@@ -2255,8 +2255,8 @@ void OpenCalcImport::readInStyle( Format * tqlayout, TQDomElement const & style
if ( format )
{
- tqlayout->setFormatString( *format );
- tqlayout->setFormatType( formatType );
+ layout->setFormatString( *format );
+ layout->setFormatType( formatType );
}
// <number:currency-symbol number:language="de" number:country="DE">€</number:currency-symbol>
@@ -2267,9 +2267,9 @@ void OpenCalcImport::readInStyle( Format * tqlayout, TQDomElement const & style
forEachElement( property, style )
{
if ( property.localName() == "properties" && property.namespaceURI() == ooNS::style )
- loadStyleProperties( tqlayout, property );
+ loadStyleProperties( layout, property );
- kdDebug(30518) << tqlayout->textFontFamily( 0, 0 ) << endl;
+ kdDebug(30518) << layout->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.tqarg( content.attributeNS( ooNS::office, "version", TQString() ) );
+ message.arg( 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 * tqlayout = new Format( 0, m_doc->styleManager()->defaultStyle() );
+ Format * layout = new Format( 0, m_doc->styleManager()->defaultStyle() );
- readInStyle( tqlayout, e );
+ readInStyle( layout, e );
kdDebug(30518) << "Default style " << e.attributeNS( ooNS::style, "family", TQString() ) << "default" << " loaded " << endl;
- m_defaultStyles.insert( e.attributeNS( ooNS::style, "family", TQString() ) + "default", tqlayout );
- // TQFont font = tqlayout->font();
+ m_defaultStyles.insert( e.attributeNS( ooNS::style, "family", TQString() ) + "default", layout );
+ // TQFont font = layout->font();
// kdDebug(30518) << "Font: " << font.family() << ", " << font.toString() << endl;
}
@@ -2384,12 +2384,12 @@ bool OpenCalcImport::createStyleMap( TQDomDocument const & styles )
continue;
}
- Format * tqlayout = new Format( 0, m_doc->styleManager()->defaultStyle() );
- readInStyle( tqlayout, defs );
+ Format * layout = new Format( 0, m_doc->styleManager()->defaultStyle() );
+ readInStyle( layout, defs );
kdDebug(30518) << "Default style " << defs.attributeNS( ooNS::style, "name", TQString() ) << " loaded " << endl;
- m_defaultStyles.insert( defs.attributeNS( ooNS::style, "name", TQString() ), tqlayout );
- // kdDebug(30518) << "Font: " << tqlayout->font().family() << ", " << tqlayout->font().toString() << endl;
+ m_defaultStyles.insert( defs.attributeNS( ooNS::style, "name", TQString() ), layout );
+ // kdDebug(30518) << "Font: " << layout->font().family() << ", " << layout->font().toString() << endl;
defs = defs.nextSibling().toElement();
}
@@ -2735,7 +2735,7 @@ int OpenCalcImport::readMetaData()
return result;
}
-KoFilter::ConversiontqStatus OpenCalcImport::convert( TQCString const & from, TQCString const & to )
+KoFilter::ConversionStatus OpenCalcImport::convert( TQCString const & from, TQCString const & to )
{
kdDebug(30518) << "Entering OpenCalc Import filter: " << from << " - " << to << endl;
@@ -2765,10 +2765,10 @@ KoFilter::ConversiontqStatus OpenCalcImport::convert( TQCString const & from, TQ
kdDebug(30518) << "Opening file " << endl;
- KoFilter::ConversiontqStatus pretqStatus = openFile();
+ KoFilter::ConversionStatus preStatus = openFile();
- if ( pretqStatus != KoFilter::OK )
- return pretqStatus;
+ if ( preStatus != KoFilter::OK )
+ return preStatus;
emit sigProgress( 13 );
int tables = readMetaData();
@@ -2782,7 +2782,7 @@ KoFilter::ConversiontqStatus OpenCalcImport::convert( TQCString const & from, TQ
return KoFilter::OK;
}
-KoFilter::ConversiontqStatus OpenCalcImport::openFile()
+KoFilter::ConversionStatus OpenCalcImport::openFile()
{
KoStore * store = KoStore::createStore( m_chain->inputFile(), KoStore::Read);
@@ -2817,7 +2817,7 @@ KoFilter::ConversiontqStatus OpenCalcImport::openFile()
return KoFilter::OK;
}
-KoFilter::ConversiontqStatus OpenCalcImport::loadAndParse( TQDomDocument& doc, const TQString& fileName,KoStore *m_store )
+KoFilter::ConversionStatus 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 cd1f23b6..8965dae5 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::ConversiontqStatus convert( TQCString const & from, TQCString const & to );
+ virtual KoFilter::ConversionStatus 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 * 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 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 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::ConversiontqStatus loadAndParse( TQDomDocument& doc, const TQString& fileName,KoStore *m_store );
+ KoFilter::ConversionStatus loadAndParse( TQDomDocument& doc, const TQString& fileName,KoStore *m_store );
- KoFilter::ConversiontqStatus openFile();
+ KoFilter::ConversionStatus openFile();
};
#endif // OpenCalc_IMPORT_H__
diff --git a/filters/kspread/opencalc/opencalcstyleexport.cc b/filters/kspread/opencalc/opencalcstyleexport.cc
index f075713a..9585ae13 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" ).tqarg( m_cellStyles.count() );
+ t->name = TQString( "ce%1" ).arg( 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" ).tqarg( m_columnStyles.count() );
+ t->name = TQString( "co%1" ).arg( 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" ).tqarg( m_rowStyles.count() );
+ t->name = TQString( "ro%1" ).arg( 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" ).tqarg( m_sheetStyles.count() );
+ t->name = TQString( "ta%1" ).arg( m_sheetStyles.count() );
return t->name;
}
TQString convertPenToString( TQPen const & pen )
{
- TQString s( TQString( "%1cm solid " ).tqarg( pen.width() * 0.035 ) );
+ TQString s( TQString( "%1cm solid " ).arg( 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" ).tqarg( t->font.pointSize() ) );
+ prop.setAttribute( "fo:font-size", TQString( "%1pt" ).arg( 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" ).tqarg( t->indent ) );
+ prop.setAttribute( "fo:margin-left", TQString( "%1pt" ).arg( 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" ).tqarg( t->size ) );
+ prop.setAttribute( "style:column-width", TQString( "%1cm" ).arg( 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" ).tqarg( t->size ) );
+ prop.setAttribute( "style:row-height", TQString( "%1cm" ).arg( 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 dfaed8a4..b23f6ae9 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 tqlayout (size, border)<br>
+ page layout (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 tqalignment, angle, vertical text, text wrap and indents<br>
+ Text alignment, 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 tqlayout, header, footer<br>
+ Jan 18, 2003 - page layout, header, footer<br>
Jan 19, 2003 - Added support for fonts, text color, background color, formula
conversion<br>
- Jan 19, 2003 - text tqalignment, indents, comments, NoPrint, Merged Cells<br>
+ Jan 19, 2003 - text alignment, 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 9a0db4fa..920d20a7 100644
--- a/filters/kspread/qpro/qproimport.cc
+++ b/filters/kspread/qpro/qproimport.cc
@@ -94,7 +94,7 @@ QpImport::InitTableName(int pIdx, TQString& pResult)
}
}
-KoFilter::ConversiontqStatus QpImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 1c3c7d85..e69d2a65 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 f8ad242c..f3b132db 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::ConversiontqStatus KugarNOPImport::convert( const TQCString& /*from*/, const TQCString& /*to*/ )
+KoFilter::ConversionStatus 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 03085410..a7099bc4 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
};
diff --git a/filters/kword/abiword/ImportField.cc b/filters/kword/abiword/ImportField.cc
index dfba826d..5e875ecd 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").tqarg(id);
+ return i18n("Frameset name","Footnote %1").arg(id);
}
static void InsertTimeVariable(TQDomDocument& mainDocument,
diff --git a/filters/kword/abiword/ImportFormatting.cc b/filters/kword/abiword/ImportFormatting.cc
index 1687e958..7c45f07a 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 tqlayout, so we leave the work to KWord (from the style)
+ // Else: we are a layout, 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 4f84a8e4..5a08cf0d 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")
- .tqarg(fixedInfo.family()); // TODO: should be "Courier New"
+ .arg(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 717611cd..d52fa1c8 100644
--- a/filters/kword/abiword/abiwordexport.cc
+++ b/filters/kword/abiword/abiwordexport.cc
@@ -32,7 +32,7 @@
#include <tqmap.h>
#include <tqiodevice.h>
-#include <tqtextstream.h>
+#include <textstream.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& tqlayout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
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& tqlayout); // AbiWord's <s></s>
+ virtual bool doFullDefineStyle(LayoutData& layout); // 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& tqlayout, const bool force) const;
+ const LayoutData& layout, 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).tqlayout,(*it).formattingList);
+ fstr += ProcessParagraphData( (*it).text, (*it).layout,(*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& tqlayout, const bool force) const
+ const LayoutData& layout, const bool force) const
{
TQString props;
- if (force || (layoutOrigin.tqalignment!=tqlayout.tqalignment))
+ if (force || (layoutOrigin.alignment!=layout.alignment))
{
- // Check if the current tqalignment is a valid one for AbiWord.
- if ((tqlayout.tqalignment == "left") || (tqlayout.tqalignment == "right")
- || (tqlayout.tqalignment == "center") || (tqlayout.tqalignment == "justify"))
+ // Check if the current alignment is a valid one for AbiWord.
+ if ((layout.alignment == "left") || (layout.alignment == "right")
+ || (layout.alignment == "center") || (layout.alignment == "justify"))
{
props += "text-align:";
- props += tqlayout.tqalignment;
+ props += layout.alignment;
props += "; ";
}
- else if (tqlayout.tqalignment == "auto")
+ else if (layout.alignment == "auto")
{
- // We assume a left tqalignment as AbiWord is not really bi-di (and this filter even less.)
+ // We assume a left alignment as AbiWord is not really bi-di (and this filter even less.)
props += "text-align:left; ";
}
else
{
- kdWarning(30506) << "Unknown tqalignment: " << tqlayout.tqalignment << endl;
+ kdWarning(30506) << "Unknown alignment: " << layout.alignment << endl;
}
}
// TODO/FIXME: what if all tabulators must be erased?
#if 0
// DEPRECATED!
- if (!tqlayout.tabulator.isEmpty()
- && (force || (layoutOrigin.tabulator!=tqlayout.tabulator)))
+ if (!layout.tabulator.isEmpty()
+ && (force || (layoutOrigin.tabulator!=layout.tabulator)))
{
props += "tabstops:";
- props += tqlayout.tabulator;
+ props += layout.tabulator;
props += "; ";
}
#endif
- if (!tqlayout.tabulatorList.isEmpty()
- && (force || (layoutOrigin.tabulatorList!=tqlayout.tabulatorList) ))
+ if (!layout.tabulatorList.isEmpty()
+ && (force || (layoutOrigin.tabulatorList!=layout.tabulatorList) ))
{
props += "tabstops:";
bool first=true;
TabulatorList::ConstIterator it;
- TabulatorList::ConstIterator end(tqlayout.tabulatorList.end());
- for (it=tqlayout.tabulatorList.begin();it!=end;++it)
+ TabulatorList::ConstIterator end(layout.tabulatorList.end());
+ for (it=layout.tabulatorList.begin();it!=end;++it)
{
if (first)
{
@@ -789,48 +789,48 @@ TQString AbiWordWorker::layoutToCss(const LayoutData& layoutOrigin,
props += "; ";
}
- if ((tqlayout.indentLeft>=0.0)
- && (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft)))
+ if ((layout.indentLeft>=0.0)
+ && (force || (layoutOrigin.indentLeft!=layout.indentLeft)))
{
- props += TQString("margin-left:%1pt; ").tqarg(tqlayout.indentLeft);
+ props += TQString("margin-left:%1pt; ").arg(layout.indentLeft);
}
- if ((tqlayout.indentRight>=0.0)
- && (force || (layoutOrigin.indentRight!=tqlayout.indentRight)))
+ if ((layout.indentRight>=0.0)
+ && (force || (layoutOrigin.indentRight!=layout.indentRight)))
{
- props += TQString("margin-right:%1pt; ").tqarg(tqlayout.indentRight);
+ props += TQString("margin-right:%1pt; ").arg(layout.indentRight);
}
- if (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft))
+ if (force || (layoutOrigin.indentLeft!=layout.indentLeft))
{
props += "text-indent: ";
- props += TQString::number(tqlayout.indentFirst);
+ props += TQString::number(layout.indentFirst);
props += "pt; ";
}
- if ((tqlayout.marginBottom>=0.0)
- && ( force || ( layoutOrigin.marginBottom != tqlayout.marginBottom ) ) )
+ if ((layout.marginBottom>=0.0)
+ && ( force || ( layoutOrigin.marginBottom != layout.marginBottom ) ) )
{
- props += TQString("margin-bottom:%1pt; ").tqarg(tqlayout.marginBottom);
+ props += TQString("margin-bottom:%1pt; ").arg(layout.marginBottom);
}
- if ((tqlayout.marginTop>=0.0)
- && ( force || ( layoutOrigin.marginTop != tqlayout.marginTop ) ) )
+ if ((layout.marginTop>=0.0)
+ && ( force || ( layoutOrigin.marginTop != layout.marginTop ) ) )
{
- props += TQString("margin-top:%1pt; ").tqarg(tqlayout.marginTop);
+ props += TQString("margin-top:%1pt; ").arg(layout.marginTop);
}
if (force
- || ( layoutOrigin.lineSpacingType != tqlayout.lineSpacingType )
- || ( layoutOrigin.lineSpacing != tqlayout.lineSpacing ) )
+ || ( layoutOrigin.lineSpacingType != layout.lineSpacingType )
+ || ( layoutOrigin.lineSpacing != layout.lineSpacing ) )
{
- switch ( tqlayout.lineSpacingType )
+ switch ( layout.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( tqlayout.lineSpacing ); // ### TODO: rounding?
+ props += TQString::number( layout.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( tqlayout.lineSpacing ); // ### TODO: rounding?
+ props += TQString::number( layout.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( tqlayout.lineSpacing ); // ### TODO: rounding?
+ props += TQString::number( layout.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( tqlayout.lineSpacing ); // ### TODO: rounding?
+ props += TQString::number( layout.lineSpacing ); // ### TODO: rounding?
props += "pt+; "; // The + makes the difference
break;
}
default:
{
- kdWarning(30506) << "Unsupported lineSpacingType: " << tqlayout.lineSpacingType << " (Ignoring!)" << endl;
+ kdWarning(30506) << "Unsupported lineSpacingType: " << layout.lineSpacingType << " (Ignoring!)" << endl;
break;
}
}
}
// Add all AbiWord properties collected in the <FORMAT> element
- props += textFormatToAbiProps(layoutOrigin.formatData.text,tqlayout.formatData.text,force);
+ props += textFormatToAbiProps(layoutOrigin.formatData.text,layout.formatData.text,force);
return props;
}
-bool AbiWordWorker::doFullParagraph(const TQString& paraText, const LayoutData& tqlayout,
+bool AbiWordWorker::doFullParagraph(const TQString& paraText, const LayoutData& layout,
const ValueListFormatData& paraFormatDataList)
{
- TQString style=tqlayout.styleName;
+ TQString style=layout.styleName;
const LayoutData& styleLayout=m_styleMap[style];
- TQString props=layoutToCss(styleLayout,tqlayout,false);
+ TQString props=layoutToCss(styleLayout,layout,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 (tqlayout.pageBreakBefore)
+ if (layout.pageBreakBefore)
{
// We have a page break before the paragraph
*m_streamOut << "<pbr/>";
}
- processParagraphData(paraText, tqlayout.formatData.text, paraFormatDataList);
+ processParagraphData(paraText, layout.formatData.text, paraFormatDataList);
// Before closing the paragraph, test if we have a page break
- if (tqlayout.pageBreakAfter)
+ if (layout.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& tqlayout)
+bool AbiWordWorker::doFullDefineStyle(LayoutData& layout)
{
//Register style in the style map
- m_styleMap[tqlayout.styleName]=tqlayout;
+ m_styleMap[layout.styleName]=layout;
*m_streamOut << "<s";
// TODO: cook the style name to the standard style names in AbiWord
- *m_streamOut << " name=\"" << EscapeXmlText(tqlayout.styleName,true,true) << "\"";
- *m_streamOut << " followedby=\"" << EscapeXmlText(tqlayout.styleFollowing,true,true) << "\"";
+ *m_streamOut << " name=\"" << EscapeXmlText(layout.styleName,true,true) << "\"";
+ *m_streamOut << " followedby=\"" << EscapeXmlText(layout.styleFollowing,true,true) << "\"";
- if ( (tqlayout.counter.numbering == CounterData::NUM_CHAPTER)
- && (tqlayout.counter.depth<10) )
+ if ( (layout.counter.numbering == CounterData::NUM_CHAPTER)
+ && (layout.counter.depth<10) )
{
*m_streamOut << " level=\"";
- *m_streamOut << TQString::number(tqlayout.counter.depth+1,10);
+ *m_streamOut << TQString::number(layout.counter.depth+1,10);
*m_streamOut << "\"";
}
- TQString abiprops=layoutToCss(tqlayout,tqlayout,true);
+ TQString abiprops=layoutToCss(layout,layout,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\" ").tqarg(width/72.0).tqarg(height/72.0);
+ outputText += TQString("pagetype=\"Custom\" width=\"%1\" height=\"%2\" units=\"inch\" ").arg(width/72.0).arg(height/72.0);
}
break;
}
@@ -1208,7 +1208,7 @@ bool AbiWordWorker::doFullDocumentInfo(const KWEFDocumentInfo& docInfo)
*m_streamOut << "</m>\n";
- TQDateTime now (TQDateTime::tqcurrentDateTime(Qt::UTC)); // current time in UTC
+ TQDateTime now (TQDateTime::currentDateTime(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::ConversiontqStatus ABIWORDExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus ABIWORDExport::convert( const TQCString& from, const TQCString& to )
{
if ( to != "application/x-abiword" || from != "application/x-kword" )
{
@@ -1252,7 +1252,7 @@ KoFilter::ConversiontqStatus ABIWORDExport::convert( const TQCString& from, cons
return KoFilter::StupidError;
}
- KoFilter::ConversiontqStatus result=leader->convert(m_chain,from,to);
+ KoFilter::ConversionStatus 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 550b7682..656283f8 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 4815d02c..2c7e4d3f 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::tqcurrentDateTime(Qt::UTC)), m_fatalerror(false)
+ m_timepoint(TQDateTime::currentDateTime(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 tqlayout
+ // Now we populate the layout
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").tqarg(++m_pictureFrameNumber));
+ TQString strPictureFrameName(i18n("Frameset name","Picture %1").arg(++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 tqlayout of elementText.
+ // We must now copy/clone the layout 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").tqarg(tableNumber));
+ const TQString tableName(i18n("Table %1").arg(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 tqlayout
+ // Now we populate the layout
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")
- .tqarg(row).tqarg(col).tqarg(stackCurrent->strTemp2)); // As the stack could be wrong, be careful and use the string as last!
+ .arg(row).arg(col).arg(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")
- .tqarg(exception.lineNumber()).tqarg(exception.columnNumber())
- .tqarg( i18n( "TQXml", exception.message().utf8() ) ),
+ .arg(exception.lineNumber()).arg(exception.columnNumber())
+ .arg( 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::ConversiontqStatus ABIWORDImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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::ConversiontqStatus ABIWORDImport::convert( const TQCString& from, cons
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").tqarg(from.data()),
+ KMessageBox::error(NULL, i18n("An error occurred during the load of the AbiWord file: %1").arg(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 9ff4d764..8b8349b7 100644
--- a/filters/kword/abiword/abiwordimport.h
+++ b/filters/kword/abiword/abiwordimport.h
@@ -50,6 +50,6 @@ public:
ABIWORDImport();
virtual ~ABIWORDImport() {}
- virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 f795b56c..15f20037 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 tqalignment
- <+A> right tqalignment
- <+B> center tqalignment
+ <+@> left alignment
+ <+A> right alignment
+ <+B> center alignment
<+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 tqalignment flag (see below)
+ 4 alignment 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 tqlayout is defined in section [lay]. Here is the format,
+Page layout 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 dd4550b8..22bc741e 100644
--- a/filters/kword/amipro/amiproexport.cc
+++ b/filters/kword/amipro/amiproexport.cc
@@ -23,10 +23,10 @@
#include <unistd.h>
#endif
-#include <tqtextcodec.h>
+#include <textcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <tqtextstream.h>
+#include <textstream.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& tqlayout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
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.tqunicode() )
+ switch( ch.unicode() )
{
case '<': result += "<<"; break;
case '>': result += "<;>"; break;
@@ -131,7 +131,7 @@ static TQString AmiProEscape( const TQString& text )
}
bool AmiProWorker::doFullParagraph(const TQString& paraText,
- const LayoutData& /*tqlayout*/, const ValueListFormatData& paraFormatDataList)
+ const LayoutData& /*layout*/, const ValueListFormatData& paraFormatDataList)
{
TQString amiproText = "";
TQString text = paraText;
@@ -180,7 +180,7 @@ AmiProExport::AmiProExport( KoFilter *, const char *, const TQStringList& ):
{
}
-KoFilter::ConversiontqStatus
+KoFilter::ConversionStatus
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::ConversiontqStatus result;
+ KoFilter::ConversionStatus 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 c9e1f5d9..bffb4362 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 7f37746c..fe45ca18 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 tqlayout to KWord's LAYOUT
-static TQString AmiProLayoutAsXML( const AmiProLayout& tqlayout )
+// helper function to convert AmiPro paragraph layout to KWord's LAYOUT
+static TQString AmiProLayoutAsXML( const AmiProLayout& layout )
{
TQString result;
- TQString referredStyle = tqlayout.name;
+ TQString referredStyle = layout.name;
if( referredStyle.isEmpty() ) referredStyle = "Standard";
- TQString fontname = tqlayout.fontFamily;
+ TQString fontname = layout.fontFamily;
if( fontname.isEmpty() ) fontname = KoGlobal::defaultFont().family();
- 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 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 align;
- align = tqlayout.align==TQt::AlignLeft ? "left" :
- tqlayout.align==TQt::AlignRight ? "right" :
- tqlayout.align==TQt::AlignCenter ? "center" :
- tqlayout.align==TQt::AlignJustify ? "justify" :
+ align = layout.align==TQt::AlignLeft ? "left" :
+ layout.align==TQt::AlignRight ? "right" :
+ layout.align==TQt::AlignCenter ? "center" :
+ layout.align==TQt::AlignJustify ? "justify" :
"left";
TQString offsets;
- offsets = "before=\"" + TQString::number(tqlayout.spaceBefore) +
- "\" after=\"" + TQString::number(tqlayout.spaceAfter) + "\"";
+ offsets = "before=\"" + TQString::number(layout.spaceBefore) +
+ "\" after=\"" + TQString::number(layout.spaceAfter) + "\"";
TQString linespacing;
- 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 );
+ 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 );
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::tqfromLatin1( "0" ) :
- style.linespace==AmiPro::LS_OneAndHalf ? TQString::tqfromLatin1( "oneandhalf" ) :
- style.linespace==AmiPro::LS_Double ? TQString::tqfromLatin1( "double" ) :
+ 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" ) :
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& tqlayout )
+ AmiProLayout& layout )
{
root.append( "<PARAGRAPH>\n" );
root.append( "<TEXT>" + XMLEscape( text ) + "</TEXT>\n" );
root.append( AmiProFormatListAsXML( formatList ) );
- root.append( AmiProLayoutAsXML( tqlayout ) );
+ root.append( AmiProLayoutAsXML( layout ) );
root.append( "</PARAGRAPH>\n" );
return true;
}
-KoFilter::ConversiontqStatus AmiProImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 ad078543..45c8cc2b 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 fdae97e6..14a0084b 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 <tqtextstream.h>
+#include <textstream.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].tqunicode() + 0x40 ) );
+ result.append( TQChar(str[i+2].unicode() + 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].tqunicode() | 0x80 ) );
+ result.append( TQChar(str[i+2].unicode() | 0x80 ) );
i += 3;
}
@@ -344,7 +344,7 @@ bool AmiProParser::parseStyle( const TQStringList& lines )
style.word_underline = flag & 8;
style.double_underline = flag & 64;
- // tqalignment
+ // alignment
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 tqlayout
+// paragraph layout
AmiProLayout::AmiProLayout()
{
name = "";
diff --git a/filters/kword/amipro/amiproparser.h b/filters/kword/amipro/amiproparser.h
index 40a8f82b..b6f07753 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& tqlayout );
+ AmiProLayout& layout );
};
class AmiProParser
@@ -144,7 +144,7 @@ class AmiProParser
bool processOpenDocument();
bool processCloseDocument();
bool processParagraph( const TQString& text, AmiProFormatList formatList,
- AmiProLayout& tqlayout );
+ AmiProLayout& layout );
};
diff --git a/filters/kword/applixword/applixwordimport.cc b/filters/kword/applixword/applixwordimport.cc
index d7acc7ed..89bf5541 100644
--- a/filters/kword/applixword/applixwordimport.cc
+++ b/filters/kword/applixword/applixwordimport.cc
@@ -85,7 +85,7 @@ APPLIXWORDImport::nextLine (TQTextStream & stream)
* *
* *
******************************************************************************/
-KoFilter::ConversiontqStatus APPLIXWORDImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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>").tqarg(mystr.latin1()),
+ "This is the header line I did read:<BR><B>%1</B>").arg(mystr.latin1()),
"Okay");
- // i18n( "What is the separator used in this file ? First line is \n%1" ).tqarg(firstLine),
+ // i18n( "What is the separator used in this file ? First line is \n%1" ).arg(firstLine),
return false;
}
else return true;
diff --git a/filters/kword/applixword/applixwordimport.h b/filters/kword/applixword/applixwordimport.h
index ccd80df7..957e4058 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 <tqtextstream.h>
+#include <textstream.h>
#include <KoFilter.h>
#include <KoStore.h>
@@ -50,7 +50,7 @@ public:
APPLIXWORDImport(KoFilter *parent, const char *name, const TQStringList&);
virtual ~APPLIXWORDImport() {}
- virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 138618b2..f4bddc03 100644
--- a/filters/kword/ascii/ExportDialog.cc
+++ b/filters/kword/ascii/ExportDialog.cc
@@ -18,7 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <tqtextcodec.h>
+#include <textcodec.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 )" ).tqarg( "UTF-8" );
- encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).tqarg( TQTextCodec::codecForLocale()->name() );
+ encodings << i18n( "Descriptive encoding name", "Recommended ( %1 )" ).arg( "UTF-8" );
+ encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).arg( 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.tqarg("Apple Roman"); // Apple
- encodings << description.tqarg("IBM 850") << description.tqarg("IBM 866"); // MS DOS
- encodings << description.tqarg("CP 1258"); // Windows
+ encodings << description.arg("Apple Roman"); // Apple
+ encodings << description.arg("IBM 850") << description.arg("IBM 866"); // MS DOS
+ encodings << description.arg("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").tqarg( strCodec ) );
+ KMessageBox::error( 0, i18n("Cannot find encoding: %1").arg( strCodec ) );
return 0;
}
diff --git a/filters/kword/ascii/ExportDialogUI.ui b/filters/kword/ascii/ExportDialogUI.ui
index 8f66942c..9345a64c 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>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -67,7 +67,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>106</width>
<height>20</height>
@@ -138,7 +138,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
diff --git a/filters/kword/ascii/ImportDialog.cc b/filters/kword/ascii/ImportDialog.cc
index adb345b1..c11753bc 100644
--- a/filters/kword/ascii/ImportDialog.cc
+++ b/filters/kword/ascii/ImportDialog.cc
@@ -18,7 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <tqtextcodec.h>
+#include <textcodec.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 )" ).tqarg( "UTF-8" );
- encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).tqarg( TQTextCodec::codecForLocale()->name() );
+ encodings << i18n( "Descriptive encoding name", "Recommended ( %1 )" ).arg( "UTF-8" );
+ encodings << i18n( "Descriptive encoding name", "Locale ( %1 )" ).arg( 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.tqarg("Apple Roman"); // Apple
- encodings << description.tqarg("IBM 850") << description.tqarg("IBM 866"); // MS DOS
- encodings << description.tqarg("CP 1258"); // Windows
+ encodings << description.arg("Apple Roman"); // Apple
+ encodings << description.arg("IBM 850") << description.arg("IBM 866"); // MS DOS
+ encodings << description.arg("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").tqarg( strCodec ) );
+ KMessageBox::error( 0, i18n("Cannot find encoding: %1").arg( strCodec ) );
return 0;
}
diff --git a/filters/kword/ascii/ImportDialogUI.ui b/filters/kword/ascii/ImportDialogUI.ui
index fd124062..4b32a441 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>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -67,7 +67,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>106</width>
<height>20</height>
@@ -132,7 +132,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
diff --git a/filters/kword/ascii/asciiexport.cc b/filters/kword/ascii/asciiexport.cc
index 4f4fbb06..3748e8e7 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 <tqtextcodec.h>
-#include <tqtextstream.h>
+#include <textcodec.h>
+#include <textstream.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& tqlayout,
+ const LayoutData& layout,
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.tqlayout, para.formattingList);
+ return doFullParagraph(para.text, para.layout, para.formattingList);
}
-bool ASCIIWorker::doFullParagraph(const TQString& paraText, const LayoutData& tqlayout,
+bool ASCIIWorker::doFullParagraph(const TQString& paraText, const LayoutData& layout,
const ValueListFormatData& paraFormatDataList)
{
kdDebug(30502) << "Entering ASCIIWorker::doFullParagraph" << endl;
@@ -216,15 +216,15 @@ bool ASCIIWorker::doFullParagraph(const TQString& paraText, const LayoutData& tq
// As KWord has only one depth of lists, we can process lists very simply.
// --
// Not anymore - Clarence
- if ( tqlayout.counter.numbering == CounterData::NUM_LIST )
+ if ( layout.counter.numbering == CounterData::NUM_LIST )
{
// Are we still in a list of the right type?
- if (!m_inList || (tqlayout.counter.style!=m_typeList))
+ if (!m_inList || (layout.counter.style!=m_typeList))
{
// We are not yet part of a list
m_inList=true;
m_counterList=1; // Start numbering
- m_typeList=tqlayout.counter.style;
+ m_typeList=layout.counter.style;
}
switch (m_typeList)
@@ -307,26 +307,26 @@ bool ASCIIWorker::doFullParagraph(const TQString& paraText, const LayoutData& tq
else
{
m_inList=false; // Close an eventual list
- if ( tqlayout.counter.numbering == CounterData::NUM_CHAPTER )
+ if ( layout.counter.numbering == CounterData::NUM_CHAPTER )
{
- if (!tqlayout.counter.depth)
+ if (!layout.counter.depth)
{ // HEAD 1
*m_streamOut << "###################################" << m_eol;
*m_streamOut << "# ";
ProcessParagraphData ( paraText, paraFormatDataList);
*m_streamOut << "###################################" << m_eol;
}
- else if (tqlayout.counter.depth==1)
+ else if (layout.counter.depth==1)
{ // HEAD 2
*m_streamOut << "#### ";
ProcessParagraphData ( paraText, paraFormatDataList);
}
- else if (tqlayout.counter.depth==2)
+ else if (layout.counter.depth==2)
{ // HEAD 3
*m_streamOut << "## ";
ProcessParagraphData ( paraText, paraFormatDataList);
}
- else if (tqlayout.counter.depth==3)
+ else if (layout.counter.depth==3)
{ // HEAD 4
*m_streamOut << "# ";
ProcessParagraphData ( paraText, paraFormatDataList);
@@ -342,8 +342,8 @@ bool ASCIIWorker::doFullParagraph(const TQString& paraText, const LayoutData& tq
}
}
#else
- if (!tqlayout.counter.text.isEmpty())
- *m_streamOut << tqlayout.counter.text << " ";
+ if (!layout.counter.text.isEmpty())
+ *m_streamOut << layout.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 tqlayout for now)
+ // just dump the table out (no layout 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::ConversiontqStatus ASCIIExport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus ASCIIExport::convert(const TQCString& from, const TQCString& to)
{
if (to != "text/plain" || from != "application/x-kword")
{
@@ -534,7 +534,7 @@ KoFilter::ConversiontqStatus ASCIIExport::convert(const TQCString& from, const T
return KoFilter::StupidError;
}
- KoFilter::ConversiontqStatus result = leader->convert(m_chain,from,to);
+ KoFilter::ConversionStatus 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 af1e2e04..429ad6c8 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ virtual KoFilter::ConversionStatus 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 f2a6e039..52c5c4d9 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 <tqtextcodec.h>
+#include <textcodec.h>
#include <tqfile.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqdom.h>
#include <tqfontinfo.h>
@@ -195,7 +195,7 @@ void ASCIIImport::prepareDocument(TQDomDocument& mainDocument, TQDomElement& mai
}
-KoFilter::ConversiontqStatus ASCIIImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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.tqat(length-1) == '-')
+ if (strLine.at(length-1) == '-')
// replace the hard hyphen - at line end by a soft hyphen
- strLine.tqat(length-1)=TQChar(173);
+ strLine.at(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 4d332776..b2cfcbdd 100644
--- a/filters/kword/ascii/asciiimport.h
+++ b/filters/kword/ascii/asciiimport.h
@@ -65,7 +65,7 @@ public:
ASCIIImport();
virtual ~ASCIIImport() {}
- virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 db9c754a..f54bec6b 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.tqlayout.formatData.text.italic )
+ if ( (*formattingIt).text.italic && !para.layout.formatData.text.italic )
{
outputText += "<EMPHASIS>";
}
- if ( (*formattingIt).text.weight > para.tqlayout.formatData.text.weight )
+ if ( (*formattingIt).text.weight > para.layout.formatData.text.weight )
{
outputText += "<EMPHASIS ROLE=bold>";
}
@@ -318,12 +318,12 @@ void DocBookWorker::ProcessParagraphData ( const ParaData &para,
outputText += "</LITERAL>";
}
- if ( (*formattingIt).text.weight > para.tqlayout.formatData.text.weight )
+ if ( (*formattingIt).text.weight > para.layout.formatData.text.weight )
{
outputText += "</EMPHASIS>";
}
- if ( (*formattingIt).text.italic && !para.tqlayout.formatData.text.italic )
+ if ( (*formattingIt).text.italic && !para.layout.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).tqlayout.counter.numbering )
+ switch ( (*paraIt).layout.counter.numbering )
{
case CounterData::NUM_LIST:
- switch ( (*paraIt).tqlayout.counter.style )
+ switch ( (*paraIt).layout.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).tqlayout.counter.style << "!" << endl;
+ kdError (30507) << "Unknown counter style " << (*paraIt).layout.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).tqlayout.counter.depth )
+ switch ( (*paraIt).layout.counter.depth )
{
case 0:
CloseHead1AndArticle ();
@@ -629,7 +629,7 @@ bool DocBookWorker::doFullDocument ( const TQValueList<ParaData> &paraList )
break;
default:
- kdError (30507) << "Unexpected chapter depth " << (*paraIt).tqlayout.counter.depth << "!" << endl;
+ kdError (30507) << "Unexpected chapter depth " << (*paraIt).layout.counter.depth << "!" << endl;
CloseLists ();
OpenArticleUnlessHead1 ();
ProcessParagraphData (*paraIt, "PARA" );
@@ -782,7 +782,7 @@ bool DocBookWorker::doFullDocumentInfo ( const KWEFDocumentInfo &docInfo )
}
-KoFilter::ConversiontqStatus DocBookExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 cf7ec804..29362aaa 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 6fc353e5..47191bc7 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 <tqtextstream.h>
+#include <textstream.h>
#include <kdebug.h>
#include <KoFilterChain.h>
@@ -82,7 +82,7 @@ static inline unsigned long readU16( const void* p )
}
-KoFilter::ConversiontqStatus HancomWordImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 64d279a8..f78c3a47 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 f712f0e1..cb3771f5 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 tqunicode anymore
+ std::string name; // the name, not in unicode 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> tqchildren( unsigned index );
+ std::vector<unsigned> children( 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 tqchildren
- // and check if one of the tqchildren is 'index'
+ // brute-force, basically we iterate for each entries, find its children
+ // and check if one of the children is 'index'
for( unsigned j=0; j<entryCount(); j++ )
{
- std::vector<unsigned> chi = tqchildren( j );
+ std::vector<unsigned> chi = children( 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 tqchildren of index
- std::vector<unsigned> chi = tqchildren( index );
+ // find among the children of index
+ std::vector<unsigned> chi = children( 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 tqchildren
+ // not found among children
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::tqchildren( unsigned index )
+std::vector<unsigned> DirTree::children( 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> tqchildren = dt->tqchildren( parent );
- for( unsigned i = 0; i < tqchildren.size(); i++ )
- result.push_back( dt->entry( tqchildren[i] )->name );
+ std::vector<unsigned> children = dt->children( parent );
+ for( unsigned i = 0; i < children.size(); i++ )
+ result.push_back( dt->entry( children[i] )->name );
}
return result;
diff --git a/filters/kword/html/export/ExportBasic.cc b/filters/kword/html/export/ExportBasic.cc
index 13864d7a..673b035a 100644
--- a/filters/kword/html/export/ExportBasic.cc
+++ b/filters/kword/html/export/ExportBasic.cc
@@ -19,7 +19,7 @@
*/
#include <tqstring.h>
-#include <tqtextcodec.h>
+#include <textcodec.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& tqlayout, TQChar::Direction direction)
+ const LayoutData& layout, TQChar::Direction direction)
{
*m_streamOut << '<' << strTag;
- if ( (tqlayout.tqalignment=="left") || (tqlayout.tqalignment== "right")
- || (tqlayout.tqalignment=="center") || (tqlayout.tqalignment=="justify"))
+ if ( (layout.alignment=="left") || (layout.alignment== "right")
+ || (layout.alignment=="center") || (layout.alignment=="justify"))
{
- *m_streamOut << " align=\"" << tqlayout.tqalignment << "\"";
+ *m_streamOut << " align=\"" << layout.alignment << "\"";
if ( (direction == TQChar::DirRLE) || (direction == TQChar::DirRLO) )
*m_streamOut << " dir=\"rtl\"";
}
- else if ( tqlayout.tqalignment=="auto")
+ else if ( layout.alignment=="auto")
{
// Do nothing, the user-agent should be more intelligent than us.
}
else
{
- kdWarning(30503) << "Unknown tqalignment: " << tqlayout.tqalignment << endl;
+ kdWarning(30503) << "Unknown alignment: " << layout.alignment << endl;
}
*m_streamOut << ">";
// Allow bold only if tag is not a heading!
- openFormatData(tqlayout.formatData,tqlayout.formatData,true,(strTag[0]!='h'));
+ openFormatData(layout.formatData,layout.formatData,true,(strTag[0]!='h'));
}
void HtmlBasicWorker::closeParagraph(const TQString& strTag,
- const LayoutData& tqlayout)
+ const LayoutData& layout)
{
// Allow bold only if tag is not a heading!
- closeFormatData(tqlayout.formatData,tqlayout.formatData,true,(strTag[0]!='h'));
+ closeFormatData(layout.formatData,layout.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 a6de0082..c8f2864c 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& tqlayout,TQChar::Direction direction=TQChar::DirL);
+ const LayoutData& layout,TQChar::Direction direction=TQChar::DirL);
virtual void closeParagraph(const TQString& strTag,
- const LayoutData& tqlayout);
+ const LayoutData& layout);
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 49abcf79..58f2860e 100644
--- a/filters/kword/html/export/ExportCss.cc
+++ b/filters/kword/html/export/ExportCss.cc
@@ -19,7 +19,7 @@
*/
#include <tqstring.h>
-#include <tqtextcodec.h>
+#include <textcodec.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.tqunicode();
+ const ushort ch=qch.unicode();
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& tqlayout, const bool force) const
+ const LayoutData& layout, const bool force) const
{
TQString strLayout;
- if (force || (layoutOrigin.tqalignment!=tqlayout.tqalignment))
+ if (force || (layoutOrigin.alignment!=layout.alignment))
{
- if ( (tqlayout.tqalignment=="left") || (tqlayout.tqalignment== "right")
- || (tqlayout.tqalignment=="center") || (tqlayout.tqalignment=="justify"))
+ if ( (layout.alignment=="left") || (layout.alignment== "right")
+ || (layout.alignment=="center") || (layout.alignment=="justify"))
{
- strLayout += TQString("text-align:%1; ").tqarg(tqlayout.tqalignment);
+ strLayout += TQString("text-align:%1; ").arg(layout.alignment);
}
- else if ( tqlayout.tqalignment=="auto")
+ else if ( layout.alignment=="auto")
{
// Do nothing, the user-agent should be more intelligent than us.
}
else
{
- kdWarning(30503) << "Unknown tqalignment: " << tqlayout.tqalignment << endl;
+ kdWarning(30503) << "Unknown alignment: " << layout.alignment << endl;
}
}
- if ((tqlayout.indentLeft>=0.0)
- && (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft)))
+ if ((layout.indentLeft>=0.0)
+ && (force || (layoutOrigin.indentLeft!=layout.indentLeft)))
{
- strLayout += TQString("margin-left:%1pt; ").tqarg(tqlayout.indentLeft);
+ strLayout += TQString("margin-left:%1pt; ").arg(layout.indentLeft);
}
- if ((tqlayout.indentRight>=0.0)
- && (force || (layoutOrigin.indentRight!=tqlayout.indentRight)))
+ if ((layout.indentRight>=0.0)
+ && (force || (layoutOrigin.indentRight!=layout.indentRight)))
{
- strLayout += TQString("margin-right:%1pt; ").tqarg(tqlayout.indentRight);
+ strLayout += TQString("margin-right:%1pt; ").arg(layout.indentRight);
}
- if (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft))
+ if (force || (layoutOrigin.indentLeft!=layout.indentLeft))
{
- strLayout += TQString("text-indent:%1pt; ").tqarg(tqlayout.indentFirst);
+ strLayout += TQString("text-indent:%1pt; ").arg(layout.indentFirst);
}
- if ((tqlayout.marginBottom>=0.0)
- && ( force || ( layoutOrigin.marginBottom != tqlayout.marginBottom ) ) )
+ if ((layout.marginBottom>=0.0)
+ && ( force || ( layoutOrigin.marginBottom != layout.marginBottom ) ) )
{
- strLayout += TQString("margin-bottom:%1pt; ").tqarg(tqlayout.marginBottom);
+ strLayout += TQString("margin-bottom:%1pt; ").arg(layout.marginBottom);
}
- if ((tqlayout.marginTop>=0.0)
- && ( force || ( layoutOrigin.marginTop != tqlayout.marginTop ) ) )
+ if ((layout.marginTop>=0.0)
+ && ( force || ( layoutOrigin.marginTop != layout.marginTop ) ) )
{
- strLayout += TQString("margin-top:%1pt; ").tqarg(tqlayout.marginTop);
+ strLayout += TQString("margin-top:%1pt; ").arg(layout.marginTop);
}
if (force
- || ( layoutOrigin.lineSpacingType != tqlayout.lineSpacingType )
- || ( layoutOrigin.lineSpacing != tqlayout.lineSpacing ) )
+ || ( layoutOrigin.lineSpacingType != layout.lineSpacingType )
+ || ( layoutOrigin.lineSpacing != layout.lineSpacing ) )
{
- switch ( tqlayout.lineSpacingType )
+ switch ( layout.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(tqlayout.lineSpacing) ); // ### TODO: rounding?
+ const TQString height ( TQString::number(layout.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( tqlayout.lineSpacing * 100 ) ) );
+ const TQString mult ( TQString::number( tqRound( layout.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(tqlayout.lineSpacing) ); // ### TODO: rounding?
+ const TQString height ( TQString::number(layout.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(tqlayout.lineSpacing) ); // ### TODO: rounding?
+ const TQString height ( TQString::number(layout.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: " << tqlayout.lineSpacingType << " (Ignoring!)" << endl;
+ kdWarning(30503) << "Unsupported lineSpacingType: " << layout.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 == tqlayout.shadowDirection )
- && ( layoutOrigin.shadowDistance == tqlayout.shadowDistance ) )
+ && ( layoutOrigin.shadowDirection == layout.shadowDirection )
+ && ( layoutOrigin.shadowDistance == layout.shadowDistance ) )
{
// Do nothing!
}
- else if ((!tqlayout.shadowDirection) || (!tqlayout.shadowDistance))
+ else if ((!layout.shadowDirection) || (!layout.shadowDistance))
{
strLayout += "text-shadow:";
strLayout+="none; ";
@@ -443,8 +443,8 @@ TQString HtmlCssWorker::layoutToCss(const LayoutData& layoutOrigin,
else
{
double xDistance,yDistance;
- const double distance=tqlayout.shadowDistance;
- switch (tqlayout.shadowDirection)
+ const double distance=layout.shadowDistance;
+ switch (layout.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; ").tqarg(tqlayout.shadowColor.name())
- .tqarg(xDistance,0,'f',0).tqarg(yDistance,0,'f',0);
+ strLayout+=TQString("%1 %2pt %3pt; ").arg(layout.shadowColor.name())
+ .arg(xDistance,0,'f',0).arg(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,
- tqlayout.formatData.text,force);
+ layout.formatData.text,force);
return strLayout;
}
void HtmlCssWorker::openParagraph(const TQString& strTag,
- const LayoutData& tqlayout, TQChar::Direction direction)
+ const LayoutData& layout, TQChar::Direction direction)
{
- const LayoutData& styleLayout=m_styleMap[tqlayout.styleName];
+ const LayoutData& styleLayout=m_styleMap[layout.styleName];
*m_streamOut << '<' << strTag;
// Opening elements
- *m_streamOut << " class=\"" << escapeCssIdentifier(tqlayout.styleName);
+ *m_streamOut << " class=\"" << escapeCssIdentifier(layout.styleName);
*m_streamOut << "\"";
- TQString strStyle=layoutToCss(styleLayout,tqlayout,false);
+ TQString strStyle=layoutToCss(styleLayout,layout,false);
if (!strStyle.isEmpty())
{
*m_streamOut << " style=\"" << strStyle;
if (direction == TQChar::DirRLE) {
- *m_streamOut << "direction: rtl; tqunicode-bidi: embed; ";
+ *m_streamOut << "direction: rtl; unicode-bidi: embed; ";
} else if (direction == TQChar::DirRLO) {
- *m_streamOut << "direction: rtl; tqunicode-bidi: override; ";
+ *m_streamOut << "direction: rtl; unicode-bidi: override; ";
}
*m_streamOut<< "\"";
}
*m_streamOut << ">";
- if ( 1==tqlayout.formatData.text.verticalAlignment )
+ if ( 1==layout.formatData.text.verticalAlignment )
{
*m_streamOut << "<sub>"; //Subscript
}
- else if ( 2==tqlayout.formatData.text.verticalAlignment )
+ else if ( 2==layout.formatData.text.verticalAlignment )
{
*m_streamOut << "<sup>"; //Superscript
}
- if ( tqlayout.tqalignment == "center" ) *m_streamOut << "<center>";
+ if ( layout.alignment == "center" ) *m_streamOut << "<center>";
}
void HtmlCssWorker::closeParagraph(const TQString& strTag,
- const LayoutData& tqlayout)
+ const LayoutData& layout)
{
- if ( 2==tqlayout.formatData.text.verticalAlignment )
+ if ( 2==layout.formatData.text.verticalAlignment )
{
*m_streamOut << "</sup>"; //Superscript
}
- else if ( 1==tqlayout.formatData.text.verticalAlignment )
+ else if ( 1==layout.formatData.text.verticalAlignment )
{
*m_streamOut << "</sub>"; //Subscript
}
- if ( tqlayout.tqalignment == "center" ) *m_streamOut << "</center>";
+ if ( layout.alignment == "center" ) *m_streamOut << "</center>";
*m_streamOut << "</" << strTag << ">\n";
}
@@ -680,16 +680,16 @@ bool HtmlCssWorker::doOpenStyles(void)
return true;
}
-bool HtmlCssWorker::doFullDefineStyle(LayoutData& tqlayout)
+bool HtmlCssWorker::doFullDefineStyle(LayoutData& layout)
{
//Register style in the style map
- m_styleMap[tqlayout.styleName]=tqlayout;
+ m_styleMap[layout.styleName]=layout;
// We do not limit (anymore) any style to <h1> ... <h6>, because
- // the style could be forced on <p> by the tqlayout.
+ // the style could be forced on <p> by the layout.
- *m_streamOut << "." << escapeCssIdentifier(tqlayout.styleName);
- *m_streamOut << "\n{\n " << layoutToCss(tqlayout,tqlayout,true) << "\n}\n";
+ *m_streamOut << "." << escapeCssIdentifier(layout.styleName);
+ *m_streamOut << "\n{\n " << layoutToCss(layout,layout,true) << "\n}\n";
return true;
}
diff --git a/filters/kword/html/export/ExportCss.h b/filters/kword/html/export/ExportCss.h
index 358ea688..a33a0049 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& tqlayout);
+ virtual bool doFullDefineStyle(LayoutData& layout);
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& tqlayout,
+ virtual void openParagraph(const TQString& strTag, const LayoutData& layout,
TQChar::Direction direction=TQChar::DirL);
- virtual void closeParagraph(const TQString& strTag, const LayoutData& tqlayout);
+ virtual void closeParagraph(const TQString& strTag, const LayoutData& layout);
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& tqlayout,
+ TQString layoutToCss(const LayoutData& layoutOrigin,const LayoutData& layout,
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 20c7069b..7e005538 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 <tqtextcodec.h>
+#include <textcodec.h>
#include <klocale.h>
#include <kcharsets.h>
@@ -28,7 +28,7 @@
#include <kcombobox.h>
#include <kmessagebox.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.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 )" ).tqarg( "UTF-8" );
- encodingList += i18n( "Descriptive encoding name", "Locale ( %1 )" ).tqarg( TQTextCodec::codecForLocale()->name() );
+ encodingList += i18n( "Descriptive encoding name", "Recommended ( %1 )" ).arg( "UTF-8" );
+ encodingList += i18n( "Descriptive encoding name", "Locale ( %1 )" ).arg( 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").tqarg( strCodec ) );
+ KMessageBox::error( 0, i18n("Cannot find encoding: %1").arg( strCodec ) );
return 0;
}
diff --git a/filters/kword/html/export/ExportDialogUI.ui b/filters/kword/html/export/ExportDialogUI.ui
index cbdc4fc2..a6683c04 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>tqlayout3</cstring>
+ <cstring>layout3</cstring>
</property>
<hbox>
<property name="name">
@@ -67,7 +67,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>106</width>
<height>20</height>
@@ -196,7 +196,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout6</cstring>
+ <cstring>layout6</cstring>
</property>
<hbox>
<property name="name">
@@ -212,7 +212,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -221,7 +221,7 @@
</spacer>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout5</cstring>
+ <cstring>layout5</cstring>
</property>
<vbox>
<property name="name">
@@ -262,7 +262,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>90</height>
diff --git a/filters/kword/html/export/ExportDocStruct.cc b/filters/kword/html/export/ExportDocStruct.cc
index f0e4b3aa..0cb6339e 100644
--- a/filters/kword/html/export/ExportDocStruct.cc
+++ b/filters/kword/html/export/ExportDocStruct.cc
@@ -19,7 +19,7 @@
*/
#include <tqstring.h>
-#include <tqtextcodec.h>
+#include <textcodec.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& tqlayout,TQChar::Direction /*direction*/)
+ const LayoutData& layout,TQChar::Direction /*direction*/)
{
*m_streamOut << '<' << strTag << ">";
- openFormatData(tqlayout.formatData,tqlayout.formatData,true,(strTag[0]!='h'));
+ openFormatData(layout.formatData,layout.formatData,true,(strTag[0]!='h'));
}
void HtmlDocStructWorker::closeParagraph(const TQString& strTag,
- const LayoutData& tqlayout)
+ const LayoutData& layout)
{
- closeFormatData(tqlayout.formatData,tqlayout.formatData,true,(strTag[0]!='h'));
+ closeFormatData(layout.formatData,layout.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 43b1e76a..6e963183 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& tqlayout,TQChar::Direction direction=TQChar::DirL);
+ const LayoutData& layout,TQChar::Direction direction=TQChar::DirL);
virtual void closeParagraph(const TQString& strTag,
- const LayoutData& tqlayout);
+ const LayoutData& layout);
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 aa1b1817..ecaba65c 100644
--- a/filters/kword/html/export/ExportFilter.cc
+++ b/filters/kword/html/export/ExportFilter.cc
@@ -19,7 +19,7 @@
*/
#include <tqstring.h>
-#include <tqtextcodec.h>
+#include <textcodec.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& tqlayout, const ValueListFormatData &paraFormatDataList)
+ const LayoutData& layout, const ValueListFormatData &paraFormatDataList)
{
if (paraText.isEmpty() && paraFormatDataList.first().id != 6)
{
- openParagraph(strTag,tqlayout);
+ openParagraph(strTag,layout);
*m_streamOut << "&nbsp;" ; // A paragraph can never be empty in HTML
- closeParagraph(strTag,tqlayout);
+ closeParagraph(strTag,layout);
}
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,tqlayout,partialText.ref(0).direction());
+ openParagraph(strTag,layout,partialText.ref(0).direction());
paragraphNotOpened=false;
}
- formatTextParagraph(partialText,tqlayout.formatData,*paraFormatDataIt);
+ formatTextParagraph(partialText,layout.formatData,*paraFormatDataIt);
}
else if (4==(*paraFormatDataIt).id)
{
// For variables, we need an opened paragraph
if (paragraphNotOpened)
{
- openParagraph(strTag,tqlayout);
+ openParagraph(strTag,layout);
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,tqlayout);
+ closeParagraph(strTag,layout);
}
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, tqlayout,partialText.ref(0). direction() );
+ openParagraph( strTag, layout,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,tqlayout);
+ closeParagraph(strTag,layout);
}
}
}
bool HtmlWorker::doFullParagraph(const TQString& paraText,
- const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList)
+ const LayoutData& layout, const ValueListFormatData& paraFormatDataList)
{
kdDebug(30503) << "Entering HtmlWorker::doFullParagraph" << endl << paraText << endl;
TQString strParaText=paraText;
TQString strTag; // Tag that will be written.
- if ( tqlayout.counter.numbering == CounterData::NUM_LIST )
+ if ( layout.counter.numbering == CounterData::NUM_LIST )
{
- const uint layoutDepth=tqlayout.counter.depth+1; // Word's depth starts at 0!
+ const uint layoutDepth=layout.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=tqlayout.counter.style;
+ newList.m_typeList=layout.counter.style;
for (uint i=listDepth; i<layoutDepth; i++)
{
- *m_streamOut << getStartOfListOpeningTag(tqlayout.counter.style,newList.m_orderedList);
+ *m_streamOut << getStartOfListOpeningTag(layout.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 ( tqlayout.counter.style!=m_listStack.top().m_typeList)
+ if ( layout.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(tqlayout.counter.style,newList.m_orderedList);
- newList.m_typeList=tqlayout.counter.style;
+ *m_streamOut << getStartOfListOpeningTag(layout.counter.style,newList.m_orderedList);
+ newList.m_typeList=layout.counter.style;
m_listStack.push(newList);
}
@@ -453,10 +453,10 @@ bool HtmlWorker::doFullParagraph(const TQString& paraText,
}
}
}
- if ( (tqlayout.counter.numbering == CounterData::NUM_CHAPTER)
- && (tqlayout.counter.depth<6) )
+ if ( (layout.counter.numbering == CounterData::NUM_CHAPTER)
+ && (layout.counter.depth<6) )
{
- strTag=TQString("h%1").tqarg(tqlayout.counter.depth + 1); // H1 ... H6
+ strTag=TQString("h%1").arg(layout.counter.depth + 1); // H1 ... H6
}
else
{
@@ -464,7 +464,7 @@ bool HtmlWorker::doFullParagraph(const TQString& paraText,
}
}
- ProcessParagraphData(strTag, strParaText, tqlayout, paraFormatDataList);
+ ProcessParagraphData(strTag, strParaText, layout, 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 f8446c1b..04d3129f 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& tqlayout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
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& tqlayout, TQChar::Direction direction=TQChar::DirL)=0;
+ const LayoutData& layout, TQChar::Direction direction=TQChar::DirL)=0;
virtual void closeParagraph(const TQString& strTag,
- const LayoutData& tqlayout)=0;
+ const LayoutData& layout)=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& tqlayout, const ValueListFormatData &paraFormatDataList);
+ const LayoutData& layout, 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 f8af8e3e..013fb7ff 100644
--- a/filters/kword/html/export/htmlexport.cc
+++ b/filters/kword/html/export/htmlexport.cc
@@ -31,7 +31,7 @@
License version 2.
*/
-#include <tqtextcodec.h>
+#include <textcodec.h>
#include <kdebug.h>
#include <kgenericfactory.h>
@@ -61,7 +61,7 @@ HTMLExport::HTMLExport(KoFilter *, const char *, const TQStringList &) :
KoFilter() {
}
-KoFilter::ConversiontqStatus HTMLExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus HTMLExport::convert( const TQCString& from, const TQCString& to )
{
if ((from != "application/x-kword") || (to != "text/html"))
{
@@ -118,7 +118,7 @@ KoFilter::ConversiontqStatus HTMLExport::convert( const TQCString& from, const T
delete worker;
return KoFilter::StupidError;
}
- KoFilter::ConversiontqStatus result=leader->convert(m_chain,from,to);
+ KoFilter::ConversionStatus 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 5de5ef6a..5b62781a 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 <tqtextstream.h>
+#include <textstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -39,7 +39,7 @@ public:
HTMLExport(KoFilter *parent, const char *name, const TQStringList &);
virtual ~HTMLExport() {}
- virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 2c403b2f..9b29320d 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::ConversiontqStatus HTMLImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 f7c61a41..ab2a293c 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 6e134e38..8545fb0d 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->tqlayout=_writer->currentLayout(s->paragraph);
+ s->layout=_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->tqlayout=state()->tqlayout;
+ s->layout=state()->layout;
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()->tqlayout != s->tqlayout))
+ if ((state()->layout != s->layout))
{
- if (_writer->getText(state()->paragraph).length()!=0) startNewLayout(false,state()->tqlayout);
+ if (_writer->getText(state()->paragraph).length()!=0) startNewLayout(false,state()->layout);
}
state()->format=_writer->startFormat(state()->paragraph, state()->format);
}
@@ -129,15 +129,15 @@ void KHTMLReader::popState()
void KHTMLReader::startNewLayout(bool startNewFormat)
{
- TQDomElement tqlayout;
- startNewLayout(startNewFormat,tqlayout);
+ TQDomElement layout;
+ startNewLayout(startNewFormat,layout);
}
-void KHTMLReader::startNewLayout(bool startNewFormat, TQDomElement tqlayout)
+void KHTMLReader::startNewLayout(bool startNewFormat, TQDomElement layout)
{
kdDebug() << "entering startNewLayout" << endl;
startNewParagraph(startNewFormat,true);
- state()->tqlayout=_writer->setLayout(state()->paragraph,tqlayout);
+ state()->layout=_writer->setLayout(state()->paragraph,layout);
}
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 tqchildren anymore...
+ return; // no children anymore...
}
// is this really needed ? it can't do harm anyway.
state()->format=_writer->currentFormat(state()->paragraph,true);
- state()->tqlayout=_writer->currentLayout(state()->paragraph);
+ state()->layout=_writer->currentLayout(state()->paragraph);
pushNewState();
DOM::Element e=node;
@@ -227,13 +227,13 @@ void KHTMLReader::parse_head(DOM::Element e)
} \
}
-// 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.
+// 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.
#define _PL(x,a,b,c) { \
if (e.tagName().lower() == #x) \
{ \
- state()->tqlayout=_writer->setLayout(state()->paragraph,state()->tqlayout);\
+ state()->layout=_writer->setLayout(state()->paragraph,state()->layout);\
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 startnewtqlayout)
+void KHTMLReader::startNewParagraph(bool startnewformat, bool startnewlayout)
{
kdDebug() << "Entering startNewParagraph" << endl;
TQDomElement qf=state()->format;
- TQDomElement ql=state()->tqlayout;
+ TQDomElement ql=state()->layout;
_writer->cleanUpParagraph(state()->paragraph);
- if ((startnewtqlayout==true) || ql.isNull())
+ if ((startnewlayout==true) || ql.isNull())
{state()->paragraph=_writer->addParagraph(state()->frameset);}
else
{state()->paragraph=
- _writer->addParagraph(state()->frameset,state()->tqlayout);}
+ _writer->addParagraph(state()->frameset,state()->layout);}
@@ -321,7 +321,7 @@ void KHTMLReader::startNewParagraph(bool startnewformat, bool startnewtqlayout)
_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").tqarg(currdepth+1));
+ _writer->layoutAttribute(state()->paragraph,"COUNTER","depth",TQString("%1").arg(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 tqlayout
+ startNewParagraph(false,false); //keep the current format and layout
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()->tqlayout=_writer->setLayout(state()->paragraph,state()->tqlayout);
+ state()->layout=_writer->setLayout(state()->paragraph,state()->layout);
_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").tqarg(s1.item(i).string()).tqarg(s1.getPropertyValue(s1.item(i)).string()) << endl;
+ kdDebug(30503) << TQString("%1: %2").arg(s1.item(i).string()).arg(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").tqarg(s2.item(i).string()).tqarg(s2.getPropertyValue(s2.item(i)).string()) << endl;
+ kdDebug(30503) << TQString("%1: %2").arg(s2.item(i).string()).arg(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; // tqchildren are already handled.
+ return false; // children 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; // tqchildren are already handled.
+ return false; // children 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").tqarg(isize));
+ _writer->formatAttribute(state()->paragraph,"SIZE","value",TQString("%1").arg(isize));
- _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()));
+ _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()));
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").tqarg(_list_depth-1)); // indent
+ _writer->layoutAttribute(state()->paragraph,"COUNTER","depth",TQString("%1").arg(_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").tqarg(_list_depth-1)); // indent
+ _writer->layoutAttribute(state()->paragraph,"COUNTER","depth",TQString("%1").arg(_list_depth-1)); // indent
}
parseNode(items);
}
diff --git a/filters/kword/html/import/khtmlreader.h b/filters/kword/html/import/khtmlreader.h
index 9987a589..db93531a 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 tqlayout;
+ TQDomElement layout;
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 tqlayout);
- void startNewParagraph(bool startnewformat=true, bool startnewtqlayout=true);
+ void startNewLayout(bool startNewFormat, TQDomElement layout);
+ void startNewParagraph(bool startnewformat=true, bool startnewlayout=true);
bool _it_worked;
// -----------------------------------------------------
int _list_depth;
diff --git a/filters/kword/html/import/kwdwriter.cpp b/filters/kword/html/import/kwdwriter.cpp
index 56568be9..a194b219 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").tqarg(tableno).tqarg(nrow).tqarg(ncol),
+ TQString("Table %1 - %2,%3").arg(tableno).arg(nrow).arg(ncol),
1);
- fs.setAttribute("grpMgr",TQString("Table %1").tqarg(tableno));
+ fs.setAttribute("grpMgr",TQString("Table %1").arg(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").tqarg(tableno))
- if (k.attribute("row") == TQString("%1").tqarg(rowno))
- if (k.attribute("col") == TQString("%1").tqarg(colno))
+ 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))
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").tqarg(width));
+ layoutAttribute(paragraph,"BOTTOMBORDER","width",TQString("%1").arg(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").tqarg(tableno)) {
+ if (k.attribute("grpMgr") == TQString("Table %1").arg(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").tqarg(currow).tqarg(curcol).latin1() << endl;
+ kdDebug(30503) << TQString("creating %1 %2").arg(currow).arg(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 tqlayout) {
+TQDomElement KWDWriter::setLayout(TQDomElement paragraph, TQDomElement layout) {
TQDomElement theLayout;
- if (tqlayout.isNull())
+ if (layout.isNull())
theLayout=_doc->createElement("LAYOUT");
else
- theLayout=tqlayout.cloneNode().toElement();
+ theLayout=layout.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 tqlayout;
+ TQDomElement layout;
if (layoutToClone.isNull()) {
- tqlayout=_doc->createElement("LAYOUT");
+ layout=_doc->createElement("LAYOUT");
}
else {
- tqlayout=layoutToClone.cloneNode().toElement();
+ layout=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(tqlayout);
+ paragraph.appendChild(layout);
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").tqarg(oldLength));
- lastformat.setAttribute("len",TQString("%1").tqarg(newLength));
+ lastformat.setAttribute("pos",TQString("%1").arg(oldLength));
+ lastformat.setAttribute("len",TQString("%1").arg(newLength));
}
TQString KWDWriter::getText(TQDomElement paragraph) {
diff --git a/filters/kword/html/import/kwdwriter.h b/filters/kword/html/import/kwdwriter.h
index 542a1748..2942f22a 100644
--- a/filters/kword/html/import/kwdwriter.h
+++ b/filters/kword/html/import/kwdwriter.h
@@ -93,7 +93,7 @@ public:
/**
- * create a horizontal ruler tqlayout
+ * create a horizontal ruler layout
**/
void createHR(TQDomElement paragraph, int width=1);
@@ -115,7 +115,7 @@ public:
* adds a paragraph
**/
TQDomElement addParagraph(TQDomElement parent);
- TQDomElement addParagraph(TQDomElement parent, TQDomElement tqlayout);
+ TQDomElement addParagraph(TQDomElement parent, TQDomElement layout);
/**
* 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 tqlayout attribute
+ * get a layout attribute
**/
TQString getLayoutAttribute(TQDomElement paragraph, TQString name, TQString attrName);
/**
- * adds/changes an attribute to/of the current tqlayout
+ * adds/changes an attribute to/of the current layout
**/
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 tqlayout, and set it as tqlayout of the given paragraph
+ * copy the given layout, and set it as layout of the given paragraph
**/
- TQDomElement setLayout(TQDomElement paragraph, TQDomElement tqlayout);
+ TQDomElement setLayout(TQDomElement paragraph, TQDomElement layout);
/**
* 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 9a658e41..5d1d2fe3 100644
--- a/filters/kword/kword1.3/import/kword13formatone.cpp
+++ b/filters/kword/kword1.3/import/kword13formatone.cpp
@@ -1,4 +1,4 @@
-#include <tqtextstream.h>
+#include <textstream.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 e4cc7f38..682ef887 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"\> tqchildren
- * also the grand-tqchildren of \<STYLE\> and \<LAYOUT\>
+ * Contains the data of the \<FORMAT id="1"\> children
+ * also the grand-children 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 tqchildren of \<FORMAT id="1"\>
+ KWord13FormatOneData m_formatOne; ///< Data of children 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 ebcf3f6a..47eed1e7 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-tqchildren of the document element
+ // In documentinfo.xml, the text data is in the grand-children 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::ConversiontqStatus KWord13Import::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 7d60dd89..77c05c23 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 cc8a7046..f72dd5f8 100644
--- a/filters/kword/kword1.3/import/kword13layout.cpp
+++ b/filters/kword/kword1.3/import/kword13layout.cpp
@@ -1,4 +1,4 @@
-#include <tqtextstream.h>
+#include <textstream.h>
#include "kword13utils.h"
#include "kword13layout.h"
@@ -13,7 +13,7 @@ KWord13Layout::~KWord13Layout( void )
void KWord13Layout::xmldump( TQTextStream& iostream )
{
- iostream << " <tqlayout name=\"" << EscapeXmlDump( m_name )
+ iostream << " <layout 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 << " </tqlayout>\n";
+ iostream << " </layout>\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 00b899f9..7f246cad 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& tqlayout )
+void KWord13OasisGenerator::declareLayout( KWord13Layout& layout )
{
- KoGenStyle gs( KoGenStyle::STYLE_AUTO, "paragraph", tqlayout.m_name );
+ KoGenStyle gs( KoGenStyle::STYLE_AUTO, "paragraph", layout.m_name );
- // ### TODO: any display name? gs.addAttribute( "style:display-name", tqlayout.m_name );
+ // ### TODO: any display name? gs.addAttribute( "style:display-name", layout.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& tqlayout )
gs.addAttribute( "style:default-level", (int)m_paragLayout.counter->depth() + 1 );
}
#endif
- fillGenStyleWithLayout( tqlayout, gs, false );
- fillGenStyleWithFormatOne( tqlayout.m_format , gs, false );
+ fillGenStyleWithLayout( layout, gs, false );
+ fillGenStyleWithFormatOne( layout.m_format , gs, false );
- tqlayout.m_autoStyleName = m_oasisGenStyles.lookup( gs, "P", true );
+ layout.m_autoStyleName = m_oasisGenStyles.lookup( gs, "P", true );
- kdDebug(30520) << "Layout: Parent " << tqlayout.m_name << " => " << tqlayout.m_autoStyleName << endl;
+ kdDebug(30520) << "Layout: Parent " << layout.m_name << " => " << layout.m_autoStyleName << endl;
}
// Inspired by KoParagStyle::saveStyle
-void KWord13OasisGenerator::declareStyle( KWord13Layout& tqlayout )
+void KWord13OasisGenerator::declareStyle( KWord13Layout& layout )
{
KoGenStyle gs( KoGenStyle::STYLE_USER, "paragraph", TQString() );
- gs.addAttribute( "style:display-name", tqlayout.m_name );
+ gs.addAttribute( "style:display-name", layout.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& tqlayout )
gs.addAttribute( "style:default-level", (int)m_paragLayout.counter->depth() + 1 );
}
#endif
- fillGenStyleWithLayout( tqlayout, gs, true );
- fillGenStyleWithFormatOne( tqlayout.m_format , gs, true );
+ fillGenStyleWithLayout( layout, gs, true );
+ fillGenStyleWithFormatOne( layout.m_format , gs, true );
- tqlayout.m_autoStyleName = m_oasisGenStyles.lookup( gs, tqlayout.m_name, false );
+ layout.m_autoStyleName = m_oasisGenStyles.lookup( gs, layout.m_name, false );
- kdDebug(30520) << "Style: " << tqlayout.m_name << " => " << tqlayout.m_autoStyleName << endl;
+ kdDebug(30520) << "Style: " << layout.m_name << " => " << layout.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& tqlayout, KoGenStyle& gs, const bool style ) const
+void KWord13OasisGenerator::fillGenStyleWithLayout( const KWord13Layout& layout, KoGenStyle& gs, const bool style ) const
{
// ### TODO syntaxVersion < 3
- TQString str; // Help string to store each KWord 1.3 tqlayout property
+ TQString str; // Help string to store each KWord 1.3 layout property
- str = tqlayout.getProperty( "FLOW:align" );
+ str = layout.getProperty( "FLOW:align" );
if ( str.isEmpty() && ! style)
{
// Nothing to do!
@@ -361,7 +361,7 @@ void KWord13OasisGenerator::fillGenStyleWithLayout( const KWord13Layout& tqlayou
gs.addProperty( "fo:text-align", "start" ); // i.e. direction-dependent
}
- str = tqlayout.getProperty( "FLOW:dir" );
+ str = layout.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& tqlayou
}
// ### TODO: do not define if it does not exist and ! style
- 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" ) ) );
+ 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" ) ) );
#if 0
switch ( lineSpacingType ) {
@@ -425,7 +425,7 @@ void KWord13OasisGenerator::fillGenStyleWithLayout( const KWord13Layout& tqlayou
case T_RIGHT:
tabsWriter.addAttribute( "style:type", "right" );
break;
- case T_DEC_PNT: // "tqalignment on decimal point"
+ case T_DEC_PNT: // "alignment 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-tqlayout", (*it).name, "style:page-tqlayout-properties", false /*don't close*/ );
+ (*it).style->writeStyle( stylesWriter, m_oasisGenStyles, "style:page-layout", (*it).name, "style:page-layout-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-tqlayout-name", pageLayoutName );
+ stylesWriter->addAttribute( "style:page-layout-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 39bc232a..3db989f2 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 tqlayout
+ /// Preparing page layout
void preparePageLayout( void );
void prepareTextFrameset( KWordTextFrameset* frameset );
/// Also sets the name of the automatical style
- void declareLayout( KWord13Layout& tqlayout );
+ void declareLayout( KWord13Layout& layout );
/// Also sets the name of the automatical style
- void declareStyle( KWord13Layout& tqlayout );
+ void declareStyle( KWord13Layout& layout );
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& tqlayout, KoGenStyle& gs, const bool style ) const;
+ void fillGenStyleWithLayout( const KWord13Layout& layout, 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 e3958b45..a3e22290 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 tqlayout for storing property: " << name << endl;
+ kdError(30520) << "No current layout 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 tqlayout
+ return true; // Everything is done directly on the layout
}
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 tqlayout already defined!" << endl;
+ kdWarning(30520) << "Current layout 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> tqchildren are also tqchildren of <FRAMESTYLE>, so we have to set it to "ignore"
+ // ### TODO, but some of the <STYLE> children are also children 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> tqchildren
+ // We just need a separate "type" for the <KEY> children
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.tqat(i).tqunicode();
+ const ushort uni = ch.at(i).unicode();
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 7dc81d42..754a618e 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 tqchildren of \<FORMAT id="1"\>
+ /// Process children of \<FORMAT id="1"\>
bool startElementFormatOneProperty( const TQString& name, const TQXmlAttributes& attributes, KWord13StackItem *stackItem);
- /// Process tqchildren of \<LAYOUT\> (with exceptions)
+ /// Process children 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 tqchildren of \<DOC\> and which only define document properties
+ /// Process opening tag of some elements that are children 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 tqlayout (or style)
+ KWord13Layout* m_currentLayout; ///< Current layout (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 d870f484..0caf48a7 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.tqunicode())
+ switch (ch.unicode())
{
case 38: // &
{
diff --git a/filters/kword/latex/export/config.h b/filters/kword/latex/export/config.h
index 7a81b168..26d954ea 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 <tqtextstream.h>
+#include <textstream.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 == "tqunicode"); }
- bool mustUseLatin1() const { return (_encoding != "tqunicode"); }
+ bool mustUseUnicode() const { return (_encoding == "unicode"); }
+ bool mustUseLatin1() const { return (_encoding != "unicode"); }
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 b2844127..d6a96459 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 <tqtextstream.h>
+#include <textstream.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 9374620d..0db14ace 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 <tqtextstream.h>
+#include <textstream.h>
#include "xmlparser.h"
#include "border.h"
diff --git a/filters/kword/latex/export/fileheader.cc b/filters/kword/latex/export/fileheader.cc
index 96b4be4e..8da25a16 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 tqchildren markups --> PAPERBORDERS
+ // Analyse children 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]{tqgeometry}" << endl;
+ out << "\\usepackage[a4paper]{geometry}" << 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 d837c828..d6843c26 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 <tqtextstream.h>
+#include <textstream.h>
#include "xmlparser.h"
diff --git a/filters/kword/latex/export/format.h b/filters/kword/latex/export/format.h
index c4c3e37a..cd82b36a 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 <tqtextstream.h>
+#include <textstream.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 03ba4bd6..b023cdf6 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 <tqtextstream.h>
+#include <textstream.h>
/***********************************************************************/
/* Class: Formula */
diff --git a/filters/kword/latex/export/kwordlatexexportdia.cc b/filters/kword/latex/export/kwordlatexexportdia.cc
index 079b38d3..145b30ed 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").tqarg(i) );
+ /*value = _config->readPathEntry( TQString("Recent%1").arg(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("tqunicode");
+ encodingComboBox->insertItem("unicode");
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 f521ec9d..a72d8c52 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 <tqtextcodec.h>
+#include <textcodec.h>
#include "kwordlatexexportdia.h"
typedef KGenericFactory<LATEXExport, KoFilter> LATEXExportFactory;
@@ -36,7 +36,7 @@ LATEXExport::LATEXExport(KoFilter *, const char *, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversiontqStatus LATEXExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 e7c0312b..4d34e0f0 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 <tqtextstream.h>
+#include <textstream.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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 8c3835ed..741a9c7e 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="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>0</height>
diff --git a/filters/kword/latex/export/layout.cc b/filters/kword/latex/export/layout.cc
index f75ac651..05ad3405 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 "tqlayout.h"
+#include "layout.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 tqchildren markups */
+ /* Analyse children 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 298b08ff..04096c77 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 <tqtextstream.h>
+#include <textstream.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 tqlayout." << endl;
+ kdDebug(30522) << "Destruction of a layout." << endl;
}
/**
diff --git a/filters/kword/latex/export/para.cc b/filters/kword/latex/export/para.cc
index 6003a075..9cc829b5 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" /* tqchildren classes. */
+#include "format.h" /* children 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 tqchildren markups */
+ /* Analyse of the children 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 tqlayout of a para. */
+/* Analyse the layout 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 75c41b3a..7d1c0af1 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"*/ /* tqchildren class contents the zone (italic, footnote,
+/*#include "listeformat.h"*/ /* children 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 b67a7385..5b254f87 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<tqtextstream.h>
+#include<textstream.h>
int main(int argc, char* argv[])
diff --git a/filters/kword/latex/export/textFrame.cc b/filters/kword/latex/export/textFrame.cc
index cdcbba6a..d6141e96 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;
}
- /* tqlayout management (left, center, justify, right) */
+ /* layout 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 a4beb875..0bf4e436 100644
--- a/filters/kword/latex/export/textzone.cc
+++ b/filters/kword/latex/export/textzone.cc
@@ -1,4 +1,4 @@
-/* MEMO: to see the tqunicode table
+/* MEMO: to see the unicode 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 (tqunicode) in */
+/* Convert special caracters (unicode) in */
/* latex usable caracters. */
/*******************************************/
TQString TextZone::escapeLatin1(TQString text)
@@ -114,7 +114,7 @@ TQString TextZone::escapeLatin1(TQString text)
};
TQString escapedText;
- int tqunicode; /* the character to be escaped */
+ int unicode; /* 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++)
{
- tqunicode = CSTART + index;
- convert(escapedText, tqunicode, escapes[index]);
+ unicode = CSTART + index;
+ convert(escapedText, unicode, 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 tqunicode, const char* escape)
+void TextZone::convert(TQString& text, int unicode, const char* escape)
{
TQString expression;
TQString value;
- expression = TQString("\\x") + value.setNum(tqunicode, 16);
+ expression = TQString("\\x") + value.setNum(unicode, 16);
if( !TQString(escape).isEmpty() )
{
diff --git a/filters/kword/latex/export/textzone.h b/filters/kword/latex/export/textzone.h
index fbc09280..848b276a 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 <tqtextstream.h>
+#include <textstream.h>
#include <tqstring.h>
#include "textformat.h"
@@ -81,7 +81,7 @@ class TextZone: public TextFormat
/* ==== Helpfull functions ==== */
/**
- * convert a tqunicode text in latin1 enconding ala latex.
+ * convert a unicode 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 09a16635..b73788b3 100644
--- a/filters/kword/latex/export/variablezone.cc
+++ b/filters/kword/latex/export/variablezone.cc
@@ -1,4 +1,4 @@
-/* MEMO: to see the tqunicode table
+/* MEMO: to see the unicode 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 a428984a..acdf06e5 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 <tqtextstream.h>
+#include <textstream.h>
#include <tqstring.h>
#include "variableformat.h"
diff --git a/filters/kword/latex/export/xml2latexparser.h b/filters/kword/latex/export/xml2latexparser.h
index 38adc123..914cf3a2 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 <tqtextstream.h> /* for TQTextStream class */
+#include <textstream.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 9c4c07e4..9d83bedb 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 tqchildren = balise.toElement().elementsByTagName(name);
- if ( tqchildren.count() )
- return tqchildren.item(index);
+ TQDomNodeList children = balise.toElement().elementsByTagName(name);
+ if ( children.count() )
+ return children.item(index);
}
return TQDomNode();
}
TQDomNode XmlParser::getChild(TQDomNode balise, int index)
{
- TQDomNodeList tqchildren = balise.childNodes();
- if ( tqchildren.count() )
- return tqchildren.item(index);
+ TQDomNodeList children = balise.childNodes();
+ if ( children.count() )
+ return children.item(index);
return TQDomNode();
}
diff --git a/filters/kword/latex/import/generator/document.cc b/filters/kword/latex/import/generator/document.cc
index 13685e02..aad270d8 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 <tqtextstream.h>
+#include <textstream.h>
#include "kdebug.h"
#include <KoStore.h>
diff --git a/filters/kword/latex/import/lateximport.cc b/filters/kword/latex/import/lateximport.cc
index f644910a..c1cd74c9 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 <tqtextcodec.h>
+#include <textcodec.h>
#include "lateximportdia.h"
typedef KGenericFactory<LATEXImport, KoFilter> LATEXImportFactory;
@@ -35,7 +35,7 @@ LATEXImport::LATEXImport(KoFilter *, const char *, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversiontqStatus LATEXImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 949d7163..0451ce78 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 <tqtextstream.h>
+#include <textstream.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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 9489d491..8354b9ab 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);
- tqunicodeRBtn = new TQRadioButton(i18n("Unicode"), langBox);
- langLayout->addWidget(tqunicodeRBtn);
+ unicodeRBtn = new TQRadioButton(i18n("Unicode"), langBox);
+ langLayout->addWidget(unicodeRBtn);
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 tqlayout */
+ /* Display the main layout */
mainLayout->addStretch(5);
mainLayout->activate();
}
@@ -138,7 +138,7 @@ void LATEXImportDia::state()
else if(embededRBtn == docBox->selected())
config.setType(TYPE_EMBEDED);
- if(tqunicodeRBtn == langBox->selected())
+ if(unicodeRBtn == 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 b6f83baa..237b84b9 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 <tqlayout.h>
+#include <layout.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* tqunicodeRBtn, *latin1RBtn; /* Language */
+ TQRadioButton* unicodeRBtn, *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 e25e95ab..14abad37 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>* tqchildren)
+void Env::setChildren(TQPtrList<Element>* children)
{
- if(tqchildren != NULL)
- _tqchildren = *tqchildren;
+ if(children != NULL)
+ _children = *children;
}
void Env::print(int tab)
@@ -58,7 +58,7 @@ void Env::print(int tab)
cout << "ENV " << getName().latin1() << "{" << endl;
Element* elt;
- for ( elt = _tqchildren.first(); elt; elt = _tqchildren.next() )
+ for ( elt = _children.first(); elt; elt = _children.next() )
{
elt->print(tab);
}
diff --git a/filters/kword/latex/import/parser/env.h b/filters/kword/latex/import/parser/env.h
index cef56b29..191c0dd6 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> _tqchildren;
+ TQPtrList<Element> _children;
TQString _name;
public:
diff --git a/filters/kword/latex/status.html b/filters/kword/latex/status.html
index ea2a527c..0b78eac2 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 tqunicode)!</td></tr>
-<tr><td>tqlayout</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>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>tqunicode support</td> <td>DONE (omega package)</td></tr>
+<tr><td>unicode 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 tqunicode with omega</li>
+ <li>support of unicode with omega</li>
</ul>
</li>
</ul>
diff --git a/filters/kword/libexport/KWEFBaseWorker.cc b/filters/kword/libexport/KWEFBaseWorker.cc
index d3d41ff3..a47f647d 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).tqlayout,(*it).formattingList))
+ if (!doFullParagraph((*it).text,(*it).layout,(*it).formattingList))
return false;
}
return true;
diff --git a/filters/kword/libexport/KWEFBaseWorker.h b/filters/kword/libexport/KWEFBaseWorker.h
index e2046913..67cdb691 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& tqlayout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
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& tqlayout); ///< Defines a single style
+ virtual bool doFullDefineStyle (LayoutData& layout); ///< 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 3e9a724e..a3fca243 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.tqlayout );
+ << TagProcessing ( "LAYOUT", ProcessLayoutTag, &paraData.layout );
if ( leader->m_oldSyntax )
{
- tagProcessingList.append( TagProcessing( "HARDBRK", ProcessHardBrkTag, &paraData.tqlayout.pageBreakBefore ) );
+ tagProcessingList.append( TagProcessing( "HARDBRK", ProcessHardBrkTag, &paraData.layout.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.tqlayout.formatData.id == 1 )
+ if ( paraData.layout.formatData.id == 1 )
{
- paraData.formattingList << paraData.tqlayout.formatData;
+ paraData.formattingList << paraData.layout.formatData;
}
else
{
@@ -591,11 +591,11 @@ static void ProcessFramesetsTag ( TQDomNode myNode,
static void ProcessStyleTag (TQDomNode myNode, void *, KWEFKWordLeader *leader )
{
- LayoutData tqlayout;
+ LayoutData layout;
- ProcessLayoutTag (myNode, &tqlayout, leader);
+ ProcessLayoutTag (myNode, &layout, leader);
- leader->doFullDefineStyle (tqlayout);
+ leader->doFullDefineStyle (layout);
}
@@ -1227,10 +1227,10 @@ bool KWEFKWordLeader::doFullPaperFormatOther ( const int columns, const double c
return false;
}
-bool KWEFKWordLeader::doFullDefineStyle ( LayoutData &tqlayout )
+bool KWEFKWordLeader::doFullDefineStyle ( LayoutData &layout )
{
if ( m_worker )
- return m_worker->doFullDefineStyle (tqlayout);
+ return m_worker->doFullDefineStyle (layout);
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")
- .tqarg( errorLine ).tqarg( errorColumn ).tqarg(i18n( "TQXml", errorMsg.utf8() ) ),
+ .arg( errorLine ).arg( errorColumn ).arg(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::ConversiontqStatus KWEFKWordLeader::convert( KoFilterChain* chain,
+KoFilter::ConversionStatus 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 78ce1348..fc7e787a 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::ConversiontqStatus convert( KoFilterChain* chain,
+ KoFilter::ConversionStatus 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& tqlayout);
+ bool doFullDefineStyle (LayoutData& layout);
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 dbee22d0..682606fe 100644
--- a/filters/kword/libexport/KWEFStructures.h
+++ b/filters/kword/libexport/KWEFStructures.h
@@ -412,7 +412,7 @@ public:
virtual ~TabulatorList(void) {}
};
-/// Paragraph tqlayout
+/// Paragraph layout
class LayoutData
{
public:
@@ -428,7 +428,7 @@ public:
TQString styleName;
TQString styleFollowing;
- TQString tqalignment; ///< left, right, center, justify
+ TQString alignment; ///< 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 tqlayout;
+ LayoutData layout;
};
struct HeaderFooterData
diff --git a/filters/kword/libexport/KWEFUtil.cc b/filters/kword/libexport/KWEFUtil.cc
index 56e2b669..32b5eac2 100644
--- a/filters/kword/libexport/KWEFUtil.cc
+++ b/filters/kword/libexport/KWEFUtil.cc
@@ -19,7 +19,7 @@
*/
#include <tqstring.h>
-#include <tqtextcodec.h>
+#include <textcodec.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.tqunicode())
+ switch (ch.unicode())
{
case 38: // &
{
@@ -78,7 +78,7 @@ TQString KWEFUtil::EscapeSgmlText(const TQTextCodec* codec,
{
if (!codec->canEncode(ch))
{
- strReturn+=TQString("&#%1;").tqarg(ch.tqunicode());
+ strReturn+=TQString("&#%1;").arg(ch.unicode());
break;
}
}
diff --git a/filters/kword/libexport/ProcessDocument.cc b/filters/kword/libexport/ProcessDocument.cc
index ed5a7bfc..3a626f7f 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 tqchildren are directly tqchildren of <FORMAT id="4">
+// ### TODO: some files have not a <VARIABLE> tag but its supposed children are directly children 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 tqlayout information as in regular texts
+ // TODO: We can have all layout 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 *tqlayout = (LayoutData *) tagData;
+ LayoutData *layout = (LayoutData *) tagData;
TQValueList<AttrProcessing> attrProcessingList;
- attrProcessingList << AttrProcessing ("first" , tqlayout->indentFirst );
- attrProcessingList << AttrProcessing ("left" , tqlayout->indentLeft );
- attrProcessingList << AttrProcessing ("right" , tqlayout->indentRight );
+ attrProcessingList << AttrProcessing ("first" , layout->indentFirst );
+ attrProcessingList << AttrProcessing ("left" , layout->indentLeft );
+ attrProcessingList << AttrProcessing ("right" , layout->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 *tqlayout = (LayoutData *) tagData;
+ LayoutData *layout = (LayoutData *) tagData;
TQValueList<AttrProcessing> attrProcessingList;
- attrProcessingList << AttrProcessing ("after" , tqlayout->marginBottom );
- attrProcessingList << AttrProcessing ("before" , tqlayout->marginTop );
+ attrProcessingList << AttrProcessing ("after" , layout->marginBottom );
+ attrProcessingList << AttrProcessing ("before" , layout->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 *tqlayout = (LayoutData *) tagData;
+ LayoutData *layout = (LayoutData *) tagData;
TQString strBefore, strAfter;
TQValueList<AttrProcessing> attrProcessingList;
- attrProcessingList << AttrProcessing ( "linesTogether", tqlayout->keepLinesTogether );
- attrProcessingList << AttrProcessing ( "hardFrameBreak", tqlayout->pageBreakBefore );
- attrProcessingList << AttrProcessing ( "hardFrameBreakAfter", tqlayout->pageBreakAfter );
+ attrProcessingList << AttrProcessing ( "linesTogether", layout->keepLinesTogether );
+ attrProcessingList << AttrProcessing ( "hardFrameBreak", layout->pageBreakBefore );
+ attrProcessingList << AttrProcessing ( "hardFrameBreakAfter", layout->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 *tqlayout = (LayoutData *) tagData;
+ LayoutData *layout = (LayoutData *) tagData;
int red=0;
int green=0;
int blue=0;
TQValueList<AttrProcessing> attrProcessingList;
- attrProcessingList << AttrProcessing ( "distance", tqlayout->shadowDistance );
- attrProcessingList << AttrProcessing ( "direction", tqlayout->shadowDirection );
+ attrProcessingList << AttrProcessing ( "distance", layout->shadowDistance );
+ attrProcessingList << AttrProcessing ( "direction", layout->shadowDirection );
attrProcessingList << AttrProcessing ( "red", red );
attrProcessingList << AttrProcessing ( "green", green );
attrProcessingList << AttrProcessing ( "blue", blue );
ProcessAttributes (myNode, attrProcessingList);
- tqlayout->shadowColor.setRgb(red,green,blue);
+ layout->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 *tqlayout = (LayoutData *) tagData;
+ LayoutData *layout = (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" )
- tqlayout->lineSpacingType = LayoutData::LS_ONEANDHALF;
+ layout->lineSpacingType = LayoutData::LS_ONEANDHALF;
else if ( oldValue == "double" )
- tqlayout->lineSpacingType = LayoutData::LS_DOUBLE;
+ layout->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
- tqlayout->lineSpacingType = LayoutData::LS_CUSTOM; // set to custom
- tqlayout->lineSpacing = size;
+ layout->lineSpacingType = LayoutData::LS_CUSTOM; // set to custom
+ layout->lineSpacing = size;
}
else
- tqlayout->lineSpacingType = LayoutData::LS_SINGLE; // assume single linespace
+ layout->lineSpacingType = LayoutData::LS_SINGLE; // assume single linespace
}
}
else
{
// for new format
if( spacingType == "oneandhalf" )
- tqlayout->lineSpacingType = LayoutData::LS_ONEANDHALF;
+ layout->lineSpacingType = LayoutData::LS_ONEANDHALF;
else if ( spacingType == "double" )
- tqlayout->lineSpacingType = LayoutData::LS_DOUBLE;
+ layout->lineSpacingType = LayoutData::LS_DOUBLE;
else if ( spacingType == "custom" )
- tqlayout->lineSpacingType = LayoutData::LS_CUSTOM;
+ layout->lineSpacingType = LayoutData::LS_CUSTOM;
else if ( spacingType == "atleast" )
- tqlayout->lineSpacingType = LayoutData::LS_ATLEAST;
+ layout->lineSpacingType = LayoutData::LS_ATLEAST;
else if ( spacingType == "multiple" )
- tqlayout->lineSpacingType = LayoutData::LS_MULTIPLE;
+ layout->lineSpacingType = LayoutData::LS_MULTIPLE;
else if ( spacingType == "fixed" )
- tqlayout->lineSpacingType = LayoutData::LS_FIXED;
+ layout->lineSpacingType = LayoutData::LS_FIXED;
else
- tqlayout->lineSpacingType = LayoutData::LS_SINGLE; // assume single linespace
- tqlayout->lineSpacing = spacingValue;
+ layout->lineSpacingType = LayoutData::LS_SINGLE; // assume single linespace
+ layout->lineSpacing = spacingValue;
}
}
static void ProcessLineSpaceTag (TQDomNode myNode, void *tagData, KWEFKWordLeader* /*leader*/ )
{
// <LINESPACE> is an old tag, of before syntax 1
- LayoutData *tqlayout = (LayoutData *) tagData;
+ LayoutData *layout = (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);
- tqlayout->lineSpacingType = LayoutData::LS_CUSTOM; // set to custom
- tqlayout->lineSpacing = spacingValue;
+ layout->lineSpacingType = LayoutData::LS_CUSTOM; // set to custom
+ layout->lineSpacing = spacingValue;
}
static void ProcessFlowTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *leader )
{
- LayoutData *tqlayout = (LayoutData *) tagData;
+ LayoutData *layout = (LayoutData *) tagData;
TQString oldAlign, normalAlign;
@@ -948,7 +948,7 @@ static void ProcessFlowTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *l
{
if ( oldAlign.isEmpty() )
{
- tqlayout->tqalignment = "left"; // KWord 0.8 did not support right-to-left
+ layout->alignment = "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;
- tqlayout->tqalignment = "left"; // Unknown, so assume left
+ layout->alignment = "left"; // Unknown, so assume left
}
else
{
const char* flows[]={"left", "right", "center", "justify" };
- tqlayout->tqalignment = flows[ align ];
+ layout->alignment = flows[ align ];
}
}
- kdDebug(30508) << "KWord 0.8 flow: " << oldAlign << " corrected: " << tqlayout->tqalignment << endl;
+ kdDebug(30508) << "KWord 0.8 flow: " << oldAlign << " corrected: " << layout->alignment << endl;
}
else
{
- tqlayout->tqalignment = normalAlign;
+ layout->alignment = normalAlign;
}
}
@@ -981,36 +981,36 @@ void ProcessLayoutTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *leader
attrProcessingList << AttrProcessing ( "outline" ); // Only in <STYLE>
ProcessAttributes (myNode, attrProcessingList);
- LayoutData *tqlayout = (LayoutData *) tagData;
+ LayoutData *layout = (LayoutData *) tagData;
ValueListFormatData formatDataList;
TQValueList<TagProcessing> tagProcessingList;
- 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 ( "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 ( "FORMAT", ProcessFormatTag, &formatDataList );
- tagProcessingList << TagProcessing ( "TABULATOR", ProcessLayoutTabulatorTag, &tqlayout->tabulatorList );
- tagProcessingList << TagProcessing ( "SHADOW", ProcessShadowTag, tqlayout );
+ tagProcessingList << TagProcessing ( "TABULATOR", ProcessLayoutTabulatorTag, &layout->tabulatorList );
+ tagProcessingList << TagProcessing ( "SHADOW", ProcessShadowTag, layout );
if ( leader->m_oldSyntax )
{
- tqlayout->indentLeft = 0.0; // ### TODO: needed or not?
+ layout->indentLeft = 0.0; // ### TODO: needed or not?
tagProcessingList
- << TagProcessing ( "OHEAD", ProcessOldLayoutChildTag, &tqlayout->marginTop )
- << TagProcessing ( "OFOOT", ProcessOldLayoutChildTag, &tqlayout->marginBottom )
- << TagProcessing ( "ILEFT", ProcessOldLayoutChildTag, &tqlayout->indentLeft )
- << TagProcessing ( "IFIRST", ProcessOldLayoutChildTag, &tqlayout->indentFirst )
- << TagProcessing ( "LINESPACE", ProcessLineSpaceTag, tqlayout )
+ << TagProcessing ( "OHEAD", ProcessOldLayoutChildTag, &layout->marginTop )
+ << TagProcessing ( "OFOOT", ProcessOldLayoutChildTag, &layout->marginBottom )
+ << TagProcessing ( "ILEFT", ProcessOldLayoutChildTag, &layout->indentLeft )
+ << TagProcessing ( "IFIRST", ProcessOldLayoutChildTag, &layout->indentFirst )
+ << TagProcessing ( "LINESPACE", ProcessLineSpaceTag, layout )
;
}
@@ -1023,7 +1023,7 @@ void ProcessLayoutTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *leader
}
else
{
- tqlayout->formatData = formatDataList.first ();
+ layout->formatData = formatDataList.first ();
if ( formatDataList.count () > 1 )
{
@@ -1031,10 +1031,10 @@ void ProcessLayoutTag ( TQDomNode myNode, void *tagData, KWEFKWordLeader *leader
}
}
- if ( tqlayout->styleName.isEmpty () )
+ if ( layout->styleName.isEmpty () )
{
- tqlayout->styleName = "Standard";
- kdWarning (30508) << "Empty tqlayout name!" << endl;
+ layout->styleName = "Standard";
+ kdWarning (30508) << "Empty layout name!" << endl;
}
}
diff --git a/filters/kword/msword/conversion.cpp b/filters/kword/msword/conversion.cpp
index 6bd895b9..595c026c 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::tqalignment( int jc ) {
+TQString Conversion::alignment( 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 fd30c69f..f8610415 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 tqalignment code to string
- TQString tqalignment( int jc );
+ // Convert alignment code to string
+ TQString alignment( 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 5044f023..ab70c79a 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").tqarg( ++m_endNoteNumber ) );
+ framesetElement.setAttribute("name", i18n("Endnote %1").arg( ++m_endNoteNumber ) );
else
// Keep name in sync with KWordTextHandler::footnoteFound
- framesetElement.setAttribute("name", i18n("Footnote %1").tqarg( ++m_footNoteNumber ) );
+ framesetElement.setAttribute("name", i18n("Footnote %1").arg( ++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").tqarg(tableName).tqarg(row).tqarg(column);
+ TQString name = i18n("Table_Name Cell row,column", "%1 Cell %2,%3").arg(tableName).arg(row).arg(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 3be95f7a..714db274 100644
--- a/filters/kword/msword/mswordimport.cpp
+++ b/filters/kword/msword/mswordimport.cpp
@@ -41,7 +41,7 @@ MSWordImport::~MSWordImport()
{
}
-KoFilter::ConversiontqStatus MSWordImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 73a568ff..ae348fc7 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 07eb3da7..242a6d39 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").tqarg( ++m_endNoteNumber ) );
+ footnoteElem.setAttribute( "frameset", i18n("Endnote %1").arg( ++m_endNoteNumber ) );
else
// Keep name in sync with Document::startFootnote
- footnoteElem.setAttribute( "frameset", i18n("Footnote %1").tqarg( ++m_footNoteNumber ) );
+ footnoteElem.setAttribute( "frameset", i18n("Footnote %1").arg( ++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").tqarg( ++s_tableNumber );
+ m_currentTable->name = i18n("Table %1").arg( ++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").tqarg( ++s_pictureNumber );
+ TQString frameName = i18n("Picture %1").arg( ++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::tqfromLatin1("#bebebe %1pt %1pt").tqarg(dist).tqarg(dist);
+ css = TQString::fromLatin1("#bebebe %1pt %1pt").arg(dist).arg(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 tqlayout for some hacks
+ m_oldLayout = layoutElement; // Keep a reference to the old layout 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 tqalignment, it's required
+ // Always write out the alignment, it's required
TQDomElement flowElement = mainDocument().createElement("FLOW");
- TQString tqalignment = Conversion::tqalignment( pap.jc );
- flowElement.setAttribute( "align", tqalignment );
+ TQString alignment = Conversion::alignment( pap.jc );
+ flowElement.setAttribute( "align", alignment );
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 koparagtqlayout.cc
+ double width = 0.5; // default kword value, see koparaglayout.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->tqalignment() is not supported in KWord
+ // listInfo->alignment() 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 ebea5202..c75cfd4e 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_ (tqchildren) of a <LAYOUT> or <STYLE> tag, from the given parag props
+ // Write the _contents_ (children) 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 460677cb..bf9c0668 100644
--- a/filters/kword/mswrite/ImportDialog.cc
+++ b/filters/kword/mswrite/ImportDialog.cc
@@ -18,7 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <tqtextcodec.h>
+#include <textcodec.h>
#include <klocale.h>
#include <kcharsets.h>
@@ -29,7 +29,7 @@
#include <ImportDialogUI.h>
#include <ImportDialog.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.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 db7dcc20..bed2bad1 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="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -126,7 +126,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -187,7 +187,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -218,7 +218,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -237,7 +237,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
diff --git a/filters/kword/mswrite/mswriteexport.cc b/filters/kword/mswrite/mswriteexport.cc
index 02d980ef..b645649b 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 <tqtextcodec.h>
+#include <textcodec.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 tqlayout)
+ // just dump the table out for now (no layout)
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.tqlayout,
+ paraData.layout,
paraData.formattingList);
}
bool doFullParagraph (const TQString &paraText,
- const LayoutData &tqlayout,
+ const LayoutData &layout,
const ValueListFormatData &paraFormatDataList)
{
MSWrite::FormatParaProperty paraProp;
@@ -1446,34 +1446,34 @@ public:
paraProp.setIsText (true);
// Alignment
- if (!tqlayout.tqalignment.isEmpty ())
+ if (!layout.alignment.isEmpty ())
{
- if (tqlayout.tqalignment == "left")
+ if (layout.alignment == "left")
// quite useless since MSWrite::Alignment::Left is the default anyway
- 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);
+ 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);
else
- kdWarning (30509) << "Unknown Alignment: " << tqlayout.tqalignment << endl;
+ kdWarning (30509) << "Unknown Alignment: " << layout.alignment << endl;
}
// Indentation
- 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 (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 0
- kdDebug (30509) << "Indent: " << Point2Twip (tqlayout.indentFirst) << " "
- << Point2Twip (tqlayout.indentLeft) << " "
- << Point2Twip (tqlayout.indentRight) << endl;
+ kdDebug (30509) << "Indent: " << Point2Twip (layout.indentFirst) << " "
+ << Point2Twip (layout.indentLeft) << " "
+ << Point2Twip (layout.indentRight) << endl;
#endif
// Line Spacing
MSWrite::Word lineSpacing = MSWrite::LineSpacing::Normal;
- switch (tqlayout.lineSpacingType)
+ switch (layout.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 (tqlayout.lineSpacing);
+ lineSpacing = getClosestLineSpacing (layout.lineSpacing);
break;
case LayoutData::LS_MULTIPLE:
break;
default:
- kdWarning (30509) << "unknown lineSpacingType \'" << tqlayout.lineSpacingType << "\'" << endl;
+ kdWarning (30509) << "unknown lineSpacingType \'" << layout.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 = tqlayout.tabulatorList.begin ();
- tabIt != tqlayout.tabulatorList.end ();
+ for (TabulatorList::ConstIterator tabIt = layout.tabulatorList.begin ();
+ tabIt != layout.tabulatorList.end ();
tabIt++)
{
MSWrite::FormatParaPropertyTabulator tab;
@@ -1544,7 +1544,7 @@ public:
// get this paragraph's "default formatting"
MSWrite::FormatCharProperty charPropDefault;
- processFormatData (charPropDefault, tqlayout.formatData.text);
+ processFormatData (charPropDefault, layout.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 (tqlayout.pageBreakBefore)
+ if (layout.pageBreakBefore)
if (!m_generator->writePageBreak ()) return false;
// counter data
- processCounter (tqlayout.counter);
+ processCounter (layout.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 (tqlayout.pageBreakAfter)
+ if (layout.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 (tqlayout.pageBreakBefore)
+ if (layout.pageBreakBefore)
if (!m_generator->writePageBreak ()) return false;
// counter data
- processCounter (tqlayout.counter);
+ processCounter (layout.counter);
}
// yes, this is slightly premature but it doesn't matter
@@ -1733,7 +1733,7 @@ public:
}
// page break at end of paragraph?
- if (tqlayout.pageBreakAfter)
+ if (layout.pageBreakAfter)
if (!m_generator->writePageBreak ()) return false;
}
@@ -1903,7 +1903,7 @@ MSWriteExport::~MSWriteExport ()
{
}
-KoFilter::ConversiontqStatus MSWriteExport::convert (const TQCString &from, const TQCString &to)
+KoFilter::ConversionStatus 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::ConversiontqStatus MSWriteExport::convert (const TQCString &from, cons
return KoFilter::OutOfMemory;
}
- KoFilter::ConversiontqStatus ret = leader->convert (m_chain, from, to);
+ KoFilter::ConversionStatus 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 796ce705..adfbc4ba 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::ConversiontqStatus convert (const TQCString &from, const TQCString &to);
+ KoFilter::ConversionStatus 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 379d3c01..a1ccc150 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 <tqtextcodec.h>
-#include <tqtextstream.h>
+#include <textcodec.h>
+#include <textstream.h>
#include <kdebug.h>
#include <kgenericfactory.h>
@@ -1345,7 +1345,7 @@ MSWriteImport::~MSWriteImport ()
delete m_device;
}
-KoFilter::ConversiontqStatus MSWriteImport::convert (const TQCString &from, const TQCString &to)
+KoFilter::ConversionStatus 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 65be7e7a..8d59fe38 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::ConversiontqStatus convert (const TQCString &from, const TQCString &to);
+ KoFilter::ConversionStatus 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 6ede1caf..5a8bddd1 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 (tqalignment, linespacing, indentation, tabulation) <br>
+ - Paragraph formatting (alignment, 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 tqalignment
+ - the underlying code to read in the format is there but the filter can only do plain text with alignment
<br>
</td>
</tr>
diff --git a/filters/kword/mswrite/structures.h b/filters/kword/mswrite/structures.h
index af687b3a..5aa4f6a3 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) { tqsetAlignment (val); }
+ void setAlign (const Byte val) { setAlignment (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 6b6e5575..c443f252 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; // tqalignment
+ m_data [2] = 0; // alignment
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_tqalignment = (Byte) (0);
+ m_alignment = (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_tqalignment = rhs.m_tqalignment;
+ m_alignment = rhs.m_alignment;
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_tqalignment will not be checked
+ // m_alignment 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_tqalignment, m_data + 2);
- signalHaveSetData (m_tqalignment == Byte (0), 8/*offset*/ + 8/*size*/);
+ ReadByte (m_alignment, m_data + 2);
+ signalHaveSetData (m_alignment == 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_tqalignment, m_data + 2);
+ WriteByte (m_alignment, 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 0ee985ce..feb0f563 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 tqlayout information (margins, dimensions, ...)
+ // Page layout 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_tqalignment;
+ Byte m_alignment;
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_tqalignment; }
- void tqsetAlignment (const Byte val) { m_tqalignment = val; signalHaveSetData (m_tqalignment == Byte (0), 8/*offset*/ + 8/*size*/); }
+ Byte getAlignment (void) const { return m_alignment; }
+ void setAlignment (const Byte val) { m_alignment = val; signalHaveSetData (m_alignment == 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 ff9c8276..2e6e515e 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 <tqtextstream.h>
+#include <textstream.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.tqunicode())
+ switch (ch.unicode())
{
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.tqunicode() << endl;
+ kdWarning(30518) << "Not allowed XML character: " << ch.unicode() << 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").tqarg( m_tableNumber ) );
+ const TQString translatedName( i18n( "Object name", "Table %1").arg( m_tableNumber ) );
const TQString automaticFrameStyle ( makeAutomaticStyleName( "TableFrame", m_textBoxNumber ) ); // It also increases m_textBoxNumber
- const TQString translatedFrameName( i18n( "Object name", "Table Frame %1").tqarg( m_textBoxNumber ) );
+ const TQString translatedFrameName( i18n( "Object name", "Table Frame %1").arg( 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& tqlayout, const bool force, TQString& styleKey)
+ const LayoutData& layout, const bool force, TQString& styleKey)
{
TQString props; // Props has to remain empty, if there is no difference.
- styleKey += tqlayout.styleName;
+ styleKey += layout.styleName;
styleKey += ',';
- if (force || (layoutOrigin.tqalignment!=tqlayout.tqalignment))
+ if (force || (layoutOrigin.alignment!=layout.alignment))
{
// 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 (tqlayout.tqalignment == "left")
+ if (layout.alignment == "left")
{
props += "fo:text-align=\"start\" ";
styleKey += 'L';
}
- else if (tqlayout.tqalignment == "right")
+ else if (layout.alignment == "right")
{
props += "fo:text-align=\"end\" ";
styleKey += 'R';
}
- else if (tqlayout.tqalignment == "center")
+ else if (layout.alignment == "center")
{
props += "fo:text-align=\"center\" ";
styleKey += 'C';
}
- else if (tqlayout.tqalignment == "justify")
+ else if (layout.alignment == "justify")
{
props += "fo:text-align=\"justify\" ";
styleKey += 'J';
}
- else if (tqlayout.tqalignment == "auto")
+ else if (layout.alignment == "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 tqalignment: " << tqlayout.tqalignment << endl;
+ kdWarning(30518) << "Unknown alignment: " << layout.alignment << endl;
}
}
styleKey += ',';
- if ((tqlayout.indentLeft>=0.0)
- && (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft)))
+ if ((layout.indentLeft>=0.0)
+ && (force || (layoutOrigin.indentLeft!=layout.indentLeft)))
{
- props += TQString("fo:margin-left=\"%1pt\" ").tqarg(tqlayout.indentLeft);
- styleKey += TQString::number(tqlayout.indentLeft);
+ props += TQString("fo:margin-left=\"%1pt\" ").arg(layout.indentLeft);
+ styleKey += TQString::number(layout.indentLeft);
}
styleKey += ',';
- if ((tqlayout.indentRight>=0.0)
- && (force || (layoutOrigin.indentRight!=tqlayout.indentRight)))
+ if ((layout.indentRight>=0.0)
+ && (force || (layoutOrigin.indentRight!=layout.indentRight)))
{
- props += TQString("fo:margin-right=\"%1pt\" ").tqarg(tqlayout.indentRight);
- styleKey += TQString::number(tqlayout.indentRight);
+ props += TQString("fo:margin-right=\"%1pt\" ").arg(layout.indentRight);
+ styleKey += TQString::number(layout.indentRight);
}
styleKey += ',';
- if (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft))
+ if (force || (layoutOrigin.indentLeft!=layout.indentLeft))
{
props += "fo:text-indent=\"";
- props += TQString::number(tqlayout.indentFirst);
+ props += TQString::number(layout.indentFirst);
props += "\" ";
- styleKey += TQString::number(tqlayout.indentFirst);
+ styleKey += TQString::number(layout.indentFirst);
}
styleKey += ',';
- if ((tqlayout.marginBottom>=0.0)
- && ( force || ( layoutOrigin.marginBottom != tqlayout.marginBottom ) ) )
+ if ((layout.marginBottom>=0.0)
+ && ( force || ( layoutOrigin.marginBottom != layout.marginBottom ) ) )
{
- props += TQString("fo:margin-bottom=\"%1pt\" ").tqarg(tqlayout.marginBottom);
- styleKey += TQString::number(tqlayout.marginBottom);
+ props += TQString("fo:margin-bottom=\"%1pt\" ").arg(layout.marginBottom);
+ styleKey += TQString::number(layout.marginBottom);
}
styleKey += ',';
- if ((tqlayout.marginTop>=0.0)
- && ( force || ( layoutOrigin.marginTop != tqlayout.marginTop ) ) )
+ if ((layout.marginTop>=0.0)
+ && ( force || ( layoutOrigin.marginTop != layout.marginTop ) ) )
{
- props += TQString("fo:margin-top=\"%1pt\" ").tqarg(tqlayout.marginTop);
- styleKey += TQString::number(tqlayout.marginTop);
+ props += TQString("fo:margin-top=\"%1pt\" ").arg(layout.marginTop);
+ styleKey += TQString::number(layout.marginTop);
}
styleKey += ',';
if (force
- || ( layoutOrigin.lineSpacingType != tqlayout.lineSpacingType )
- || ( layoutOrigin.lineSpacing != tqlayout.lineSpacing ) )
+ || ( layoutOrigin.lineSpacingType != layout.lineSpacingType )
+ || ( layoutOrigin.lineSpacing != layout.lineSpacing ) )
{
- switch ( tqlayout.lineSpacingType )
+ switch ( layout.lineSpacingType )
{
case LayoutData::LS_CUSTOM:
{
// We have a custom line spacing (in points)
- const TQString height ( TQString::number(tqlayout.lineSpacing) ); // ### TODO: rounding?
+ const TQString height ( TQString::number(layout.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( tqlayout.lineSpacing * 100 ) ) );
+ const TQString mult ( TQString::number( tqRound( layout.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(tqlayout.lineSpacing) ); // ### TODO: rounding?
+ const TQString height ( TQString::number(layout.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(tqlayout.lineSpacing) ); // ### TODO: rounding?
+ const TQString height ( TQString::number(layout.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: " << tqlayout.lineSpacingType << " (Ignoring!)" << endl;
+ kdWarning(30518) << "Unsupported lineSpacingType: " << layout.lineSpacingType << " (Ignoring!)" << endl;
break;
}
}
@@ -1900,7 +1900,7 @@ TQString OOWriterWorker::layoutToParagraphStyle(const LayoutData& layoutOrigin,
styleKey += ',';
- if ( tqlayout.pageBreakBefore )
+ if ( layout.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 ( tqlayout.pageBreakAfter )
+ if ( layout.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,tqlayout.formatData.text,force,styleKey);
+ props += textFormatToStyle(layoutOrigin.formatData.text,layout.formatData.text,force,styleKey);
props += ">";
styleKey += '@'; // A more visible seperator
// ### TODO/FIXME: what if all tabulators must be erased?
- if (!tqlayout.tabulatorList.isEmpty()
- && (force || (layoutOrigin.tabulatorList!=tqlayout.tabulatorList) ))
+ if (!layout.tabulatorList.isEmpty()
+ && (force || (layoutOrigin.tabulatorList!=layout.tabulatorList) ))
{
props += "\n <style:tab-stops>\n";
TabulatorList::ConstIterator it;
- TabulatorList::ConstIterator end(tqlayout.tabulatorList.end());
- for (it=tqlayout.tabulatorList.begin();it!=end;++it)
+ TabulatorList::ConstIterator end(layout.tabulatorList.end());
+ for (it=layout.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& tqlayout,
+bool OOWriterWorker::doFullParagraph(const TQString& paraText, const LayoutData& layout,
const ValueListFormatData& paraFormatDataList)
{
- const bool header = ( (tqlayout.counter.numbering == CounterData::NUM_CHAPTER)
- && (tqlayout.counter.depth<10) ); // ### TODO: Does OOWriter really limits to 10?
+ const bool header = ( (layout.counter.numbering == CounterData::NUM_CHAPTER)
+ && (layout.counter.depth<10) ); // ### TODO: Does OOWriter really limits to 10?
if (header)
{
*m_streamOut << " <text:h text:level=\"";
- *m_streamOut << TQString::number(tqlayout.counter.depth+1,10);
+ *m_streamOut << TQString::number(layout.counter.depth+1,10);
*m_streamOut << "\" ";
}
else
*m_streamOut << " <text:p ";
- const LayoutData& styleLayout=m_styleMap[tqlayout.styleName];
+ const LayoutData& styleLayout=m_styleMap[layout.styleName];
TQString styleKey;
- const TQString props(layoutToParagraphStyle(styleLayout,tqlayout,false,styleKey));
+ const TQString props(layoutToParagraphStyle(styleLayout,layout,false,styleKey));
- TQString actualStyle(tqlayout.styleName);
+ TQString actualStyle(layout.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(tqlayout.styleName) + "\"";
+ m_contentAutomaticStyles += " style:parent-style-name=\"" + escapeOOText(layout.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, tqlayout.formatData.text, paraFormatDataList);
+ processParagraphData(paraText, layout.formatData.text, paraFormatDataList);
if (header)
*m_streamOut << "</text:h>\n";
@@ -2054,21 +2054,21 @@ bool OOWriterWorker::doOpenStyles(void)
return true;
}
-bool OOWriterWorker::doFullDefineStyle(LayoutData& tqlayout)
+bool OOWriterWorker::doFullDefineStyle(LayoutData& layout)
{
//Register style in the style map
- m_styleMap[tqlayout.styleName]=tqlayout;
+ m_styleMap[layout.styleName]=layout;
m_styles += " <style:style";
- m_styles += " style:name=\"" + escapeOOText( tqlayout.styleName ) + "\"";
- m_styles += " style:next-style-name=\"" + escapeOOText( tqlayout.styleFollowing ) + "\"";
+ m_styles += " style:name=\"" + escapeOOText( layout.styleName ) + "\"";
+ m_styles += " style:next-style-name=\"" + escapeOOText( layout.styleFollowing ) + "\"";
m_styles += " style:family=\"paragraph\" style:class=\"text\"";
m_styles += ">\n";
m_styles += " <style:properties ";
TQString debugKey; // Not needed
- m_styles += layoutToParagraphStyle(tqlayout,tqlayout,true,debugKey);
+ m_styles += layoutToParagraphStyle(layout,layout,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::tqstyleHint() cannot guess
+ // Disabled, as TQFontInfo::styleHint() cannot guess
#if 0
TQFont font(fontName);
TQFontInfo info(font);
props+="style:font-family-generic=\""
- switch (info.tqstyleHint())
+ switch (info.styleHint())
{
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::tqcurrentDateTime(Qt::UTC));
+ const TQDateTime dt(TQDateTime::currentDateTime(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 0a898227..c89e15ac 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& tqlayout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
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& tqlayout);
+ virtual bool doFullDefineStyle(LayoutData& layout);
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& tqlayout, const bool force, TQString& styleKey);
+ const LayoutData& layout, 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 209b2bec..22d9fed5 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 tqalignment " << align << endl;
+ kdWarning(30518) << "Conversion::importAlignment unknown alignment " << 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 tqalignment " << align << endl;
+ kdWarning(30518) << "Conversion::exportAlignment unknown alignment " << 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::tqfromLatin1( "biggest" ) );
+ return tqMakePair( 1, TQString::fromLatin1( "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::tqfromLatin1( "biggest" ) );
+ return tqMakePair( 1, TQString::fromLatin1( "biggest" ) );
}
TQString Conversion::exportWrapping( const TQPair<int,TQString>& runAroundAttribs )
diff --git a/filters/kword/oowriter/conversion.h b/filters/kword/oowriter/conversion.h
index d9388268..ee6b41f6 100644
--- a/filters/kword/oowriter/conversion.h
+++ b/filters/kword/oowriter/conversion.h
@@ -32,7 +32,7 @@
namespace Conversion
{
- // Convert paragraph tqalignment value
+ // Convert paragraph alignment value
TQString importAlignment( const TQString& );
TQString exportAlignment( const TQString& );
diff --git a/filters/kword/oowriter/oowriterexport.cc b/filters/kword/oowriter/oowriterexport.cc
index 426105e8..aba0ee9f 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::ConversiontqStatus OOWRITERExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus OOWRITERExport::convert( const TQCString& from, const TQCString& to )
{
if ( to != "application/vnd.sun.xml.writer" || from != "application/x-kword" )
{
@@ -79,7 +79,7 @@ KoFilter::ConversiontqStatus OOWRITERExport::convert( const TQCString& from, con
return KoFilter::StupidError;
}
- KoFilter::ConversiontqStatus result=leader->convert(m_chain,from,to);
+ KoFilter::ConversionStatus 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 8f4695b8..bd1a0f40 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 5fd196f8..07262c86 100644
--- a/filters/kword/oowriter/oowriterimport.cc
+++ b/filters/kword/oowriter/oowriterimport.cc
@@ -69,7 +69,7 @@ OoWriterImport::~OoWriterImport()
{
}
-KoFilter::ConversiontqStatus OoWriterImport::convert( TQCString const & from, TQCString const & to )
+KoFilter::ConversionStatus OoWriterImport::convert( TQCString const & from, TQCString const & to )
{
kdDebug(30518) << "Entering Oowriter Import filter: " << from << " - " << to << endl;
@@ -99,20 +99,20 @@ KoFilter::ConversiontqStatus OoWriterImport::convert( TQCString const & from, TQ
}
- KoFilter::ConversiontqStatus pretqStatus = openFile();
+ KoFilter::ConversionStatus preStatus = openFile();
TQImage thumbnail;
- if ( pretqStatus == KoFilter::OK )
+ if ( preStatus == KoFilter::OK )
{
// We do not care about the failure
OoUtils::loadThumbnail( thumbnail, m_zip );
}
- if ( pretqStatus != KoFilter::OK )
+ if ( preStatus != KoFilter::OK )
{
m_zip->close();
delete m_zip;
- return pretqStatus;
+ return preStatus;
}
m_currentMasterPage = TQString();
@@ -535,14 +535,14 @@ TQDomElement OoWriterImport::createInitialFrame( TQDomElement& parentFramesetEle
return frameElementOut;
}
-KoFilter::ConversiontqStatus OoWriterImport::loadAndParse(const TQString& filename, TQDomDocument& doc)
+KoFilter::ConversionStatus OoWriterImport::loadAndParse(const TQString& filename, TQDomDocument& doc)
{
return OoUtils::loadAndParse( filename, doc, m_zip);
}
-KoFilter::ConversiontqStatus OoWriterImport::openFile()
+KoFilter::ConversionStatus OoWriterImport::openFile()
{
- KoFilter::ConversiontqStatus status=loadAndParse("content.xml", m_content);
+ KoFilter::ConversionStatus 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.tqarg( docElement.attributeNS( ooNS::office, "version", TQString() ) );
+ message = message.arg( 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].tqunicode() );
- kdDebug(30518) << "bullet code " << bulletChar[0].tqunicode() << endl;
+ counter.setAttribute( "bullet", bulletChar[0].unicode() );
+ kdDebug(30518) << "bullet code " << bulletChar[0].unicode() << endl;
TQString fontName = listStyleProperties.attributeNS( ooNS::style, "font-name", TQString() );
counter.setAttribute( "bulletfont", fontName );
#endif
// Reverse engineering, I found those codes:
- switch( bulletChar[0].tqunicode() ) {
+ switch( bulletChar[0].unicode() ) {
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 tqchildren = frameset.childNodes();
+ const TQDomNodeList children = frameset.childNodes();
const TQString paragStr = "PARAGRAPH";
int paragCount = 0;
- for ( unsigned int i = 0 ; i < tqchildren.length() ; ++i ) {
- if ( tqchildren.item( i ).toElement().tagName() == paragStr )
+ for ( unsigned int i = 0 ; i < children.length() ; ++i ) {
+ if ( children.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 tqlayout...
+ masterPageName = "Standard"; // Seems to be a builtin name for the default layout...
if ( masterPageName != m_currentMasterPage )
{
- // Detected a change in the master page -> this means we have to use a new page tqlayout
+ // Detected a change in the master page -> this means we have to use a new page layout
// 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 tqlayout.
+ // In KWord we don't support sections so the first paragraph is the one that determines the page layout.
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 tqlayout, KWord doesn't have sections.
+ // We have no way to store the new page layout, 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 tqalignment, it's required
+ // Always write out the alignment, 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 tqalignment - a bit like offsetfrombaseline (but not for subscript/superscript, in general)
+ vertical alignment - 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::tqcurrentDateTime(Qt::UTC));
+ KoPictureKey key(filename, TQDateTime::currentDateTime(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::tqcurrentDateTime(); // OOo docs say so :)
+ dt = TQDateTime::currentDateTime(); // 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::tqcurrentDateTime(); // OOo docs say so :)
+ dt = TQDateTime::currentDateTime(); // 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")
- .tqarg(row).tqarg(column).tqarg(tableName)); // The table name could have a % sequence, so use the table name as last!
+ .arg(row).arg(column).arg(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 80586a31..4de60534 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::ConversiontqStatus convert( TQCString const & from, TQCString const & to );
+ virtual KoFilter::ConversionStatus 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::ConversiontqStatus loadAndParse(const TQString& filename, TQDomDocument& doc);
- KoFilter::ConversiontqStatus openFile();
+ KoFilter::ConversionStatus loadAndParse(const TQString& filename, TQDomDocument& doc);
+ KoFilter::ConversionStatus 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 65a83518..b7155fa8 100644
--- a/filters/kword/palmdoc/palmdb.cpp
+++ b/filters/kword/palmdoc/palmdb.cpp
@@ -18,7 +18,7 @@
*/
/*
- The database tqlayout for PalmDB files is described in
+ The database layout 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::tqcurrentDateTime() );
- setModificationDate( TQDateTime::tqcurrentDateTime() );
- setLastBackupDate( TQDateTime::tqcurrentDateTime() );
+ setCreationDate( TQDateTime::currentDateTime() );
+ setModificationDate( TQDateTime::currentDateTime() );
+ setLastBackupDate( TQDateTime::currentDateTime() );
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 tqfromLatin1() anyway.
+ // Use the length parameter of fromLatin1() anyway.
TQ_UINT8 name[32];
for(int k = 0; k < 32; k++)
stream >> name[k];
- m_name = TQString::tqfromLatin1( (char*) name, 31 );
+ m_name = TQString::fromLatin1( (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::tqfromLatin1( (char*) dbt, 4 );
+ m_type = TQString::fromLatin1( (char*) dbt, 4 );
// read and encode database creator
TQ_UINT8 dbc[4];
stream >> dbc[0] >> dbc[1] >> dbc[2] >> dbc[3];
- m_creator = TQString::tqfromLatin1( (char*) dbc, 4 );
+ m_creator = TQString::fromLatin1( (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.tqdevice()->at( recpos[r] );
+ stream.device()->at( recpos[r] );
for( int q = 0; q < recsize[r]; q++ )
- { TQ_UINT8 c; stream >> c; data->tqat(q) = c; }
+ { TQ_UINT8 c; stream >> c; data->at(q) = c; }
}
records.append( data );
}
diff --git a/filters/kword/palmdoc/palmdoc.cpp b/filters/kword/palmdoc/palmdoc.cpp
index 791fa356..72bb0434 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::tqfromLatin1( rec.data(),rec.count() ) );
+ setText( TQString::fromLatin1( 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::tqcurrentDateTime() );
+ setModificationDate( TQDateTime::currentDateTime() );
// 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 5e18ff6f..9bbb980f 100644
--- a/filters/kword/palmdoc/palmdocexport.cc
+++ b/filters/kword/palmdoc/palmdocexport.cc
@@ -25,7 +25,7 @@
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <tqtextstream.h>
+#include <textstream.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& tqlayout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
const ValueListFormatData& paraFormatDataList);
private:
TQString title;
@@ -101,7 +101,7 @@ bool PalmDocWorker::doFullDocumentInfo( const KWEFDocumentInfo& docInfo )
}
bool PalmDocWorker::doFullParagraph(const TQString& paraText,
- const LayoutData& /*tqlayout*/, const ValueListFormatData& /*paraFormatDataList*/)
+ const LayoutData& /*layout*/, const ValueListFormatData& /*paraFormatDataList*/)
{
kdDebug(30525) << "Entering ::doFullParagraph" << endl;
text.append( paraText );
@@ -115,7 +115,7 @@ PalmDocExport::PalmDocExport( KoFilter *, const char *, const TQStringList& ):
{
}
-KoFilter::ConversiontqStatus PalmDocExport::convert( const TQCString& from,
+KoFilter::ConversionStatus PalmDocExport::convert( const TQCString& from,
const TQCString& to )
{
// check for proper conversion
@@ -125,7 +125,7 @@ KoFilter::ConversiontqStatus PalmDocExport::convert( const TQCString& from,
PalmDocWorker* worker = new PalmDocWorker();
KWEFKWordLeader* leader = new KWEFKWordLeader( worker );
- KoFilter::ConversiontqStatus result;
+ KoFilter::ConversionStatus 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 fd2a1140..4c09946b 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 98cd7629..a1e8107b 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::ConversiontqStatus PalmDocImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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::ConversiontqStatus PalmDocImport::convert( const TQCString& from, cons
TQString PalmDocImport::processPlainParagraph( TQString text )
{
- TQString formats, tqlayout, result;
+ TQString formats, layout, 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
- 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" );
+ 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" );
// 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( tqlayout );
+ result.append( layout );
result.append( "</PARAGRAPH>\n" );
return result;
diff --git a/filters/kword/palmdoc/palmdocimport.h b/filters/kword/palmdoc/palmdocimport.h
index a97f9729..77b4cc73 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
private:
diff --git a/filters/kword/pdf/FilterDevice.cpp b/filters/kword/pdf/FilterDevice.cpp
index 5182f188..8a08c95c 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").tqarg(_data.imageIndex());
+ TQString name = TQString("pictures/picture%1.png").arg(_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 tqgeometry
+ // get image geometry
Image image;
image.mask = withMask;
computeGeometry(state, image);
diff --git a/filters/kword/pdf/FilterPage.cpp b/filters/kword/pdf/FilterPage.cpp
index 5391cb24..14d3d384 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].tqunicode() : 0) << ")" << endl;
+// << (str->len>0 ? s[0].unicode() : 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.tqalignment = Tabulator::Right;
+ tab.alignment = Tabulator::Right;
kdDebug(30516) << "tabulated text right aligned.." << endl;
- } else tab.tqalignment = Tabulator::Left;
+ } else tab.alignment = 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 tqalignment
+ // compute alignment
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 tqalignment
+ // finalize alignment
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.tqunicode())==Hyphen )
+ if ( !prev.isNull() && type(c.unicode())==Hyphen )
kdDebug(30516) << "hyphen ? " << TQString(prev)
- << " type=" << type(prev.tqunicode())
+ << " type=" << type(prev.unicode())
<< endl;
TextString *next =
((*it)->next ? (*it)->next->blocks->strings : 0);
- if ( !prev.isNull() && type(c.tqunicode())==Hyphen
- && isLetter( type(prev.tqunicode()) )
+ if ( !prev.isNull() && type(c.unicode())==Hyphen
+ && isLetter( type(prev.unicode()) )
&& 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.tqunicode(), res) ) {
+ switch ( PDFImport::checkSpecial(c.unicode(), 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.tqunicode() << endl;
+ kdDebug(30516) << "found symbol=" << c.unicode() << endl;
return Times;
//return Symbol;
default:
diff --git a/filters/kword/pdf/data.cpp b/filters/kword/pdf/data.cpp
index a6abf929..3236aa39 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")).tqarg(index);
+ : i18n("Picture %1")).arg(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]).tqarg(pageIndex);
+ TQString name = i18n(TEXT_FRAMESET_NAMES[i]).arg(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 tqlayout = _document.createElement("LAYOUT");
- paragraph.appendChild(tqlayout);
+ TQDomElement layout = _document.createElement("LAYOUT");
+ paragraph.appendChild(layout);
TQDomElement element = _document.createElement("NAME");
element.setAttribute("value", "Standard");
- tqlayout.appendChild(element);
+ layout.appendChild(element);
for (uint i=0; i<layouts.size(); i++)
- tqlayout.appendChild(layouts[i]);
+ layout.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 29e0eabc..74aa89e2 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 <tqlayout.h>
+#include <layout.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)").tqarg(nbPages), gbox);
+ _allButton = new TQRadioButton(i18n("All (%1 pages)").arg(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 tqalignment. "
- "Note that the tqlayout of some pages can "
+ "Also tries to compute the paragraph alignment. "
+ "Note that the layout 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").tqarg(_nbPages) : _range->text()) );
+ TQString("1-%1").arg(_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 1dd953aa..c8ecabcb 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", tqalignment);
+ element.setAttribute("type", alignment);
element.setAttribute("ptpos", pos);
element.setAttribute("filling", filling);
- if ( tqalignment==Character )
+ if ( alignment==Character )
element.setAttribute("alignchar", TQString(alignmentChar));
return element;
}
diff --git a/filters/kword/pdf/fstring.h b/filters/kword/pdf/fstring.h
index 6e4d0b6a..644c9398 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() : tqalignment(Left) {}
+ Tabulator() : alignment(Left) {}
TQDomElement createElement(Data &data) const;
public:
double pos;
- Alignment tqalignment;
+ Alignment alignment;
Filling filling;
TQChar alignmentChar;
};
diff --git a/filters/kword/pdf/misc.cpp b/filters/kword/pdf/misc.cpp
index 0ffc9dba..3cd0e1bf 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").tqarg(_left).tqarg(_right)
- .tqarg(_top).tqarg(_bottom);
+ return TQString("left=%1 right=%2 top=%3 bottom=%4").arg(_left).arg(_right)
+ .arg(_top).arg(_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.tqfamilies();
+ TQStringList list = fdb.families();
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 ffe27e1c..80ec92d0 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::ConversiontqStatus
+KoFilter::ConversionStatus
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 c54606f4..b2da781f 100644
--- a/filters/kword/pdf/pdfdocument.h
+++ b/filters/kword/pdf/pdfdocument.h
@@ -43,7 +43,7 @@ class Document
Document();
~Document() { clear(); }
- KoFilter::ConversiontqStatus init(const TQString &name,
+ KoFilter::ConversionStatus 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 bee3e39a..dfc56703 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::ConversiontqStatus PdfImport::convert(const TQCString& from,
+KoFilter::ConversionStatus PdfImport::convert(const TQCString& from,
const TQCString& to)
{
// check for proper conversion
@@ -63,7 +63,7 @@ KoFilter::ConversiontqStatus PdfImport::convert(const TQCString& from,
return KoFilter::NotImplemented;
// read file
- KoFilter::ConversiontqStatus result
+ KoFilter::ConversionStatus result
= _doc.init(m_chain->inputFile(), TQString(), TQString());
if ( result!=KoFilter::OK ) return result;
@@ -111,7 +111,7 @@ KoFilter::ConversiontqStatus 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.tqarg(it.current()) );
+ pd.setLabel( s.arg(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 9686714e..53ca8f97 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::ConversiontqStatus
+ KoFilter::ConversionStatus
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 ebbbff40..8de09e0e 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 tqunicodeCmap, macRomanCmap, msSymbolCmap;
+ int unicodeCmap, 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).
- tqunicodeCmap = macRomanCmap = msSymbolCmap = 0xffff;
+ unicodeCmap = macRomanCmap = msSymbolCmap = 0xffff;
for (i = 0; i < face->num_charmaps; ++i) {
if (face->charmaps[i]->platform_id == 3 &&
face->charmaps[i]->encoding_id == 1) {
- tqunicodeCmap = i;
+ unicodeCmap = 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 (tqunicodeCmap != 0xffff) {
- i = tqunicodeCmap;
+ if (unicodeCmap != 0xffff) {
+ i = unicodeCmap;
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 73a7f1d3..ccb880bf 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 tqunicodeCmap, macRomanCmap, msSymbolCmap;
+ int unicodeCmap, 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);
- tqunicodeCmap = macRomanCmap = msSymbolCmap = -1;
+ unicodeCmap = 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) {
- tqunicodeCmap = i;
+ unicodeCmap = 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 (tqunicodeCmap >= 0) {
- i = tqunicodeCmap;
+ if (unicodeCmap >= 0) {
+ i = unicodeCmap;
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 d25970de..8a7b36de 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();
- tqunicodeMaps = new GHash(gTrue);
+ unicodeMaps = 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();
- tqunicodeMapCache = new UnicodeMapCache();
+ unicodeMapCache = 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("tqunicodeMap")) {
+ } else if (!cmd->cmp("unicodeMap")) {
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 'tqunicodeMap' config file command (%s:%d)",
+ error(-1, "Bad 'unicodeMap' config file command (%s:%d)",
fileName->getCString(), line);
return;
}
encodingName = (GString *)tokens->get(1);
name = (GString *)tokens->get(2);
- if ((old = (GString *)tqunicodeMaps->remove(encodingName))) {
+ if ((old = (GString *)unicodeMaps->remove(encodingName))) {
delete old;
}
- tqunicodeMaps->add(encodingName->copy(), name->copy());
+ unicodeMaps->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(tqunicodeMaps, GString);
+ deleteGHash(unicodeMaps, GString);
deleteGList(toUnicodeDirs, GString);
deleteGHash(displayFonts, DisplayFontParam);
deleteGHash(displayCIDFonts, DisplayFontParam);
@@ -793,7 +793,7 @@ GlobalParams::~GlobalParams() {
delete cMapDirs;
delete cidToUnicodeCache;
- delete tqunicodeMapCache;
+ delete unicodeMapCache;
delete cMapCache;
}
@@ -825,7 +825,7 @@ UnicodeMap *GlobalParams::getResidentUnicodeMap(const GString *encodingName) {
FILE *GlobalParams::getUnicodeMapFile(const GString *encodingName) {
GString *fileName;
- if (!(fileName = (GString *)tqunicodeMaps->lookup(encodingName))) {
+ if (!(fileName = (GString *)unicodeMaps->lookup(encodingName))) {
return NULL;
}
return fopen(fileName->getCString(), "r");
@@ -959,7 +959,7 @@ UnicodeMap *GlobalParams::getUnicodeMap(GString *encodingName) {
map->incRefCnt();
return map;
}
- return tqunicodeMapCache->getUnicodeMap(encodingName);
+ return unicodeMapCache->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 1f3e4c53..86114a15 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 *tqunicodeMaps; // files for mappings from Unicode to char
+ GHash *unicodeMaps; // 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 (tqunicodeMap) to use for text
+ GString *textEncoding; // encoding (unicodeMap) 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 *tqunicodeMapCache;
+ UnicodeMapCache *unicodeMapCache;
CMapCache *cMapCache;
};
diff --git a/filters/kword/pdf/xpdf/xpdf/TTFont.cc b/filters/kword/pdf/xpdf/xpdf/TTFont.cc
index 6077f3c0..6107fd43 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 tqunicodeCmap, macRomanCmap, msSymbolCmap;
+ TT_UShort unicodeCmap, 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).
- tqunicodeCmap = macRomanCmap = msSymbolCmap = 0xffff;
+ unicodeCmap = 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) {
- tqunicodeCmap = i;
+ unicodeCmap = 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 (tqunicodeCmap != 0xffff) {
- i = tqunicodeCmap;
+ if (unicodeCmap != 0xffff) {
+ i = unicodeCmap;
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 d197e5cf..fe1185d7 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 tqunicodeMap file for the '%s' encoding",
+ error(-1, "Couldn't find unicodeMap 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 tqunicodeMap file for the '%s' encoding",
+ error(-1, "Bad line (%d) in unicodeMap file for the '%s' encoding",
line, encodingNameA->getCString());
}
} else {
- error(-1, "Bad line (%d) in tqunicodeMap file for the '%s' encoding",
+ error(-1, "Bad line (%d) in unicodeMap file for the '%s' encoding",
line, encodingNameA->getCString());
}
++line;
@@ -110,8 +110,8 @@ UnicodeMap *UnicodeMap::parse(GString *encodingNameA) {
UnicodeMap::UnicodeMap(GString *encodingNameA) {
encodingName = encodingNameA;
- tqunicodeOut = gFalse;
- kind = tqunicodeMapUser;
+ unicodeOut = gFalse;
+ kind = unicodeMapUser;
ranges = NULL;
len = 0;
eMaps = NULL;
@@ -119,11 +119,11 @@ UnicodeMap::UnicodeMap(GString *encodingNameA) {
refCnt = 1;
}
-UnicodeMap::UnicodeMap(const char *encodingNameA, GBool tqunicodeOutA,
+UnicodeMap::UnicodeMap(const char *encodingNameA, GBool unicodeOutA,
UnicodeMapRange *rangesA, int lenA) {
encodingName = new GString(encodingNameA);
- tqunicodeOut = tqunicodeOutA;
- kind = tqunicodeMapResident;
+ unicodeOut = unicodeOutA;
+ kind = unicodeMapResident;
ranges = rangesA;
len = lenA;
eMaps = NULL;
@@ -131,11 +131,11 @@ UnicodeMap::UnicodeMap(const char *encodingNameA, GBool tqunicodeOutA,
refCnt = 1;
}
-UnicodeMap::UnicodeMap(const char *encodingNameA, GBool tqunicodeOutA,
+UnicodeMap::UnicodeMap(const char *encodingNameA, GBool unicodeOutA,
UnicodeMapFunc funcA) {
encodingName = new GString(encodingNameA);
- tqunicodeOut = tqunicodeOutA;
- kind = tqunicodeMapFunc;
+ unicodeOut = unicodeOutA;
+ kind = unicodeMapFunc;
func = funcA;
eMaps = NULL;
eMapsLen = 0;
@@ -144,7 +144,7 @@ UnicodeMap::UnicodeMap(const char *encodingNameA, GBool tqunicodeOutA,
UnicodeMap::~UnicodeMap() {
delete encodingName;
- if (kind == tqunicodeMapUser && ranges) {
+ if (kind == unicodeMapUser && 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 == tqunicodeMapFunc) {
+ if (kind == unicodeMapFunc) {
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 < tqunicodeMapCacheSize; ++i) {
+ for (i = 0; i < unicodeMapCacheSize; ++i) {
cache[i] = NULL;
}
}
@@ -227,7 +227,7 @@ UnicodeMapCache::UnicodeMapCache() {
UnicodeMapCache::~UnicodeMapCache() {
int i;
- for (i = 0; i < tqunicodeMapCacheSize; ++i) {
+ for (i = 0; i < unicodeMapCacheSize; ++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 < tqunicodeMapCacheSize; ++i) {
+ for (i = 1; i < unicodeMapCacheSize; ++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[tqunicodeMapCacheSize - 1]) {
- cache[tqunicodeMapCacheSize - 1]->decRefCnt();
+ if (cache[unicodeMapCacheSize - 1]) {
+ cache[unicodeMapCacheSize - 1]->decRefCnt();
}
- for (j = tqunicodeMapCacheSize - 1; j >= 1; --j) {
+ for (j = unicodeMapCacheSize - 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 35506aab..189f3154 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 {
- tqunicodeMapUser, // read from a file
- tqunicodeMapResident, // static list of ranges
- tqunicodeMapFunc // function pointer
+ unicodeMapUser, // read from a file
+ unicodeMapResident, // static list of ranges
+ unicodeMapFunc // 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 tqunicodeOutA,
+ UnicodeMap(const char *encodingNameA, GBool unicodeOutA,
UnicodeMapRange *rangesA, int lenA);
// Create a resident UnicodeMap that uses a function instead of a
// list of ranges.
- UnicodeMap(const char *encodingNameA, GBool tqunicodeOutA,
+ UnicodeMap(const char *encodingNameA, GBool unicodeOutA,
UnicodeMapFunc funcA);
~UnicodeMap();
@@ -64,7 +64,7 @@ public:
GString *getEncodingName() { return encodingName; }
- GBool isUnicode() { return tqunicodeOut; }
+ GBool isUnicode() { return unicodeOut; }
// Return true if this UnicodeMap matches the specified
// <encodingNameA>.
@@ -82,7 +82,7 @@ private:
GString *encodingName;
UnicodeMapKind kind;
- GBool tqunicodeOut;
+ GBool unicodeOut;
union {
UnicodeMapRange *ranges; // (user, resident)
UnicodeMapFunc func; // (func)
@@ -95,7 +95,7 @@ private:
//------------------------------------------------------------------------
-#define tqunicodeMapCacheSize 4
+#define unicodeMapCacheSize 4
class UnicodeMapCache {
public:
@@ -110,7 +110,7 @@ public:
private:
- UnicodeMap *cache[tqunicodeMapCacheSize];
+ UnicodeMap *cache[unicodeMapCacheSize];
};
#endif
diff --git a/filters/kword/pdf/xpdf/xpdf/XPDFApp.cc b/filters/kword/pdf/xpdf/xpdf/XPDFApp.cc
index d0bda665..e456310b 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},
- {"-tqgeometry", ".tqgeometry", XrmoptionSepArg, NULL},
- {"-g", ".tqgeometry", XrmoptionSepArg, NULL},
+ {"-geometry", ".geometry", XrmoptionSepArg, NULL},
+ {"-g", ".geometry", 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 tqgeometry;
+ String geometry;
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, tqgeometry), XtRString, (XtPointer)NULL },
+ { "geometry", "Geometry", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, geometry), 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);
- tqgeometry = resources.tqgeometry ? new GString(resources.tqgeometry)
+ geometry = resources.geometry ? new GString(resources.geometry)
: (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 (tqgeometry) {
- delete tqgeometry;
+ if (geometry) {
+ delete geometry;
}
if (title) {
delete title;
diff --git a/filters/kword/pdf/xpdf/xpdf/XPDFApp.h b/filters/kword/pdf/xpdf/xpdf/XPDFApp.h
index 46aa28dc..4875456e 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 tqgeometry; }
+ GString *getGeometry() { return geometry; }
GString *getTitle() { return title; }
GBool getInstallCmap() { return installCmap; }
int getRGBCubeSize() { return rgbCubeSize; }
@@ -90,7 +90,7 @@ private:
Widget remoteWin;
//----- resource/option values
- GString *tqgeometry;
+ GString *geometry;
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 290861b9..8f5baeb5 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 *tqchildren;
+ XPDFTreeEntry *children;
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 tqlayout(Widget widget, Widget instigator);
+static void layout(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 needRetqlayout(Widget oldWidget, Widget newWidget);
+static Boolean needRelayout(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_tqgeometry
+ &queryGeometry, // query_geometry
NULL, // display_accelerator
NULL // extension
},
@@ -195,9 +195,9 @@ externaldef(xpdftreeclassrec) XPDFTreeClassRec xpdfTreeClassRec = {
{ // XPDFTree
&createGC, // createGC
&destroyGC, // destroyGC
- &tqlayout, // tqlayout
+ &layout, // layout
&calcSize, // calcSize
- &needRetqlayout, // needRetqlayout
+ &needRelayout, // needRelayout
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.tqlayout == XPDFInheritLayout) {
- wc->treeClass.tqlayout = sc->treeClass.tqlayout;
+ if (wc->treeClass.layout == XPDFInheritLayout) {
+ wc->treeClass.layout = sc->treeClass.layout;
}
if (wc->treeClass.calcSize == XPDFInheritCalcSize) {
wc->treeClass.calcSize = sc->treeClass.calcSize;
}
- if (wc->treeClass.needRetqlayout == XPDFInheritNeedRetqlayout) {
- wc->treeClass.needRetqlayout = sc->treeClass.needRetqlayout;
+ if (wc->treeClass.needRelayout == XPDFInheritNeedRelayout) {
+ wc->treeClass.needRelayout = sc->treeClass.needRelayout;
}
}
@@ -259,8 +259,8 @@ static void destroy(Widget widget) {
}
static void destroySubtree(XPDFTreeEntry *e) {
- if (e->tqchildren) {
- destroySubtree(e->tqchildren);
+ if (e->children) {
+ destroySubtree(e->children);
}
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.tqlayout) {
- (*cls->treeClass.tqlayout)(widget, NULL);
+ if (cls->treeClass.layout) {
+ (*cls->treeClass.layout)(widget, NULL);
} else {
- tqlayout(widget, NULL);
+ layout(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->tqchildren) {
+ if (e->children) {
if (c->entryExpanded) {
drawExpandedIcon(w, x - 8, y);
y2 = y; // make gcc happy
- for (child = e->tqchildren; child; child = child->next) {
+ for (child = e->children; 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 retqlayout, redisp;
+ Boolean relayout, redisp;
- // check to see if tqlayout-affecting resources have changed
- if (cls->treeClass.needRetqlayout) {
- retqlayout = (*cls->treeClass.needRetqlayout)((Widget)ow, (Widget)nw);
+ // check to see if layout-affecting resources have changed
+ if (cls->treeClass.needRelayout) {
+ relayout = (*cls->treeClass.needRelayout)((Widget)ow, (Widget)nw);
} else {
- retqlayout = needRetqlayout((Widget)ow, (Widget)nw);
+ relayout = needRelayout((Widget)ow, (Widget)nw);
}
redisp = False;
- if (retqlayout) {
+ if (relayout) {
// 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, tqlayout manually
+ // if resources have changed but size hasn't, layout manually
// (because Xt just looks at the size)
if (nw->core.width == ow->core.width &&
nw->core.height == ow->core.height) {
- if (cls->treeClass.tqlayout) {
- (*cls->treeClass.tqlayout)((Widget)nw, NULL);
+ if (cls->treeClass.layout) {
+ (*cls->treeClass.layout)((Widget)nw, NULL);
} else {
- tqlayout((Widget)nw, NULL);
+ layout((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 tqgeometry request, so accept the compromise
- // and retqlayout
+ // our parent rejected a geometry request, so accept the compromise
+ // and relayout
if (!reply->request_mode) {
- if (cls->treeClass.tqlayout) {
- (*cls->treeClass.tqlayout)(newWidget, NULL);
+ if (cls->treeClass.layout) {
+ (*cls->treeClass.layout)(newWidget, NULL);
} else {
- tqlayout(newWidget, NULL);
+ layout(newWidget, NULL);
}
}
*request = *reply;
@@ -454,7 +454,7 @@ static XtGeometryResult geometryManager(Widget widget,
return XtGeometryNo;
}
- // save the current tqgeometry
+ // save the current geometry
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 tqgeometry request to our parent
+ // send geometry 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 tqgeometry
+ // restore the original geometry
w->core.width = curWidth;
w->core.height = curHeight;
w->core.border_width = curBW;
} else {
- if (cls->treeClass.tqlayout) {
- (*cls->treeClass.tqlayout)((Widget)w, widget);
+ if (cls->treeClass.layout) {
+ (*cls->treeClass.layout)((Widget)w, widget);
} else {
- tqlayout((Widget)w, widget);
+ layout((Widget)w, widget);
}
}
@@ -529,11 +529,11 @@ static void changeManaged(Widget widget) {
while (XtMakeResizeRequest(widget, width, height, &width, &height)
== XtGeometryAlmost) ;
- // retqlayout
- if (cls->treeClass.tqlayout) {
- (*cls->treeClass.tqlayout)(widget, NULL);
+ // relayout
+ if (cls->treeClass.layout) {
+ (*cls->treeClass.layout)(widget, NULL);
} else {
- tqlayout(widget, NULL);
+ layout(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->tqchildren = NULL;
+ c->e->children = NULL;
c->e->next = NULL;
if (c->entryParent) {
- insertChildOnList(c->e, &XPDFTreeCPart(c->entryParent)->e->tqchildren);
+ insertChildOnList(c->e, &XPDFTreeCPart(c->entryParent)->e->children);
} else {
insertChildOnList(c->e, &w->tree.root);
}
@@ -573,11 +573,11 @@ static void deleteSubtree(Widget widget) {
if (!c->e) {
return;
}
- while (c->e->tqchildren) {
- deleteSubtree(c->e->tqchildren->widget);
+ while (c->e->children) {
+ deleteSubtree(c->e->children->widget);
}
if (c->entryParent) {
- deleteChildFromList(c->e, &XPDFTreeCPart(c->entryParent)->e->tqchildren);
+ deleteChildFromList(c->e, &XPDFTreeCPart(c->entryParent)->e->children);
} 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 retqlayout;
+ Boolean relayout;
Dimension width, height;
if (!XtIsManaged(newWidget)) {
@@ -599,25 +599,25 @@ static Boolean constraintSetValues(Widget oldWidget, Widget requestWidget,
}
oc = XPDFTreeCPart(oldWidget);
nc = XPDFTreeCPart(newWidget);
- retqlayout = False;
+ relayout = False;
if (nc->entryParent != oc->entryParent ||
nc->entryPosition != oc->entryPosition) {
if (oc->entryParent) {
- deleteChildFromList(oc->e, &XPDFTreeCPart(oc->entryParent)->e->tqchildren);
+ deleteChildFromList(oc->e, &XPDFTreeCPart(oc->entryParent)->e->children);
} else {
deleteChildFromList(oc->e, &w->tree.root);
}
if (nc->entryParent) {
- insertChildOnList(nc->e, &XPDFTreeCPart(nc->entryParent)->e->tqchildren);
+ insertChildOnList(nc->e, &XPDFTreeCPart(nc->entryParent)->e->children);
} else {
insertChildOnList(nc->e, &w->tree.root);
}
- retqlayout = True;
+ relayout = True;
} else if (nc->entryExpanded != oc->entryExpanded) {
- retqlayout = True;
+ relayout = True;
}
- if (retqlayout) {
+ if (relayout) {
// 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) ;
- // retqlayout the widget
- if (cls->treeClass.tqlayout) {
- (*cls->treeClass.tqlayout)((Widget)w, NULL);
+ // relayout the widget
+ if (cls->treeClass.layout) {
+ (*cls->treeClass.layout)((Widget)w, NULL);
} else {
- tqlayout((Widget)w, NULL);
+ layout((Widget)w, NULL);
}
}
- return retqlayout;
+ return relayout;
}
static void insertChildOnList(XPDFTreeEntry *e, XPDFTreeEntry **listHead) {
@@ -701,7 +701,7 @@ static void destroyGC(Widget widget) {
XtReleaseGC(widget, w->tree.dottedGC);
}
-static void tqlayout(Widget widget, Widget instigator) {
+static void layout(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 tqchildren
+ // place this entry's children
x += xpdfTreeIndent;
- for (child = e->tqchildren; child; child = child->next) {
+ for (child = e->children; 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 tqchildren
+ // if this entry is expanded, get size of all of its children
if (c->entryExpanded) {
- for (child = e->tqchildren; child; child = child->next) {
+ for (child = e->children; 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 needRetqlayout(Widget oldWidget, Widget newWidget) {
+static Boolean needRelayout(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)->tqchildren) {
+ (*e)->children) {
*onExpandIcon = True;
return True;
}
c = XPDFTreeCPart(child);
if (!c || c->entryExpanded) {
- for (e2 = (*e)->tqchildren; e2; e2 = e2->next) {
+ for (e2 = (*e)->children; 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 9f31f9e2..16ab137a 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 XPDFInheritNeedRetqlayout ((XPDFNeedRelayoutProc)_XtInherit)
+#define XPDFInheritNeedRelayout ((XPDFNeedRelayoutProc)_XtInherit)
typedef struct {
XtWidgetProc createGC;
XtWidgetProc destroyGC;
- XPDFLayoutProc tqlayout;
+ XPDFLayoutProc layout;
XPDFCalcSizeProc calcSize;
- XPDFNeedRelayoutProc needRetqlayout;
+ XPDFNeedRelayoutProc needRelayout;
XtPointer extension;
} XPDFTreeClassPart;
diff --git a/filters/kword/pdf/xpdf/xpdf/XPDFViewer.cc b/filters/kword/pdf/xpdf/xpdf/XPDFViewer.cc
index de691914..a8c8f8f0 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], XmNtqgeometry, "+0+0"); ++n;
+ XtSetArg(args[n], XmNgeometry, "+0+0"); ++n;
} else if (app->getGeometry()) {
- XtSetArg(args[n], XmNtqgeometry, app->getGeometry()->getCString()); ++n;
+ XtSetArg(args[n], XmNgeometry, 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], XmNtqalignment, XmALIGNMENT_BEGINNING); ++n;
+ XtSetArg(args[n], XmNalignment, 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], XmNtqalignment, XmALIGNMENT_BEGINNING); ++n;
+ XtSetArg(args[n], XmNalignment, 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 d4103df2..ef47fb6e 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 tqgeometry"},
- {"-tqgeometry", argStringDummy, NULL, 0,
- "initial window tqgeometry"},
+ "initial window geometry"},
+ {"-geometry", argStringDummy, NULL, 0,
+ "initial window geometry"},
{"-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 2fa566fa..8d160b57 100644
--- a/filters/kword/rtf/export/ExportFilter.cc
+++ b/filters/kword/rtf/export/ExportFilter.cc
@@ -21,7 +21,7 @@
*/
#include <tqstring.h>
-#include <tqtextcodec.h>
+#include <textcodec.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).tqlayout,(*it).formattingList);
+ rowText += ProcessParagraphData( (*it).text,(*it).layout,(*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.tqat(i) = image.tqat(i+22); // As we use uint, we need at() ( [] uses int only .)
+ image.at(i) = image.at(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& tqlayout, const ValueListFormatData &paraFormatDataList)
+ const LayoutData& layout, const ValueListFormatData &paraFormatDataList)
{
TQString str;
TQString content;
@@ -374,40 +374,40 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
markup += "\\intbl";
//lists
- if (tqlayout.counter.style)
+ if (layout.counter.style)
{
markup += "{\\pntext\\pard\\plain";
- if( tqlayout.formatData.text.fontSize >= 0)
+ if( layout.formatData.text.fontSize >= 0)
{
markup += "\\fs";
- markup += TQString::number((2 * tqlayout.formatData.text.fontSize));
- markup += lookupFont("\\f",tqlayout.formatData.text.fontName);
+ markup += TQString::number((2 * layout.formatData.text.fontSize));
+ markup += lookupFont("\\f",layout.formatData.text.fontName);
}
markup += " ";
- markup += tqlayout.counter.text;
+ markup += layout.counter.text;
markup += "\\tab}{\\*\\pn";
- if (tqlayout.counter.style > 5)
+ if (layout.counter.style > 5)
{
markup += "\\pnlvlblt ";
markup += "{\\pntxtb ";
- if (!tqlayout.counter.lefttext.isEmpty() && tqlayout.counter.lefttext != "{" && tqlayout.counter.lefttext != "}")
+ if (!layout.counter.lefttext.isEmpty() && layout.counter.lefttext != "{" && layout.counter.lefttext != "}")
{
- markup += tqlayout.counter.lefttext;
+ markup += layout.counter.lefttext;
}
- switch (tqlayout.counter.style)
+ switch (layout.counter.style)
{
case 6:
{
//custom bullets (one char)
//TODO: use correct character/sign for bullet
- markup += tqlayout.counter.customCharacter;
+ markup += layout.counter.customCharacter;
break;
}
case 7:
{
//custom bullets (complex)
- markup += tqlayout.counter.text;
+ markup += layout.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 += tqlayout.counter.text;
+ markup += layout.counter.text;
break;
}
default:
@@ -445,23 +445,23 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
}
else
{
- if (tqlayout.counter.numbering!=0)
+ if (layout.counter.numbering!=0)
{
markup += "\\pnlvl";
- markup += TQString::number(tqlayout.counter.depth + 1);
+ markup += TQString::number(layout.counter.depth + 1);
markup += "\\pnprev1";
}
- else if (tqlayout.counter.style==1)
+ else if (layout.counter.style==1)
{
markup += "\\pnlvlbody";
}
else
{
markup += "\\pnlvl";
- markup += TQString::number(11 - tqlayout.counter.style);
+ markup += TQString::number(11 - layout.counter.style);
}
- switch (tqlayout.counter.style)
+ switch (layout.counter.style)
{
case 1:
{
@@ -492,18 +492,18 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
markup += "\\pndec";
}
markup += "{\\pntxtb ";
- markup += tqlayout.counter.lefttext;
+ markup += layout.counter.lefttext;
markup += " }";
}
markup += "{\\pntxta ";
- markup += tqlayout.counter.righttext;
+ markup += layout.counter.righttext;
markup += " }";
// ### FIXME: that is too late! And why at every list paragraph? (See bug #88241)
- if (tqlayout.counter.start!=0)
+ if (layout.counter.start!=0)
{
markup += "\\pnstart";
- markup += TQString::number(tqlayout.counter.start);
+ markup += TQString::number(layout.counter.start);
}
else
{
@@ -511,15 +511,15 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
}
markup += "\\pnindent0\\pnhang";
- if( tqlayout.formatData.text.fontSize > 0 )
+ if( layout.formatData.text.fontSize > 0 )
{
markup += "\\pnfs";
- markup += TQString::number((2 * tqlayout.formatData.text.fontSize));
+ markup += TQString::number((2 * layout.formatData.text.fontSize));
}
- if( !tqlayout.formatData.text.fontName.isEmpty() )
+ if( !layout.formatData.text.fontName.isEmpty() )
{
- markup += lookupFont("\\pnf", tqlayout.formatData.text.fontName);
+ markup += lookupFont("\\pnf", layout.formatData.text.fontName);
}
markup += "}";
@@ -527,20 +527,20 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
LayoutData styleLayout;
- markup += lookupStyle(tqlayout.styleName, styleLayout);
- markup += layoutToRtf(styleLayout,tqlayout,true);
+ markup += lookupStyle(layout.styleName, styleLayout);
+ markup += layoutToRtf(styleLayout,layout,true);
- if ( 1==tqlayout.formatData.text.verticalAlignment )
+ if ( 1==layout.formatData.text.verticalAlignment )
{
markup += "\\sub"; //Subscript
}
- else if ( 2==tqlayout.formatData.text.verticalAlignment )
+ else if ( 2==layout.formatData.text.verticalAlignment )
{
markup += "\\super"; //Superscript
}
- if (tqlayout.pageBreakBefore)
+ if (layout.pageBreakBefore)
content += "\\page ";
@@ -554,7 +554,7 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
TQString partialText;
- FormatData formatRef = tqlayout.formatData;
+ FormatData formatRef = layout.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).tqlayout,(*it).formattingList);
+ fstr += ProcessParagraphData( (*it).text, (*it).layout,(*it).formattingList);
m_prefix = prefixSaved;
content += "{\\super ";
content += automatic ? "\\chftn " : value;
@@ -779,7 +779,7 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
}
}
- if (tqlayout.pageBreakAfter)
+ if (layout.pageBreakAfter)
content += "\\page";
if (!content.isEmpty())
@@ -807,10 +807,10 @@ TQString RTFWorker::ProcessParagraphData ( const TQString &paraText,
}
bool RTFWorker::doFullParagraph(const TQString& paraText,
- const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList)
+ const LayoutData& layout, const ValueListFormatData& paraFormatDataList)
{
kdDebug(30515) << "Entering RTFWorker::doFullParagraph" << endl << paraText << endl;
- TQString par = ProcessParagraphData( paraText, tqlayout, paraFormatDataList);
+ TQString par = ProcessParagraphData( paraText, layout, 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).tqlayout,(*it).formattingList);
+ content += ProcessParagraphData( (*it).text,(*it).layout,(*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).tqlayout,(*it).formattingList);
+ content += ProcessParagraphData( (*it).text,(*it).layout,(*it).formattingList);
if (content!="\\par\\pard\\plain")
{
@@ -967,10 +967,10 @@ void RTFWorker::writeFontData(void)
}
#else
else
- // TQFontInfo:tqstyleHint() does not guess anything, it just returns what is in the TQFont. Nothing put in, nothing gets out.
+ // TQFontInfo:styleHint() does not guess anything, it just returns what is in the TQFont. Nothing put in, nothing gets out.
{
TQFontInfo info(*it);
- switch (info.tqstyleHint())
+ switch (info.styleHint())
{
case TQFont::SansSerif:
default:
@@ -1182,7 +1182,7 @@ TQString RTFWorker::closeSpan(const FormatData& , const FormatData& )
return result;
}
-// The following function encodes the kword tqunicode characters into
+// The following function encodes the kword unicode 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 tqunicode char from the string
- const ushort ch = TQCh.tqunicode(); // take tqunicode value of the char
+ TQChar TQCh ( text.at( i ) ); // get out one unicode char from the string
+ const ushort ch = TQCh.unicode(); // take unicode 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 tqunicode with a replacement character.
+ // encode this as decimal unicode 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& tqlayout)
+bool RTFWorker::doFullDefineStyle(LayoutData& layout)
{
//Register the new style in the style list
- m_styleList << tqlayout;
+ m_styleList << layout;
// Now we must register a few things (with help of the lookup methods.)
- lookupFont("\\f", tqlayout.formatData.text.fontName);
- lookupColor(TQString(), tqlayout.formatData.text.fgColor);
- lookupColor(TQString(), tqlayout.formatData.text.bgColor);
+ lookupFont("\\f", layout.formatData.text.fontName);
+ lookupColor(TQString(), layout.formatData.text.fgColor);
+ lookupColor(TQString(), layout.formatData.text.bgColor);
return true;
}
@@ -1459,121 +1459,121 @@ TQString RTFWorker::textFormatToRtf(const TextFormatting& formatOrigin,
}
TQString RTFWorker::layoutToRtf(const LayoutData& layoutOrigin,
- const LayoutData& tqlayout, const bool force)
+ const LayoutData& layout, const bool force)
{
TQString strLayout;
- if (force || (layoutOrigin.tqalignment!=tqlayout.tqalignment))
+ if (force || (layoutOrigin.alignment!=layout.alignment))
{
- if (tqlayout.tqalignment=="left")
+ if (layout.alignment=="left")
strLayout += "\\ql";
- else if (tqlayout.tqalignment== "right")
+ else if (layout.alignment== "right")
strLayout += "\\qr";
- else if (tqlayout.tqalignment=="center")
+ else if (layout.alignment=="center")
strLayout += "\\qc";
- else if (tqlayout.tqalignment=="justify")
+ else if (layout.alignment=="justify")
strLayout += "\\qj";
- else if ( tqlayout.tqalignment=="auto")
+ else if ( layout.alignment=="auto")
{
// ### TODO: what for BIDI?
//strLayout += "\\ql";
}
else
{
- kdWarning(30515) << "Unknown tqalignment: " << tqlayout.tqalignment << endl;
+ kdWarning(30515) << "Unknown alignment: " << layout.alignment << endl;
}
}
- if ((tqlayout.indentLeft>=0.0)
- && (force || (layoutOrigin.indentLeft!=tqlayout.indentLeft)))
+ if ((layout.indentLeft>=0.0)
+ && (force || (layoutOrigin.indentLeft!=layout.indentLeft)))
{
strLayout += "\\li";
- strLayout += TQString::number(int(tqlayout.indentLeft)*20, 10);
+ strLayout += TQString::number(int(layout.indentLeft)*20, 10);
}
- if ((tqlayout.indentRight>=0.0)
- && (force || (layoutOrigin.indentRight!=tqlayout.indentRight)))
+ if ((layout.indentRight>=0.0)
+ && (force || (layoutOrigin.indentRight!=layout.indentRight)))
{
strLayout += "\\ri";
- strLayout += TQString::number(int(tqlayout.indentRight)*20, 10);
+ strLayout += TQString::number(int(layout.indentRight)*20, 10);
}
- if (force || (layoutOrigin.indentFirst!=tqlayout.indentFirst))
+ if (force || (layoutOrigin.indentFirst!=layout.indentFirst))
{
strLayout += "\\fi";
- strLayout += TQString::number(int(tqlayout.indentFirst)*20, 10);
+ strLayout += TQString::number(int(layout.indentFirst)*20, 10);
}
- if ((tqlayout.marginBottom>=0.0)
- && (force || (layoutOrigin.marginBottom!=tqlayout.marginBottom)))
+ if ((layout.marginBottom>=0.0)
+ && (force || (layoutOrigin.marginBottom!=layout.marginBottom)))
{
strLayout += "\\sa";
- strLayout += TQString::number(int(tqlayout.marginBottom)*20 ,10);
+ strLayout += TQString::number(int(layout.marginBottom)*20 ,10);
}
- if ((tqlayout.marginTop>=0.0)
- && (force || (layoutOrigin.marginTop!=tqlayout.marginTop)))
+ if ((layout.marginTop>=0.0)
+ && (force || (layoutOrigin.marginTop!=layout.marginTop)))
{
strLayout += "\\sb";
- strLayout += TQString::number(int(tqlayout.marginTop)*20, 10);
+ strLayout += TQString::number(int(layout.marginTop)*20, 10);
}
- if (force || (layoutOrigin.keepLinesTogether!=tqlayout.keepLinesTogether))
+ if (force || (layoutOrigin.keepLinesTogether!=layout.keepLinesTogether))
{
- if(tqlayout.keepLinesTogether) strLayout += "\\keep";
+ if(layout.keepLinesTogether) strLayout += "\\keep";
}
- // Note: there seems to be too many problems of using a page break in a tqlayout
+ // Note: there seems to be too many problems of using a page break in a layout
// - 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!=tqlayout.pageBreakBefore))
+ if (force || (layoutOrigin.pageBreakBefore!=layout.pageBreakBefore))
{
- if(tqlayout.pageBreakBefore) strLayout += "\\pagebb";
+ if(layout.pageBreakBefore) strLayout += "\\pagebb";
}
// Note: RTF doesn't specify "page break after"
// \*\pgbrk0 is used after OpenOffice.org Writer
- if (force || (layoutOrigin.pageBreakAfter!=tqlayout.pageBreakAfter))
+ if (force || (layoutOrigin.pageBreakAfter!=layout.pageBreakAfter))
{
- if(tqlayout.pageBreakAfter) strLayout += "\\*\\pgbrk0";
+ if(layout.pageBreakAfter) strLayout += "\\*\\pgbrk0";
}
#endif
if (force
- || ( layoutOrigin.lineSpacingType != tqlayout.lineSpacingType )
- || ( layoutOrigin.lineSpacing != tqlayout.lineSpacing ) )
+ || ( layoutOrigin.lineSpacingType != layout.lineSpacingType )
+ || ( layoutOrigin.lineSpacing != layout.lineSpacing ) )
{
- if ( tqlayout.lineSpacingType==LayoutData::LS_SINGLE )
+ if ( layout.lineSpacingType==LayoutData::LS_SINGLE )
;// do nothing, single linespace is default in RTF
- else if ( tqlayout.lineSpacingType==LayoutData::LS_ONEANDHALF )
+ else if ( layout.lineSpacingType==LayoutData::LS_ONEANDHALF )
strLayout += "\\sl360\\slmult1"; // one-and-half linespace
- else if ( tqlayout.lineSpacingType==LayoutData::LS_DOUBLE )
+ else if ( layout.lineSpacingType==LayoutData::LS_DOUBLE )
strLayout += "\\sl480\\slmult1"; // double linespace
- else if ( tqlayout.lineSpacingType==LayoutData::LS_ATLEAST )
- strLayout += TQString("\\sl%1\\slmult0").tqarg(int(tqlayout.lineSpacing)*20);
+ else if ( layout.lineSpacingType==LayoutData::LS_ATLEAST )
+ strLayout += TQString("\\sl%1\\slmult0").arg(int(layout.lineSpacing)*20);
- else if ( tqlayout.lineSpacingType==LayoutData::LS_MULTIPLE )
- strLayout += TQString("\\sl%1\\slmult1").tqarg( int(tqlayout.lineSpacing)*240 );
+ else if ( layout.lineSpacingType==LayoutData::LS_MULTIPLE )
+ strLayout += TQString("\\sl%1\\slmult1").arg( int(layout.lineSpacing)*240 );
- else if ( tqlayout.lineSpacingType==LayoutData::LS_CUSTOM )
+ else if ( layout.lineSpacingType==LayoutData::LS_CUSTOM )
// "Custom" in KWord is like "Exactly" in MS Word
- strLayout += TQString("\\sl-%1\\slmult0").tqarg(int(tqlayout.lineSpacing)*20);
+ strLayout += TQString("\\sl-%1\\slmult0").arg(int(layout.lineSpacing)*20);
else
- kdWarning(30515) << "Unsupported lineSpacingType: " << tqlayout.lineSpacingType << " (Ignoring!)" << endl;
+ kdWarning(30515) << "Unsupported lineSpacingType: " << layout.lineSpacingType << " (Ignoring!)" << endl;
}
- if (!tqlayout.tabulatorList.isEmpty()
- && (force || (layoutOrigin.tabulatorList!=tqlayout.tabulatorList) ))
+ if (!layout.tabulatorList.isEmpty()
+ && (force || (layoutOrigin.tabulatorList!=layout.tabulatorList) ))
{
TabulatorList::ConstIterator it;
- for (it=tqlayout.tabulatorList.begin();it!=tqlayout.tabulatorList.end();++it)
+ for (it=layout.tabulatorList.begin();it!=layout.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( tqlayout.shadowDistance > 0 )
+ if( layout.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,
- tqlayout.formatData.text,force);
+ layout.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 tqlayout;
- m_styleList << tqlayout;
- returnLayout=tqlayout;
+ LayoutData layout;
+ m_styleList << layout;
+ returnLayout=layout;
strMarkup += TQString::number(counter);
return strMarkup;
diff --git a/filters/kword/rtf/export/ExportFilter.h b/filters/kword/rtf/export/ExportFilter.h
index 88158efe..f5707680 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& tqlayout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
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& tqlayout);
+ virtual bool doFullDefineStyle(LayoutData& layout);
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& tqlayout, const ValueListFormatData &paraFormatDataList);
+ const LayoutData& layout, 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& tqlayout, const bool force);
+ const LayoutData& layout, 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 15ff976b..6f23530b 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::ConversiontqStatus RTFExport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus RTFExport::convert( const TQCString& from, const TQCString& to )
{
if ((from != "application/x-kword") || (to != "text/rtf" && to != "application/msword" ))
{
@@ -77,7 +77,7 @@ KoFilter::ConversiontqStatus RTFExport::convert( const TQCString& from, const TQ
return KoFilter::StupidError;
}
- KoFilter::ConversiontqStatus result=leader->convert(m_chain, from,to );
+ KoFilter::ConversionStatus 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 060139ed..f43f6a07 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 <tqtextstream.h>
+#include <textstream.h>
#include <tqfile.h>
#include <tqobject.h>
@@ -39,7 +39,7 @@ public:
RTFExport(KoFilter *parent, const char *name, const TQStringList &);
virtual ~RTFExport() {}
- virtual KoFilter::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 94fad697..eb8c467d 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.tqlayout.border, 0 ),
+ MEMBER( 0L, "box", setEnumProperty, state.layout.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.tqlayout.firstIndent, 0 ),
+ MEMBER( 0L, "fi", setNumericProperty, state.layout.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.tqlayout.inTable, true ),
+ MEMBER( 0L, "intbl", setFlagProperty, state.layout.inTable, true ),
PROP( "@pict", "jpegblip", setPictureType, 0L, RTFPicture::JPEG ),
- MEMBER( 0L, "keep", setFlagProperty, state.tqlayout.keep, true ),
- MEMBER( 0L, "keepn", setFlagProperty, state.tqlayout.keepNext, true ),
+ MEMBER( 0L, "keep", setFlagProperty, state.layout.keep, true ),
+ MEMBER( 0L, "keepn", setFlagProperty, state.layout.keepNext, true ),
MEMBER( "@rtf", "landscape", setFlagProperty, landscape, true ),
PROP( 0L, "ldblquote", insertSymbol, 0L, 0x201c ),
- MEMBER( 0L, "li", setNumericProperty, state.tqlayout.leftIndent, 0 ),
+ MEMBER( 0L, "li", setNumericProperty, state.layout.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.tqlayout.pageBB, true ),
+ MEMBER( 0L, "pagebb", setFlagProperty, state.layout.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.tqlayout.pageBA, true ),
+ MEMBER( 0L, "pgbrk", setToggleProperty, state.layout.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.tqlayout.tqalignment, RTFLayout::Centered ),
- MEMBER( 0L, "qj", setEnumProperty, state.tqlayout.tqalignment, RTFLayout::Justified ),
- MEMBER( 0L, "ql", setEnumProperty, state.tqlayout.tqalignment, RTFLayout::Left ),
+ 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 ),
PROP( 0L, "qmspace", insertSymbol, 0L, 0x2004 ),
- MEMBER( 0L, "qr", setEnumProperty, state.tqlayout.tqalignment, RTFLayout::Right ),
+ MEMBER( 0L, "qr", setEnumProperty, state.layout.alignment, RTFLayout::Right ),
PROP( 0L, "rdblquote", insertSymbol, 0L, 0x201d ),
MEMBER( "@colortbl", "red", setNumericProperty, red, 0 ),
- MEMBER( 0L, "ri", setNumericProperty, state.tqlayout.rightIndent, 0 ),
+ MEMBER( 0L, "ri", setNumericProperty, state.layout.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.tqlayout.style, 0 ),
- MEMBER( 0L, "sa", setNumericProperty, state.tqlayout.spaceAfter, 0 ),
- MEMBER( 0L, "sb", setNumericProperty, state.tqlayout.spaceBefore, 0 ),
+ 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, "scaps", setToggleProperty, state.format.smallCaps, 0 ),
PROP( "Text", "sect", insertPageBreak, 0L, 0 ),
PROP( 0L, "sectd", setSectionDefaults, 0L, 0 ),
- MEMBER( 0L, "sl", setNumericProperty, state.tqlayout.spaceBetween, 0 ),
- MEMBER( 0L, "slmult", setToggleProperty, state.tqlayout.spaceBetweenMultiple, 0 ),
+ MEMBER( 0L, "sl", setNumericProperty, state.layout.spaceBetween, 0 ),
+ MEMBER( 0L, "slmult", setToggleProperty, state.layout.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.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, "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, "trleft", setNumericProperty, state.tableRow.left, 0 ),
MEMBER( 0L, "trowd", setTableRowDefaults, state.tableRow, 0 ),
- 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, "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, "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::ConversiontqStatus RTFImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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::ConversiontqStatus RTFImport::convert( const TQCString& from, const TQ
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?").tqarg( 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?").arg( token.value ),
i18n("KWord's RTF Import Filter") ) == KMessageBox::Yes );
}
if ( !force )
@@ -403,7 +403,7 @@ KoFilter::ConversiontqStatus RTFImport::convert( const TQCString& from, const TQ
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?").tqarg( 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?").arg( token.value ),
i18n("KWord's RTF Import Filter") ) == KMessageBox::Yes );
}
if ( !force )
@@ -422,7 +422,7 @@ KoFilter::ConversiontqStatus RTFImport::convert( const TQCString& from, const TQ
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?").tqarg( 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?").arg( token.value ),
i18n("KWord's RTF Import Filter") ) == KMessageBox::Yes );
}
if ( !force )
@@ -439,7 +439,7 @@ KoFilter::ConversiontqStatus RTFImport::convert( const TQCString& from, const TQ
if ( !m_batch )
{
KMessageBox::error( 0L,
- i18n("The RTF document cannot be loaded, as it has an unexpected first keyword: \\%1.").tqarg( token.text ),
+ i18n("The RTF document cannot be loaded, as it has an unexpected first keyword: \\%1.").arg( token.text ),
i18n("KWord's RTF Import Filter"), 0 );
}
return KoFilter::WrongFormat;
@@ -731,7 +731,7 @@ KoFilter::ConversiontqStatus RTFImport::convert( const TQCString& from, const TQ
// Search for 'following' style
for (TQValueList<RTFStyle>::ConstIterator it2=styleSheet.begin();it2!=endStyleSheet;++it2)
{
- if ((*it2).tqlayout.style == (*it).next)
+ if ((*it2).layout.style == (*it).next)
{
mainDoc.addNode( "FOLLOWING" );
mainDoc.setAttribute( "name", CheckAndEscapeXmlText( (*it2).name ));
@@ -739,7 +739,7 @@ KoFilter::ConversiontqStatus RTFImport::convert( const TQCString& from, const TQ
break;
}
}
- addLayout( mainDoc, (*it).name, (*it).tqlayout, false );
+ addLayout( mainDoc, (*it).name, (*it).layout, false );
addFormat( mainDoc, kwFormat, 0L );
mainDoc.closeNode( "STYLE" );
}
@@ -793,7 +793,7 @@ KoFilter::ConversiontqStatus RTFImport::convert( const TQCString& from, const TQ
for (TQMap<TQString,int>::ConstIterator it=debugUnknownKeywords.begin();
it!=debugUnknownKeywords.end();it++)
- kdDebug(30515) << "Unknown keyword: " << TQString( "%1" ).tqarg( it.data(), 4 ) << " * " << it.key() << endl;
+ kdDebug(30515) << "Unknown keyword: " << TQString( "%1" ).arg( it.data(), 4 ) << " * " << it.key() << endl;
return KoFilter::OK;
}
@@ -911,7 +911,7 @@ void RTFImport::setEnumProperty( RTFProperty *property )
void RTFImport::setFontStyleHint( RTFProperty* property )
{
- font.tqstyleHint = TQFont::StyleHint( property->value );
+ font.styleHint = 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.tqlayout.border)
+ if (state.layout.border)
{
- state.tqlayout.border->style = static_cast <RTFBorder::BorderStyle> ( property->value );
+ state.layout.border->style = static_cast <RTFBorder::BorderStyle> ( property->value );
}
else
{
for (uint i=0; i < 4; i++)
{
- state.tqlayout.borders[i].style = static_cast <RTFBorder::BorderStyle> ( property->value );
+ state.layout.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.tqlayout.border)
+ if (state.layout.border)
{
- state.tqlayout.border->width = token.value;
+ state.layout.border->width = token.value;
}
else
{
for (uint i=0; i < 4; i++)
{
- state.tqlayout.borders[i].width = token.value;
+ state.layout.borders[i].width = token.value;
}
}
}
void RTFImport::setBorderColor( RTFProperty * )
{
- if (state.tqlayout.border)
+ if (state.layout.border)
{
- state.tqlayout.border->color = token.value;
+ state.layout.border->color = token.value;
}
else
{
for (uint i=0; i < 4; i++)
{
- state.tqlayout.borders[i].color = token.value;
+ state.layout.borders[i].color = token.value;
}
}
}
@@ -1008,34 +1008,34 @@ void RTFImport::setPlainFormatting( RTFProperty * )
void RTFImport::setParagraphDefaults( RTFProperty * )
{
- RTFLayout &tqlayout = state.tqlayout;
+ RTFLayout &layout = state.layout;
- tqlayout.tablist.clear();
- tqlayout.tab.type = RTFTab::Left;
- tqlayout.tab.leader = RTFTab::None;
+ layout.tablist.clear();
+ layout.tab.type = RTFTab::Left;
+ layout.tab.leader = RTFTab::None;
for (uint i=0; i < 4; i++)
{
- RTFBorder &border = tqlayout.borders[i];
+ RTFBorder &border = layout.borders[i];
border.color = -1;
border.width = 0;
border.style = RTFBorder::None;
}
- 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;
+ 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;
}
void RTFImport::setSectionDefaults( RTFProperty * )
@@ -1054,7 +1054,7 @@ void RTFImport::setTableRowDefaults( RTFProperty * )
tableRow.height = 0;
tableRow.left = 0;
- tableRow.tqalignment = RTFLayout::Left;
+ tableRow.alignment = RTFLayout::Left;
tableRow.cells.clear();
tableCell.bgcolor = -1;
@@ -1069,17 +1069,17 @@ void RTFImport::setTableRowDefaults( RTFProperty * )
void RTFImport::selectLayoutBorder( RTFProperty * property )
{
- state.tqlayout.border = & state.tqlayout.borders [ property->value ];
+ state.layout.border = & state.layout.borders [ property->value ];
}
void RTFImport::selectLayoutBorderFromCell( RTFProperty * property )
{
- state.tqlayout.border = & state.tableCell.borders [ property->value ];
+ state.layout.border = & state.tableCell.borders [ property->value ];
}
void RTFImport::insertParagraph( RTFProperty * )
{
- if (state.tqlayout.inTable)
+ if (state.layout.inTable)
{
if (textState->table == 0)
{
@@ -1110,10 +1110,10 @@ void RTFImport::insertPageBreak( RTFProperty * )
void RTFImport::insertTableCell( RTFProperty * )
{
//{{
- bool b = state.tqlayout.inTable;
- state.tqlayout.inTable = true;
+ bool b = state.layout.inTable;
+ state.layout.inTable = true;
insertParagraph();
- state.tqlayout.inTable = b;
+ state.layout.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.tqalignment;
+ RTFLayout::Alignment align = row.alignment;
// Store the current state on the stack
stateStack.push( state );
resetState();
- state.tqlayout.tqalignment = align; // table tqalignment
+ state.layout.alignment = align; // table alignment
- // Add anchor for new table (default tqlayout)
+ // Add anchor for new table (default layout)
addAnchor( buf );
addParagraph( textState->node, false );
@@ -1202,9 +1202,9 @@ void RTFImport::insertCellDef( RTFProperty * )
void RTFImport::insertTabDef( RTFProperty * )
{
- RTFTab tab = state.tqlayout.tab;
+ RTFTab tab = state.layout.tab;
tab.position = token.value;
- state.tqlayout.tablist.push( tab );
+ state.layout.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.tqstyleHint = TQFont::AnyStyle;
+ font.styleHint = 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.tqstyleHint );
+ qFont.setStyleHint( font.styleHint );
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.tqstyleHint = TQFont::AnyStyle;
+ font.styleHint = 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.tqlayout = state.tqlayout;
- style.next = (style.next == -1) ? style.tqlayout.style : style.next;
+ style.layout = state.layout;
+ style.next = (style.next == -1) ? style.layout.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 tqcurrentDateTime only once for each picture
- const TQDateTime dt(TQDateTime::tqcurrentDateTime());
+ // It is safe, as we call currentDateTime only once for each picture
+ const TQDateTime dt(TQDateTime::currentDateTime());
// 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 tqcurrentDateTime only once for each picture
+ // It is safe, as we call currentDateTime 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 tqalignment and font size if (\dn, \up) are used
+ // Adjust vertical alignment 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 &tqlayout, bool frameBreak )
+void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout &layout, bool frameBreak )
{
- // Style name and tqalignment
+ // Style name and alignment
node.addNode( "NAME" );
node.setAttribute( "value", CheckAndEscapeXmlText(name) );
node.closeNode( "NAME" );
node.addNode( "FLOW" );
- node.setAttribute( "align", alignN[tqlayout.tqalignment] );
+ node.setAttribute( "align", alignN[layout.alignment] );
node.closeNode( "FLOW" );
// Indents
- if (tqlayout.firstIndent || tqlayout.leftIndent || tqlayout.rightIndent)
+ if (layout.firstIndent || layout.leftIndent || layout.rightIndent)
{
node.addNode( "INDENTS" );
- 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 );
+ 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 );
node.closeNode( "INDENTS" );
}
// Offets
- if (tqlayout.spaceBefore || tqlayout.spaceAfter)
+ if (layout.spaceBefore || layout.spaceAfter)
{
node.addNode( "OFFSETS" );
- if (tqlayout.spaceBefore)
- node.setAttribute( "before", .05*tqlayout.spaceBefore );
- if (tqlayout.spaceAfter)
- node.setAttribute( "after", .05*tqlayout.spaceAfter );
+ if (layout.spaceBefore)
+ node.setAttribute( "before", .05*layout.spaceBefore );
+ if (layout.spaceAfter)
+ node.setAttribute( "after", .05*layout.spaceAfter );
node.closeNode( "OFFSETS" );
}
@@ -2304,10 +2304,10 @@ void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout
TQString lineSpacingType;
TQString lineSpacingValue;
- if ( tqlayout.spaceBetweenMultiple )
+ if ( layout.spaceBetweenMultiple )
{
// Note: 240 is a sort of magic value for one line (Once upon a time, it meant 12pt for a single line)
- switch (tqlayout.spaceBetween )
+ switch (layout.spaceBetween )
{
case 240:
{
@@ -2326,10 +2326,10 @@ void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout
}
default:
{
- if ( tqlayout.spaceBetween > 0 )
+ if ( layout.spaceBetween > 0 )
{
lineSpacingType = "multiple";
- lineSpacingValue.setNum( tqlayout.spaceBetween / 240.0 );
+ lineSpacingValue.setNum( layout.spaceBetween / 240.0 );
}
break;
}
@@ -2337,16 +2337,16 @@ void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout
}
else
{
- if (tqlayout.spaceBetween > 0)
+ if (layout.spaceBetween > 0)
{
lineSpacingType = "atleast";
- lineSpacingValue.setNum( 0.05*tqlayout.spaceBetween );
+ lineSpacingValue.setNum( 0.05*layout.spaceBetween );
}
- if (tqlayout.spaceBetween < 0)
+ if (layout.spaceBetween < 0)
{
// negative linespace means "exact"
lineSpacingType = "fixed" ;
- lineSpacingValue.setNum( -0.05*tqlayout.spaceBetween );
+ lineSpacingValue.setNum( -0.05*layout.spaceBetween );
}
}
@@ -2359,20 +2359,20 @@ void RTFImport::addLayout( DomNode &node, const TQString &name, const RTFLayout
node.closeNode( "LINESPACING" );
}
- if (tqlayout.keep || tqlayout.pageBB || tqlayout.pageBA || frameBreak || tqlayout.keepNext)
+ if (layout.keep || layout.pageBB || layout.pageBA || frameBreak || layout.keepNext)
{
node.addNode( "PAGEBREAKING" );
- 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.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.closeNode( "PAGEBREAKING" );
}
// Paragraph borders
for (uint i=0; i < 4; i++)
{
- const RTFBorder &border = tqlayout.borders[i];
+ const RTFBorder &border = layout.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 (tqlayout.firstIndent < 0 && tqlayout.leftIndent > 0)
+ if (layout.firstIndent < 0 && layout.leftIndent > 0)
{
node.addNode( "TABULATOR" );
node.setAttribute( "type", 0 );
- node.setAttribute( "ptpos", .05*tqlayout.leftIndent );
+ node.setAttribute( "ptpos", .05*layout.leftIndent );
node.closeNode( "TABULATOR" );
}
// Tabulators
- if (!tqlayout.tablist.isEmpty())
+ if (!layout.tablist.isEmpty())
{
// ### TODO: use ConstIterator
- for (uint i=0; i < tqlayout.tablist.count(); i++)
+ for (uint i=0; i < layout.tablist.count(); i++)
{
- const RTFTab &tab = tqlayout.tablist[i];
+ const RTFTab &tab = layout.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.tqlayout.style;
+ const int styleNum = state.layout.style;
const TQValueList<RTFStyle>::ConstIterator endStyleSheet = styleSheet.end();
for ( TQValueList<RTFStyle>::ConstIterator it=styleSheet.begin(); it!=endStyleSheet; ++it )
{
- if ( (*it).tqlayout.style == styleNum )
+ if ( (*it).layout.style == styleNum )
{
if ( textState->length > 0 )
{
@@ -2468,9 +2468,9 @@ void RTFImport::addParagraph( DomNode &node, bool frameBreak )
node.closeNode( "FORMATS" );
}
- // Write out tqlayout and format
+ // Write out layout and format
node.addNode( "LAYOUT" );
- addLayout( node, name, state.tqlayout, frameBreak );
+ addLayout( node, name, state.layout, 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 bf4f20b7..37ecfce6 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 <tqtextcodec.h>
+#include <textcodec.h>
#include "rtfimport_dom.h"
#include "rtfimport_tokenizer.h"
#include <tqptrlist.h>
@@ -93,7 +93,7 @@ struct RTFTab
struct RTFFont
{
TQString name;
- TQFont::StyleHint tqstyleHint;
+ TQFont::StyleHint styleHint;
int fixedPitch;
int number;
};
@@ -124,7 +124,7 @@ struct RTFLayout
RTFTab tab;
RTFBorder borders[4];
RTFBorder *border;
- Alignment tqalignment;
+ Alignment alignment;
int style;
int firstIndent, leftIndent, rightIndent;
int spaceBefore, spaceAfter;
@@ -173,7 +173,7 @@ struct RTFStyle
{
TQString name;
RTFFormat format;
- RTFLayout tqlayout;
+ RTFLayout layout;
int next;
};
@@ -198,7 +198,7 @@ struct RTFTableRow
{
TQValueList<RTFTableCell> cells;
TQStringList frameSets;
- RTFLayout::Alignment tqalignment;
+ RTFLayout::Alignment alignment;
int height;
int left;
};
@@ -232,7 +232,7 @@ struct RTFGroupState
RTFTableRow tableRow;
RTFTableCell tableCell;
RTFFormat format;
- RTFLayout tqlayout;
+ RTFLayout layout;
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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 tqunicode character (keyword \\u).
+ /// Insert unicode 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 tqlayout information to document node.
+ * Add layout information to document node.
* @param node the document node (destination)
* @param name the name of the current style
- * @param tqlayout the paragraph tqlayout information
+ * @param layout the paragraph layout information
* @param frameBreak paragraph is always the last in a frame if true
*/
- void addLayout( DomNode &node, const TQString &name, const RTFLayout &tqlayout, bool frameBreak );
+ void addLayout( DomNode &node, const TQString &name, const RTFLayout &layout, 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 95fa43fc..75855dbf 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 <tqtextcodec.h>
+#include <textcodec.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.tqunicode();
+ const int test = ch.unicode();
// 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 27239e52..904da9db 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 tqalignment.<br>
+ - Tables (including non-rectangular), horizontal alignment.<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 tqlayout (horizontal tqalignment, indents, space before/after, frame break).<br>
+ - Paragraph layout (horizontal alignment, 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 tqshapes<br>
+ - Shaps, especially picture that are in shapes<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 tqalignment, background color and cell borders.<br>
+ 23 July 2001: Added table alignment, 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 d9751e15..9323cdbc 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*> tqchildren;
+ std::vector<Entry*> children;
Entry();
~Entry();
private:
@@ -257,9 +257,9 @@ Entry::Entry()
Entry::~Entry()
{
- for( unsigned i=0; i<tqchildren.size(); i++ )
+ for( unsigned i=0; i<children.size(); i++ )
{
- Entry* entry = tqchildren[ i ];
+ Entry* entry = children[ 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->tqchildren.push_back( entry );
+ if( parent ) parent->children.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->tqchildren.size(); j++ )
- if( entry->tqchildren[j]->name == entryname )
- child = entry->tqchildren[j];
+ for( unsigned j=0; j < entry->children.size(); j++ )
+ if( entry->children[j]->name == entryname )
+ child = entry->children[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 tqchildren belongs to this directory
- for( unsigned i = 0; i<io->current_dir->tqchildren.size(); i++ )
+ // find all children belongs to this directory
+ for( unsigned i = 0; i<io->current_dir->children.size(); i++ )
{
- Entry* e = io->current_dir->tqchildren[i];
+ Entry* e = io->current_dir->children[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->tqchildren.size(); i++ )
+ for( unsigned i = 0; i<io->current_dir->children.size(); i++ )
{
- Entry* e = io->current_dir->tqchildren[i];
+ Entry* e = io->current_dir->children[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 a9bd80d3..43dc1b62 100644
--- a/filters/kword/starwriter/starwriterimport.cc
+++ b/filters/kword/starwriter/starwriterimport.cc
@@ -58,7 +58,7 @@ StarWriterImport::~StarWriterImport()
{
}
-KoFilter::ConversiontqStatus StarWriterImport::convert(const TQCString& from, const TQCString& to)
+KoFilter::ConversionStatus 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").tqarg(tablesNumber);
+ tableName = TQString("Table %1").arg(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").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));
+ 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));
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").tqarg(tableName));
+ bodyStuff.append(TQString(" <ANCHOR type=\"frameset\" instance=\"%1\" />\n").arg(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 b030c2ba..f71a71ed 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::ConversiontqStatus convert(const TQCString& from, const TQCString& to);
+ KoFilter::ConversionStatus 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 6919c589..d7667e6c 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">tqStatus of the</H2>
+ <H2 align="center">Status 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 92908c57..36d267be 100644
--- a/filters/kword/wml/wmlexport.cc
+++ b/filters/kword/wml/wmlexport.cc
@@ -23,10 +23,10 @@
#include <unistd.h>
#endif
-#include <tqtextcodec.h>
+#include <textcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <tqtextstream.h>
+#include <textstream.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& tqlayout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
const ValueListFormatData& paraFormatDataList);
private:
TQString filename;
@@ -97,7 +97,7 @@ bool WMLWorker::doCloseDocument(void)
}
bool WMLWorker::doFullParagraph(const TQString& paraText,
- const LayoutData& tqlayout, const ValueListFormatData& paraFormatDataList)
+ const LayoutData& layout, const ValueListFormatData& paraFormatDataList)
{
TQString wmlText;
TQString text = paraText;
@@ -131,7 +131,7 @@ bool WMLWorker::doFullParagraph(const TQString& paraText,
}
// sentinel check
- TQString align = tqlayout.tqalignment.lower();
+ TQString align = layout.alignment.lower();
if( ( align!="left" ) && ( align!="right" ) && ( align!="center" ) )
align = "left";
@@ -145,7 +145,7 @@ WMLExport::WMLExport( KoFilter *, const char *, const TQStringList& ):
{
}
-KoFilter::ConversiontqStatus WMLExport::convert( const TQCString& from,
+KoFilter::ConversionStatus WMLExport::convert( const TQCString& from,
const TQCString& to )
{
// check for proper conversion
@@ -155,7 +155,7 @@ KoFilter::ConversiontqStatus WMLExport::convert( const TQCString& from,
WMLWorker* worker = new WMLWorker();
KWEFKWordLeader* leader = new KWEFKWordLeader( worker );
- KoFilter::ConversiontqStatus result;
+ KoFilter::ConversionStatus 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 8d3a105e..2f81c897 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 e44c10ae..83e14d9f 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 tqlayout );
+ WMLLayout layout );
private:
TQString m_title;
};
@@ -105,13 +105,13 @@ static TQString WMLFormatAsXML( WMLFormat format )
return result;
}
-static TQString WMLLayoutAsXML( WMLLayout tqlayout )
+static TQString WMLLayoutAsXML( WMLLayout layout )
{
TQString result;
TQString align = "left";
- if( tqlayout.align == WMLLayout::Center ) align = "center";
- if( tqlayout.align == WMLLayout::Right ) align = "right";
+ if( layout.align == WMLLayout::Center ) align = "center";
+ if( layout.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 tqlayout )
+ WMLLayout layout )
{
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( tqlayout) );
+ root.append( WMLLayoutAsXML( layout) );
root.append( "</PARAGRAPH>\n" );
return TRUE;
@@ -231,7 +231,7 @@ void WMLConverter::parse( const char* filename )
}
-KoFilter::ConversiontqStatus WMLImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 049ff8db..1c169af1 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 ecbb235c..81ccbd24 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 tqlayout info
+// paragraph layout info
WMLLayout::WMLLayout()
{
align = Left;
diff --git a/filters/kword/wordperfect/export/wp5.cc b/filters/kword/wordperfect/export/wp5.cc
index bffdecf1..ac211d04 100644
--- a/filters/kword/wordperfect/export/wp5.cc
+++ b/filters/kword/wordperfect/export/wp5.cc
@@ -23,10 +23,10 @@
#include <unistd.h>
#endif
-#include <tqtextcodec.h>
+#include <textcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <tqtextstream.h>
+#include <textstream.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.tqdevice()->at();
+ document_area_ptr = output.device()->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].tqunicode();
+ int c = text[i].unicode();
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& /*tqlayout*/, const ValueListFormatData& paraFormatDataList)
+ const LayoutData& /*layout*/, 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 0791459b..dc75e2f7 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& tqlayout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
const ValueListFormatData& paraFormatDataList);
private:
TQString filename;
diff --git a/filters/kword/wordperfect/export/wp6.cc b/filters/kword/wordperfect/export/wp6.cc
index 21c59606..a9dd9109 100644
--- a/filters/kword/wordperfect/export/wp6.cc
+++ b/filters/kword/wordperfect/export/wp6.cc
@@ -23,10 +23,10 @@
#include <unistd.h>
#endif
-#include <tqtextcodec.h>
+#include <textcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <tqtextstream.h>
+#include <textstream.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.tqdevice()->at();
+ document_area_ptr = output.device()->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].tqunicode();
+ int c = text[i].unicode();
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& tqlayout, const ValueListFormatData& paraFormatDataList)
+ const LayoutData& layout, const ValueListFormatData& paraFormatDataList)
{
- // handle paragraph tqalignment/justification (default to left)
+ // handle paragraph alignment/justification (default to left)
unsigned char wp_align[] = { 0xd3, 5, 12, 0, 0, 1, 0, 0, 2, 12, 0, 0xd3 };
- 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;
+ 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;
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 73397338..05abb60f 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& tqlayout,
+ virtual bool doFullParagraph(const TQString& paraText, const LayoutData& layout,
const ValueListFormatData& paraFormatDataList);
private:
TQString filename;
diff --git a/filters/kword/wordperfect/export/wpexport.cc b/filters/kword/wordperfect/export/wpexport.cc
index 43a688c3..f1dde8ad 100644
--- a/filters/kword/wordperfect/export/wpexport.cc
+++ b/filters/kword/wordperfect/export/wpexport.cc
@@ -23,10 +23,10 @@
#include <unistd.h>
#endif
-#include <tqtextcodec.h>
+#include <textcodec.h>
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <kdebug.h>
#include <KoFilterChain.h>
@@ -47,7 +47,7 @@ WPExport::WPExport( KoFilter *, const char *, const TQStringList& ):
{
}
-KoFilter::ConversiontqStatus
+KoFilter::ConversionStatus
WPExport::convert( const TQCString& from,
const TQCString& to )
{
@@ -69,7 +69,7 @@ WPExport::convert( const TQCString& from,
KWEFKWordLeader* leader = new KWEFKWordLeader( worker );
- KoFilter::ConversiontqStatus result;
+ KoFilter::ConversionStatus 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 55f43a47..16e81a1b 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 de9246cc..1b3b83df 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 tqlayout;
+ TQString layout;
TQString formats;
int LeftMargin = 0;
int TopMargin = 36;
@@ -253,32 +253,32 @@ KWordFilter::parse (const TQString & filename)
formats.append( " " + fmt );
formats.append ( " </FORMAT>\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" );
+ 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" );
lm = LeftMargin + LeftMarginAdjust - frameLeftMargin;
rm = RightMargin + RightMarginAdjust - frameRightMargin;
- tqlayout.append( " <INDENTS left=\"" + TQString::number( TQMAX( 0, lm ) ) + "\"" +
+ layout.append( " <INDENTS left=\"" + TQString::number( TQMAX( 0, lm ) ) + "\"" +
" right=\"" + TQString::number( TQMAX( 0 , rm ) ) + "\"" +
" first=\"0\" />\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" );
+ 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" );
// 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( tqlayout );
+ root.append( layout );
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 7b87e5a6..96a2559c 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 tqunicode character
+// the following tables maps WP charset/charcode to unicode 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 460915af..09fc4d5c 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::ConversiontqStatus WPImport::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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 02cd323d..3fc52796 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 1db3dc09..5465048d 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 tqlayout: linespacing, justification</li>
+ <li>paragraph layout: 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 f079e2a5..f632080e 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 <tqlayout.h>
+#include <layout.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 tqlayout */
+ /* Display the main layout */
//mainLayout->addStretch( 5 );
mainLayout->activate();
}
diff --git a/filters/liboofilter/ooutils.cc b/filters/liboofilter/ooutils.cc
index 9a4ac58b..a04633fe 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 tqlayout." << endl;
+ //kdDebug(30519) << k_funcinfo << tabStops.childNodes().count() << " tab stops in layout." << 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; // "tqalignment on decimal point"
+ kOfficeType = 3; // "alignment 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 tqunicode value to the KOffice enum
+ // TODO Convert leaderChar's unicode 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::ConversiontqStatus OoUtils::loadAndParse(const TQString& fileName, TQDomDocument& doc, KoStore *m_store )
+KoFilter::ConversionStatus OoUtils::loadAndParse(const TQString& fileName, TQDomDocument& doc, KoStore *m_store )
{
kdDebug(30518) << "loadAndParse: Trying to open " << fileName << endl;
@@ -508,13 +508,13 @@ KoFilter::ConversiontqStatus OoUtils::loadAndParse(const TQString& fileName, TQD
kdWarning(30519) << "Entry " << fileName << " not found!" << endl;
return KoFilter::FileNotFound;
}
- KoFilter::ConversiontqStatus converttqStatus = loadAndParse( m_store->device(),doc, fileName );
+ KoFilter::ConversionStatus convertStatus = loadAndParse( m_store->device(),doc, fileName );
m_store->close();
- return converttqStatus;
+ return convertStatus;
}
-KoFilter::ConversiontqStatus OoUtils::loadAndParse(TQIODevice* io, TQDomDocument& doc, const TQString & fileName)
+KoFilter::ConversionStatus 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::ConversiontqStatus OoUtils::loadAndParse(TQIODevice* io, TQDomDocument
}
-KoFilter::ConversiontqStatus OoUtils::loadAndParse(const TQString& filename, TQDomDocument& doc, KZip * m_zip)
+KoFilter::ConversionStatus OoUtils::loadAndParse(const TQString& filename, TQDomDocument& doc, KZip * m_zip)
{
kdDebug(30519) << "Trying to open " << filename << endl;
@@ -562,12 +562,12 @@ KoFilter::ConversiontqStatus OoUtils::loadAndParse(const TQString& filename, TQD
const KZipFileEntry* f = static_cast<const KZipFileEntry *>(entry);
kdDebug(30519) << "Entry " << filename << " has size " << f->size() << endl;
TQIODevice* io = f->device();
- KoFilter::ConversiontqStatus converttqStatus = loadAndParse( io,doc, filename );
+ KoFilter::ConversionStatus convertStatus = loadAndParse( io,doc, filename );
delete io;
- return converttqStatus;
+ return convertStatus;
}
-KoFilter::ConversiontqStatus OoUtils::loadThumbnail( TQImage& thumbnail, KZip * m_zip )
+KoFilter::ConversionStatus 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 70de64c8..a668d961 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::ConversiontqStatus loadAndParse(const TQString& filename, TQDomDocument& doc, KZip * m_zip);
- KoFilter::ConversiontqStatus loadAndParse(const TQString& filename, TQDomDocument& doc, KoStore *m_store );
+ KoFilter::ConversionStatus loadAndParse(const TQString& filename, TQDomDocument& doc, KZip * m_zip);
+ KoFilter::ConversionStatus loadAndParse(const TQString& filename, TQDomDocument& doc, KoStore *m_store );
/// Load an OASIS thumbnail
- KoFilter::ConversiontqStatus loadThumbnail( TQImage& thumbnail, KZip * m_zip );
+ KoFilter::ConversionStatus loadThumbnail( TQImage& thumbnail, KZip * m_zip );
// Internal
- KoFilter::ConversiontqStatus loadAndParse(TQIODevice* io, TQDomDocument& doc, const TQString & fileName);
+ KoFilter::ConversionStatus loadAndParse(TQIODevice* io, TQDomDocument& doc, const TQString & fileName);
}
#endif /* OOUTILS_H */
diff --git a/filters/olefilters/olefilter.cc b/filters/olefilters/olefilter.cc
index ef4f6cd0..0f052e13 100644
--- a/filters/olefilters/olefilter.cc
+++ b/filters/olefilters/olefilter.cc
@@ -69,7 +69,7 @@ OLEFilter::~OLEFilter()
delete docfile;
}
-KoFilter::ConversiontqStatus OLEFilter::convert( const TQCString& from, const TQCString& to )
+KoFilter::ConversionStatus 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& tqshapeID )
+void OLEFilter::commSlotShapeID( unsigned int& shapeID )
{
- emit internalCommShapeID( tqshapeID );
+ emit internalCommShapeID( shapeID );
}
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::ConversiontqStatus status;
+ KoFilter::ConversionStatus 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" ).tqarg( numPic++ ).tqarg( extension );
+ storageId = TQString( "pictures/picture%1.%2" ).arg( numPic++ ).arg( 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 80a03737..2759ea50 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
public slots:
void commSlotDelayStream( const char* delay );
- void commSlotShapeID( unsigned int& tqshapeID );
+ void commSlotShapeID( unsigned int& shapeID );
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& tqshapeID );
+ void internalCommShapeID( unsigned int& shapeID );
void internalCommDelayStream( const char* delay );
private:
diff --git a/filters/olefilters/powerpoint97/powerpoint.cc b/filters/olefilters/powerpoint97/powerpoint.cc
index b53acfc5..d28430dd 100644
--- a/filters/olefilters/powerpoint97/powerpoint.cc
+++ b/filters/olefilters/powerpoint97/powerpoint.cc
@@ -782,7 +782,7 @@ void Powerpoint::opSlideAtom(
{
struct
{
- TQ_UINT8 tqlayout[12]; // Slide tqlayout descriptor.
+ TQ_UINT8 layout[12]; // Slide layout 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.tqlayout);
+ tmp.length = sizeof(data.layout);
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 tqshapes other than placeholders.
+ TQ_UINT32 flags; // If bit 3 set then slide contains shapes 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 tqshape)
+ // 4 Other (Text in a shape)
// 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 026e2ef1..78e9cb0a 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 tqshape)
+#define OTHER_TEXT 4 //other(test in shape)
#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 96a03567..270cc30f 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 = "tqshape-id=";
+ filterArgs = "shape-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 b8bb24de..e619bf21 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:tqlayout-master-set>
+ <fo:layout-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:tqlayout-master-set>
+ </fo:layout-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 a52e922c..ff542dc3 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="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>0</width>
<height>200</height>
@@ -104,7 +104,7 @@
<property name="sizeType">
<enum>Minimum</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -145,7 +145,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
diff --git a/filters/xsltfilter/export/xsltexport.cc b/filters/xsltfilter/export/xsltexport.cc
index 545ffde2..b1d9d84e 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::ConversiontqStatus XSLTExport::convert( const TQCString& from, const TQCString&)
+KoFilter::ConversionStatus 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 eac9712a..b9947255 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::ConversiontqStatus convert( const TQCString& from, const TQCString& to );
+ virtual KoFilter::ConversionStatus 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 8d36f43b..aade6891 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").tqarg(i) );
+ value = _config->readPathEntry( TQString("Recent%1").arg(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").tqarg(i), _recentList.first());
+ _config->writePathEntry( TQString("Recent%1").arg(i), _recentList.first());
#else
- _config->writeEntry( TQString("Recent%1").tqarg(i), _recentList.first());
+ _config->writeEntry( TQString("Recent%1").arg(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 a52e922c..ff542dc3 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="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>0</width>
<height>200</height>
@@ -104,7 +104,7 @@
<property name="sizeType">
<enum>Minimum</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -145,7 +145,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
diff --git a/filters/xsltfilter/import/xsltimport.cc b/filters/xsltfilter/import/xsltimport.cc
index e73bdf18..999d9594 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 <tqtextcodec.h>
+#include <textcodec.h>
#include "xsltimportdia.h"
@@ -36,7 +36,7 @@ XSLTImport::XSLTImport(KoFilter *, const char *, const TQStringList&) :
KoFilter() {
}
-KoFilter::ConversiontqStatus XSLTImport::convert( const TQCString&, const TQCString& to )
+KoFilter::ConversionStatus XSLTImport::convert( const TQCString&, const TQCString& to )
{
TQString config;
diff --git a/filters/xsltfilter/import/xsltimport.h b/filters/xsltfilter/import/xsltimport.h
index fead8d80..89767a32 100644
--- a/filters/xsltfilter/import/xsltimport.h
+++ b/filters/xsltfilter/import/xsltimport.h
@@ -21,7 +21,7 @@
#define __XSLTIMPORT_H__
#include <tqstring.h>
-#include <tqtextstream.h>
+#include <textstream.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::ConversiontqStatus convert( const TQCString& from,
+ virtual KoFilter::ConversionStatus convert( const TQCString& from,
const TQCString& to );
};
diff --git a/filters/xsltfilter/import/xsltimportdia.cc b/filters/xsltfilter/import/xsltimportdia.cc
index 2e278bf2..c3fb4b97 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").tqarg(i) );
+ value = _config->readPathEntry( TQString("Recent%1").arg(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").tqarg(i), _recentList.first());
+ _config->writePathEntry( TQString("Recent%1").arg(i), _recentList.first());
#else
- _config->writeEntry( TQString("Recent%1").tqarg(i), _recentList.first());
+ _config->writeEntry( TQString("Recent%1").arg(i), _recentList.first());
#endif
_recentList.pop_front();
i = i + 1;
diff --git a/filters/xsltfilter/kword2xslfo.xsl b/filters/xsltfilter/kword2xslfo.xsl
index ea36238b..4268afba 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:tqlayout-master-set>
+ <fo:layout-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:tqlayout-master-set>
+ </fo:layout-master-set>
<xsl:apply-templates select="FRAMESETS"/>
</fo:root>
</xsl:template>