/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include namespace vcl { ExtOutDevData::~ExtOutDevData() { } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ otropia/zeta-7-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2013-04-18 18:26:28 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2013-04-23 22:20:31 +0200
commitb9337e22ce1dbf2eba0e8c8db294ae99f4111f91 (patch)
tree53ee1bd3dfd213815a21579151983cb997922b05 /xmloff
parentf4e1642a1761d5eab6ccdd89928869c2b2f1528a (diff)
execute move of global headers
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/Module_xmloff.mk1
-rw-r--r--xmloff/Package_inc.mk123
-rw-r--r--xmloff/inc/xmloff/DashStyle.hxx66
-rw-r--r--xmloff/inc/xmloff/DocumentSettingsContext.hxx57
-rw-r--r--xmloff/inc/xmloff/EnumPropertyHdl.hxx46
-rw-r--r--xmloff/inc/xmloff/GradientStyle.hxx68
-rw-r--r--xmloff/inc/xmloff/HatchStyle.hxx65
-rw-r--r--xmloff/inc/xmloff/ImageStyle.hxx54
-rw-r--r--xmloff/inc/xmloff/MarkerStyle.hxx67
-rw-r--r--xmloff/inc/xmloff/NamedBoolPropertyHdl.hxx56
-rw-r--r--xmloff/inc/xmloff/PageMasterStyleMap.hxx168
-rw-r--r--xmloff/inc/xmloff/ProgressBarHelper.hxx70
-rw-r--r--xmloff/inc/xmloff/PropertySetInfoHash.hxx59
-rw-r--r--xmloff/inc/xmloff/PropertySetInfoKey.hxx61
-rw-r--r--xmloff/inc/xmloff/SchXMLExportHelper.hxx67
-rw-r--r--xmloff/inc/xmloff/SchXMLImportHelper.hxx153
-rw-r--r--xmloff/inc/xmloff/SchXMLSeriesHelper.hxx73
-rw-r--r--xmloff/inc/xmloff/SettingsExportHelper.hxx104
-rw-r--r--xmloff/inc/xmloff/SinglePropertySetInfoCache.hxx73
-rw-r--r--xmloff/inc/xmloff/WordWrapPropertyHdl.hxx47
-rw-r--r--xmloff/inc/xmloff/XMLBase64ImportContext.hxx57
-rw-r--r--xmloff/inc/xmloff/XMLCharContext.hxx65
-rw-r--r--xmloff/inc/xmloff/XMLConstantsPropertyHandler.hxx63
-rw-r--r--xmloff/inc/xmloff/XMLEmbeddedObjectExportFilter.hxx85
-rw-r--r--xmloff/inc/xmloff/XMLEventExport.hxx133
-rw-r--r--xmloff/inc/xmloff/XMLEventsImportContext.hxx131
-rw-r--r--xmloff/inc/xmloff/XMLFilterServiceNames.h40
-rw-r--r--xmloff/inc/xmloff/XMLFontAutoStylePool.hxx73
-rw-r--r--xmloff/inc/xmloff/XMLFontStylesContext.hxx89
-rw-r--r--xmloff/inc/xmloff/XMLGraphicsDefaultStyle.hxx56
-rw-r--r--xmloff/inc/xmloff/XMLPageExport.hxx105
-rw-r--r--xmloff/inc/xmloff/XMLSettingsExportContext.hxx62
-rw-r--r--xmloff/inc/xmloff/XMLShapeStyleContext.hxx70
-rw-r--r--xmloff/inc/xmloff/XMLStringVector.hxx32
-rw-r--r--xmloff/inc/xmloff/XMLTextListAutoStylePool.hxx77
-rw-r--r--xmloff/inc/xmloff/XMLTextMasterPageContext.hxx89
-rw-r--r--xmloff/inc/xmloff/XMLTextMasterPageExport.hxx68
-rw-r--r--xmloff/inc/xmloff/XMLTextMasterStylesContext.hxx55
-rw-r--r--xmloff/inc/xmloff/XMLTextShapeImportHelper.hxx51
-rw-r--r--xmloff/inc/xmloff/XMLTextShapeStyleContext.hxx66
-rw-r--r--xmloff/inc/xmloff/XMLTextTableContext.hxx53
-rw-r--r--xmloff/inc/xmloff/animationexport.hxx53
-rw-r--r--xmloff/inc/xmloff/animexp.hxx45
-rw-r--r--xmloff/inc/xmloff/attrlist.hxx86
-rw-r--r--xmloff/inc/xmloff/contextid.hxx48
-rw-r--r--xmloff/inc/xmloff/controlpropertyhdl.hxx136
-rw-r--r--xmloff/inc/xmloff/dllapi.h34
-rw-r--r--xmloff/inc/xmloff/families.hxx110
-rw-r--r--xmloff/inc/xmloff/formlayerexport.hxx189
-rw-r--r--xmloff/inc/xmloff/formlayerimport.hxx136
-rw-r--r--xmloff/inc/xmloff/i18nmap.hxx73
-rw-r--r--xmloff/inc/xmloff/maptype.hxx68
-rw-r--r--xmloff/inc/xmloff/nmspmap.hxx170
-rw-r--r--xmloff/inc/xmloff/numehelp.hxx116
-rw-r--r--xmloff/inc/xmloff/odffields.hxx53
-rw-r--r--xmloff/inc/xmloff/prhdlfac.hxx103
-rw-r--r--xmloff/inc/xmloff/prstylei.hxx99
-rw-r--r--xmloff/inc/xmloff/settingsstore.hxx59
-rw-r--r--xmloff/inc/xmloff/shapeexport.hxx331
-rw-r--r--xmloff/inc/xmloff/shapeimport.hxx426
-rw-r--r--xmloff/inc/xmloff/styleexp.hxx127
-rw-r--r--xmloff/inc/xmloff/table/XMLTableExport.hxx106
-rw-r--r--xmloff/inc/xmloff/table/XMLTableImport.hxx72
-rw-r--r--xmloff/inc/xmloff/txtimp.hxx725
-rw-r--r--xmloff/inc/xmloff/txtimppr.hxx75
-rw-r--r--xmloff/inc/xmloff/txtparae.hxx728
-rw-r--r--xmloff/inc/xmloff/txtprmap.hxx204
-rw-r--r--xmloff/inc/xmloff/txtstyli.hxx112
-rw-r--r--xmloff/inc/xmloff/uniref.hxx224
-rw-r--r--xmloff/inc/xmloff/unoatrcn.hxx79
-rw-r--r--xmloff/inc/xmloff/unointerfacetouniqueidentifiermapper.hxx77
-rw-r--r--xmloff/inc/xmloff/xformsexport.hxx54
-rw-r--r--xmloff/inc/xmloff/xformsimport.hxx79
-rw-r--r--xmloff/inc/xmloff/xmlaustp.hxx124
-rw-r--r--xmloff/inc/xmloff/xmlcnimp.hxx74
-rw-r--r--xmloff/inc/xmloff/xmlement.hxx51
-rw-r--r--xmloff/inc/xmloff/xmlerror.hxx147
-rw-r--r--xmloff/inc/xmloff/xmlevent.hxx145
-rw-r--r--xmloff/inc/xmloff/xmlexp.hxx659
-rw-r--r--xmloff/inc/xmloff/xmlexppr.hxx188
-rw-r--r--xmloff/inc/xmloff/xmlictxt.hxx101
-rw-r--r--xmloff/inc/xmloff/xmlimp.hxx525
-rw-r--r--xmloff/inc/xmloff/xmlimppr.hxx192
-rw-r--r--xmloff/inc/xmloff/xmlmetae.hxx120
-rw-r--r--xmloff/inc/xmloff/xmlmetai.hxx69
-rw-r--r--xmloff/inc/xmloff/xmlmultiimagehelper.hxx59
-rw-r--r--xmloff/inc/xmloff/xmlnmspe.hxx106
-rw-r--r--xmloff/inc/xmloff/xmlnume.hxx94
-rw-r--r--xmloff/inc/xmloff/xmlnumfe.hxx134
-rw-r--r--xmloff/inc/xmloff/xmlnumfi.hxx214
-rw-r--r--xmloff/inc/xmloff/xmlnumi.hxx104
-rw-r--r--xmloff/inc/xmloff/xmlprcon.hxx70
-rw-r--r--xmloff/inc/xmloff/xmlprhdl.hxx58
-rw-r--r--xmloff/inc/xmloff/xmlprmap.hxx181
-rw-r--r--xmloff/inc/xmloff/xmlreg.hxx36
-rw-r--r--xmloff/inc/xmloff/xmlscripti.hxx54
-rw-r--r--xmloff/inc/xmloff/xmlstyle.hxx265
-rw-r--r--xmloff/inc/xmloff/xmltabe.hxx53
-rw-r--r--xmloff/inc/xmloff/xmltkmap.hxx59
-rw-r--r--xmloff/inc/xmloff/xmltoken.hxx3212
-rw-r--r--xmloff/inc/xmloff/xmltypes.hxx283
-rw-r--r--xmloff/inc/xmloff/xmluconv.hxx230
102 files changed, 0 insertions, 15602 deletions
diff --git a/xmloff/Module_xmloff.mk b/xmloff/Module_xmloff.mk
index 886dac6d878a..6d0b59a8f7ff 100644
--- a/xmloff/Module_xmloff.mk
+++ b/xmloff/Module_xmloff.mk
@@ -23,7 +23,6 @@ $(eval $(call gb_Module_add_targets,xmloff,\
Library_xo \
Library_xof \
Package_dtd \
- Package_inc \
))
$(eval $(call gb_Module_add_check_targets,xmloff,\
diff --git a/xmloff/Package_inc.mk b/xmloff/Package_inc.mk
deleted file mode 100644
index 50ffee36c359..000000000000
--- a/xmloff/Package_inc.mk
+++ /dev/null
@@ -1,123 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-$(eval $(call gb_Package_Package,xmloff_inc,$(SRCDIR)/xmloff/inc))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/DashStyle.hxx,xmloff/DashStyle.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/DocumentSettingsContext.hxx,xmloff/DocumentSettingsContext.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/EnumPropertyHdl.hxx,xmloff/EnumPropertyHdl.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/GradientStyle.hxx,xmloff/GradientStyle.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/HatchStyle.hxx,xmloff/HatchStyle.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/ImageStyle.hxx,xmloff/ImageStyle.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/MarkerStyle.hxx,xmloff/MarkerStyle.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/NamedBoolPropertyHdl.hxx,xmloff/NamedBoolPropertyHdl.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/PageMasterStyleMap.hxx,xmloff/PageMasterStyleMap.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/ProgressBarHelper.hxx,xmloff/ProgressBarHelper.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/PropertySetInfoHash.hxx,xmloff/PropertySetInfoHash.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/PropertySetInfoKey.hxx,xmloff/PropertySetInfoKey.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SchXMLExportHelper.hxx,xmloff/SchXMLExportHelper.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SchXMLImportHelper.hxx,xmloff/SchXMLImportHelper.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SchXMLSeriesHelper.hxx,xmloff/SchXMLSeriesHelper.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SettingsExportHelper.hxx,xmloff/SettingsExportHelper.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SinglePropertySetInfoCache.hxx,xmloff/SinglePropertySetInfoCache.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/WordWrapPropertyHdl.hxx,xmloff/WordWrapPropertyHdl.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLBase64ImportContext.hxx,xmloff/XMLBase64ImportContext.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLCharContext.hxx,xmloff/XMLCharContext.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLConstantsPropertyHandler.hxx,xmloff/XMLConstantsPropertyHandler.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLEmbeddedObjectExportFilter.hxx,xmloff/XMLEmbeddedObjectExportFilter.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLEventExport.hxx,xmloff/XMLEventExport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLEventsImportContext.hxx,xmloff/XMLEventsImportContext.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLFilterServiceNames.h,xmloff/XMLFilterServiceNames.h))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLFontAutoStylePool.hxx,xmloff/XMLFontAutoStylePool.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLFontStylesContext.hxx,xmloff/XMLFontStylesContext.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLGraphicsDefaultStyle.hxx,xmloff/XMLGraphicsDefaultStyle.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLPageExport.hxx,xmloff/XMLPageExport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLSettingsExportContext.hxx,xmloff/XMLSettingsExportContext.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLShapeStyleContext.hxx,xmloff/XMLShapeStyleContext.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLStringVector.hxx,xmloff/XMLStringVector.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLTextListAutoStylePool.hxx,xmloff/XMLTextListAutoStylePool.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLTextMasterPageContext.hxx,xmloff/XMLTextMasterPageContext.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLTextMasterPageExport.hxx,xmloff/XMLTextMasterPageExport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLTextMasterStylesContext.hxx,xmloff/XMLTextMasterStylesContext.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLTextShapeImportHelper.hxx,xmloff/XMLTextShapeImportHelper.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLTextShapeImportHelper.hxx,xmloff/XMLTextShapeImportHelper.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLTextShapeStyleContext.hxx,xmloff/XMLTextShapeStyleContext.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLTextTableContext.hxx,xmloff/XMLTextTableContext.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/animationexport.hxx,xmloff/animationexport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/animexp.hxx,xmloff/animexp.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/attrlist.hxx,xmloff/attrlist.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/contextid.hxx,xmloff/contextid.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/controlpropertyhdl.hxx,xmloff/controlpropertyhdl.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/dllapi.h,xmloff/dllapi.h))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/families.hxx,xmloff/families.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/formlayerexport.hxx,xmloff/formlayerexport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/formlayerimport.hxx,xmloff/formlayerimport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/i18nmap.hxx,xmloff/i18nmap.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/maptype.hxx,xmloff/maptype.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/nmspmap.hxx,xmloff/nmspmap.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/numehelp.hxx,xmloff/numehelp.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/odffields.hxx,xmloff/odffields.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/prhdlfac.hxx,xmloff/prhdlfac.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/prstylei.hxx,xmloff/prstylei.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/settingsstore.hxx,xmloff/settingsstore.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/shapeexport.hxx,xmloff/shapeexport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/shapeimport.hxx,xmloff/shapeimport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/styleexp.hxx,xmloff/styleexp.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/table/XMLTableExport.hxx,xmloff/table/XMLTableExport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/table/XMLTableImport.hxx,xmloff/table/XMLTableImport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/txtimp.hxx,xmloff/txtimp.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/txtimppr.hxx,xmloff/txtimppr.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/txtparae.hxx,xmloff/txtparae.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/txtprmap.hxx,xmloff/txtprmap.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/txtstyli.hxx,xmloff/txtstyli.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/uniref.hxx,xmloff/uniref.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/unoatrcn.hxx,xmloff/unoatrcn.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/unointerfacetouniqueidentifiermapper.hxx,xmloff/unointerfacetouniqueidentifiermapper.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xformsexport.hxx,xmloff/xformsexport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xformsimport.hxx,xmloff/xformsimport.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlaustp.hxx,xmloff/xmlaustp.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlcnimp.hxx,xmloff/xmlcnimp.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlement.hxx,xmloff/xmlement.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlerror.hxx,xmloff/xmlerror.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlevent.hxx,xmloff/xmlevent.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlexp.hxx,xmloff/xmlexp.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlexppr.hxx,xmloff/xmlexppr.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlictxt.hxx,xmloff/xmlictxt.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlimp.hxx,xmloff/xmlimp.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlimppr.hxx,xmloff/xmlimppr.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlmetae.hxx,xmloff/xmlmetae.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlmetai.hxx,xmloff/xmlmetai.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlnmspe.hxx,xmloff/xmlnmspe.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlnume.hxx,xmloff/xmlnume.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlnumfe.hxx,xmloff/xmlnumfe.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlnumfi.hxx,xmloff/xmlnumfi.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlnumi.hxx,xmloff/xmlnumi.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlprcon.hxx,xmloff/xmlprcon.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlprhdl.hxx,xmloff/xmlprhdl.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlprmap.hxx,xmloff/xmlprmap.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlreg.hxx,xmloff/xmlreg.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlscripti.hxx,xmloff/xmlscripti.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlstyle.hxx,xmloff/xmlstyle.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmltabe.hxx,xmloff/xmltabe.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmltkmap.hxx,xmloff/xmltkmap.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmltoken.hxx,xmloff/xmltoken.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmltypes.hxx,xmloff/xmltypes.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmluconv.hxx,xmloff/xmluconv.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/xmlmultiimagehelper.hxx,xmloff/xmlmultiimagehelper.hxx))
-
-# vim: set noet sw=4 ts=4:
diff --git a/xmloff/inc/xmloff/DashStyle.hxx b/xmloff/inc/xmloff/DashStyle.hxx
deleted file mode 100644
index 576414bb7135..000000000000
--- a/xmloff/inc/xmloff/DashStyle.hxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_DASHSTYLE_HXX
-#define _XMLOFF_DASHSTYLE_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <sal/types.h>
-
-class SvXMLImport;
-class SvXMLExport;
-namespace com { namespace sun { namespace star {
- namespace uno { template<class A> class Reference; }
- namespace xml { namespace sax { class XAttributeList; } }
- namespace uno { class Any; }
-} } }
-
-
-class XMLOFF_DLLPUBLIC XMLDashStyleImport
-{
- SvXMLImport& rImport;
-
-public:
- XMLDashStyleImport( SvXMLImport& rImport );
- ~XMLDashStyleImport();
-
- sal_Bool importXML(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
- ::com::sun::star::uno::Any& rValue,
- OUString& rStrName );
-};
-
-
-class XMLOFF_DLLPUBLIC XMLDashStyleExport
-{
- SvXMLExport& rExport;
-
-public:
- XMLDashStyleExport( SvXMLExport& rExport );
- ~XMLDashStyleExport();
-
- sal_Bool exportXML( const OUString& rStrName,
- const ::com::sun::star::uno::Any& rValue );
-};
-
-#endif // _XMLOFF_DASHSTYLE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/DocumentSettingsContext.hxx b/xmloff/inc/xmloff/DocumentSettingsContext.hxx
deleted file mode 100644
index a9277946ca9a..000000000000
--- a/xmloff/inc/xmloff/DocumentSettingsContext.hxx
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_DOCUMENTSETTINGSCONTEXT_HXX
-#define _XMLOFF_DOCUMENTSETTINGSCONTEXT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <xmloff/xmlictxt.hxx>
-#include <com/sun/star/uno/Sequence.h>
-#include <com/sun/star/beans/PropertyValue.hpp>
-
-#include <memory>
-
-struct XMLDocumentSettingsContext_Data;
-
-class XMLOFF_DLLPUBLIC XMLDocumentSettingsContext : public SvXMLImportContext
-{
- ::std::auto_ptr< XMLDocumentSettingsContext_Data > m_pData;
-
-public:
- XMLDocumentSettingsContext(SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList>& xAttrList);
- virtual ~XMLDocumentSettingsContext();
-
- virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
- virtual void EndElement();
-
-private:
- XMLDocumentSettingsContext(); // never implemented
- XMLDocumentSettingsContext( const XMLDocumentSettingsContext& ); // never implemented
- XMLDocumentSettingsContext& operator=( const XMLDocumentSettingsContext& ); // never implemented
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/EnumPropertyHdl.hxx b/xmloff/inc/xmloff/EnumPropertyHdl.hxx
deleted file mode 100644
index f2ef26d4c974..000000000000
--- a/xmloff/inc/xmloff/EnumPropertyHdl.hxx
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_ENUMPROPERTYHANDLER_HXX
-#define _XMLOFF_ENUMPROPERTYHANDLER_HXX
-
-#include <xmloff/xmlprhdl.hxx>
-#include <com/sun/star/uno/Type.h>
-#include <xmloff/xmlement.hxx>
-
-/**
- PropertyHandler for a generic xml enumeration type:
-*/
-class XMLOFF_DLLPUBLIC XMLEnumPropertyHdl : public XMLPropertyHandler
-{
-private:
- const SvXMLEnumMapEntry* mpEnumMap;
- const ::com::sun::star::uno::Type & mrType;
-
-public:
- XMLEnumPropertyHdl( const SvXMLEnumMapEntry* pEnumMap, const ::com::sun::star::uno::Type & rType ) : mpEnumMap( pEnumMap ), mrType( rType ) {}
- virtual ~XMLEnumPropertyHdl();
-
- virtual sal_Bool importXML( const OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const;
- virtual sal_Bool exportXML( OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const;
-};
-
-#endif // _XMLOFF_ENUMPROPERTYHANDLER_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/GradientStyle.hxx b/xmloff/inc/xmloff/GradientStyle.hxx
deleted file mode 100644
index 145ba554505d..000000000000
--- a/xmloff/inc/xmloff/GradientStyle.hxx
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_GRADIENTSTYLE_HXX
-#define _XMLOFF_GRADIENTSTYLE_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <sal/types.h>
-#include <rtl/ustring.hxx>
-
-class SvXMLImport;
-class SvXMLExport;
-namespace com { namespace sun { namespace star {
- namespace uno { template<class A> class Reference; }
- namespace xml { namespace sax { class XAttributeList; } }
- namespace uno { class Any; }
-} } }
-
-
-class XMLOFF_DLLPUBLIC XMLGradientStyleImport
-{
- SvXMLImport& rImport;
-
-public:
- XMLGradientStyleImport( SvXMLImport& rImport );
- ~XMLGradientStyleImport();
-
- sal_Bool importXML(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
- ::com::sun::star::uno::Any& rValue,
- OUString& rStrName );
-};
-
-
-class XMLOFF_DLLPUBLIC XMLGradientStyleExport
-{
- SvXMLExport& rExport;
-
-public:
- XMLGradientStyleExport( SvXMLExport& rExport );
- ~XMLGradientStyleExport();
-
- sal_Bool exportXML(
- const OUString& rStrName,
- const ::com::sun::star::uno::Any& rValue );
-};
-
-#endif // _XMLOFF_GRADIENTSTYLE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/HatchStyle.hxx b/xmloff/inc/xmloff/HatchStyle.hxx
deleted file mode 100644
index 6cdceb618f10..000000000000
--- a/xmloff/inc/xmloff/HatchStyle.hxx
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_HATCHSTYLE_HXX
-#define _XMLOFF_HATCHSTYLE_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <sal/types.h>
-#include <rtl/ustring.hxx>
-
-class SvXMLImport;
-class SvXMLExport;
-namespace com { namespace sun { namespace star {
- namespace uno { template<class A> class Reference; }
- namespace xml { namespace sax { class XAttributeList; } }
- namespace uno { class Any; }
-} } }
-
-
-class XMLOFF_DLLPUBLIC XMLHatchStyleImport
-{
- SvXMLImport& rImport;
-
-public:
- XMLHatchStyleImport( SvXMLImport& rImport );
- ~XMLHatchStyleImport();
-
- sal_Bool importXML(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
- ::com::sun::star::uno::Any& rValue,
- OUString& rStrName );
-};
-
-class XMLOFF_DLLPUBLIC XMLHatchStyleExport
-{
- SvXMLExport& rExport;
-
-public:
- XMLHatchStyleExport( SvXMLExport& rExport );
- ~XMLHatchStyleExport();
-
- sal_Bool exportXML( const OUString& rStrName, const ::com::sun::star::uno::Any& rValue );
-};
-
-#endif // _XMLOFF_HATCHELEMENT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/ImageStyle.hxx b/xmloff/inc/xmloff/ImageStyle.hxx
deleted file mode 100644
index 5c0dfd6ff820..000000000000
--- a/xmloff/inc/xmloff/ImageStyle.hxx
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_IMAGESTYLE_HXX
-#define _XMLOFF_IMAGESTYLE_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
-
-class SvXMLNamespaceMap;
-class SvXMLAttributeList;
-class SvXMLUnitConverter;
-class SvXMLExport;
-class SvXMLImport;
-
-class XMLOFF_DLLPUBLIC XMLImageStyle
-{
-public:
- XMLImageStyle();
- ~XMLImageStyle();
-
- sal_Bool exportXML( const OUString& rStrName, const ::com::sun::star::uno::Any& rValue, SvXMLExport& rExport );
- sal_Bool importXML( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList, ::com::sun::star::uno::Any& rValue, OUString& rStrName, SvXMLImport& rImport );
-
-private:
-
- SAL_DLLPRIVATE sal_Bool ImpExportXML( const OUString& rStrName, const ::com::sun::star::uno::Any& rValue,
- SvXMLExport& rExport );
- SAL_DLLPRIVATE sal_Bool ImpImportXML( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
- ::com::sun::star::uno::Any& rValue, OUString& rStrName,
- SvXMLImport& rImport );
-};
-
-#endif // _XMLOFF_IMAGESTYLE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/MarkerStyle.hxx b/xmloff/inc/xmloff/MarkerStyle.hxx
deleted file mode 100644
index 5cff7cb23745..000000000000
--- a/xmloff/inc/xmloff/MarkerStyle.hxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_MARKERSTYLE_HXX
-#define _XMLOFF_MARKERSTYLE_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <sal/types.h>
-#include <rtl/ustring.hxx>
-
-class SvXMLImport;
-class SvXMLExport;
-namespace com { namespace sun { namespace star {
- namespace uno { template<class A> class Reference; }
- namespace xml { namespace sax { class XAttributeList; } }
- namespace uno { class Any; }
-} } }
-
-
-class XMLOFF_DLLPUBLIC XMLMarkerStyleImport
-{
- SvXMLImport& rImport;
-
-public:
- XMLMarkerStyleImport( SvXMLImport& rImport );
- ~XMLMarkerStyleImport();
-
- sal_Bool importXML(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
- ::com::sun::star::uno::Any& rValue,
- OUString& rStrName );
-};
-
-class XMLOFF_DLLPUBLIC XMLMarkerStyleExport
-{
- SvXMLExport& rExport;
-
-public:
- XMLMarkerStyleExport( SvXMLExport& rExport );
- ~XMLMarkerStyleExport();
-
- sal_Bool exportXML(
- const OUString& rStrName,
- const ::com::sun::star::uno::Any& rValue );
-};
-
-#endif // _XMLOFF_MARKERSTYLE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/NamedBoolPropertyHdl.hxx b/xmloff/inc/xmloff/NamedBoolPropertyHdl.hxx
deleted file mode 100644
index e6dc49c20fff..000000000000
--- a/xmloff/inc/xmloff/NamedBoolPropertyHdl.hxx
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_NAMEDBOOLPROPERTYHANDLER_HXX
-#define _XMLOFF_NAMEDBOOLPROPERTYHANDLER_HXX
-
-#include <xmloff/xmlprhdl.hxx>
-#include <xmloff/xmltoken.hxx>
-#include <com/sun/star/uno/Type.h>
-#include <xmloff/xmlement.hxx>
-
-/**
- PropertyHandler for a named xml bool type:
-*/
-class XMLNamedBoolPropertyHdl : public XMLPropertyHandler
-{
-private:
- const OUString maTrueStr;
- const OUString maFalseStr;
-
-public:
- XMLNamedBoolPropertyHdl( const OUString& rTrueStr, const OUString& rFalseStr ) : maTrueStr( rTrueStr ), maFalseStr( rFalseStr ) {}
-
- XMLNamedBoolPropertyHdl(
- ::xmloff::token::XMLTokenEnum eTrue,
- ::xmloff::token::XMLTokenEnum eFalse
- ) :
- maTrueStr( ::xmloff::token::GetXMLToken( eTrue ) ),
- maFalseStr( ::xmloff::token::GetXMLToken( eFalse ) )
- {}
-
- virtual ~XMLNamedBoolPropertyHdl();
-
- virtual sal_Bool importXML( const OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const;
- virtual sal_Bool exportXML( OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const;
-};
-
-#endif // _XMLOFF_NAMEDBOOLPROPERTYHANDLER_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/PageMasterStyleMap.hxx b/xmloff/inc/xmloff/PageMasterStyleMap.hxx
deleted file mode 100644
index c3a83922ec14..000000000000
--- a/xmloff/inc/xmloff/PageMasterStyleMap.hxx
+++ /dev/null
@@ -1,168 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_PAGEMASTERSTYLEMAP_HXX_
-#define _XMLOFF_PAGEMASTERSTYLEMAP_HXX_
-
-#include <xmloff/maptype.hxx>
-#include <xmloff/xmltypes.hxx>
-#include <xmloff/contextid.hxx>
-
-//______________________________________________________________________________
-
-#define XML_PM_TYPE_PAGESTYLELAYOUT (XML_PM_TYPES_START + 0)
-#define XML_PM_TYPE_NUMFORMAT (XML_PM_TYPES_START + 1)
-#define XML_PM_TYPE_NUMLETTERSYNC (XML_PM_TYPES_START + 2)
-#define XML_PM_TYPE_PAPERTRAYNUMBER (XML_PM_TYPES_START + 3)
-#define XML_PM_TYPE_PRINTORIENTATION (XML_PM_TYPES_START + 4)
-#define XML_PM_TYPE_PRINTANNOTATIONS (XML_PM_TYPES_START + 5)
-#define XML_PM_TYPE_PRINTCHARTS (XML_PM_TYPES_START + 6)
-#define XML_PM_TYPE_PRINTDRAWING (XML_PM_TYPES_START + 7)
-#define XML_PM_TYPE_PRINTFORMULAS (XML_PM_TYPES_START + 8)
-#define XML_PM_TYPE_PRINTGRID (XML_PM_TYPES_START + 9)
-#define XML_PM_TYPE_PRINTHEADERS (XML_PM_TYPES_START + 10)
-#define XML_PM_TYPE_PRINTOBJECTS (XML_PM_TYPES_START + 11)
-#define XML_PM_TYPE_PRINTZEROVALUES (XML_PM_TYPES_START + 12)
-#define XML_PM_TYPE_PRINTPAGEORDER (XML_PM_TYPES_START + 13)
-#define XML_PM_TYPE_FIRSTPAGENUMBER (XML_PM_TYPES_START + 14)
-#define XML_PM_TYPE_CENTER_HORIZONTAL (XML_PM_TYPES_START + 15)
-#define XML_PM_TYPE_CENTER_VERTICAL (XML_PM_TYPES_START + 16)
-
-// control flags
-#define CTF_PM_FLAGMASK (XML_PM_CTF_START + 0x0F00)
-#define CTF_PM_HEADERFLAG (XML_PM_CTF_START + 0x0100)
-#define CTF_PM_FOOTERFLAG (XML_PM_CTF_START + 0x0200)
-#define CTF_PM_PRINTMASK (XML_PM_CTF_START + 0x1000)
-// page master
-#define CTF_PM_BORDERALL (XML_PM_CTF_START + 0x0001)
-#define CTF_PM_BORDERTOP (XML_PM_CTF_START + 0x0002)
-#define CTF_PM_BORDERBOTTOM (XML_PM_CTF_START + 0x0003)
-#define CTF_PM_BORDERLEFT (XML_PM_CTF_START + 0x0004)
-#define CTF_PM_BORDERRIGHT (XML_PM_CTF_START + 0x0005)
-#define CTF_PM_BORDERWIDTHALL (XML_PM_CTF_START + 0x0006)
-#define CTF_PM_BORDERWIDTHTOP (XML_PM_CTF_START + 0x0007)
-#define CTF_PM_BORDERWIDTHBOTTOM (XML_PM_CTF_START + 0x0008)
-#define CTF_PM_BORDERWIDTHLEFT (XML_PM_CTF_START + 0x0009)
-#define CTF_PM_BORDERWIDTHRIGHT (XML_PM_CTF_START + 0x000A)
-#define CTF_PM_PADDINGALL (XML_PM_CTF_START + 0x000B)
-#define CTF_PM_PADDINGTOP (XML_PM_CTF_START + 0x000C)
-#define CTF_PM_PADDINGBOTTOM (XML_PM_CTF_START + 0x000D)
-#define CTF_PM_PADDINGLEFT (XML_PM_CTF_START + 0x000E)
-#define CTF_PM_PADDINGRIGHT (XML_PM_CTF_START + 0x000F)
-#define CTF_PM_TEXTCOLUMNS (XML_PM_CTF_START + 0x0010)
-#define CTF_PM_REGISTER_STYLE (XML_PM_CTF_START + 0x0011)
-#define CTF_PM_PRINT_ANNOTATIONS (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0012))
-#define CTF_PM_PRINT_CHARTS (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0013))
-#define CTF_PM_PRINT_DRAWING (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0014))
-#define CTF_PM_PRINT_FORMULAS (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0015))
-#define CTF_PM_PRINT_GRID (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0016))
-#define CTF_PM_PRINT_HEADERS (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0017))
-#define CTF_PM_PRINT_OBJECTS (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0018))
-#define CTF_PM_PRINT_ZEROVALUES (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0019))
-#define CTF_PM_MARGINALL (XML_PM_CTF_START + 0x001A)
-#define CTF_PM_MARGINTOP (XML_PM_CTF_START + 0x001B)
-#define CTF_PM_MARGINBOTTOM (XML_PM_CTF_START + 0x001C)
-#define CTF_PM_MARGINLEFT (XML_PM_CTF_START + 0x001D)
-#define CTF_PM_MARGINRIGHT (XML_PM_CTF_START + 0x001E)
-
-#define CTF_PM_PAGEUSAGE (XML_PM_CTF_START + 0x0031)
-#define CTF_PM_GRAPHICPOSITION (XML_PM_CTF_START + 0x0032)
-#define CTF_PM_GRAPHICFILTER (XML_PM_CTF_START + 0x0033)
-#define CTF_PM_GRAPHICURL (XML_PM_CTF_START + 0x0034)
-
-#define CTF_PM_SCALETO (XML_PM_CTF_START + 0x0051) // calc specific
-#define CTF_PM_SCALETOPAGES (XML_PM_CTF_START + 0x0052)
-#define CTF_PM_SCALETOX (XML_PM_CTF_START + 0x0053)
-#define CTF_PM_SCALETOY (XML_PM_CTF_START + 0x0054)
-#define CTF_PM_STANDARD_MODE (XML_PM_CTF_START + 0x0055)
-#define CTP_PM_GRID_BASE_WIDTH (XML_PM_CTF_START + 0x0056)
-#define CTP_PM_GRID_SNAP_TO_CHARS (XML_PM_CTF_START + 0x0057)
-#define CTP_PM_GRID_SNAP_TO (XML_PM_CTF_START + 0x0058)
-// header
-#define CTF_PM_HEADERBORDERALL (CTF_PM_HEADERFLAG|CTF_PM_BORDERALL)
-#define CTF_PM_HEADERBORDERTOP (CTF_PM_HEADERFLAG|CTF_PM_BORDERTOP)
-#define CTF_PM_HEADERBORDERBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_BORDERBOTTOM)
-#define CTF_PM_HEADERBORDERLEFT (CTF_PM_HEADERFLAG|CTF_PM_BORDERLEFT)
-#define CTF_PM_HEADERBORDERRIGHT (CTF_PM_HEADERFLAG|CTF_PM_BORDERRIGHT)
-#define CTF_PM_HEADERBORDERWIDTHALL (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHALL)
-#define CTF_PM_HEADERBORDERWIDTHTOP (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHTOP)
-#define CTF_PM_HEADERBORDERWIDTHBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHBOTTOM)
-#define CTF_PM_HEADERBORDERWIDTHLEFT (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHLEFT)
-#define CTF_PM_HEADERBORDERWIDTHRIGHT (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHRIGHT)
-#define CTF_PM_HEADERPADDINGALL (CTF_PM_HEADERFLAG|CTF_PM_PADDINGALL)
-#define CTF_PM_HEADERPADDINGTOP (CTF_PM_HEADERFLAG|CTF_PM_PADDINGTOP)
-#define CTF_PM_HEADERPADDINGBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_PADDINGBOTTOM)
-#define CTF_PM_HEADERPADDINGLEFT (CTF_PM_HEADERFLAG|CTF_PM_PADDINGLEFT)
-#define CTF_PM_HEADERPADDINGRIGHT (CTF_PM_HEADERFLAG|CTF_PM_PADDINGRIGHT)
-#define CTF_PM_HEADERHEIGHT (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0031))
-#define CTF_PM_HEADERMINHEIGHT (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0032))
-#define CTF_PM_HEADERDYNAMIC (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0033))
-#define CTF_PM_HEADERGRAPHICPOSITION (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0034))
-#define CTF_PM_HEADERGRAPHICFILTER (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0035))
-#define CTF_PM_HEADERGRAPHICURL (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0036))
-#define CTF_PM_HEADERMARGINALL (CTF_PM_HEADERFLAG|CTF_PM_MARGINALL)
-#define CTF_PM_HEADERMARGINTOP (CTF_PM_HEADERFLAG|CTF_PM_MARGINTOP)
-#define CTF_PM_HEADERMARGINBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_MARGINBOTTOM)
-#define CTF_PM_HEADERMARGINLEFT (CTF_PM_HEADERFLAG|CTF_PM_MARGINLEFT)
-#define CTF_PM_HEADERMARGINRIGHT (CTF_PM_HEADERFLAG|CTF_PM_MARGINRIGHT)
-
-// footer
-#define CTF_PM_FOOTERBORDERALL (CTF_PM_FOOTERFLAG|CTF_PM_BORDERALL)
-#define CTF_PM_FOOTERBORDERTOP (CTF_PM_FOOTERFLAG|CTF_PM_BORDERTOP)
-#define CTF_PM_FOOTERBORDERBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_BORDERBOTTOM)
-#define CTF_PM_FOOTERBORDERLEFT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERLEFT)
-#define CTF_PM_FOOTERBORDERRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERRIGHT)
-#define CTF_PM_FOOTERBORDERWIDTHALL (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHALL)
-#define CTF_PM_FOOTERBORDERWIDTHTOP (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHTOP)
-#define CTF_PM_FOOTERBORDERWIDTHBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHBOTTOM)
-#define CTF_PM_FOOTERBORDERWIDTHLEFT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHLEFT)
-#define CTF_PM_FOOTERBORDERWIDTHRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHRIGHT)
-#define CTF_PM_FOOTERPADDINGALL (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGALL)
-#define CTF_PM_FOOTERPADDINGTOP (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGTOP)
-#define CTF_PM_FOOTERPADDINGBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGBOTTOM)
-#define CTF_PM_FOOTERPADDINGLEFT (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGLEFT)
-#define CTF_PM_FOOTERPADDINGRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGRIGHT)
-#define CTF_PM_FOOTERHEIGHT (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0031))
-#define CTF_PM_FOOTERMINHEIGHT (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0032))
-#define CTF_PM_FOOTERDYNAMIC (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0033))
-#define CTF_PM_FOOTERGRAPHICPOSITION (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0034))
-#define CTF_PM_FOOTERGRAPHICFILTER (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0035))
-#define CTF_PM_FOOTERGRAPHICURL (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0036))
-#define CTF_PM_FOOTERMARGINALL (CTF_PM_FOOTERFLAG|CTF_PM_MARGINALL)
-#define CTF_PM_FOOTERMARGINTOP (CTF_PM_FOOTERFLAG|CTF_PM_MARGINTOP)
-#define CTF_PM_FOOTERMARGINBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_MARGINBOTTOM)
-#define CTF_PM_FOOTERMARGINLEFT (CTF_PM_FOOTERFLAG|CTF_PM_MARGINLEFT)
-#define CTF_PM_FOOTERMARGINRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_MARGINRIGHT)
-
-#define CTF_PM_FTN_HEIGHT (XML_PM_CTF_START + 0x0060)
-#define CTF_PM_FTN_LINE_WEIGHT (XML_PM_CTF_START + 0x0061)
-#define CTF_PM_FTN_LINE_COLOR (XML_PM_CTF_START + 0x0062)
-#define CTF_PM_FTN_LINE_WIDTH (XML_PM_CTF_START + 0x0063)
-#define CTF_PM_FTN_LINE_ADJUST (XML_PM_CTF_START + 0x0064)
-#define CTF_PM_FTN_LINE_DISTANCE (XML_PM_CTF_START + 0x0065)
-#define CTF_PM_FTN_DISTANCE (XML_PM_CTF_START + 0x0066)
-#define CTF_PM_FTN_LINE_STYLE (XML_PM_CTF_START + 0x0067)
-
-extern const XMLPropertyMapEntry aXMLPageMasterStyleMap[];
-extern const XMLPropertyMapEntry aXMLPageMasterHeaderImportStyleMap[];
-extern const XMLPropertyMapEntry aXMLPageMasterFooterImportStyleMap[];
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/ProgressBarHelper.hxx b/xmloff/inc/xmloff/ProgressBarHelper.hxx
deleted file mode 100644
index e34e6a07919d..000000000000
--- a/xmloff/inc/xmloff/ProgressBarHelper.hxx
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_PROGRESSBARHELPER_HXX
-#define _XMLOFF_PROGRESSBARHELPER_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <com/sun/star/task/XStatusIndicator.hpp>
-#include <com/sun/star/frame/XModel.hpp>
-
-#define XML_PROGRESSRANGE "ProgressRange"
-#define XML_PROGRESSMAX "ProgressMax"
-#define XML_PROGRESSCURRENT "ProgressCurrent"
-#define XML_PROGRESSREPEAT "ProgressRepeat"
-
-class XMLOFF_DLLPUBLIC ProgressBarHelper
-{
- ::com::sun::star::uno::Reference < ::com::sun::star::task::XStatusIndicator > xStatusIndicator;
- sal_Int32 nRange;
- sal_Int32 nReference;
- sal_Int32 nValue;
- sal_Bool bStrict;
- // #96469#; if the value goes over the Range the progressbar starts again
- sal_Bool bRepeat;
-
-#ifdef DBG_UTIL
- sal_Bool bFailure;
-#endif
-public:
- ProgressBarHelper(const ::com::sun::star::uno::Reference < ::com::sun::star::task::XStatusIndicator>& xStatusIndicator,
- const sal_Bool bStrict);
- ~ProgressBarHelper();
-
- void SetText(OUString& rText) { if (xStatusIndicator.is()) xStatusIndicator->setText(rText); }
- void SetRange(sal_Int32 nVal) { nRange = nVal; }
- void SetReference(sal_Int32 nVal) { nReference = nVal; }
- void SetValue(sal_Int32 nValue);
- void SetRepeat(sal_Bool bValue) { bRepeat = bValue; }
- inline void Increment(sal_Int32 nInc = 1) { SetValue( nValue+nInc ); }
- void End() { if (xStatusIndicator.is()) xStatusIndicator->end(); }
-
- // set the new reference and returns the new value which gives the
- // Progress Bar the sam position as before
- sal_Int32 ChangeReference(sal_Int32 nNewReference);
-
- sal_Int32 GetReference() { return nReference; }
- sal_Int32 GetValue() { return nValue; }
- sal_Bool GetRepeat() { return bRepeat; }
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/PropertySetInfoHash.hxx b/xmloff/inc/xmloff/PropertySetInfoHash.hxx
deleted file mode 100644
index 8d9705b68afb..000000000000
--- a/xmloff/inc/xmloff/PropertySetInfoHash.hxx
+++ /dev/null
@@ -1,59 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_PROPERTYSETINFOHASH_HXX
-#define _XMLOFF_PROPERTYSETINFOHASH_HXX
-
-#include <xmloff/PropertySetInfoKey.hxx>
-
-#include <string.h>
-#include <memory>
-
-struct PropertySetInfoHash
-{
- inline size_t operator()( const PropertySetInfoKey& r ) const;
- inline bool operator()( const PropertySetInfoKey& r1,
- const PropertySetInfoKey& r2 ) const;
-};
-
-inline size_t PropertySetInfoHash::operator()(
- const PropertySetInfoKey& r ) const
-{
- const sal_Int32* pBytesAsInt32Array =
- (const sal_Int32*)r.aImplementationId.getConstArray();
- sal_Int32 nId32 = pBytesAsInt32Array[0] ^
- pBytesAsInt32Array[1] ^
- pBytesAsInt32Array[2] ^
- pBytesAsInt32Array[3];
- return (size_t)nId32 ^ (size_t)r.xPropInfo.get();
-}
-
-inline bool PropertySetInfoHash::operator()(
- const PropertySetInfoKey& r1,
- const PropertySetInfoKey& r2 ) const
-{
- if( r1.xPropInfo != r2.xPropInfo )
- return sal_False;
-
- const sal_Int8* pId1 = r1.aImplementationId.getConstArray();
- const sal_Int8* pId2 = r2.aImplementationId.getConstArray();
- return memcmp( pId1, pId2, 16 * sizeof( sal_Int8 ) ) == 0;
-}
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/PropertySetInfoKey.hxx b/xmloff/inc/xmloff/PropertySetInfoKey.hxx
deleted file mode 100644
index 79e49d8568aa..000000000000
--- a/xmloff/inc/xmloff/PropertySetInfoKey.hxx
+++ /dev/null
@@ -1,61 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_PROPERTYSETINFOKEY_HXX
-#define _XMLOFF_PROPERTYSETINFOKEY_HXX
-
-#include <osl/diagnose.h>
-#include <com/sun/star/uno/Sequence.hxx>
-
-namespace com { namespace sun { namespace star {
- namespace beans { class XPropertySetInfo; }
-} } }
-
-
-struct PropertySetInfoKey
-{
- ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySetInfo > xPropInfo;
- ::com::sun::star::uno::Sequence < sal_Int8 > aImplementationId;
-
- inline PropertySetInfoKey();
- inline PropertySetInfoKey(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySetInfo >& rPropInfo,
- const ::com::sun::star::uno::Sequence < sal_Int8 >& rImplId );
-};
-
-inline PropertySetInfoKey::PropertySetInfoKey()
-{
- OSL_ENSURE( aImplementationId.getLength()==16, "illegal constructor call" );
-}
-
-inline PropertySetInfoKey::PropertySetInfoKey(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySetInfo >& rPropInfo,
- const ::com::sun::star::uno::Sequence < sal_Int8 >& rImplId ) :
- xPropInfo( rPropInfo ),
- aImplementationId( rImplId )
-{
- OSL_ENSURE( rPropInfo.is(), "prop info missing" );
- OSL_ENSURE( aImplementationId.getLength()==16, "invalid implementation id" );
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/SchXMLExportHelper.hxx b/xmloff/inc/xmloff/SchXMLExportHelper.hxx
deleted file mode 100644
index 7413438fe8f7..000000000000
--- a/xmloff/inc/xmloff/SchXMLExportHelper.hxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_SCH_XMLEXPORTHELPER_HXX_
-#define _XMLOFF_SCH_XMLEXPORTHELPER_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <xmloff/uniref.hxx>
-#include <rtl/ustrbuf.hxx>
-#include <com/sun/star/util/XStringMapping.hpp>
-#include <com/sun/star/awt/Size.hpp>
-#include <com/sun/star/awt/Point.hpp>
-#include <xmloff/xmlprmap.hxx>
-
-#include <queue>
-#include <vector>
-
-class SvXMLAutoStylePoolP;
-class SvXMLExport;
-class SchXMLExportHelper_Impl;
-
-/** With this class you can export a <chart:chart> element containing
- its data as <table:table> element or without internal table. In
- the latter case you have to provide a table address mapper if the
- cell addressing set at the document is not in XML format.
- */
-class XMLOFF_DLLPUBLIC SchXMLExportHelper : public UniRefBase
-{
-public:
- SchXMLExportHelper( SvXMLExport& rExport,
- SvXMLAutoStylePoolP& rASPool );
-
- virtual ~SchXMLExportHelper();
-
- /// returns the string corresponding to the current FileFormat CLSID for Chart
- const OUString& getChartCLSID();
-
-private:
- SchXMLExportHelper(); // not defined
- SchXMLExportHelper(SchXMLExportHelper &); // not defined
- void operator =(SchXMLExportHelper &); // not defined
-
-private:
- SchXMLExportHelper_Impl* m_pImpl;
- friend class SchXMLExport;
-};
-
-#endif // _XMLOFF_SCH_XMLEXPORTHELPER_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/SchXMLImportHelper.hxx b/xmloff/inc/xmloff/SchXMLImportHelper.hxx
deleted file mode 100644
index 5981597c68bd..000000000000
--- a/xmloff/inc/xmloff/SchXMLImportHelper.hxx
+++ /dev/null
@@ -1,153 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_SCH_XMLIMPORTHELPER_HXX_
-#define _XMLOFF_SCH_XMLIMPORTHELPER_HXX_
-
-#include <xmloff/uniref.hxx>
-#include <xmloff/families.hxx>
-#include <com/sun/star/util/XStringMapping.hpp>
-#include <com/sun/star/chart/XChartDocument.hpp>
-
-namespace com { namespace sun { namespace star {
- namespace frame {
- class XModel;
- }
- namespace task {
- class XStatusIndicator;
- }
- namespace xml {
- namespace sax {
- class XAttributeList;
- }
- }
- namespace chart2 {
- namespace data {
- class XDataProvider;
- class XLabeledDataSequence;
- }
- class XChartDocument;
- class XDataSeries;
- }
-}}}
-
-class SvXMLUnitConverter;
-class SvXMLStylesContext;
-class XMLChartImportPropertyMapper;
-class SvXMLTokenMap;
-class SvXMLImportContext;
-class SvXMLImport;
-
-// ========================================
-
-/** With this class you can import a <chart:chart> element containing
- its data as <table:table> element or without internal table. In
- the latter case you have to provide a table address mapper that
- converts table addresses in XML format to the appropriate application
- format.
- */
-class SchXMLImportHelper : public UniRefBase
-{
-private:
- com::sun::star::uno::Reference< com::sun::star::chart::XChartDocument > mxChartDoc;
- SvXMLStylesContext* mpAutoStyles;
-
- SvXMLTokenMap* mpChartDocElemTokenMap;
- SvXMLTokenMap* mpTableElemTokenMap;
- SvXMLTokenMap* mpChartElemTokenMap;
- SvXMLTokenMap* mpPlotAreaElemTokenMap;
- SvXMLTokenMap* mpSeriesElemTokenMap;
-
- SvXMLTokenMap* mpChartAttrTokenMap;
- SvXMLTokenMap* mpPlotAreaAttrTokenMap;
- SvXMLTokenMap* mpAutoStyleAttrTokenMap;
- SvXMLTokenMap* mpCellAttrTokenMap;
- SvXMLTokenMap* mpSeriesAttrTokenMap;
- SvXMLTokenMap* mpRegEquationAttrTokenMap;
-
-public:
-
- SchXMLImportHelper();
- ~SchXMLImportHelper();
-
- /** get the context for reading the <chart:chart> element with subelements.
- The result is stored in the XModel given if it also implements
- XChartDocument
- */
- SvXMLImportContext* CreateChartContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrefix, const OUString& rLocalName,
- const com::sun::star::uno::Reference<
- com::sun::star::frame::XModel > xChartModel,
- const com::sun::star::uno::Reference<
- com::sun::star::xml::sax::XAttributeList >& xAttrList );
-
- /** set the auto-style context that will be used to retrieve auto-styles
- used inside the following <chart:chart> element to parse
- */
- void SetAutoStylesContext( SvXMLStylesContext* pAutoStyles ) { mpAutoStyles = pAutoStyles; }
- SvXMLStylesContext* GetAutoStylesContext() const { return mpAutoStyles; }
-
- const com::sun::star::uno::Reference<
- com::sun::star::chart::XChartDocument >& GetChartDocument()
- { return mxChartDoc; }
-
- const SvXMLTokenMap& GetDocElemTokenMap();
- const SvXMLTokenMap& GetTableElemTokenMap();
- const SvXMLTokenMap& GetChartElemTokenMap();
- const SvXMLTokenMap& GetPlotAreaElemTokenMap();
- const SvXMLTokenMap& GetSeriesElemTokenMap();
-
- const SvXMLTokenMap& GetChartAttrTokenMap();
- const SvXMLTokenMap& GetPlotAreaAttrTokenMap();
- const SvXMLTokenMap& GetCellAttrTokenMap();
- const SvXMLTokenMap& GetSeriesAttrTokenMap();
- const SvXMLTokenMap& GetRegEquationAttrTokenMap();
-
- static sal_uInt16 GetChartFamilyID() { return XML_STYLE_FAMILY_SCH_CHART_ID; }
-
- /** @param bPushLastChartType If </sal_False>, in case a new chart type has to
- be added (because it does not exist yet), it is appended at the
- end of the chart-type container. When </sal_True>, a new chart type
- is added at one position before the last one, i.e. the formerly
- last chart type is pushed back, so that it remains the last one.
-
- This is needed when the global chart type is set to type A, but
- the first series has type B. Then B should appear before A (done
- by passing true). Once a series of type A has been read,
- following new chart types are again be added at the end (by
- passing false).
- */
- static ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XDataSeries > GetNewDataSeries(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XChartDocument > & xDoc,
- sal_Int32 nCoordinateSystemIndex,
- const OUString & rChartTypeName,
- bool bPushLastChartType = false );
-
- static void DeleteDataSeries(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XDataSeries >& xSeries,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XChartDocument > & xDoc );
-};
-
-#endif // _XMLOFF_SCH_XMLIMPORTHELPER_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/SchXMLSeriesHelper.hxx b/xmloff/inc/xmloff/SchXMLSeriesHelper.hxx
deleted file mode 100644
index 7f47295eb71c..000000000000
--- a/xmloff/inc/xmloff/SchXMLSeriesHelper.hxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_SCH_XML_SERIESHELPER_HXX
-#define _XMLOFF_SCH_XML_SERIESHELPER_HXX
-
-#include <com/sun/star/chart2/data/XDataSequence.hpp>
-#include <com/sun/star/chart2/data/XDataSource.hpp>
-#include <com/sun/star/chart2/XDataSeries.hpp>
-#include <com/sun/star/chart2/XDiagram.hpp>
-#include <com/sun/star/frame/XModel.hpp>
-
-#include "xmloff/dllapi.h"
-
-#include <vector>
-#include <map>
-#include <iterator>
-
-class XMLOFF_DLLPUBLIC SchXMLSeriesHelper
-{
-public:
- static ::std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries > >
- getDataSeriesFromDiagram(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XDiagram > & xDiagram );
- static ::std::map< ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XDataSeries >, sal_Int32 >
- getDataSeriesIndexMapFromDiagram(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XDiagram > & xDiagram );
-
- static bool isCandleStickSeries(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XDataSeries >& xSeries
- , const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel >& xChartModel );
-
- static ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > createOldAPISeriesPropertySet(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XDataSeries >& xSeries
- , const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel >& xChartModel );
-
- static ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > createOldAPIDataPointPropertySet(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::chart2::XDataSeries >& xSeries
- , sal_Int32 nPointIndex
- , const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel >& xChartModel );
-};
-
-// _XMLOFF_SCH_XML_SERIESHELPER_HXX
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/SettingsExportHelper.hxx b/xmloff/inc/xmloff/SettingsExportHelper.hxx
deleted file mode 100644
index e790e09860da..000000000000
--- a/xmloff/inc/xmloff/SettingsExportHelper.hxx
+++ /dev/null
@@ -1,104 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_SETTINGSEXPORTHELPER_HXX
-#define _XMLOFF_SETTINGSEXPORTHELPER_HXX
-
-#include "xmloff/dllapi.h"
-
-#include <com/sun/star/awt/Rectangle.hpp>
-#include <com/sun/star/formula/SymbolDescriptor.hpp>
-#include <com/sun/star/util/XStringSubstitution.hpp>
-#include <xmloff/xmlexp.hxx>
-
-namespace com
-{
- namespace sun { namespace star {
- namespace container { class XNameAccess; class XIndexAccess; }
- namespace util { struct DateTime; }
- } }
-}
-
-namespace xmloff
-{
- class XMLSettingsExportContext;
-}
-
-class XMLOFF_DLLPUBLIC XMLSettingsExportHelper
-{
- ::xmloff::XMLSettingsExportContext& m_rContext;
-
- ::com::sun::star::uno::Reference< ::com::sun::star::util::XStringSubstitution > mxStringSubsitution;
-
- const OUString msPrinterIndependentLayout;
- const OUString msColorTableURL;
- const OUString msLineEndTableURL;
- const OUString msHatchTableURL;
- const OUString msDashTableURL;
- const OUString msGradientTableURL;
- const OUString msBitmapTableURL;
-
- void ManipulateSetting( com::sun::star::uno::Any& rAny, const OUString& rName ) const;
-
- void CallTypeFunction(const com::sun::star::uno::Any& rAny,
- const OUString& rName) const;
-
- void exportBool(const sal_Bool bValue, const OUString& rName) const;
- void exportByte(const sal_Int8 nValue, const OUString& rName) const;
- void exportShort(const sal_Int16 nValue, const OUString& rName) const;
- void exportInt(const sal_Int32 nValue, const OUString& rName) const;
- void exportLong(const sal_Int64 nValue, const OUString& rName) const;
- void exportDouble(const double fValue, const OUString& rName) const;
- void exportString(const OUString& sValue, const OUString& rName) const;
- void exportDateTime(const com::sun::star::util::DateTime& aValue, const OUString& rName) const;
- void exportSequencePropertyValue(
- const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps,
- const OUString& rName) const;
- void exportbase64Binary(
- const com::sun::star::uno::Sequence<sal_Int8>& aProps,
- const OUString& rName) const;
- void exportMapEntry(const com::sun::star::uno::Any& rAny,
- const OUString& rName,
- const sal_Bool bNameAccess) const;
- void exportNameAccess(
- const com::sun::star::uno::Reference<com::sun::star::container::XNameAccess>& aNamed,
- const OUString& rName) const;
- void exportIndexAccess(
- const com::sun::star::uno::Reference<com::sun::star::container::XIndexAccess> aIndexed,
- const OUString rName) const;
-
- void exportSymbolDescriptors(
- const com::sun::star::uno::Sequence < com::sun::star::formula::SymbolDescriptor > &rProps,
- const OUString rName) const;
- void exportForbiddenCharacters(
- const com::sun::star::uno::Any &rAny,
- const OUString rName) const;
-
-public:
- XMLSettingsExportHelper( ::xmloff::XMLSettingsExportContext& i_rContext );
- ~XMLSettingsExportHelper();
-
- void exportAllSettings(
- const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps,
- const OUString& rName) const;
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/SinglePropertySetInfoCache.hxx b/xmloff/inc/xmloff/SinglePropertySetInfoCache.hxx
deleted file mode 100644
index 576339d9c9de..000000000000
--- a/xmloff/inc/xmloff/SinglePropertySetInfoCache.hxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_SINGEPROPERTYSETINFOCACHE_HXX
-#define _XMLOFF_SINGEPROPERTYSETINFOCACHE_HXX
-
-#include <com/sun/star/beans/XPropertySet.hpp>
-
-#include <boost/unordered_map.hpp>
-#include <xmloff/PropertySetInfoHash.hxx>
-
-typedef boost::unordered_map
-<
- PropertySetInfoKey,
- sal_Bool,
- PropertySetInfoHash,
- PropertySetInfoHash
->
-SinglePropertySetInfoMap_Impl;
-
-class SinglePropertySetInfoCache : private SinglePropertySetInfoMap_Impl
-{
- OUString sName;
-
-public:
-
- inline SinglePropertySetInfoCache( const OUString& rName );
- ~SinglePropertySetInfoCache() {};
-
- sal_Bool hasProperty(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet >& rPropSet,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySetInfo >& rPropSetInfo );
- inline sal_Bool hasProperty(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet>& rPropSet );
-};
-
-inline SinglePropertySetInfoCache::SinglePropertySetInfoCache(
- const OUString& rName ) :
- sName( rName )
-{
-}
-
-inline sal_Bool SinglePropertySetInfoCache::hasProperty(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet>& rPropSet )
-{
- ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySetInfo > xInfo;
- return hasProperty( rPropSet, xInfo );
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/WordWrapPropertyHdl.hxx b/xmloff/inc/xmloff/WordWrapPropertyHdl.hxx
deleted file mode 100644
index 6430b8258c6e..000000000000
--- a/xmloff/inc/xmloff/WordWrapPropertyHdl.hxx
+++ /dev/null
@@ -1,47 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_WORDWRAPPROPERTYHANDLER_HXX
-#define _XMLOFF_WORDWRAPPROPERTYHANDLER_HXX
-
-#include <xmloff/xmlprhdl.hxx>
-#include <xmloff/xmltoken.hxx>
-#include <com/sun/star/uno/Type.h>
-#include <xmloff/xmlement.hxx>
-
-/**
- PropertyHandler for a named xml bool type:
-*/
-class SvXMLImport;
-class XMLWordWrapPropertyHdl : public XMLPropertyHandler
-{
-private:
- SvXMLImport* mpImport;
-
-public:
- XMLWordWrapPropertyHdl( SvXMLImport* pImport );
- virtual ~XMLWordWrapPropertyHdl();
-
- virtual sal_Bool importXML( const OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const;
- virtual sal_Bool exportXML( OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const;
-};
-
-#endif // _XMLOFF_NAMEDBOOLPROPERTYHANDLER_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLBase64ImportContext.hxx b/xmloff/inc/xmloff/XMLBase64ImportContext.hxx
deleted file mode 100644
index d2804928a324..000000000000
--- a/xmloff/inc/xmloff/XMLBase64ImportContext.hxx
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLBASE64IMPORTCONTEXT_HXX
-#define _XMLOFF_XMLBASE64IMPORTCONTEXT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
-#include <xmloff/xmlictxt.hxx>
-
-namespace com { namespace sun { namespace star { namespace io {
- class XOutputStream; } } } }
-
-class XMLOFF_DLLPUBLIC XMLBase64ImportContext : public SvXMLImportContext
-{
- ::com::sun::star::uno::Reference<
- ::com::sun::star::io::XOutputStream > xOut;
- OUString sBase64CharsLeft;
-
-public:
- TYPEINFO();
-
- XMLBase64ImportContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
- const OUString& rLName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::io::XOutputStream >& rOut );
-
- virtual ~XMLBase64ImportContext();
-
- virtual void EndElement();
-
- virtual void Characters( const OUString& rChars );
-
-};
-
-#endif // _XMLOFF_XMLBASE64IMPORTCONTEXT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLCharContext.hxx b/xmloff/inc/xmloff/XMLCharContext.hxx
deleted file mode 100644
index 644b03877d64..000000000000
--- a/xmloff/inc/xmloff/XMLCharContext.hxx
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef INCLUDED__XMLOFF_CHARCONTEXT_HXX
-#define INCLUDED__XMLOFF_CHARCONTEXT_HXX
-
-#include "xmloff/dllapi.h"
-#include <com/sun/star/uno/Reference.h>
-#include "xmlictxt.hxx"
-
-class XMLOFF_DLLPUBLIC XMLCharContext : public SvXMLImportContext
-{
- XMLCharContext(const XMLCharContext&);
- void operator =(const XMLCharContext&);
-protected:
- sal_Int16 m_nControl;
- sal_uInt16 m_nCount;
- sal_Unicode m_c;
-public:
-
- TYPEINFO();
-
- XMLCharContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrfx,
- const OUString& rLName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
- sal_Unicode c,
- sal_Bool bCount );
- XMLCharContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrfx,
- const OUString& rLName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
- sal_Int16 nControl );
-
- virtual ~XMLCharContext();
-
- // EndElement is called before a context will be destructed, but
- // after a elements context has been parsed. It may be used for actions
- // that require virtual methods. The default is to do nothing.
- virtual void EndElement();
-
- virtual void InsertControlCharacter(sal_Int16 _nControl);
- virtual void InsertString(const OUString& _sString);
-};
-// ---------------------------------------------------------------------
-#endif // INCLUDED__XMLOFF_CHARCONTEXT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLConstantsPropertyHandler.hxx b/xmloff/inc/xmloff/XMLConstantsPropertyHandler.hxx
deleted file mode 100644
index cad125159d11..000000000000
--- a/xmloff/inc/xmloff/XMLConstantsPropertyHandler.hxx
+++ /dev/null
@@ -1,63 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLCONSTANTSPROPERTYHANDLER_HXX
-#define _XMLOFF_XMLCONSTANTSPROPERTYHANDLER_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <xmloff/xmlprhdl.hxx>
-#include <xmloff/xmltoken.hxx>
-
-struct SvXMLEnumMapEntry;
-
-///////////////////////////////////////////////////////////////////////////
-//
-/** Abstract base-class for different XML-types. Derivations of this class
- knows how to compare, im/export a special XML-type
-*/
-class XMLOFF_DLLPUBLIC XMLConstantsPropertyHandler: public XMLPropertyHandler
-{
- const SvXMLEnumMapEntry *pMap;
- const enum ::xmloff::token::XMLTokenEnum eDefault;
-
-public:
-
- XMLConstantsPropertyHandler( const SvXMLEnumMapEntry *pM,
- enum ::xmloff::token::XMLTokenEnum eDflt);
-
- // Just needed for virtual destruction
- virtual ~XMLConstantsPropertyHandler();
-
- /// Imports the given value in cas of the given XML-data-type
- virtual sal_Bool importXML(
- const OUString& rStrImpValue,
- ::com::sun::star::uno::Any& rValue,
- const SvXMLUnitConverter& rUnitConverter ) const;
-
- /// Exports the given value in cas of the given XML-data-type
- virtual sal_Bool exportXML(
- OUString& rStrExpValue,
- const ::com::sun::star::uno::Any& rValue,
- const SvXMLUnitConverter& rUnitConverter ) const;
-};
-
-#endif // _XMLOFF_XMLCONSTANTSPROPERTYHANDLER_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLEmbeddedObjectExportFilter.hxx b/xmloff/inc/xmloff/XMLEmbeddedObjectExportFilter.hxx
deleted file mode 100644
index 40f42b6be202..000000000000
--- a/xmloff/inc/xmloff/XMLEmbeddedObjectExportFilter.hxx
+++ /dev/null
@@ -1,85 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLEMBEDDEDOBJECTEXPORTFILTER_HXX
-#define _XMLOFF_XMLEMBEDDEDOBJECTEXPORTFILTER_HXX
-
-#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
-#include <com/sun/star/lang/XInitialization.hpp>
-#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <cppuhelper/implbase3.hxx>
-
-class XMLEmbeddedObjectExportFilter : public ::cppu::WeakImplHelper3<
- ::com::sun::star::xml::sax::XExtendedDocumentHandler,
- ::com::sun::star::lang::XServiceInfo,
- ::com::sun::star::lang::XInitialization>
-{
- ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XDocumentHandler > xHandler;
- ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XExtendedDocumentHandler > xExtHandler;
-
-public:
- XMLEmbeddedObjectExportFilter( const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XDocumentHandler > & rHandler ) throw();
- virtual ~XMLEmbeddedObjectExportFilter () throw();
-
- // ::com::sun::star::xml::sax::XDocumentHandler
- virtual void SAL_CALL startDocument(void)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL endDocument(void)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL startElement(const OUString& aName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttribs)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL endElement(const OUString& aName)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL characters(const OUString& aChars)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL ignorableWhitespace(const OUString& aWhitespaces)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL processingInstruction(const OUString& aTarget,
- const OUString& aData)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL setDocumentLocator(const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XLocator > & xLocator)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
-
- // ::com::sun::star::xml::sax::XExtendedDocumentHandler
- virtual void SAL_CALL startCDATA(void) throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL endCDATA(void) throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL comment(const OUString& sComment)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL allowLineBreak(void)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL unknown(const OUString& sString)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
-
- // XInitialization
- virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
-
- // XServiceInfo
- virtual OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
-
-};
-
-#endif // _XMLOFF_XMLEMBEDDEDOBJECTEXPORTFILTER_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLEventExport.hxx b/xmloff/inc/xmloff/XMLEventExport.hxx
deleted file mode 100644
index 52b77daa8764..000000000000
--- a/xmloff/inc/xmloff/XMLEventExport.hxx
+++ /dev/null
@@ -1,133 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLEVENTEXPORT_HXX
-#define _XMLOFF_XMLEVENTEXPORT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <com/sun/star/uno/Sequence.hxx>
-#include <com/sun/star/uno/Reference.hxx>
-#include <rtl/ustring.hxx>
-#include <xmloff/xmlevent.hxx>
-
-#include <map>
-
-class SvXMLExport;
-namespace com { namespace sun { namespace star {
- namespace document { class XEventsSupplier; }
- namespace container { class XNameReplace; }
- namespace container { class XNameAccess; }
- namespace beans { struct PropertyValue; }
-} } }
-
-typedef ::std::map< OUString, XMLEventExportHandler* > HandlerMap;
-typedef ::std::map< OUString, XMLEventName > NameMap;
-
-/**
- * Export instances of EventsSupplier services. To use this class you
- * must fulfill two conditions:
- *
- * 1) provide a translation from the API event names to XML event
- * names
- * 2) Register XMLEventExportHandler instances for all script types
- * that you would like to export.
- *
- * The Export()-Methods all have a bUseWhitespace parameter that
- * causes the exported elements to be surrounded by whitespace, which
- * in turn causes the elements to be indented properly. By default,
- * whitespace is used, but it may not be called for in all cases (e.g
- * events attached to hyperlink within a paragraph.)
- */
-class XMLOFF_DLLPUBLIC XMLEventExport
-{
- const OUString sEventType;
-
- SvXMLExport& rExport;
-
- HandlerMap aHandlerMap;
- NameMap aNameTranslationMap;
-
- bool bExtNamespace;
-
-public:
- XMLEventExport(SvXMLExport& rExport,
- const XMLEventNameTranslation* pTranslationTable = NULL);
- ~XMLEventExport();
-
- /// register an EventExportHandler for a particular script type
- ///
- /// The handlers will be deleted when the object is destroyed, hence
- /// no pointers to a handler registered with AddHandler() should be
- /// held by anyone.
- void AddHandler( const OUString& rName,
- XMLEventExportHandler* rHandler );
-
- /// register additional event names
- void AddTranslationTable( const XMLEventNameTranslation* pTransTable );
-
- /// export the events (calls EventExport::Export(Reference<XNameAcess>) )
- void Export( ::com::sun::star::uno::Reference<
- ::com::sun::star::document::XEventsSupplier> & xAccess,
- sal_Bool bUseWhitespace = sal_True);
-
- /// export the events (calls EventExport::Export(Reference<XNameAcess>) )
- void Export( ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameReplace> & xAccess,
- sal_Bool bUseWhitespace = sal_True);
-
- /// export the events (writes <office:events> element)
- void Export( ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameAccess> & xAccess,
- sal_Bool bUseWhitespace = sal_True);
-
- /// export the events, but write <officeooo:events> element
- /// (for new file format additions)
- void ExportExt( ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameAccess> & xAccess,
- sal_Bool bUseWhitespace = sal_True);
-
- /// export a single event (writes <office:events> element)
- void ExportSingleEvent(
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue>& rEventValues,
- const OUString& rApiEventName,
- sal_Bool bUseWhitespace = sal_True );
-
-private:
-
- /// export one event (start container-element if necessary)
- SAL_DLLPRIVATE void ExportEvent(
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue>& rEventValues,
- const XMLEventName& rXmlEventName,
- sal_Bool bUseWhitespace,
- sal_Bool& rExported);
-
- /// export the start element
- SAL_DLLPRIVATE void StartElement(sal_Bool bUseWhitespace);
-
- /// export the end element
- SAL_DLLPRIVATE void EndElement(sal_Bool bUseWhitespace);
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLEventsImportContext.hxx b/xmloff/inc/xmloff/XMLEventsImportContext.hxx
deleted file mode 100644
index 8f7da79b4fb8..000000000000
--- a/xmloff/inc/xmloff/XMLEventsImportContext.hxx
+++ /dev/null
@@ -1,131 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLEVENTSIMPORTCONTEXT_HXX
-#define _XMLOFF_XMLEVENTSIMPORTCONTEXT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <com/sun/star/uno/Reference.hxx>
-#include <com/sun/star/uno/Sequence.hxx>
-#include <xmloff/xmlictxt.hxx>
-#include <xmloff/xmlevent.hxx>
-
-#include <map>
-#include <vector>
-
-namespace com { namespace sun { namespace star {
- namespace xml { namespace sax { class XAttributeList; } }
- namespace beans { struct PropertyValue; }
- namespace container { class XNameReplace; }
- namespace document { class XEventsSupplier; }
-} } }
-
-typedef ::std::pair<
- OUString,
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue> > EventNameValuesPair;
-
-typedef ::std::vector< EventNameValuesPair > EventsVector;
-
-/**
- * Import <script:events> element.
- *
- * The import context usually sets the events immediately at the event
- * XNameReplace. If none was given on construction, it operates in
- * delayed mode: All events are collected and may then be set
- * with the setEvents() method.
- */
-class XMLOFF_DLLPUBLIC XMLEventsImportContext : public SvXMLImportContext
-{
-protected:
- // the event XNameReplace; may be empty
- ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameReplace> xEvents;
-
- // if no XNameReplace is given, use this vector to collect events
- EventsVector aCollectEvents;
-
-public:
-
- TYPEINFO();
-
- XMLEventsImportContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrfx,
- const OUString& rLocalName);
-
- XMLEventsImportContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrfx,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::document::XEventsSupplier> & xEventsSupplier);
-
- XMLEventsImportContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrfx,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameReplace> & xNameRepl);
-
- ~XMLEventsImportContext();
-
- void AddEventValues(
- const OUString& rEventName,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue> & rValues);
-
- /// if the import operates in delayed mode, you can use this method
- /// to set all events that have been read on the XEventsSupplier
- void SetEvents(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::document::XEventsSupplier> & xEventsSupplier);
-
- /// if the import operates in delayed mode, you can use this method
- /// to set all events that have been read on the XNameReplace
- void SetEvents(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameReplace> & xNameRepl);
-
- /// if the import operates indelayed mode, you can use this method
- /// to obtain the value sequence for a specific event
- sal_Bool GetEventSequence(
- const OUString& rName,
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue> & rSequence );
-
-protected:
-
- virtual void StartElement(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList> & xAttrList);
-
- virtual void EndElement();
-
- virtual SvXMLImportContext *CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList> & xAttrList );
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLFilterServiceNames.h b/xmloff/inc/xmloff/XMLFilterServiceNames.h
deleted file mode 100644
index 332935228e08..000000000000
--- a/xmloff/inc/xmloff/XMLFilterServiceNames.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLFILTERSERVICENAMES_H
-#define _XMLOFF_XMLFILTERSERVICENAMES_H
-
-
-#define XML_IMPORT_FILTER_WRITER "com.sun.star.comp.Writer.XMLOasisImporter"
-#define XML_IMPORT_FILTER_CALC "com.sun.star.comp.Calc.XMLOasisImporter"
-#define XML_IMPORT_FILTER_DRAW "com.sun.star.comp.Draw.XMLOasisImporter"
-#define XML_IMPORT_FILTER_IMPRESS "com.sun.star.comp.Impress.XMLOasisImporter"
-#define XML_IMPORT_FILTER_MATH "com.sun.star.comp.Math.XMLImporter"
-#define XML_IMPORT_FILTER_CHART "com.sun.star.comp.Chart.XMLOasisImporter"
-
-#define XML_EXPORT_FILTER_WRITER "com.sun.star.comp.Writer.XMLOasisExporter"
-#define XML_EXPORT_FILTER_CALC "com.sun.star.comp.Calc.XMLOasisExporter"
-#define XML_EXPORT_FILTER_DRAW "com.sun.star.comp.Draw.XMLOasisExporter"
-#define XML_EXPORT_FILTER_IMPRESS "com.sun.star.comp.Impress.XMLOasisExporter"
-#define XML_EXPORT_FILTER_MATH "com.sun.star.comp.Math.XMLExporter"
-#define XML_EXPORT_FILTER_CHART "com.sun.star.comp.Chart.XMLOasisExporter"
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLFontAutoStylePool.hxx b/xmloff/inc/xmloff/XMLFontAutoStylePool.hxx
deleted file mode 100644
index 8ee84d8686df..000000000000
--- a/xmloff/inc/xmloff/XMLFontAutoStylePool.hxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLFONTAUTOSTYLEPOOL_HXX
-#define _XMLOFF_XMLFONTAUTOSTYLEPOOL_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <rtl/ustring.hxx>
-#include <tools/fontenum.hxx>
-#include <xmloff/uniref.hxx>
-#include <set>
-
-class XMLFontAutoStylePool_Impl;
-typedef std::set<OUString> XMLFontAutoStylePoolNames_Impl;
-class SvXMLExport;
-
-class XMLOFF_DLLPUBLIC XMLFontAutoStylePool : public UniRefBase
-{
- SvXMLExport& rExport;
-
- XMLFontAutoStylePool_Impl *pPool;
- XMLFontAutoStylePoolNames_Impl m_aNames;
- bool tryToEmbedFonts;
-
- OUString embedFontFile( const OUString& fontUrl );
-
-protected:
-
- SvXMLExport& GetExport() { return rExport; }
-
-public:
-
- XMLFontAutoStylePool( SvXMLExport& rExport, bool tryToEmbedFonts = false );
- ~XMLFontAutoStylePool();
-
- OUString Add(
- const OUString& rFamilyName,
- const OUString& rStyleName,
- FontFamily nFamily,
- FontPitch nPitch,
- rtl_TextEncoding eEnc );
-
- OUString Find(
- const OUString& rFamilyName,
- const OUString& rStyleName,
- FontFamily nFamily,
- FontPitch nPitch,
- rtl_TextEncoding eEnc )const;
- OUString Find( const OUString& rInternalName ) const;
-
- void exportXML();
-};
-
-#endif // _XMLOFF_XMLFONTAUTOSTYLEPOOL_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLFontStylesContext.hxx b/xmloff/inc/xmloff/XMLFontStylesContext.hxx
deleted file mode 100644
index c04d5c12230a..000000000000
--- a/xmloff/inc/xmloff/XMLFontStylesContext.hxx
+++ /dev/null
@@ -1,89 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_XMLFONTSTYLESCONTEXT_HXX_
-#define _XMLOFF_XMLFONTSTYLESCONTEXT_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-
-#include <vector>
-
-#include <xmloff/xmlstyle.hxx>
-
-struct XMLPropertyState;
-class SvXMLTokenMap;
-class XMLFontFamilyNamePropHdl;
-class XMLFontFamilyPropHdl;
-class XMLFontPitchPropHdl;
-class XMLFontEncodingPropHdl;
-
-class XMLOFF_DLLPUBLIC XMLFontStylesContext : public SvXMLStylesContext
-{
- XMLFontFamilyNamePropHdl *pFamilyNameHdl;
- XMLFontFamilyPropHdl *pFamilyHdl;
- XMLFontPitchPropHdl *pPitchHdl;
- XMLFontEncodingPropHdl *pEncHdl;
-
- SvXMLTokenMap *pFontStyleAttrTokenMap;
-
- rtl_TextEncoding eDfltEncoding;
-
-protected:
-
- virtual SvXMLStyleContext *CreateStyleChildContext( sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
-
-public:
-
- TYPEINFO();
-
- XMLFontStylesContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
- const OUString& rLName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
- rtl_TextEncoding eDfltEnc );
- virtual ~XMLFontStylesContext();
-
- const SvXMLTokenMap& GetFontStyleAttrTokenMap() const
- {
- return *pFontStyleAttrTokenMap;
- }
-
- sal_Bool FillProperties( const OUString& rName,
- ::std::vector< XMLPropertyState > &rProps,
- sal_Int32 nFamilyNameIdx,
- sal_Int32 nStyleNameIdx,
- sal_Int32 nFamilyIdx,
- sal_Int32 nPitchIdx,
- sal_Int32 nCharsetIdx ) const;
-
- rtl_TextEncoding GetDfltCharset() const { return eDfltEncoding; }
-
- XMLFontFamilyNamePropHdl& GetFamilyNameHdl() const { return *pFamilyNameHdl; }
- XMLFontFamilyPropHdl& GetFamilyHdl() const { return *pFamilyHdl; }
- XMLFontPitchPropHdl& GetPitchHdl() const { return *pPitchHdl; }
- XMLFontEncodingPropHdl& GetEncodingHdl() const { return *pEncHdl; }
-
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLGraphicsDefaultStyle.hxx b/xmloff/inc/xmloff/XMLGraphicsDefaultStyle.hxx
deleted file mode 100644
index 06fee705d04d..000000000000
--- a/xmloff/inc/xmloff/XMLGraphicsDefaultStyle.hxx
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLGRAPHICSDEFAULTSTYLE_HXX
-#define _XMLOFF_XMLGRAPHICSDEFAULTSTYLE_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <xmloff/prstylei.hxx>
-
-namespace com { namespace sun { namespace star { namespace container
-{
- class XNameContainer;
-} } } }
-
-class XMLOFF_DLLPUBLIC XMLGraphicsDefaultStyle : public XMLPropStyleContext
-{
-public:
- TYPEINFO();
-
- XMLGraphicsDefaultStyle( SvXMLImport& rImport, sal_uInt16 nPrfx,
- const OUString& rLName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
- SvXMLStylesContext& rStyles);
-
- virtual ~XMLGraphicsDefaultStyle();
-
- virtual SvXMLImportContext *CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
-
- // This method is called for every default style
- virtual void SetDefaults();
-};
-
-#endif // _XMLOFF_XMLGRAPHICSDEFAULTSTYLE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLPageExport.hxx b/xmloff/inc/xmloff/XMLPageExport.hxx
deleted file mode 100644
index c30dbe43d786..000000000000
--- a/xmloff/inc/xmloff/XMLPageExport.hxx
+++ /dev/null
@@ -1,105 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLPAGEEXPORT_HXX
-#define _XMLOFF_XMLPAGEEXPORT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <rtl/ustring.hxx>
-#include <vector>
-#include <xmloff/attrlist.hxx>
-#include <xmloff/uniref.hxx>
-#include <com/sun/star/container/XIndexAccess.hpp>
-
-namespace com { namespace sun { namespace star {
- namespace style { class XStyle; }
- namespace container { class XIndexReplace; class XNameAccess;}
- namespace beans { class XPropertySet; }
-} } }
-
-class SvXMLExport;
-class XMLPropertyHandlerFactory;
-class XMLPropertySetMapper;
-class SvXMLExportPropertyMapper;
-
-//______________________________________________________________________________
-
-struct XMLPageExportNameEntry
-{
- OUString sPageMasterName;
- OUString sStyleName;
-};
-
-//______________________________________________________________________________
-
-class XMLOFF_DLLPUBLIC XMLPageExport : public UniRefBase
-{
- SvXMLExport& rExport;
-
- const OUString sIsPhysical;
- const OUString sFollowStyle;
-
- ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameAccess > xPageStyles;
-
- ::std::vector< XMLPageExportNameEntry > aNameVector;
- SAL_DLLPRIVATE sal_Bool findPageMasterName( const OUString& rStyleName, OUString& rPMName ) const;
-
- UniReference < XMLPropertyHandlerFactory > xPageMasterPropHdlFactory;
- UniReference < XMLPropertySetMapper > xPageMasterPropSetMapper;
- UniReference < SvXMLExportPropertyMapper > xPageMasterExportPropMapper;
-
-protected:
-
- SvXMLExport& GetExport() { return rExport; }
-
- virtual void collectPageMasterAutoStyle(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- OUString& rPageMasterName );
-
- virtual void exportMasterPageContent(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- sal_Bool bAutoStyles );
-
- sal_Bool exportStyle(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::style::XStyle >& rStyle,
- sal_Bool bAutoStyles );
-
- void exportStyles( sal_Bool bUsed, sal_Bool bAutoStyles );
-
-public:
- XMLPageExport( SvXMLExport& rExp );
- ~XMLPageExport();
-
- void collectAutoStyles( sal_Bool bUsed ) { exportStyles( bUsed, sal_True ); }
- void exportAutoStyles();
- void exportMasterStyles( sal_Bool bUsed ) { exportStyles( bUsed, sal_False ); }
-
- //text grid enhancement for better CJK support
- void exportDefaultStyle();
-};
-
-#endif // _XMLOFF_XMLTEXTMASTERPAGEEXPORT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLSettingsExportContext.hxx b/xmloff/inc/xmloff/XMLSettingsExportContext.hxx
deleted file mode 100644
index 819da2b41d77..000000000000
--- a/xmloff/inc/xmloff/XMLSettingsExportContext.hxx
+++ /dev/null
@@ -1,62 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef XML_SETTINGS_EXPORT_CONTEXT_HXX
-#define XML_SETTINGS_EXPORT_CONTEXT_HXX
-
-#include <com/sun/star/uno/XComponentContext.hpp>
-
-#include "xmloff/xmltoken.hxx"
-
-//........................................................................
-namespace xmloff
-{
-//........................................................................
-
- //====================================================================
- //= XMLExporter
- //====================================================================
- class SAL_NO_VTABLE XMLSettingsExportContext
- {
- public:
- virtual void AddAttribute( enum ::xmloff::token::XMLTokenEnum i_eName,
- const OUString& i_rValue ) = 0;
- virtual void AddAttribute( enum ::xmloff::token::XMLTokenEnum i_eName,
- enum ::xmloff::token::XMLTokenEnum i_eValue ) = 0;
-
- virtual void StartElement( enum ::xmloff::token::XMLTokenEnum i_eName,
- const sal_Bool i_bIgnoreWhitespace ) = 0;
- virtual void EndElement( const sal_Bool i_bIgnoreWhitespace ) = 0;
-
- virtual void Characters( const OUString& i_rCharacters ) = 0;
-
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
- GetComponentContext() const = 0;
-
- protected:
- ~XMLSettingsExportContext() {}
- };
-
-//........................................................................
-} // namespace xmloff
-//........................................................................
-
-#endif // XML_SETTINGS_EXPORT_CONTEXT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLShapeStyleContext.hxx b/xmloff/inc/xmloff/XMLShapeStyleContext.hxx
deleted file mode 100644
index 2f39eee0e08f..000000000000
--- a/xmloff/inc/xmloff/XMLShapeStyleContext.hxx
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLSHAPESTYLECONTEXT_HXX
-#define _XMLOFF_XMLSHAPESTYLECONTEXT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <xmloff/prstylei.hxx>
-#include <xmloff/families.hxx>
-
-class SvXMLImport;
-
-//////////////////////////////////////////////////////////////////////////////
-// style:style context
-
-class XMLOFF_DLLPUBLIC XMLShapeStyleContext: public XMLPropStyleContext
-{
-protected:
- OUString m_sControlDataStyleName;
- OUString m_sListStyleName;
- sal_Bool m_bIsNumRuleAlreadyConverted;
-
-protected:
- virtual void SetAttribute( sal_uInt16 nPrefixKey,
- const OUString& rLocalName,
- const OUString& rValue );
-public:
- TYPEINFO();
-
- XMLShapeStyleContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrfx,
- const OUString& rLName,
- const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList,
- SvXMLStylesContext& rStyles,
- sal_uInt16 nFamily = XML_STYLE_FAMILY_SD_GRAPHICS_ID);
- virtual ~XMLShapeStyleContext();
-
- SvXMLImportContext * CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
-
- virtual void Finish( sal_Bool bOverwrite );
-
- virtual void FillPropertySet(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > & rPropSet );
-};
-
-#endif // _XMLOFF_XMLSHAPESTYLECONTEXT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLStringVector.hxx b/xmloff/inc/xmloff/XMLStringVector.hxx
deleted file mode 100644
index 863ec7aa4d3e..000000000000
--- a/xmloff/inc/xmloff/XMLStringVector.hxx
+++ /dev/null
@@ -1,32 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLSTRINGVECTOR_HXX
-#define _XMLOFF_XMLSTRINGVECTOR_HXX
-
-#include <rtl/ustring.hxx>
-
-#include <vector>
-
-typedef ::std::vector < OUString> XMLStringVector;
-
-
-#endif // _XMLOFF_XMLSTRINGVECTOR_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLTextListAutoStylePool.hxx b/xmloff/inc/xmloff/XMLTextListAutoStylePool.hxx
deleted file mode 100644
index f3768da8ab40..000000000000
--- a/xmloff/inc/xmloff/XMLTextListAutoStylePool.hxx
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLTEXTLISTAUTOSTYLEPOOL_HXX
-#define _XMLOFF_XMLTEXTLISTAUTOSTYLEPOOL_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <rtl/ustring.hxx>
-#include <com/sun/star/ucb/XAnyCompare.hpp>
-#include <set>
-
-namespace com { namespace sun { namespace star { namespace container {
- class XIndexReplace; } } } }
-
-
-class XMLTextListAutoStylePool_Impl;
-typedef std::set<OUString> XMLTextListAutoStylePoolNames_Impl;
-class XMLTextListAutoStylePoolEntry_Impl;
-class SvXMLExport;
-
-class XMLOFF_DLLPUBLIC XMLTextListAutoStylePool
-{
- SvXMLExport& rExport;
-
- OUString sPrefix;
-
- XMLTextListAutoStylePool_Impl *pPool;
- XMLTextListAutoStylePoolNames_Impl m_aNames;
- sal_uInt32 nName;
-
- /** this is an optional NumRule compare component for applications where
- the NumRules don't have names */
- ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XAnyCompare > mxNumRuleCompare;
-
- SAL_DLLPRIVATE sal_uInt32 Find( XMLTextListAutoStylePoolEntry_Impl* pEntry )
- const;
-public:
-
- XMLTextListAutoStylePool( SvXMLExport& rExport );
- ~XMLTextListAutoStylePool();
-
- void RegisterName( const OUString& rName );
-
- OUString Add(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::container::XIndexReplace > & rNumRules );
-
- OUString Find(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::container::XIndexReplace > & rNumRules ) const;
- OUString Find( const OUString& rInternalName ) const;
-
- void exportXML() const;
-};
-
-
-#endif // _XMLOFF_XMLTEXTLISTAUTOSTYLEPOOL_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLTextMasterPageContext.hxx b/xmloff/inc/xmloff/XMLTextMasterPageContext.hxx
deleted file mode 100644
index c0965e7564f9..000000000000
--- a/xmloff/inc/xmloff/XMLTextMasterPageContext.hxx
+++ /dev/null
@@ -1,89 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_TEXTMASTERPAGECONTEXT_HXX_
-#define _XMLOFF_TEXTMASTERPAGECONTEXT_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-
-#include <xmloff/xmlstyle.hxx>
-
-namespace com { namespace sun { namespace star {
- namespace style { class XStyle; }
-} } }
-
-class XMLOFF_DLLPUBLIC XMLTextMasterPageContext : public SvXMLStyleContext
-{
- const OUString sIsPhysical;
- const OUString sPageStyleLayout;
- const OUString sFollowStyle;
- OUString sFollow;
- OUString sPageMasterName;
-
- ::com::sun::star::uno::Reference < ::com::sun::star::style::XStyle > xStyle;
-
- sal_Bool bInsertHeader;
- sal_Bool bInsertFooter;
- sal_Bool bInsertHeaderLeft;
- sal_Bool bInsertFooterLeft;
- sal_Bool bInsertHeaderFirst;
- sal_Bool bInsertFooterFirst;
- sal_Bool bHeaderInserted;
- sal_Bool bFooterInserted;
- sal_Bool bHeaderLeftInserted;
- sal_Bool bFooterLeftInserted;
- sal_Bool bHeaderFirstInserted;
- sal_Bool bFooterFirstInserted;
-
- SAL_DLLPRIVATE ::com::sun::star::uno::Reference <
- ::com::sun::star::style::XStyle > Create();
-protected:
- ::com::sun::star::uno::Reference <
- ::com::sun::star::style::XStyle > GetStyle() { return xStyle; }
-public:
-
- TYPEINFO();
-
- XMLTextMasterPageContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
- const OUString& rLName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
- sal_Bool bOverwrite );
- virtual ~XMLTextMasterPageContext();
-
- virtual SvXMLImportContext *CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
-
- virtual SvXMLImportContext *CreateHeaderFooterContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
- const sal_Bool bFooter,
- const sal_Bool bLeft,
- const sal_Bool bFirst );
-
- virtual void Finish( sal_Bool bOverwrite );
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLTextMasterPageExport.hxx b/xmloff/inc/xmloff/XMLTextMasterPageExport.hxx
deleted file mode 100644
index 8ef0dcaef6a6..000000000000
--- a/xmloff/inc/xmloff/XMLTextMasterPageExport.hxx
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLTEXTMASTERPAGEEXPORT_HXX
-#define _XMLOFF_XMLTEXTMASTERPAGEEXPORT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <rtl/ustring.hxx>
-#include <xmloff/attrlist.hxx>
-#include <xmloff/XMLPageExport.hxx>
-
-namespace com { namespace sun { namespace star {
- namespace text { class XText; }
-} } }
-
-class XMLOFF_DLLPUBLIC XMLTextMasterPageExport : public XMLPageExport
-{
- const OUString sHeaderText;
- const OUString sHeaderOn;
- const OUString sHeaderShareContent;
- const OUString sHeaderTextFirst;
- const OUString sHeaderTextLeft;
-
- const OUString sFirstShareContent;
-
- const OUString sFooterText;
- const OUString sFooterOn;
- const OUString sFooterShareContent;
- const OUString sFooterTextFirst;
- const OUString sFooterTextLeft;
-
-protected:
-
- virtual void exportHeaderFooterContent(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XText >& rText,
- sal_Bool bAutoStyles, sal_Bool bExportParagraph = sal_True );
-
- virtual void exportMasterPageContent(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- sal_Bool bAutoStyles );
-
-public:
- XMLTextMasterPageExport( SvXMLExport& rExp );
- ~XMLTextMasterPageExport();
-};
-
-#endif // _XMLOFF_XMLTEXTMASTERPAGEEXPORT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLTextMasterStylesContext.hxx b/xmloff/inc/xmloff/XMLTextMasterStylesContext.hxx
deleted file mode 100644
index 9d03c401b900..000000000000
--- a/xmloff/inc/xmloff/XMLTextMasterStylesContext.hxx
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLTEXTMASTERSTYLESCONTEXT_HXX
-#define _XMLOFF_XMLTEXTMASTERSTYLESCONTEXT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <xmloff/xmlstyle.hxx>
-
-class XMLOFF_DLLPUBLIC XMLTextMasterStylesContext : public SvXMLStylesContext
-{
-protected:
- virtual SvXMLStyleContext *CreateStyleChildContext( sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
-
- virtual SvXMLStyleContext *CreateStyleStyleChildContext( sal_uInt16 nFamily,
- sal_uInt16 nPrefix, const OUString& rLocalName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
-
- virtual sal_Bool InsertStyleFamily( sal_uInt16 nFamily ) const;
-
-public:
- TYPEINFO();
-
- XMLTextMasterStylesContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
- const OUString& rLName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > & xAttrList);
-
- virtual ~XMLTextMasterStylesContext();
-};
-
-#endif // _XMLOFF_XMLTEXTMASTERSTYLECONTEXT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLTextShapeImportHelper.hxx b/xmloff/inc/xmloff/XMLTextShapeImportHelper.hxx
deleted file mode 100644
index 46d77a487297..000000000000
--- a/xmloff/inc/xmloff/XMLTextShapeImportHelper.hxx
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLTEXTSHAPEIMPORTHELPER_HXX
-#define _XMLTEXTSHAPEIMPORTHELPER_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <xmloff/shapeimport.hxx>
-
-class XMLOFF_DLLPUBLIC XMLTextShapeImportHelper : public XMLShapeImportHelper
-{
- SvXMLImport& rImport;
-
- const OUString sAnchorType;
- const OUString sAnchorPageNo;
- const OUString sVertOrientPosition;
-
-public:
-
- XMLTextShapeImportHelper( SvXMLImport& rImp );
- ~XMLTextShapeImportHelper();
-
- virtual void addShape(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::drawing::XShape >& rShape,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList >& xAttrList,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::drawing::XShapes >& rShapes );
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLTextShapeStyleContext.hxx b/xmloff/inc/xmloff/XMLTextShapeStyleContext.hxx
deleted file mode 100644
index 922153a9188a..000000000000
--- a/xmloff/inc/xmloff/XMLTextShapeStyleContext.hxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_XMLTEXTSHAPESTYLECONTEXT_HXX_
-#define _XMLOFF_XMLTEXTSHAPESTYLECONTEXT_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <xmloff/XMLShapeStyleContext.hxx>
-
-class XMLOFF_DLLPUBLIC XMLTextShapeStyleContext : public XMLShapeStyleContext
-{
- const OUString sIsAutoUpdate;
-
- sal_Bool bAutoUpdate : 1;
-
- SvXMLImportContextRef xEventContext;
-
-protected:
-
- virtual void SetAttribute( sal_uInt16 nPrefixKey,
- const OUString& rLocalName,
- const OUString& rValue );
-
-public:
-
- TYPEINFO();
-
- XMLTextShapeStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
- const OUString& rLName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
- SvXMLStylesContext& rStyles, sal_uInt16 nFamily,
- sal_Bool bDefaultStyle = sal_False );
- virtual ~XMLTextShapeStyleContext();
-
- virtual SvXMLImportContext *CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
-
- sal_Bool IsAutoUpdate() const { return bAutoUpdate; }
-
- virtual void CreateAndInsert( sal_Bool bOverwrite );
-
- virtual void Finish( sal_Bool bOverwrite );
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/XMLTextTableContext.hxx b/xmloff/inc/xmloff/XMLTextTableContext.hxx
deleted file mode 100644
index c0a3df1aa88c..000000000000
--- a/xmloff/inc/xmloff/XMLTextTableContext.hxx
+++ /dev/null
@@ -1,53 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLTEXTTABLECONTEXT_HXX
-#define _XMLTEXTTABLECONTEXT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <xmloff/xmlictxt.hxx>
-#include <com/sun/star/uno/Reference.h>
-
-namespace com { namespace sun { namespace star {
- namespace text { class XTextContent; }
-} } }
-
-#define XML_TEXT_FRAME_TEXTBOX 1
-#define XML_TEXT_FRAME_GRAPHIC 2
-
-class XMLOFF_DLLPUBLIC XMLTextTableContext : public SvXMLImportContext
-{
-
-public:
-
- TYPEINFO();
-
- XMLTextTableContext( SvXMLImport& rImport,
- sal_uInt16 nPrfx,
- const OUString& rLName );
- virtual ~XMLTextTableContext();
-
- virtual ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > GetXTextContent() const = 0;
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/animationexport.hxx b/xmloff/inc/xmloff/animationexport.hxx
deleted file mode 100644
index 1ab8e0f9dcd6..000000000000
--- a/xmloff/inc/xmloff/animationexport.hxx
+++ /dev/null
@@ -1,53 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_ANIMATIONEXPORT_HXX
-#define _XMLOFF_ANIMATIONEXPORT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-
-#include <com/sun/star/animations/XAnimationNode.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <xmloff/uniref.hxx>
-
-class SvXMLExport;
-
-namespace xmloff
-{
-class AnimationsExporterImpl;
-
-class XMLOFF_DLLPUBLIC AnimationsExporter : public UniRefBase
-{
- AnimationsExporterImpl* mpImpl;
-
-public:
- AnimationsExporter( SvXMLExport& rExport, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xPageProps );
- virtual ~AnimationsExporter();
-
- void prepare( ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode > xRootNode );
- void exportAnimations( ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode > xRootNode );
-};
-
-}
-
-#endif // _XMLOFF_ANIMATIONEXPORT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/animexp.hxx b/xmloff/inc/xmloff/animexp.hxx
deleted file mode 100644
index 694433780c5f..000000000000
--- a/xmloff/inc/xmloff/animexp.hxx
+++ /dev/null
@@ -1,45 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_ANIMEXP_HXX
-#define _XMLOFF_ANIMEXP_HXX
-
-#include <com/sun/star/drawing/XShape.hpp>
-#include <xmloff/uniref.hxx>
-
-class AnimExpImpl;
-class SvXMLExport;
-class XMLShapeExport;
-
-class XMLAnimationsExporter : public UniRefBase
-{
- AnimExpImpl* mpImpl;
-
-public:
- XMLAnimationsExporter( XMLShapeExport* pShapeExp );
- virtual ~XMLAnimationsExporter();
-
- void prepare( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape, SvXMLExport& rExport );
- void collect( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape, SvXMLExport& rExport );
- void exportAnimations( SvXMLExport& rExport );
-};
-
-#endif // _XMLOFF_ANIMEXP_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/attrlist.hxx b/xmloff/inc/xmloff/attrlist.hxx
deleted file mode 100644
index cc0d6aa14f65..000000000000
--- a/xmloff/inc/xmloff/attrlist.hxx
+++ /dev/null
@@ -1,86 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_ATTRLIST_HXX
-#define _XMLOFF_ATTRLIST_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <com/sun/star/util/XCloneable.hpp>
-#include <com/sun/star/xml/sax/SAXParseException.hpp>
-#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
-#include <com/sun/star/xml/sax/SAXException.hpp>
-#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
-#include <com/sun/star/xml/sax/XAttributeList.hpp>
-#include <com/sun/star/xml/sax/XLocator.hpp>
-#include <com/sun/star/lang/XUnoTunnel.hpp>
-
-#include <cppuhelper/implbase3.hxx>
-
-struct SvXMLAttributeList_Impl;
-
-class XMLOFF_DLLPUBLIC SvXMLAttributeList : public ::cppu::WeakImplHelper3<
- ::com::sun::star::xml::sax::XAttributeList,
- ::com::sun::star::util::XCloneable,
- ::com::sun::star::lang::XUnoTunnel>
-{
- SvXMLAttributeList_Impl *m_pImpl;
-
-public:
- SvXMLAttributeList();
- SvXMLAttributeList( const SvXMLAttributeList& );
- SvXMLAttributeList( const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList> & rAttrList );
- ~SvXMLAttributeList();
-
- static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
- static SvXMLAttributeList* getImplementation( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > ) throw();
-
- // XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
-
- // ::com::sun::star::xml::sax::XAttributeList
- virtual sal_Int16 SAL_CALL getLength(void) throw( ::com::sun::star::uno::RuntimeException );
- virtual OUString SAL_CALL getNameByIndex(sal_Int16 i) throw( ::com::sun::star::uno::RuntimeException );
- virtual OUString SAL_CALL getTypeByIndex(sal_Int16 i) throw( ::com::sun::star::uno::RuntimeException );
- virtual OUString SAL_CALL getTypeByName(const OUString& aName) throw( ::com::sun::star::uno::RuntimeException );
- virtual OUString SAL_CALL getValueByIndex(sal_Int16 i) throw( ::com::sun::star::uno::RuntimeException );
- virtual OUString SAL_CALL getValueByName(const OUString& aName) throw( ::com::sun::star::uno::RuntimeException );
-
- // ::com::sun::star::util::XCloneable
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone() throw( ::com::sun::star::uno::RuntimeException );
-
- // methods that are not contained in any interface
- void AddAttribute( const OUString &sName , const OUString &sValue );
- void Clear();
- void RemoveAttribute( const OUString sName );
- void AppendAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & );
- void SetValueByIndex( sal_Int16 i, const OUString& rValue );
- void RemoveAttributeByIndex( sal_Int16 i );
- void RenameAttributeByIndex( sal_Int16 i, const OUString& rNewName );
- sal_Int16 GetIndexByName( const OUString& rName ) const;
-
- private:
- const OUString sType; // "CDATA"
-};
-
-
-#endif // _XMLOFF_ATTRLIST_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/contextid.hxx b/xmloff/inc/xmloff/contextid.hxx
deleted file mode 100644
index fd0123d33ac3..000000000000
--- a/xmloff/inc/xmloff/contextid.hxx
+++ /dev/null
@@ -1,48 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_CONTEXTID_HXX_
-#define _XMLOFF_CONTEXTID_HXX_
-
-/** These defines determine the unique ids for XML style-context-id's
- used in the SvXMLAutoStylePoolP.
- */
-
-#define XML_SC_CTF_START 0x00001000
-#define XML_SD_CTF_START 0x00002000
-#define XML_TEXT_CTF_START 0x00003000
-#define XML_SCH_CTF_START 0x00004000
-#define XML_PM_CTF_START 0x00005000 // page master
-#define XML_FORM_CTF_START 0x00006000
-#define XML_DB_CTF_START 0x00007000
-
-
-#define CTF_SD_CONTROL_SHAPE_DATA_STYLE ( XML_SD_CTF_START + 1 )
-#define CTF_SD_NUMBERINGRULES_NAME ( XML_SD_CTF_START + 2 )
-#define CTF_SD_SHAPE_PARA_ADJUST ( XML_SD_CTF_START + 3 )
-
-#define CTF_FORMS_DATA_STYLE ( XML_FORM_CTF_START + 0 )
-
-/** use together with MID_FLAG_NO_PROPERTY to import the specified
- attribute into the alien attribute container */
-
-#define CTF_ALIEN_ATTRIBUTE_IMPORT 0x00007fff
-
-#endif // _XMLOFF_CONTEXTID_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/controlpropertyhdl.hxx b/xmloff/inc/xmloff/controlpropertyhdl.hxx
deleted file mode 100644
index 3e2cbfd51e23..000000000000
--- a/xmloff/inc/xmloff/controlpropertyhdl.hxx
+++ /dev/null
@@ -1,136 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_FORMS_CONTROLPROPERTYHDL_HXX_
-#define _XMLOFF_FORMS_CONTROLPROPERTYHDL_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <xmloff/prhdlfac.hxx>
-#include <rtl/ref.hxx>
-#include <rtl/ustring.hxx>
-#include <xmloff/xmlexppr.hxx>
-#include <xmloff/XMLConstantsPropertyHandler.hxx>
-
-struct SvXMLEnumMapEntry;
-class Color;
-//.........................................................................
-namespace xmloff
-{
-//.........................................................................
-
- class IFormsExportContext;
- class OFormLayerXMLImport_Impl;
-
- //=====================================================================
- //= ORotationAngleHandler
- //=====================================================================
- class ORotationAngleHandler : public XMLPropertyHandler
- {
- public:
- ORotationAngleHandler();
-
- virtual sal_Bool importXML( const OUString& _rStrImpValue, ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const;
- virtual sal_Bool exportXML( OUString& _rStrExpValue, const ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const;
- };
-
- //=====================================================================
- //= OFontWidthHandler
- //=====================================================================
- class OFontWidthHandler : public XMLPropertyHandler
- {
- public:
- OFontWidthHandler();
-
- virtual sal_Bool importXML( const OUString& _rStrImpValue, ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const;
- virtual sal_Bool exportXML( OUString& _rStrExpValue, const ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const;
- };
-
- //=====================================================================
- //= OControlBorderHandlerBase
- //=====================================================================
- class OControlBorderHandler : public XMLPropertyHandler
- {
- public:
- enum BorderFacet
- {
- STYLE,
- COLOR
- };
-
- OControlBorderHandler( const BorderFacet _eFacet );
-
- virtual sal_Bool importXML( const OUString& _rStrImpValue, ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const;
- virtual sal_Bool exportXML( OUString& _rStrExpValue, const ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const;
-
- private:
- BorderFacet m_eFacet;
- };
-
- //=====================================================================
- //= OControlTextEmphasisHandler
- //=====================================================================
- class OControlTextEmphasisHandler : public XMLPropertyHandler
- {
- public:
- OControlTextEmphasisHandler();
-
- virtual sal_Bool importXML( const OUString& _rStrImpValue, ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const;
- virtual sal_Bool exportXML( OUString& _rStrExpValue, const ::com::sun::star::uno::Any& _rValue, const SvXMLUnitConverter& _rUnitConverter ) const;
- };
-
- //=====================================================================
- //= ImageScaleModeHandler
- //=====================================================================
- class XMLOFF_DLLPUBLIC ImageScaleModeHandler : public XMLConstantsPropertyHandler
- {
- public:
- ImageScaleModeHandler();
- };
-
- //=====================================================================
- //= OControlPropertyHandlerFactory
- //=====================================================================
- class XMLOFF_DLLPUBLIC OControlPropertyHandlerFactory : public XMLPropertyHandlerFactory
- {
- protected:
- mutable XMLConstantsPropertyHandler* m_pTextAlignHandler;
- mutable OControlBorderHandler* m_pControlBorderStyleHandler;
- mutable OControlBorderHandler* m_pControlBorderColorHandler;
- mutable ORotationAngleHandler* m_pRotationAngleHandler;
- mutable OFontWidthHandler* m_pFontWidthHandler;
- mutable XMLConstantsPropertyHandler* m_pFontEmphasisHandler;
- mutable XMLConstantsPropertyHandler* m_pFontReliefHandler;
-
- protected:
- virtual ~OControlPropertyHandlerFactory();
-
- public:
- OControlPropertyHandlerFactory();
-
- virtual const XMLPropertyHandler* GetPropertyHandler(sal_Int32 _nType) const;
- };
-
-//.........................................................................
-} // namespace xmloff
-//.........................................................................
-
-#endif // _XMLOFF_FORMS_CONTROLPROPERTYHDL_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/dllapi.h b/xmloff/inc/xmloff/dllapi.h
deleted file mode 100644
index 3fcc7b6d1ef2..000000000000
--- a/xmloff/inc/xmloff/dllapi.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_XMLOFF_DLLAPI_H
-#define INCLUDED_XMLOFF_DLLAPI_H
-
-#include "sal/config.h"
-#include "sal/types.h"
-
-#if defined XMLOFF_DLLIMPLEMENTATION
-#define XMLOFF_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
-#else
-#define XMLOFF_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
-#endif
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/families.hxx b/xmloff/inc/xmloff/families.hxx
deleted file mode 100644
index 1a16eaa98c62..000000000000
--- a/xmloff/inc/xmloff/families.hxx
+++ /dev/null
@@ -1,110 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_FAMILIES_HXX_
-#define _XMLOFF_FAMILIES_HXX_
-
-/** These defines determine the unique ids for XML style-families
- used in the SvXMLAutoStylePoolP.
- */
-
-// Misc (Pool)
-// reserved: 0..99
-#define XML_STYLE_FAMILY_DATA_STYLE 0
-#define XML_STYLE_FAMILY_DATA_STYLE_NAME "data-style"
-#define XML_STYLE_FAMILY_PAGE_MASTER 1
-#define XML_STYLE_FAMILY_PAGE_MASTER_NAME "page-layout"
-#define XML_STYLE_FAMILY_PAGE_MASTER_PREFIX "pm"
-#define XML_STYLE_FAMILY_MASTER_PAGE 2
-
-// Text
-// reserved: 100..199
-#define XML_STYLE_FAMILY_TEXT_PARAGRAPH 100
-#define XML_STYLE_FAMILY_TEXT_TEXT 101
-#define XML_STYLE_FAMILY_TEXT_LIST 102
-#define XML_STYLE_FAMILY_TEXT_OUTLINE 103
-#define XML_STYLE_FAMILY_TEXT_FOOTNOTECONFIG 105
-#define XML_STYLE_FAMILY_TEXT_ENDNOTECONFIG 106
-#define XML_STYLE_FAMILY_TEXT_SECTION 107
-#define XML_STYLE_FAMILY_TEXT_FRAME 108 // export only
-#define XML_STYLE_FAMILY_TEXT_RUBY 109
-#define XML_STYLE_FAMILY_TEXT_BIBLIOGRAPHYCONFIG 110
-#define XML_STYLE_FAMILY_TEXT_LINENUMBERINGCONFIG 111
-
-// Table
-// reserved: 200..299
-#define XML_STYLE_FAMILY_TABLE_TABLE 200
-#define XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME "table"
-#define XML_STYLE_FAMILY_TABLE_TABLE_STYLES_PREFIX "ta"
-#define XML_STYLE_FAMILY_TABLE_COLUMN 202
-#define XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME "table-column"
-#define XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_PREFIX "co"
-#define XML_STYLE_FAMILY_TABLE_ROW 203
-#define XML_STYLE_FAMILY_TABLE_ROW_STYLES_NAME "table-row"
-#define XML_STYLE_FAMILY_TABLE_ROW_STYLES_PREFIX "ro"
-#define XML_STYLE_FAMILY_TABLE_CELL 204
-#define XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME "table-cell"
-#define XML_STYLE_FAMILY_TABLE_CELL_STYLES_PREFIX "ce"
-#define XML_STYLE_FAMILY_TABLE_TEMPLATE_ID 205
-
-// Impress/Draw
-// reserved: 300..399
-#define XML_STYLE_FAMILY_SD_GRAPHICS_ID 300
-#define XML_STYLE_FAMILY_SD_GRAPHICS_NAME "graphic"
-#define XML_STYLE_FAMILY_SD_GRAPHICS_PREFIX "gr"
-
-#define XML_STYLE_FAMILY_SD_PRESENTATION_ID 301
-#define XML_STYLE_FAMILY_SD_PRESENTATION_NAME "presentation"
-#define XML_STYLE_FAMILY_SD_PRESENTATION_PREFIX "pr"
-// families for derived from SvXMLStyleContext
-#define XML_STYLE_FAMILY_SD_PAGEMASTERCONEXT_ID 302
-#define XML_STYLE_FAMILY_SD_PAGEMASTERSTYLECONEXT_ID 306
-#define XML_STYLE_FAMILY_SD_PRESENTATIONPAGELAYOUT_ID 303
-// family for draw pool
-#define XML_STYLE_FAMILY_SD_POOL_ID 304
-#define XML_STYLE_FAMILY_SD_POOL_NAME "default"
-// family for presentation drawpage properties
-#define XML_STYLE_FAMILY_SD_DRAWINGPAGE_ID 305
-#define XML_STYLE_FAMILY_SD_DRAWINGPAGE_NAME "drawing-page"
-#define XML_STYLE_FAMILY_SD_DRAWINGPAGE_PREFIX "dp"
-
-#define XML_STYLE_FAMILY_SD_GRADIENT_ID 306
-#define XML_STYLE_FAMILY_SD_HATCH_ID 307
-#define XML_STYLE_FAMILY_SD_FILL_IMAGE_ID 308
-#define XML_STYLE_FAMILY_SD_MARKER_ID 309
-#define XML_STYLE_FAMILY_SD_STROKE_DASH_ID 310
-
-// Chart
-// reserved: 400..499
-#define XML_STYLE_FAMILY_SCH_CHART_ID 400
-#define XML_STYLE_FAMILY_SCH_CHART_NAME "chart"
-#define XML_STYLE_FAMILY_SCH_CHART_PREFIX "ch"
-
-// Math
-// reserved: 500..599
-
-
-// Forms/Controls
-// reserved 600..649
-#define XML_STYLE_FAMILY_CONTROL_ID 600
-#define XML_STYLE_FAMILY_CONTROL_NAME "control"
-#define XML_STYLE_FAMILY_CONTROL_PREFIX "ctrl"
-
-#endif // _XMLOFF_FAMILIES_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/formlayerexport.hxx b/xmloff/inc/xmloff/formlayerexport.hxx
deleted file mode 100644
index 5774988f42d8..000000000000
--- a/xmloff/inc/xmloff/formlayerexport.hxx
+++ /dev/null
@@ -1,189 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_FORMLAYEREXPORT_HXX_
-#define _XMLOFF_FORMLAYEREXPORT_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <com/sun/star/drawing/XDrawPage.hpp>
-#include <com/sun/star/container/XIndexAccess.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/frame/XModel.hpp>
-#include <rtl/ref.hxx>
-#include <salhelper/simplereferenceobject.hxx>
-#include <xmloff/xmlexppr.hxx>
-
-namespace com { namespace sun { namespace star { namespace awt {
- class XControlModel;
-} } } }
-
-class SvXMLExport;
-//.........................................................................
-namespace xmloff
-{
-//.........................................................................
-
- class OFormLayerXMLExport_Impl;
- class OFormsRootExport;
-
- //=====================================================================
- //= OFormLayerXMLExport
- //=====================================================================
- /** provides functionallity for exporting a complete form layer.
- */
- class XMLOFF_DLLPUBLIC OFormLayerXMLExport
- :public ::salhelper::SimpleReferenceObject
- {
- protected:
- /// our export context
- SvXMLExport& m_rContext;
- // impl class
- OFormLayerXMLExport_Impl* m_pImpl;
-
- protected:
- ~OFormLayerXMLExport();
-
- public:
- OFormLayerXMLExport(SvXMLExport& _rContext);
-
- /** initializes some internal structures for fast access to the given page
-
- <p>This method has to be called before you use getControlId for controls on the given page.
- This way a performance optimization can be done for faster access to the control ids</p>
-
- @return
- <TRUE/> if the page has been examined before. If <FALSE/> is returned, this is a serious error.
-
- @see getControlId
- @see examineForms
- */
- sal_Bool seekPage(
- const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& _rxDrawPage);
-
- /** get the id for the given control
-
- <p>The page the control belongs to must have been examined and sought to.</p>
-
- @param _rxControl
- the control which's id should be retrieved. Must not be <NULL/>.
-
- @see examineForms
- @see seekPage
-
- */
- OUString getControlId(
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxControl);
-
- /** retrieves the style name for the control's number style.
-
- <p>For performance reasons, this method is allowed to be called for any controls, even those which
- do not have a number style. In this case, an empty string is returned.</p>
-
- @param _rxControl
- the control which's id should be retrieved. Must not be <NULL/>.
-
- @see examineForms
- @see seekPage
- */
- OUString getControlNumberStyle(
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxControl );
-
- /** examines the forms collection given.
-
- <p>This method will collect all form layer related data of the given draw page</p>
-
- @param _rxDrawPage
- the draw page to examine. The object will be queried for a <type scope="com.sun.star.form">XFormsSupplier</type>
- interface to obtain the forms container.
- */
- void examineForms(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& _rxDrawPage);
-
- /** exports the structure of a form layer
-
- <p>This method does not export styles (e.g. font properties of the controls), or any references
- external instances may have to the control models contained in the form layer (e.g. uno control
- shapes in the drawing layer may have such references)</p>
-
- <p>No top level element describing the whole collection is inserted. I.e. if within your document, you
- expect the forms collection to be stored like
- <listing>
- &lt;Forms&gt;
- .... // all the forms stuff here
- &lt;/Forms&gt;
- </listing>
- you have to start the Forms element yourself.</p>
-
- @param _rxDrawPage
- the draw page to examine. The object will be queried for a <type scope="com.sun.star.form">XFormsSupplier</type>
- interface to obtain the forms container.
- */
- void exportForms(const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& _rxDrawPage);
-
- /** exports the XForms model data
- */
- void exportXForms() const;
-
- /** determines whether the given page contains logical forms
- */
- bool pageContainsForms( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& _rxDrawPage ) const;
-
- /** determines whether the given page contains XForm instances
- */
- bool documentContainsXForms() const;
-
- /** exports the automatic controls number styles
- */
- void exportAutoControlNumberStyles();
-
- /** exports the auto-styles collected during the examineForms calls
- */
- void exportAutoStyles();
-
- /** exclude the given control (model) from export.
-
- <p>If your document contains form controls which are not to be exported for whatever reason,
- you need to announce the models of these controls (can be retrieved from XControlShape::getControl)
- to the form layer exporter.<br/>
- Of course you have to do this before calling <member>exportForms</member></p>
- */
- void excludeFromExport( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > _rxControl );
- };
-
- //=========================================================================
- //= OOfficeFormsExport
- //=========================================================================
- /// export helper for the office::forms element
- class XMLOFF_DLLPUBLIC OOfficeFormsExport
- {
- private:
- OFormsRootExport* m_pImpl;
-
- public:
- OOfficeFormsExport( SvXMLExport& _rExp );
- ~OOfficeFormsExport();
- };
-
-//.........................................................................
-} // namespace xmloff
-//.........................................................................
-
-#endif // _XMLOFF_FORMLAYEREXPORT_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/formlayerimport.hxx b/xmloff/inc/xmloff/formlayerimport.hxx
deleted file mode 100644
index 9a05b73c9ec0..000000000000
--- a/xmloff/inc/xmloff/formlayerimport.hxx
+++ /dev/null
@@ -1,136 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_FORMLAYERIMPORT_HXX_
-#define _XMLOFF_FORMLAYERIMPORT_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <com/sun/star/drawing/XDrawPage.hpp>
-#include <com/sun/star/xml/sax/XAttributeList.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <rtl/ref.hxx>
-#include <salhelper/simplereferenceobject.hxx>
-#include <xmloff/xmlimppr.hxx>
-
-class SvXMLImport;
-class SvXMLImportContext;
-class SvXMLStylesContext;
-class XMLPropStyleContext;
-
-//.........................................................................
-namespace xmloff
-{
-//.........................................................................
-
- //=====================================================================
- //= OFormLayerXMLImport
- //=====================================================================
- class OFormLayerXMLImport_Impl;
- /** allows you to import a &lt;form:form&gt; element
- */
- class XMLOFF_DLLPUBLIC OFormLayerXMLImport
- :public ::salhelper::SimpleReferenceObject
- {
- OFormLayerXMLImport_Impl* m_pImpl;
-
- public:
- OFormLayerXMLImport(SvXMLImport& _rImporter);
- ~OFormLayerXMLImport();
-
- /** start importing the forms of the given page
-
- <p>starting the import of a new page (by using this method) invalidates the current page position.</p>
-
- @see endPage
- */
- void startPage(
- const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& _rxDrawPage);
-
- /** creates an import context for the office:forms element
- */
- SvXMLImportContext* createOfficeFormsContext(
- SvXMLImport& _rImport,
- sal_uInt16 _nPrefix,
- const OUString& _rLocalName);
-
- /** create an <type>SvXMLImportContext</type> instance which is able to import the &lt;form:form&gt;
- element.
-
- <p>You must have called <method>startPage</method> before you can create such an import context.</p>
-
- @see startPage
- @see endPage
- */
- SvXMLImportContext* createContext(
- const sal_uInt16 _nPrefix,
- const OUString& _rLocalName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& _rxAttribs);
-
- /** lookup a control given by id.
-
- <p>The control must be part of the page which is currently beeing imported.</p>
-
- <p>(And, of course, the control must have been imported already at the moment you call this.)</p>
-
- @see startPage
- */
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
- lookupControl(const OUString& _rId);
-
- /** end importing the forms of the current page
-
- <p>You must call this method if you want the import to be finished correctly. Without calling
- it, you will lose information.</p>
-
- @see startPage
- */
- void endPage();
-
- /** announces the auto-style context to the form importer
- */
- void setAutoStyleContext(SvXMLStylesContext* _pNewContext);
-
- /** sets the given number style on the given control
- @param _rxControlModel
- the control model which's style is to be set
- @param _rControlNumerStyleName
- the style name for the control's number style
- */
- void applyControlNumberStyle(
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxControlModel,
- const OUString& _rControlNumerStyleName
- );
-
- /** to be called when the document has been completely imported
-
- <p>For some documents (currently: only some spreadsheet documents) it's necessary
- do to a post processing, since not all information from the file can be processed
- if the document is not completed, yet.</p>
- */
- void documentDone( );
- };
-
-//.........................................................................
-} // namespace xmloff
-//.........................................................................
-
-#endif // _XMLOFF_FORMLAYERIMPORT_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/i18nmap.hxx b/xmloff/inc/xmloff/i18nmap.hxx
deleted file mode 100644
index 22b8ad862a29..000000000000
--- a/xmloff/inc/xmloff/i18nmap.hxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_I18NMAP_HXX
-#define _XMLOFF_I18NMAP_HXX
-
-#include <sal/config.h>
-#include "xmloff/dllapi.h"
-#include <rtl/ustring.hxx>
-#include <tools/solar.h>
-#include <map>
-
-class SvI18NMapEntry_Key
-{
- sal_uInt16 nKind;
- OUString aName;
-public:
- SvI18NMapEntry_Key( sal_uInt16 nKnd, const OUString& rName ) :
- nKind( nKnd ),
- aName( rName )
- {
- }
-
- sal_Bool operator==( const SvI18NMapEntry_Key& r ) const
- {
- return nKind == r.nKind &&
- aName == r.aName;
- }
-
- sal_Bool operator<( const SvI18NMapEntry_Key& r ) const
- {
- return nKind < r.nKind ||
- ( nKind == r.nKind &&
- aName < r.aName);
- }
-};
-
-typedef std::map<SvI18NMapEntry_Key, OUString> SvI18NMap_Impl;
-
-class XMLOFF_DLLPUBLIC SvI18NMap
-{
- SvI18NMap_Impl m_aMap;
-
-public:
- // Add a name mapping
- bool Add( sal_uInt16 nKind, const OUString& rName,
- const OUString& rNewName );
-
- // Return a mapped name. If the name could not be found, return the
- // original name.
- const OUString& Get( sal_uInt16 nKind,
- const OUString& rName ) const;
-};
-
-#endif // _XMLOFF_I18NMAP_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/maptype.hxx b/xmloff/inc/xmloff/maptype.hxx
deleted file mode 100644
index 1f19ad464d60..000000000000
--- a/xmloff/inc/xmloff/maptype.hxx
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_PROPMAPPINGTYPES_HXX
-#define _XMLOFF_PROPMAPPINGTYPES_HXX
-
-#include <tools/solar.h>
-#include <com/sun/star/uno/Any.hxx>
-#include <xmloff/xmltoken.hxx>
-#include <unotools/saveopt.hxx>
-
-///////////////////////////////////////////////////////////////////////////
-//
-/** Represents a property with its API-name, its XML-name and the type of
- its value.
-*/
-struct XMLPropertyMapEntry
-{
- const sal_Char* msApiName; /// Property-Name
- sal_Int32 nApiNameLength; /// length of property name
- sal_uInt16 mnNameSpace; /** declares the Namespace in wich this
- property exists */
- enum ::xmloff::token::XMLTokenEnum meXMLName; /// XML-Name
- sal_uInt32 mnType; /** Bit 0..23 : XML-Type of its value
- Bit 24..31: The flags specifies
- additional rules how
- to im/export the porperty */
- sal_Int16 mnContextId; /// User defined id for context filtering
- SvtSaveOptions::ODFDefaultVersion mnEarliestODFVersionForExport;// no export when the used ODF version is lower than this
-};
-
-///////////////////////////////////////////////////////////////////////////
-//
-/** Smart struct to transport an Any with an index to the appropriate
- property-name
-*/
-struct XMLPropertyState
-{
- sal_Int32 mnIndex;
- ::com::sun::star::uno::Any maValue;
-
- XMLPropertyState( sal_Int32 nIndex )
- : mnIndex( nIndex ) {}
- XMLPropertyState( sal_Int32 nIndex, const ::com::sun::star::uno::Any& rValue )
- : mnIndex( nIndex ), maValue( rValue ) {}
- XMLPropertyState( const XMLPropertyState& rPropState )
- : mnIndex( rPropState.mnIndex ), maValue( rPropState.maValue ) {}
-};
-
-#endif // _XMLOFF_PROPMAPPINGTYPES_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/nmspmap.hxx b/xmloff/inc/xmloff/nmspmap.hxx
deleted file mode 100644
index fe7492cf5e75..000000000000
--- a/xmloff/inc/xmloff/nmspmap.hxx
+++ /dev/null
@@ -1,170 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_NMSPMAP_HXX
-#define _XMLOFF_NMSPMAP_HXX
-
-#include "sal/config.h"
-
-#include <map>
-#include <utility>
-
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <rtl/ustring.hxx>
-#include <boost/unordered_map.hpp>
-#include <rtl/ref.hxx>
-#include <cppuhelper/weak.hxx>
-
-#include <limits.h>
-
-const sal_uInt16 XML_NAMESPACE_XMLNS = (USHRT_MAX-2);
-const sal_uInt16 XML_NAMESPACE_NONE = (USHRT_MAX-1);
-const sal_uInt16 XML_NAMESPACE_UNKNOWN = (USHRT_MAX);
-const sal_uInt16 XML_NAMESPACE_UNKNOWN_FLAG = 0x8000;
-
-class NameSpaceEntry : public cppu::OWeakObject
-{
-public:
- // sName refers to the full namespace name
- OUString sName;
- // sPrefix is the prefix used to declare a given item to be from a given namespace
- OUString sPrefix;
- // nKey is the unique identifier of a namespace
- sal_uInt16 nKey;
-};
-
-struct OUStringEqFunc
-{
- sal_Bool operator()( const OUString &r1,
- const OUString &r2) const
- {
- return r1 == r2;
- }
-};
-
-struct uInt32lt
-{
- sal_Bool operator()( const sal_uInt32 &r1,
- const sal_uInt32 &r2) const
- {
- return r1 < r2;
- }
-};
-typedef ::std::pair < sal_uInt16, OUString > QNamePair;
-
-struct QNamePairHash
-{
- size_t operator()( const QNamePair &r1 ) const
- {
- return (size_t) r1.second.hashCode() + r1.first;
- }
-};
-
-typedef ::boost::unordered_map < QNamePair, OUString, QNamePairHash > QNameCache;
-typedef ::boost::unordered_map < OUString, ::rtl::Reference <NameSpaceEntry >, OUStringHash, OUStringEqFunc > NameSpaceHash;
-typedef ::std::map < sal_uInt16, ::rtl::Reference < NameSpaceEntry >, uInt32lt > NameSpaceMap;
-
-class XMLOFF_DLLPUBLIC SvXMLNamespaceMap
-{
- const OUString sXMLNS;
- const OUString sEmpty;
-
- NameSpaceHash aNameHash;
- mutable NameSpaceHash aNameCache;
- NameSpaceMap aNameMap;
- mutable QNameCache aQNameCache;
- SAL_DLLPRIVATE sal_uInt16 _Add( const OUString& rPrefix, const OUString &rName, sal_uInt16 nKey );
-
-public:
-
- SvXMLNamespaceMap();
- ~SvXMLNamespaceMap();
-
- SvXMLNamespaceMap( const SvXMLNamespaceMap& );
-
- void operator =( const SvXMLNamespaceMap& rCmp );
- int operator ==( const SvXMLNamespaceMap& rCmp ) const;
-
- sal_uInt16 Add( const OUString& rPrefix,
- const OUString& rName,
- sal_uInt16 nKey = XML_NAMESPACE_UNKNOWN );
- sal_uInt16 AddIfKnown( const OUString& rPrefix,
- const OUString& rName );
-
- sal_uInt16 GetKeyByName( const OUString& rName ) const;
- const OUString& GetNameByKey( sal_uInt16 nKey ) const;
-
- sal_uInt16 GetKeyByPrefix( const OUString& rPrefix ) const;
- const OUString& GetPrefixByKey( sal_uInt16 nKey ) const;
-
- OUString GetQNameByKey( sal_uInt16 nKey,
- const OUString& rLocalName,
- sal_Bool bCache = sal_True) const;
-
- OUString GetAttrNameByKey( sal_uInt16 nKey ) const;
-
- /* This will replace the version with the unused 5th default parameter */
- sal_uInt16 _GetKeyByAttrName( const OUString& rAttrName,
- OUString *pPrefix,
- OUString *pLocalName,
- OUString *pNamespace = 0,
- sal_Bool bCache = sal_True) const;
-
- /* This will replace the version with the unused 3rd default parameter */
- sal_uInt16 _GetKeyByAttrName( const OUString& rAttrName,
- OUString *pLocalName = 0,
- sal_Bool bCache = sal_True) const;
-
- sal_uInt16 GetFirstKey() const;
- sal_uInt16 GetNextKey( sal_uInt16 nOldKey ) const;
-
- /* Give access to all namespace definitions, including multiple entries
- for the same key (needed for saving sheets separately in Calc).
- This might be replaced by a better interface later. */
- const NameSpaceHash& GetAllEntries() const { return aNameHash; }
-
- static sal_Bool NormalizeOasisURN( OUString& rName );
- static sal_Bool NormalizeW3URI( OUString& rName );
- static sal_Bool NormalizeURI( OUString& rName );
-
-/* deprecated */ sal_Bool AddAtIndex( sal_uInt16 nIdx, const OUString& rPrefix,
- const OUString& rName, sal_uInt16 nKey = XML_NAMESPACE_UNKNOWN );
-/* deprecated */ sal_uInt16 GetIndexByKey( sal_uInt16 nKey ) const;
-/* deprecated */ sal_uInt16 GetIndexByPrefix( const OUString& rPrefix ) const;
-/* deprecated */ sal_uInt16 GetFirstIndex() const;
-/* deprecated */ sal_uInt16 GetNextIndex( sal_uInt16 nOldIdx ) const;
-/* deprecated */ const OUString& GetPrefixByIndex( sal_uInt16 nIdx ) const;
-/* deprecated */ const OUString& GetNameByIndex( sal_uInt16 nIdx ) const;
-/* deprecated */ OUString GetAttrNameByIndex( sal_uInt16 nIdx ) const;
-/* deprecated */ OUString GetQNameByIndex( sal_uInt16 nIdx,
- const OUString& rLocalName ) const;
-/* deprecated */ sal_uInt16 GetKeyByAttrName( const OUString& rAttrName,
- OUString *pPrefix,
- OUString *pLocalName,
- OUString *pNamespace=0,
- sal_uInt16 nIdxGuess = USHRT_MAX ) const;
-/* deprecated */ sal_uInt16 GetKeyByAttrName( const OUString& rAttrName,
- OUString *pLocalName = 0,
- sal_uInt16 nIdxGuess = USHRT_MAX ) const;
-};
-
-#endif // _XMLOFF_NMSPMAP_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/numehelp.hxx b/xmloff/inc/xmloff/numehelp.hxx
deleted file mode 100644
index 9f0bac4f9e4b..000000000000
--- a/xmloff/inc/xmloff/numehelp.hxx
+++ /dev/null
@@ -1,116 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef XMLOFF_NUMEHELP_HXX
-#define XMLOFF_NUMEHELP_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <sal/types.h>
-#include <com/sun/star/frame/XModel.hpp>
-#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
-
-#include <set>
-
-class SvXMLExport;
-
-struct XMLNumberFormat
-{
- OUString sCurrency;
- sal_Int32 nNumberFormat;
- sal_Int16 nType;
- sal_Bool bIsStandard : 1;
- XMLNumberFormat() : nNumberFormat(0), nType(0) {}
- XMLNumberFormat(const OUString& sTempCurrency, sal_Int32 nTempFormat,
- sal_Int16 nTempType) : sCurrency(sTempCurrency), nNumberFormat(nTempFormat),
- nType(nTempType) {}
-};
-
-struct LessNumberFormat
-{
- sal_Bool operator() (const XMLNumberFormat& rValue1, const XMLNumberFormat& rValue2) const
- {
- return rValue1.nNumberFormat < rValue2.nNumberFormat;
- }
-};
-
-typedef std::set<XMLNumberFormat, LessNumberFormat> XMLNumberFormatSet;
-
-class XMLOFF_DLLPUBLIC XMLNumberFormatAttributesExportHelper
-{
- ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormats > xNumberFormats;
- SvXMLExport* pExport;
- const OUString sEmpty;
- const OUString sStandardFormat;
- const OUString sType;
- const OUString sAttrValueType;
- const OUString sAttrValue;
- const OUString sAttrDateValue;
- const OUString sAttrTimeValue;
- const OUString sAttrBooleanValue;
- const OUString sAttrStringValue;
- const OUString sAttrCurrency;
- const OUString msCurrencySymbol;
- const OUString msCurrencyAbbreviation;
- XMLNumberFormatSet aNumberFormats;
-public :
- XMLNumberFormatAttributesExportHelper(::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >& xNumberFormatsSupplier);
- XMLNumberFormatAttributesExportHelper(::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >& xNumberFormatsSupplier,
- SvXMLExport& rExport );
- ~XMLNumberFormatAttributesExportHelper();
- void SetExport(SvXMLExport* pExp) { this->pExport = pExp; }
-
- sal_Int16 GetCellType(const sal_Int32 nNumberFormat, OUString& sCurrency, bool& bIsStandard);
- static void WriteAttributes(SvXMLExport& rXMLExport,
- const sal_Int16 nTypeKey,
- const double& rValue,
- const OUString& rCurrencySymbol,
- sal_Bool bExportValue = sal_True);
- static sal_Bool GetCurrencySymbol(const sal_Int32 nNumberFormat, OUString& rCurrencySymbol,
- ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & xNumberFormatsSupplier);
- static sal_Int16 GetCellType(const sal_Int32 nNumberFormat, sal_Bool& bIsStandard,
- ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & xNumberFormatsSupplier);
- static void SetNumberFormatAttributes(SvXMLExport& rXMLExport,
- const sal_Int32 nNumberFormat,
- const double& rValue,
- sal_Bool bExportValue = sal_True);
- static void SetNumberFormatAttributes(SvXMLExport& rXMLExport,
- const OUString& rValue,
- const OUString& rCharacters,
- sal_Bool bExportValue = sal_True,
- sal_Bool bExportTypeAttribute = sal_True);
-
- sal_Bool GetCurrencySymbol(const sal_Int32 nNumberFormat, OUString& rCurrencySymbol);
- sal_Int16 GetCellType(const sal_Int32 nNumberFormat, bool& bIsStandard);
- void WriteAttributes(const sal_Int16 nTypeKey,
- const double& rValue,
- const OUString& rCurrencySymbol,
- sal_Bool bExportValue = sal_True);
- void SetNumberFormatAttributes(const sal_Int32 nNumberFormat,
- const double& rValue,
- sal_Bool bExportValue = sal_True);
- void SetNumberFormatAttributes(const OUString& rValue,
- const OUString& rCharacters,
- sal_Bool bExportValue = sal_True,
- sal_Bool bExportTypeAttribute = sal_True);
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/odffields.hxx b/xmloff/inc/xmloff/odffields.hxx
deleted file mode 100644
index a116350db999..000000000000
--- a/xmloff/inc/xmloff/odffields.hxx
+++ /dev/null
@@ -1,53 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-/*
- * Copyright 2008 by Novell, Inc.
- */
-
-#ifndef _ODFFIELDS_HXX
-#define _ODFFIELDS_HXX
-
-
-#define ODF_FORMTEXT "vnd.oasis.opendocument.field.FORMTEXT"
-
-#define ODF_FORMCHECKBOX "vnd.oasis.opendocument.field.FORMCHECKBOX"
-#define ODF_FORMCHECKBOX_HELPTEXT "Checkbox_HelpText"
-#define ODF_FORMCHECKBOX_NAME "Checkbox_Name"
-#define ODF_FORMCHECKBOX_RESULT "Checkbox_Checked"
-
-#define ODF_FORMDROPDOWN "vnd.oasis.opendocument.field.FORMDROPDOWN"
-#define ODF_FORMDROPDOWN_LISTENTRY "Dropdown_ListEntry"
-#define ODF_FORMDROPDOWN_RESULT "Dropdown_Selected"
-
-#define ODF_TOC "vnd.oasis.opendocument.field.TOC"
-
-#define ODF_HYPERLINK "vnd.oasis.opendocument.field.HYPERLINK"
-
-#define ODF_PAGEREF "vnd.oasis.opendocument.field.PAGEREF"
-
-#define ODF_UNHANDLED "vnd.oasis.opendocument.field.UNHANDLED"
-#define ODF_OLE_PARAM "vnd.oasis.opendocument.field.ole"
-#define ODF_ID_PARAM "vnd.oasis.opendocument.field.id"
-#define ODF_CODE_PARAM "vnd.oasis.opendocument.field.code"
-#define ODF_COMMENTRANGE "vnd.oasis.opendocument.field.COMMENTRANGE"
-
-#endif /* _ODFFIELDS_HXX */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/prhdlfac.hxx b/xmloff/inc/xmloff/prhdlfac.hxx
deleted file mode 100644
index afd3472d111c..000000000000
--- a/xmloff/inc/xmloff/prhdlfac.hxx
+++ /dev/null
@@ -1,103 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_PROPERTYHANDLERFACTORY_HXX
-#define _XMLOFF_PROPERTYHANDLERFACTORY_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-
-#include <map>
-#include <xmloff/uniref.hxx>
-#include <xmloff/xmlprhdl.hxx>
-
-/**
- This class is a base-class to create XMLPropertyHandler.
- It creates PropertyHandler for given XML-types and store
- them in an internal cache. They'll be deleted at destruction-
- time.
- For create your own PropertyHandler for specific XML-types
- you have to override the virtual method GetPropertyHandler
- ( see below ).
-*/
-class XMLOFF_DLLPUBLIC XMLPropertyHandlerFactory : public UniRefBase
-{
-public:
- virtual ~XMLPropertyHandlerFactory();
-
- /**
- This method retrieves a PropertyHandler for the given XML-type.
- To extend this method for more XML-types override this method
- like the example below. If you call the method of the base-class
- you get propertyhandler for basic-XML-types ( e.g. for color, percent, ... ).
- Afetr that you could create your new XML-types. After creating a new type
- you have to put the pointer into the cache via the method
- PutHdlCache( sal_Int32 , XMLPropertyHandler* ).
-
- virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const
- {
- XMLPropertyHandler* pHdl = XMLPropertyHandlerFactory::GetPropertyHandler( nType );
-
- if( !pHdl )
- {
- switch( nType )
- {
- case XML_TYPE_XYZ :
- pHdl = new XML_xyz_PropHdl;
- break;
- case ...
- :
- :
- }
-
- if( pHdl )
- PutHdlCache( nType, pHdl );
- }
-
- return pHdl;
- }
- */
- virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const;
-
- /** helper method to statically create a property handler; this will not
- * use the handler cache. This method should only be called in special
- * circumstances; calling GetPropertyHandler is almost always
- * preferable. */
- static const XMLPropertyHandler* CreatePropertyHandler( sal_Int32 nType );
-
-protected:
- /** Retrieves a PropertyHandler from the internal cache */
- XMLPropertyHandler* GetHdlCache( sal_Int32 nType ) const;
- /** Puts a PropertyHandler into the internal cache */
- void PutHdlCache( sal_Int32 nType, const XMLPropertyHandler* pHdl ) const;
-
-private:
- /** Retrieves ( creates if necessary ) PropertyHandler for
- basic XML-types */
- SAL_DLLPRIVATE const XMLPropertyHandler* GetBasicHandler( sal_Int32 nType )
- const;
-
- typedef ::std::map< sal_Int32, XMLPropertyHandler* > CacheMap;
- CacheMap maHandlerCache;
-};
-
-#endif // _XMLOFF_PROPERTYHANDLERFACTORY_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/prstylei.hxx b/xmloff/inc/xmloff/prstylei.hxx
deleted file mode 100644
index 3ec8114c6507..000000000000
--- a/xmloff/inc/xmloff/prstylei.hxx
+++ /dev/null
@@ -1,99 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_PRSTYLEI_HXX_
-#define _XMLOFF_PRSTYLEI_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <com/sun/star/style/XStyle.hpp>
-#include <vector>
-#include <xmloff/xmlstyle.hxx>
-
-struct XMLPropertyState;
-class SvXMLStylesContext;
-
-namespace com { namespace sun { namespace star {
- namespace beans { class XPropertySet; }
-} } }
-
-class XMLOFF_DLLPUBLIC XMLPropStyleContext : public SvXMLStyleContext
-{
- const OUString msIsPhysical;
- const OUString msFollowStyle;
- ::std::vector< XMLPropertyState > maProperties;
- ::com::sun::star::uno::Reference < ::com::sun::star::style::XStyle > mxStyle;
- SvXMLImportContextRef mxStyles;
-
- SAL_DLLPRIVATE XMLPropStyleContext(XMLPropStyleContext &); // not defined
- SAL_DLLPRIVATE void operator =(XMLPropStyleContext &); // not defined
-
-protected:
-
- virtual void SetAttribute( sal_uInt16 nPrefixKey,
- const OUString& rLocalName,
- const OUString& rValue );
- SvXMLStylesContext *GetStyles() { return (SvXMLStylesContext *)&mxStyles; }
- ::std::vector< XMLPropertyState > & GetProperties() { return maProperties; }
-
- // This methos my be overloaded to create a new style. Its called by
- // CreateInsert to create a style if a style with the requested family and
- // name couldn't be found. The st
- virtual ::com::sun::star::uno::Reference <
- ::com::sun::star::style::XStyle > Create();
-
-public:
-
- TYPEINFO();
-
- XMLPropStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
- const OUString& rLName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
- SvXMLStylesContext& rStyles, sal_uInt16 nFamily = 0,
- sal_Bool bDefaultStyle=sal_False );
- virtual ~XMLPropStyleContext();
-
- virtual SvXMLImportContext *CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
-
- virtual void FillPropertySet(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > & rPropSet );
-
- const SvXMLStylesContext *GetStyles() const { return (const SvXMLStylesContext *)&mxStyles; }
- const ::std::vector< XMLPropertyState > & GetProperties() const { return maProperties; }
-
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::style::XStyle >&
- GetStyle() const { return mxStyle; }
- void SetStyle(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::style::XStyle >& xStl) { mxStyle = xStl; }
-
- virtual void SetDefaults();
-
- virtual void CreateAndInsert( sal_Bool bOverwrite );
- virtual void Finish( sal_Bool bOverwrite );
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/settingsstore.hxx b/xmloff/inc/xmloff/settingsstore.hxx
deleted file mode 100644
index b9f5f04c45bd..000000000000
--- a/xmloff/inc/xmloff/settingsstore.hxx
+++ /dev/null
@@ -1,59 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * Version: MPL 1.1 / GPLv3+ / LGPLv3+
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License or as specified alternatively below. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * Major Contributor(s):
- * Copyright (C) 2011 Novell, Inc. <michael.meeks@novell.com> (initial developer)
- *
- * All Rights Reserved.
- *
- * For minor contributions see the git repository.
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
- * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
- * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
- * instead of those above.
- */
-
-// Simple interface to allow serialization of document settings
-
-#ifndef _XMLOFF_SETTINGS_STORE_HXX
-#define _XMLOFF_SETTINGS_STORE_HXX
-
-#include <vector>
-#include <com/sun/star/beans/PropertyValue.hpp>
-#include <com/sun/star/embed/XStorage.hpp>
-
-// Scans list of properties for certain URL properties that could refer
-// to internal objects, and initializes from these.
-class DocumentSettingsSerializer {
-public:
- // Import objects and update properties (eliding URLs)
- virtual com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
- filterStreamsFromStorage(
- const com::sun::star::uno::Reference< com::sun::star::embed::XStorage > &xStorage,
- const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aConfigProps ) = 0;
- // Export objects and update properties with relative URLs into this storage
- virtual com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
- filterStreamsToStorage(
- const com::sun::star::uno::Reference< com::sun::star::embed::XStorage > &xStorage,
- const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aConfigProps ) = 0;
-
-protected:
- ~DocumentSettingsSerializer() {}
-};
-
-#endif // _XMLOFF_SETTINGS_STORE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/shapeexport.hxx b/xmloff/inc/xmloff/shapeexport.hxx
deleted file mode 100644
index 8dfaa0f89d5e..000000000000
--- a/xmloff/inc/xmloff/shapeexport.hxx
+++ /dev/null
@@ -1,331 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_SHAPEEXPORT_HXX_
-#define _XMLOFF_SHAPEEXPORT_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-
-#include <rtl/ref.hxx>
-#include <rtl/ustring.hxx>
-#include <rtl/ustrbuf.hxx>
-#include <xmloff/uniref.hxx>
-
-#include <com/sun/star/drawing/XShape.hpp>
-#include <com/sun/star/drawing/XShapes.hpp>
-#include <com/sun/star/awt/Point.hpp>
-#include <com/sun/star/beans/PropertyValue.hpp>
-
-#include <map>
-#include <xmloff/xmlprmap.hxx>
-#include <xmloff/xmlexppr.hxx>
-#include <xmloff/animexp.hxx>
-#include <xmloff/families.hxx>
-
-#include "xmloff/table/XMLTableExport.hxx"
-
-// shape export features are bits used for the nFeature
-// parameter of XMLShapeExport::exportShape
-
-#define SEF_EXPORT_X 0x0001
-#define SEF_EXPORT_Y 0x0002
-#define SEF_EXPORT_POSITION 0x0003
-
-#define SEF_EXPORT_WIDTH 0x0004
-#define SEF_EXPORT_HEIGHT 0x0008
-#define SEF_EXPORT_SIZE 0x000c
-
-// when you set this flag a chart does NOT export its own data as table element
-#define SEF_EXPORT_NO_CHART_DATA 0x0010
-
-// When setting the flag below no ignorableWhiteSpace will be called around
-// the drawing object elements
-#define SEF_EXPORT_NO_WS 0x0020
-
-// When setting the flag below a callout shape is exported as office:annotation
-#define SEF_EXPORT_ANNOTATION 0x0040
-
-#define SEF_DEFAULT SEF_EXPORT_POSITION|SEF_EXPORT_SIZE
-
-enum XmlShapeType
-{
- XmlShapeTypeUnknown, // not known
-
- XmlShapeTypeDrawRectangleShape, // "com.sun.star.drawing.RectangleShape"
- XmlShapeTypeDrawEllipseShape, // "com.sun.star.drawing.EllipseShape"
- XmlShapeTypeDrawControlShape, // "com.sun.star.drawing.ControlShape"
- XmlShapeTypeDrawConnectorShape, // "com.sun.star.drawing.ConnectorShape"
- XmlShapeTypeDrawMeasureShape, // "com.sun.star.drawing.MeasureShape"
- XmlShapeTypeDrawLineShape, // "com.sun.star.drawing.LineShape"
- XmlShapeTypeDrawPolyPolygonShape, // "com.sun.star.drawing.PolyPolygonShape"
- XmlShapeTypeDrawPolyLineShape, // "com.sun.star.drawing.PolyLineShape"
- XmlShapeTypeDrawOpenBezierShape, // "com.sun.star.drawing.OpenBezierShape"
- XmlShapeTypeDrawClosedBezierShape, // "com.sun.star.drawing.ClosedBezierShape"
- XmlShapeTypeDrawGraphicObjectShape, // "com.sun.star.drawing.GraphicObjectShape"
- XmlShapeTypeDrawGroupShape, // "com.sun.star.drawing.GroupShape"
- XmlShapeTypeDrawTextShape, // "com.sun.star.drawing.TextShape"
- XmlShapeTypeDrawOLE2Shape, // "com.sun.star.drawing.OLE2Shape"
- XmlShapeTypeDrawChartShape, // embedded com.sun.star.chart
- XmlShapeTypeDrawSheetShape, // embedded com.sun.star.sheet
- XmlShapeTypeDrawPageShape, // "com.sun.star.drawing.PageShape"
- XmlShapeTypeDrawFrameShape, // "com.sun.star.drawing.FrameShape"
- XmlShapeTypeDrawCaptionShape, // "com.sun.star.drawing.CaptionShape"
- XmlShapeTypeDrawAppletShape, // "com.sun.star.drawing.AppletShape"
- XmlShapeTypeDrawPluginShape, // "com.sun.star.drawing.PlugginShape"
-
- XmlShapeTypeDraw3DSceneObject, // "com.sun.star.drawing.Shape3DSceneObject"
- XmlShapeTypeDraw3DCubeObject, // "com.sun.star.drawing.Shape3DCubeObject"
- XmlShapeTypeDraw3DSphereObject, // "com.sun.star.drawing.Shape3DSphereObject"
- XmlShapeTypeDraw3DLatheObject, // "com.sun.star.drawing.Shape3DLatheObject"
- XmlShapeTypeDraw3DExtrudeObject, // "com.sun.star.drawing.Shape3DExtrudeObject"
-
- XmlShapeTypePresTitleTextShape, // "com.sun.star.presentation.TitleTextShape"
- XmlShapeTypePresOutlinerShape, // "com.sun.star.presentation.OutlinerShape"
- XmlShapeTypePresSubtitleShape, // "com.sun.star.presentation.SubtitleShape"
- XmlShapeTypePresGraphicObjectShape, // "com.sun.star.presentation.GraphicObjectShape"
- XmlShapeTypePresPageShape, // "com.sun.star.presentation.PageShape"
- XmlShapeTypePresOLE2Shape, // "com.sun.star.presentation.OLE2Shape"
- XmlShapeTypePresChartShape, // "com.sun.star.presentation.ChartShape"
- XmlShapeTypePresSheetShape, // "com.sun.star.presentation.CalcShape"
- XmlShapeTypePresTableShape, // "com.sun.star.presentation.TableShape"
- XmlShapeTypePresOrgChartShape, // "com.sun.star.presentation.OrgChartShape"
- XmlShapeTypePresNotesShape, // "com.sun.star.presentation.NotesShape"
- XmlShapeTypeHandoutShape, // "com.sun.star.presentation.HandoutShape"
-
- XmlShapeTypePresHeaderShape, // "com.sun.star.presentation.HeaderShape"
- XmlShapeTypePresFooterShape, // "com.sun.star.presentation.FooterShape"
- XmlShapeTypePresSlideNumberShape, // "com.sun.star.presentation.SlideNumberShape"
- XmlShapeTypePresDateTimeShape, // "com.sun.star.presentation.DateTimeShape"
-
- XmlShapeTypeDrawCustomShape, // "com.sun.star.drawing.CustomShape"
- XmlShapeTypeDrawMediaShape, // "com.sun.star.drawing.MediaShape"
- XmlShapeTypePresMediaShape, // "com.sun.star.presentation.MediaShape"
-
- XmlShapeTypeDrawTableShape, // "com.sun.star.drawing.TableShape"
-
- XmlShapeTypeNotYetSet
-};
-
-/** caches style and type info after a collectShapeAutostyle for later use in exportShape */
-struct ImplXMLShapeExportInfo
-{
- OUString msStyleName;
- OUString msTextStyleName;
- sal_Int32 mnFamily;
- XmlShapeType meShapeType;
-
- com::sun::star::uno::Reference< com::sun::star::drawing::XShape > xCustomShapeReplacement;
-
- ImplXMLShapeExportInfo() : mnFamily( XML_STYLE_FAMILY_SD_GRAPHICS_ID ), meShapeType( XmlShapeTypeNotYetSet ) {}
-};
-
-/** a vector for shape style and type cache information */
-typedef std::vector< ImplXMLShapeExportInfo > ImplXMLShapeExportInfoVector;
-
-/** a map to store all cache data for already collected XShapes */
-typedef std::map< com::sun::star::uno::Reference < com::sun::star::drawing::XShapes >, ImplXMLShapeExportInfoVector > ShapesInfos;
-
-//////////////////////////////////////////////////////////////////////////////
-// predeclarations
-
-class SvXMLExport;
-class SvXMLExportPropertyMapper;
-
-namespace basegfx
-{
- class B2DTuple;
- class B2DHomMatrix;
-} // end of namespace basegfx
-
-class XMLOFF_DLLPUBLIC XMLShapeExport : public UniRefBase
-{
-private:
-
- SvXMLExport& mrExport;
- UniReference< XMLPropertyHandlerFactory > mxSdPropHdlFactory;
- UniReference< SvXMLExportPropertyMapper > mxPropertySetMapper;
- UniReference< XMLAnimationsExporter > mxAnimationsExporter;
- sal_Int32 mnNextUniqueShapeId;
- ShapesInfos maShapesInfos;
- ShapesInfos::iterator maCurrentShapesIter;
- sal_Bool mbExportLayer;
- ImplXMLShapeExportInfoVector maShapeInfos;
- ImplXMLShapeExportInfoVector::iterator maCurrentInfo;
- OUString msPresentationStylePrefix;
-
- // #88546# possibility to swich progress bar handling on/off
- sal_Bool mbHandleProgressBar;
-
- rtl::Reference< XMLTableExport > mxShapeTableExport;
-
-protected:
- SvXMLExport& GetExport() { return mrExport; }
- const SvXMLExport& GetExport() const { return mrExport; }
-private:
-
- SAL_DLLPRIVATE UniReference< SvXMLExportPropertyMapper > GetPropertySetMapper() const { return mxPropertySetMapper; }
-
- const OUString msZIndex;
- const OUString msPrintable;
- const OUString msVisible;
-
- const OUString msEmptyPres;
- const OUString msModel;
- const OUString msStartShape;
- const OUString msEndShape;
- const OUString msOnClick;
- const OUString msEventType;
- const OUString msPresentation;
- const OUString msMacroName;
- const OUString msScript;
- const OUString msLibrary;
- const OUString msClickAction;
- const OUString msBookmark;
- const OUString msEffect;
- const OUString msPlayFull;
- const OUString msVerb;
- const OUString msSoundURL;
- const OUString msSpeed;
- const OUString msStarBasic;
-
- OUStringBuffer msBuffer;
-
- SAL_DLLPRIVATE void ImpCalcShapeType(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType& eShapeType);
-
- SAL_DLLPRIVATE void ImpExportNewTrans(const com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet >& xPropSet, sal_Int32 nFeatures, com::sun::star::awt::Point* pRefPoint);
- SAL_DLLPRIVATE void ImpExportNewTrans_GetB2DHomMatrix(::basegfx::B2DHomMatrix& rMatrix, const com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet >& xPropSet);
- SAL_DLLPRIVATE void ImpExportNewTrans_DecomposeAndRefPoint(const ::basegfx::B2DHomMatrix& rMat, ::basegfx::B2DTuple& rTRScale, double& fTRShear, double& fTRRotate, ::basegfx::B2DTuple& rTRTranslate, com::sun::star::awt::Point* pRefPoint);
- SAL_DLLPRIVATE void ImpExportNewTrans_FeaturesAndWrite(::basegfx::B2DTuple& rTRScale, double fTRShear, double fTRRotate, ::basegfx::B2DTuple& rTRTranslate, const sal_Int32 nFeatures);
- SAL_DLLPRIVATE sal_Bool ImpExportPresentationAttributes( const com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet >& xPropSet, const OUString& rClass );
- SAL_DLLPRIVATE void ImpExportText( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape );
- SAL_DLLPRIVATE void ImpExportEvents( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape );
- SAL_DLLPRIVATE void ImpExportDescription( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape ); // #i68101#
- SAL_DLLPRIVATE void ImpExportGluePoints( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape );
-
- // single shape exporters
- SAL_DLLPRIVATE void ImpExportGroupShape( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExport3DSceneShape( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportRectangleShape( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportLineShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportEllipseShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportPolygonShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportTextBoxShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportGraphicObjectShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportChartShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL, SvXMLAttributeList* pAttrList = NULL );
- SAL_DLLPRIVATE void ImpExportControlShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportConnectorShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportMeasureShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportOLE2Shape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL, SvXMLAttributeList* pAttrList = NULL );
- SAL_DLLPRIVATE void ImpExportPageShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportCaptionShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExport3DShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportFrameShape( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportPluginShape( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportAppletShape( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportCustomShape( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportMediaShape( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
- SAL_DLLPRIVATE void ImpExportTableShape(const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, XmlShapeType eShapeType, sal_Int32 nFeatures = SEF_DEFAULT, com::sun::star::awt::Point* pRefPoint = NULL );
-public:
- XMLShapeExport(SvXMLExport& rExp, SvXMLExportPropertyMapper *pExtMapper=0 );
- virtual ~XMLShapeExport();
-
- // This method collects all automatic styles for the given XShape
- void collectShapeAutoStyles(
- const com::sun::star::uno::Reference < com::sun::star::drawing::XShape >& xShape);
-
- // This method exports the given XShape
- void exportShape(
- const com::sun::star::uno::Reference < com::sun::star::drawing::XShape >& xShape,
- sal_Int32 nFeatures = SEF_DEFAULT,
- com::sun::star::awt::Point* pRefPoint = NULL,
- SvXMLAttributeList* pAttrList = NULL
- );
-
- // This method collects all automatic styles for the shapes inside the given XShapes collection
- void collectShapesAutoStyles(
- const com::sun::star::uno::Reference < com::sun::star::drawing::XShapes >& xShapes);
-
- // This method exports all XShape inside the given XShapes collection
- void exportShapes(
- const com::sun::star::uno::Reference < com::sun::star::drawing::XShapes >& xShapes,
- sal_Int32 nFeatures = SEF_DEFAULT,
- com::sun::star::awt::Point* pRefPoint = NULL
- );
-
- /** initializes some internal structures for fast access to the given XShapes collection
-
- <p>This method has to be called before you use exportShape or collectShapeAutoStyles.
- It is automaticly called if you use collectShapesAutoStyles and exportShapes.
-
- @see collectShapeAutoStyles
- @see exportShape
- @see collectShapesAutoStyles
- @see exportShapes
- */
- void seekShapes(
- const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& xShapes ) throw();
-
- void exportAutoStyles();
-
- /** sets a new reference to an XMLAnimationExporter.
- If this is a non NULL reference, the animation information from all shapes given to exportShape()
- from now on are collected.
- */
- void setAnimationsExporter( UniReference< XMLAnimationsExporter > xAnimExport ) { mxAnimationsExporter = xAnimExport; }
-
- /** returns the last set XMLAnimationExport */
- UniReference< XMLAnimationsExporter > getAnimationsExporter() const { return mxAnimationsExporter; }
-
- /// returns the export property mapper for external chaining
- static SvXMLExportPropertyMapper* CreateShapePropMapper( SvXMLExport& rExport );
-
- void enableLayerExport( sal_Bool bEnable = sal_True ) { mbExportLayer = bEnable; }
- sal_Bool IsLayerExportEnabled() const { return mbExportLayer; }
-
- // #88546#
- /** defines if the export should increment the progress bar or not */
- void enableHandleProgressBar( sal_Bool bEnable = sal_True ) { mbHandleProgressBar = bEnable; }
- sal_Bool IsHandleProgressBarEnabled() const { return mbHandleProgressBar; }
-
- void setPresentationStylePrefix( const OUString& rPrefix ) { msPresentationStylePrefix = rPrefix; }
-
- /** helper for chart that adds all attributes of a 3d scene element to the export */
- void export3DSceneAttributes( const com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet >& xPropSet );
-
- /** helper for chart that exports all lamps from the propertyset */
- void export3DLamps( const com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet >& xPropSet );
-
- /** sj: replacing CustomShapes with standard objects that are also supported in OpenOffice.org format */
- com::sun::star::uno::Reference < com::sun::star::drawing::XShape > checkForCustomShapeReplacement(
- const com::sun::star::uno::Reference < com::sun::star::drawing::XShape >& );
-
- /** helper to export the style for graphic defaults */
- void ExportGraphicDefaults();
-
- /** is called before a shape element for the given XShape is exported */
- virtual void onExport( const com::sun::star::uno::Reference < com::sun::star::drawing::XShape >& xShape );
-
- const rtl::Reference< XMLTableExport >& GetShapeTableExport();
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/shapeimport.hxx b/xmloff/inc/xmloff/shapeimport.hxx
deleted file mode 100644
index 6de02130f243..000000000000
--- a/xmloff/inc/xmloff/shapeimport.hxx
+++ /dev/null
@@ -1,426 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_SHAPEIMPORT_HXX_
-#define _XMLOFF_SHAPEIMPORT_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/frame/XModel.hpp>
-#include <com/sun/star/xml/sax/XAttributeList.hpp>
-#include <com/sun/star/drawing/XShapes.hpp>
-#include <com/sun/star/drawing/HomogenMatrix.hpp>
-#include <com/sun/star/drawing/ProjectionMode.hpp>
-#include <com/sun/star/drawing/ShadeMode.hpp>
-#include <xmloff/uniref.hxx>
-#include <xmloff/xmlictxt.hxx>
-
-#include "xmloff/table/XMLTableImport.hxx"
-#include <basegfx/vector/b3dvector.hxx>
-#include <vector>
-
-class SvXMLImport;
-class SvXMLImportContext;
-class SvXMLTokenMap;
-class SvXMLStylesContext;
-class XMLSdPropHdlFactory;
-class XMLPropertySetMapper;
-class SvXMLImportPropertyMapper;
-
-//////////////////////////////////////////////////////////////////////////////
-
-enum SdXMLGroupShapeElemTokenMap
-{
- XML_TOK_GROUP_GROUP,
- XML_TOK_GROUP_RECT,
- XML_TOK_GROUP_LINE,
- XML_TOK_GROUP_CIRCLE,
- XML_TOK_GROUP_ELLIPSE,
- XML_TOK_GROUP_POLYGON,
- XML_TOK_GROUP_POLYLINE,
- XML_TOK_GROUP_PATH,
-
- XML_TOK_GROUP_CONTROL,
- XML_TOK_GROUP_CONNECTOR,
- XML_TOK_GROUP_MEASURE,
- XML_TOK_GROUP_PAGE,
- XML_TOK_GROUP_CAPTION,
-
- XML_TOK_GROUP_CHART,
- XML_TOK_GROUP_3DSCENE,
-
- XML_TOK_GROUP_FRAME,
-
- XML_TOK_GROUP_CUSTOM_SHAPE,
-
- XML_TOK_GROUP_ANNOTATION,
-
- XML_TOK_GROUP_A,
-
- XML_TOK_GROUP_LAST
-};
-
-enum SdXMLFrameShapeElemTokenMap
-{
- XML_TOK_FRAME_TEXT_BOX,
- XML_TOK_FRAME_IMAGE,
- XML_TOK_FRAME_OBJECT,
- XML_TOK_FRAME_OBJECT_OLE,
- XML_TOK_FRAME_PLUGIN,
- XML_TOK_FRAME_FRAME,
- XML_TOK_FRAME_FLOATING_FRAME,
- XML_TOK_FRAME_APPLET,
- XML_TOK_FRAME_TABLE,
-
- XML_TOK_FRAME_LAST
-};
-
-enum SdXML3DSceneShapeElemTokenMap
-{
- XML_TOK_3DSCENE_3DSCENE,
- XML_TOK_3DSCENE_3DCUBE,
- XML_TOK_3DSCENE_3DSPHERE,
- XML_TOK_3DSCENE_3DLATHE,
- XML_TOK_3DSCENE_3DEXTRUDE,
-
- XML_TOK_3DSCENE_LAST
-};
-
-enum SdXMLShapeAttrTokenMap
-{
- XML_TOK_SHAPE_NAME,
- XML_TOK_SHAPE_DRAWSTYLE_NAME_GRAPHICS,
- XML_TOK_SHAPE_PRESENTATION_CLASS,
- XML_TOK_SHAPE_DRAWSTYLE_NAME_PRESENTATION,
- XML_TOK_SHAPE_TRANSFORM,
- XML_TOK_SHAPE_IS_PLACEHOLDER,
- XML_TOK_SHAPE_IS_USER_TRANSFORMED
-};
-
-enum SdXML3DObjectAttrTokenMap
-{
- XML_TOK_3DOBJECT_DRAWSTYLE_NAME,
- XML_TOK_3DOBJECT_TRANSFORM
-};
-
-enum SdXML3DPolygonBasedAttrTokenMap
-{
- XML_TOK_3DPOLYGONBASED_VIEWBOX,
- XML_TOK_3DPOLYGONBASED_D
-};
-
-enum SdXML3DCubeObjectAttrTokenMap
-{
- XML_TOK_3DCUBEOBJ_MINEDGE,
- XML_TOK_3DCUBEOBJ_MAXEDGE
-};
-
-enum SdXML3DSphereObjectAttrTokenMap
-{
- XML_TOK_3DSPHEREOBJ_CENTER,
- XML_TOK_3DSPHEREOBJ_SIZE
-};
-
-enum SdXMLPolygonShapeAttrTokenMap
-{
- XML_TOK_POLYGONSHAPE_VIEWBOX,
- XML_TOK_POLYGONSHAPE_POINTS
-};
-
-enum SdXMLPathShapeAttrTokenMap
-{
- XML_TOK_PATHSHAPE_VIEWBOX,
- XML_TOK_PATHSHAPE_D
-};
-
-enum SdXML3DSceneShapeAttrTokenMap
-{
- XML_TOK_3DSCENESHAPE_TRANSFORM,
- XML_TOK_3DSCENESHAPE_VRP,
- XML_TOK_3DSCENESHAPE_VPN,
- XML_TOK_3DSCENESHAPE_VUP,
- XML_TOK_3DSCENESHAPE_PROJECTION,
- XML_TOK_3DSCENESHAPE_DISTANCE,
- XML_TOK_3DSCENESHAPE_FOCAL_LENGTH,
- XML_TOK_3DSCENESHAPE_SHADOW_SLANT,
- XML_TOK_3DSCENESHAPE_SHADE_MODE,
- XML_TOK_3DSCENESHAPE_AMBIENT_COLOR,
- XML_TOK_3DSCENESHAPE_LIGHTING_MODE
-};
-
-enum SdXML3DLightAttrTokenMap
-{
- XML_TOK_3DLIGHT_DIFFUSE_COLOR,
- XML_TOK_3DLIGHT_DIRECTION,
- XML_TOK_3DLIGHT_ENABLED,
- XML_TOK_3DLIGHT_SPECULAR
-};
-
-//////////////////////////////////////////////////////////////////////////////
-// dr3d:3dlight context
-
-class SdXML3DLightContext: public SvXMLImportContext
-{
- // local parameters which need to be read
- sal_Int32 maDiffuseColor;
- ::basegfx::B3DVector maDirection;
- bool mbEnabled;
- bool mbSpecular;
-
-public:
- SdXML3DLightContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrfx,
- const OUString& rLName,
- const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList);
- virtual ~SdXML3DLightContext();
-
- sal_Int32 GetDiffuseColor() { return maDiffuseColor; }
- const ::basegfx::B3DVector& GetDirection() { return maDirection; }
- sal_Bool GetEnabled() { return mbEnabled; }
- sal_Bool GetSpecular() { return mbSpecular; }
-};
-
-//////////////////////////////////////////////////////////////////////////////
-
-typedef ::std::vector< SdXML3DLightContext* > Imp3DLightList;
-
-class SdXML3DSceneAttributesHelper
-{
-protected:
- SvXMLImport& mrImport;
-
- // list for local light contexts
- Imp3DLightList maList;
-
- // local parameters which need to be read
- com::sun::star::drawing::HomogenMatrix mxHomMat;
- sal_Bool mbSetTransform;
-
- com::sun::star::drawing::ProjectionMode mxPrjMode;
- sal_Int32 mnDistance;
- sal_Int32 mnFocalLength;
- sal_Int32 mnShadowSlant;
- com::sun::star::drawing::ShadeMode mxShadeMode;
- sal_Int32 maAmbientColor;
- bool mbLightingMode;
-
- ::basegfx::B3DVector maVRP;
- ::basegfx::B3DVector maVPN;
- ::basegfx::B3DVector maVUP;
- sal_Bool mbVRPUsed;
- sal_Bool mbVPNUsed;
- sal_Bool mbVUPUsed;
-
-public:
- SdXML3DSceneAttributesHelper( SvXMLImport& rImporter );
- ~SdXML3DSceneAttributesHelper();
-
- /** creates a 3d ligth context and adds it to the internal list for later processing */
- SvXMLImportContext * create3DLightContext( sal_uInt16 nPrfx, const OUString& rLName, const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList);
-
- /** this should be called for each scene attribute */
- void processSceneAttribute( sal_uInt16 nPrefix, const OUString& rLocalName, const OUString& rValue );
-
- /** this sets the scene attributes at this propertyset */
- void setSceneAttributes( const com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet >& xPropSet );
-};
-
-//////////////////////////////////////////////////////////////////////////////
-
-class SvXMLShapeContext : public SvXMLImportContext
-{
-protected:
- com::sun::star::uno::Reference< com::sun::star::drawing::XShape > mxShape;
- sal_Bool mbTemporaryShape;
- OUString msHyperlink;
-
-public:
- SvXMLShapeContext( SvXMLImport& rImp, sal_uInt16 nPrfx,
- const OUString& rLName, sal_Bool bTemporaryShape ) : SvXMLImportContext( rImp, nPrfx, rLName ), mbTemporaryShape(bTemporaryShape) {}
-
- TYPEINFO();
-
- const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& getShape() const { return mxShape; }
-
- void setHyperlink( const OUString& rHyperlink );
-};
-
-//////////////////////////////////////////////////////////////////////////////
-
-class ShapeSortContext;
-struct XMLShapeImportHelperImpl;
-struct XMLShapeImportPageContextImpl;
-
-class XMLOFF_DLLPUBLIC XMLShapeImportHelper : public UniRefBase
-{
- XMLShapeImportHelperImpl* mpImpl;
-
- XMLShapeImportPageContextImpl* mpPageContext;
-
- com::sun::star::uno::Reference< com::sun::star::frame::XModel > mxModel;
-
- // PropertySetMappers and factory
- XMLSdPropHdlFactory* mpSdPropHdlFactory;
- SvXMLImportPropertyMapper* mpPropertySetMapper;
- SvXMLImportPropertyMapper* mpPresPagePropsMapper;
-
- // contexts for Style and AutoStyle import
- SvXMLStylesContext* mpStylesContext;
- SvXMLStylesContext* mpAutoStylesContext;
-
- // contexts for xShape contents TokenMaps
- SvXMLTokenMap* mpGroupShapeElemTokenMap;
- SvXMLTokenMap* mpFrameShapeElemTokenMap;
- SvXMLTokenMap* mp3DSceneShapeElemTokenMap;
- SvXMLTokenMap* mp3DObjectAttrTokenMap;
- SvXMLTokenMap* mp3DPolygonBasedAttrTokenMap;
- SvXMLTokenMap* mp3DCubeObjectAttrTokenMap;
- SvXMLTokenMap* mp3DSphereObjectAttrTokenMap;
- SvXMLTokenMap* mp3DSceneShapeAttrTokenMap;
- SvXMLTokenMap* mp3DLightAttrTokenMap;
- SvXMLTokenMap* mpPathShapeAttrTokenMap;
- SvXMLTokenMap* mpPolygonShapeAttrTokenMap;
-
- const OUString msStartShape;
- const OUString msEndShape;
- const OUString msStartGluePointIndex;
- const OUString msEndGluePointIndex;
-
- rtl::Reference< XMLTableImport > mxShapeTableImport;
-
-protected:
- SvXMLImport& mrImporter;
-
-public:
- XMLShapeImportHelper( SvXMLImport& rImporter,
- const com::sun::star::uno::Reference< com::sun::star::frame::XModel>& rModel,
- SvXMLImportPropertyMapper *pExtMapper=0 );
-
- ~XMLShapeImportHelper();
-
- SvXMLShapeContext* CreateGroupChildContext(
- SvXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLocalName,
- const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList,
- com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
- sal_Bool bTemporaryShape = sal_False);
-
- SvXMLShapeContext* CreateFrameChildContext(
- SvXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLocalName,
- const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList,
- com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
- const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xFrameAttrList);
- SvXMLImportContext* CreateFrameChildContext(
- SvXMLImportContext *pThisContext, sal_uInt16 nPrefix, const OUString& rLocalName,
- const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
-
- SvXMLShapeContext* Create3DSceneChildContext(
- SvXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLocalName,
- const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList,
- com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes);
-
- const SvXMLTokenMap& GetGroupShapeElemTokenMap();
- const SvXMLTokenMap& GetFrameShapeElemTokenMap();
- const SvXMLTokenMap& Get3DSceneShapeElemTokenMap();
- const SvXMLTokenMap& Get3DObjectAttrTokenMap();
- const SvXMLTokenMap& Get3DPolygonBasedAttrTokenMap();
- const SvXMLTokenMap& Get3DCubeObjectAttrTokenMap();
- const SvXMLTokenMap& Get3DSphereObjectAttrTokenMap();
- const SvXMLTokenMap& Get3DLightAttrTokenMap();
-
- // Styles and AutoStyles contexts
- SvXMLStylesContext* GetStylesContext() const { return mpStylesContext; }
- void SetStylesContext(SvXMLStylesContext* pNew);
- SvXMLStylesContext* GetAutoStylesContext() const { return mpAutoStylesContext; }
- void SetAutoStylesContext(SvXMLStylesContext* pNew);
-
- // get factories and mappers
- SvXMLImportPropertyMapper* GetPropertySetMapper() const { return mpPropertySetMapper; }
- SvXMLImportPropertyMapper* GetPresPagePropsMapper() const { return mpPresPagePropsMapper; }
-
- // this function is called whenever the implementation classes like to add this new
- // shape to the given XShapes.
- virtual void addShape(
- com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& rShape,
- const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList,
- com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes);
-
- // this function is called whenever the implementation classes have finished importing
- // a shape to the given XShapes. The shape is already inserted into its XShapes and
- // all properties and styles are set.
- virtual void finishShape(
- com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& rShape,
- const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList,
- com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes);
-
- // helper functions for z-order sorting
- void pushGroupForSorting( com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes );
- void popGroupAndSort();
-
- void shapeWithZIndexAdded( com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& rShape,
- sal_Int32 nZIndex );
-
- void addShapeConnection( com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& rConnectorShape,
- sal_Bool bStart,
- const OUString& rDestShapeId,
- sal_Int32 nDestGlueId );
-
- /** adds a mapping for a glue point identifier from an xml file to the identifier created after inserting
- the new glue point into the core. The saved mappings can be retrieved by getGluePointId() */
- void addGluePointMapping( com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape,
- sal_Int32 nSourceId, sal_Int32 nDestinnationId );
-
- /** moves all current DestinationId's for rXShape by n */
- void moveGluePointMapping( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, const sal_Int32 n );
-
- /** retrieves a mapping for a glue point identifier from the current xml file to the identifier created after
- inserting the new glue point into the core. The mapping must be initialized first with addGluePointMapping() */
- sal_Int32 getGluePointId( com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, sal_Int32 nSourceId );
-
- /** this method must be calling before the first shape is imported for the given page.
- Calls to this method can be nested */
- void startPage( com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes );
-
- /** this method must be calling after the last shape is imported for the given page
- Calls to this method can be nested */
- void endPage( com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes );
-
- void restoreConnections();
-
- /** creates a property mapper for external chaining */
- static SvXMLImportPropertyMapper* CreateShapePropMapper(
- const com::sun::star::uno::Reference< com::sun::star::frame::XModel>& rModel, SvXMLImport& rImport );
-
- // #88546#
- /** defines if the import should increment the progress bar or not */
- void enableHandleProgressBar( sal_Bool bEnable = sal_True );
- sal_Bool IsHandleProgressBarEnabled() const;
-
- /** queries the capability of the current model to create presentation shapes */
- sal_Bool IsPresentationShapesSupported();
-
- XMLSdPropHdlFactory* GetSdPropHdlFactory() const { return mpSdPropHdlFactory; }
-
- const rtl::Reference< XMLTableImport >& GetShapeTableImport();
-};
-
-#endif // _XMLOFF_SHAPEIMPORT_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/styleexp.hxx b/xmloff/inc/xmloff/styleexp.hxx
deleted file mode 100644
index 367c6d44b402..000000000000
--- a/xmloff/inc/xmloff/styleexp.hxx
+++ /dev/null
@@ -1,127 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_STYLEEXP_HXX_
-#define _XMLOFF_STYLEEXP_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <rtl/ustring.hxx>
-#include <com/sun/star/uno/Reference.h>
-
-#include <xmloff/uniref.hxx>
-
-namespace com { namespace sun { namespace star
-{
- namespace style
- {
- class XStyle;
- }
- namespace beans
- {
- class XPropertySet;
- }
- namespace container
- {
- class XNameAccess;
- }
-
-} } }
-
-class XMLPropertySetMapper;
-class SvXMLExportPropertyMapper;
-class SvXMLAutoStylePoolP;
-class SvXMLExport;
-
-class XMLOFF_DLLPUBLIC XMLStyleExport : public UniRefBase
-{
- SvXMLExport& rExport;
-protected:
- const OUString sIsPhysical;
- const OUString sIsAutoUpdate;
- const OUString sFollowStyle;
- const OUString sNumberingStyleName;
- const OUString sOutlineLevel;
-
- SvXMLExport& GetExport() { return rExport; }
- const SvXMLExport& GetExport() const { return rExport; }
-
-private:
-
- const OUString sPoolStyleName;
-
- SvXMLAutoStylePoolP *pAutoStylePool;
-
-protected:
-
- virtual sal_Bool exportStyle(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::style::XStyle > & rStyle,
- const OUString& rXMLFamily,
- const UniReference < SvXMLExportPropertyMapper >& rPropMapper,
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > & xStyles,
- const OUString* pPrefix = 0L );
-
- virtual void exportStyleAttributes(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::style::XStyle > & rStyle );
-
- virtual void exportStyleContent(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::style::XStyle > & rStyle );
-public:
- XMLStyleExport(
- SvXMLExport& rExp,
- const OUString& rPoolStyleName,
- SvXMLAutoStylePoolP *pAutoStyleP=0 );
- virtual ~XMLStyleExport();
-
-// void exportStyleFamily(
-// const OUString& rFamily, const OUString& rXMLFamily,
-// const UniReference < XMLPropertySetMapper >& rPropMapper,
-// sal_Bool bUsed, sal_uInt16 nFamily = 0,
-// const OUString* pPrefix = 0L);
-
-// void exportStyleFamily(
-// const sal_Char *pFamily, const OUString& rXMLFamily,
-// const UniReference < XMLPropertySetMapper >& rPropMapper,
-// sal_Bool bUsed, sal_uInt16 nFamily = 0,
-// const OUString* pPrefix = 0L);
-
- virtual sal_Bool exportDefaultStyle(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > & xPropSet,
- const OUString& rXMLFamily,
- const UniReference < SvXMLExportPropertyMapper >& rPropMapper );
-
- void exportStyleFamily(
- const OUString& rFamily, const OUString& rXMLFamily,
- const UniReference < SvXMLExportPropertyMapper >& rPropMapper,
- sal_Bool bUsed, sal_uInt16 nFamily = 0,
- const OUString* pPrefix = 0L);
-
- void exportStyleFamily(
- const sal_Char *pFamily, const OUString& rXMLFamily,
- const UniReference < SvXMLExportPropertyMapper >& rPropMapper,
- sal_Bool bUsed, sal_uInt16 nFamily = 0,
- const OUString* pPrefix = 0L);
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/table/XMLTableExport.hxx b/xmloff/inc/xmloff/table/XMLTableExport.hxx
deleted file mode 100644
index e93c0a244a51..000000000000
--- a/xmloff/inc/xmloff/table/XMLTableExport.hxx
+++ /dev/null
@@ -1,106 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_XMLTABLEEXPORT_HXX
-#define _XMLOFF_XMLTABLEEXPORT_HXX
-
-#include "sal/config.h"
-
-#include <sal/types.h>
-#include <rtl/ustring.hxx>
-#include <rtl/ustrbuf.hxx>
-
-#include <boost/shared_ptr.hpp>
-#include <map>
-#include <vector>
-
-#include <com/sun/star/table/XTableColumns.hpp>
-#include <com/sun/star/table/XColumnRowRange.hpp>
-#include <com/sun/star/table/XCell.hpp>
-#include <com/sun/star/text/XText.hpp>
-#include <com/sun/star/container/XIndexAccess.hpp>
-
-#include <rtl/ref.hxx>
-
-#include "xmloff/dllapi.h"
-#include "xmloff/uniref.hxx"
-#include "xmloff/xmlprmap.hxx"
-#include "xmloff/xmlexppr.hxx"
-
-
-//////////////////////////////////////////////////////////////////////////////
-// predeclarations
-
-class SvXMLExport;
-class SvXMLExportPropertyMapper;
-
-typedef ::std::map< const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >, OUString > TableStyleMap;
-
-struct XMLTableInfo
-{
- TableStyleMap maColumnStyleMap;
- TableStyleMap maRowStyleMap;
- TableStyleMap maCellStyleMap;
- std::vector< OUString > maDefaultRowCellStyles;
-};
-
-typedef ::std::map< const ::com::sun::star::uno::Reference< com::sun::star::table::XColumnRowRange >, boost::shared_ptr< XMLTableInfo > > TableInfoMap;
-
-class XMLOFF_DLLPUBLIC XMLTableExport : public UniRefBase
-{
-public:
- XMLTableExport(SvXMLExport& rExp, const rtl::Reference< SvXMLExportPropertyMapper >& xCellExportPropertySetMapper, const rtl::Reference< XMLPropertyHandlerFactory >& xFactoryRef );
- virtual ~XMLTableExport();
-
- // This method collects all automatic styles for the given table
- void collectTableAutoStyles(const com::sun::star::uno::Reference < com::sun::star::table::XColumnRowRange >& xColumnRowRange);
-
- // This method exports the given table
- void exportTable(const com::sun::star::uno::Reference < com::sun::star::table::XColumnRowRange >& xColumnRowRange);
-
- // export the styles from the cell style family
- void exportTableStyles();
-
- // Export the collected automatic styles
- void exportAutoStyles();
-
-private:
- void exportTableTemplates();
-
- SvXMLExport& mrExport;
- rtl::Reference< SvXMLExportPropertyMapper > mxCellExportPropertySetMapper;
- rtl::Reference< SvXMLExportPropertyMapper > mxRowExportPropertySetMapper;
- rtl::Reference< SvXMLExportPropertyMapper > mxColumnExportPropertySetMapper;
- TableInfoMap maTableInfoMap;
- bool mbExportTables;
-
-protected:
- SvXMLExport& GetExport() { return mrExport; }
- const SvXMLExport& GetExport() const { return mrExport; }
-private:
-
- SAL_DLLPRIVATE void ImpExportText( const com::sun::star::uno::Reference < com::sun::star::table::XCell >& xCell );
-
- void ExportCell( const com::sun::star::uno::Reference < com::sun::star::table::XCell >& xCell, const boost::shared_ptr< XMLTableInfo >& pTableInfo, const OUString& sDefaultCellStyle );
- void ExportTableColumns( const com::sun::star::uno::Reference < com::sun::star::container::XIndexAccess >& xtableColumns, const boost::shared_ptr< XMLTableInfo >& pTableInfo );
-
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/table/XMLTableImport.hxx b/xmloff/inc/xmloff/table/XMLTableImport.hxx
deleted file mode 100644
index fec6b37e0eaa..000000000000
--- a/xmloff/inc/xmloff/table/XMLTableImport.hxx
+++ /dev/null
@@ -1,72 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef XMLTABLEIMPORT_HXX_
-#define XMLTABLEIMPORT_HXX_
-
-#include <com/sun/star/table/XColumnRowRange.hpp>
-
-#include "xmloff/dllapi.h"
-#include "xmloff/xmlictxt.hxx"
-#include "xmloff/uniref.hxx"
-#include "xmloff/xmlimppr.hxx"
-#include "xmloff/prhdlfac.hxx"
-
-#include <rtl/ref.hxx>
-
-#include <boost/shared_ptr.hpp>
-#include <map>
-
-class SvXMLStyleContext;
-
-typedef std::map< OUString, OUString > XMLTableTemplate;
-typedef std::map < OUString, boost::shared_ptr< XMLTableTemplate > > XMLTableTemplateMap;
-
-class XMLTableImport : public UniRefBase
-{
- friend class XMLTableImportContext;
-
-public:
- XMLTableImport( SvXMLImport& rImport, const rtl::Reference< XMLPropertySetMapper >& xCellPropertySetMapper, const rtl::Reference< XMLPropertyHandlerFactory >& xFactoryRef );
- virtual ~XMLTableImport();
-
- SvXMLImportContext* CreateTableContext( sal_uInt16 nPrfx, const OUString& rLName,
- ::com::sun::star::uno::Reference< ::com::sun::star::table::XColumnRowRange >& xColumnRowRange );
-
- SvXMLStyleContext* CreateTableTemplateContext( sal_uInt16 nPrfx, const OUString& rLName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
-
- rtl::Reference< SvXMLImportPropertyMapper > GetCellImportPropertySetMapper() const { return mxCellImportPropertySetMapper; }
- rtl::Reference< SvXMLImportPropertyMapper > GetRowImportPropertySetMapper() const { return mxRowImportPropertySetMapper; }
- rtl::Reference< SvXMLImportPropertyMapper > GetColumnImportPropertySetMapper() const { return mxColumnImportPropertySetMapper; }
-
- void addTableTemplate( const OUString& rsStyleName, XMLTableTemplate& xTableTemplate );
- void finishStyles();
-
-private:
- SvXMLImport& mrImport;
- rtl::Reference< SvXMLImportPropertyMapper > mxCellImportPropertySetMapper;
- rtl::Reference< SvXMLImportPropertyMapper > mxRowImportPropertySetMapper;
- rtl::Reference< SvXMLImportPropertyMapper > mxColumnImportPropertySetMapper;
-
- XMLTableTemplateMap maTableTemplates;
-};
-
-#endif /*XMLTABLEIMPORT_HXX_*/
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/txtimp.hxx b/xmloff/inc/xmloff/txtimp.hxx
deleted file mode 100644
index 2ac668de2d5a..000000000000
--- a/xmloff/inc/xmloff/txtimp.hxx
+++ /dev/null
@@ -1,725 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef XMLOFF_TEXTIMP_HXX
-#define XMLOFF_TEXTIMP_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <com/sun/star/uno/Reference.h>
-
-#include <map>
-#include <boost/utility.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/scoped_ptr.hpp>
-
-#include <xmloff/xmltkmap.hxx>
-#include <comphelper/stl_types.hxx>
-#include <xmloff/uniref.hxx>
-
-class XMLTextListsHelper;
-class SvXMLImportContext;
-class SvXMLTokenMap;
-class SvXMLImportPropertyMapper;
-class SvXMLNamespaceMap;
-class SvXMLImport;
-class SvXMLStylesContext;
-class XMLTextListBlockContext;
-class SvxXMLListStyleContext;
-class XMLPropStyleContext;
-class SvI18NMap;
-class XMLSectionImportContext;
-class XMLFontStylesContext;
-template<class A> class XMLPropertyBackpatcher;
-class XMLEventsImportContext;
-
-namespace xmloff {
- struct ParsedRDFaAttributes;
-}
-
-namespace com { namespace sun { namespace star {
-namespace text {
- class XText;
- class XTextCursor;
- class XTextRange;
- class XTextContent;
- class XFormField;
-}
-namespace frame { class XModel; }
-namespace container { class XNameContainer; class XIndexReplace; class XNameAccess; }
-namespace beans { class XPropertySet; }
-namespace xml { namespace sax { class XAttributeList; } }
-namespace util { struct DateTime; }
-namespace lang { class XMultiServiceFactory; }
-} } }
-
-enum SwXMLTextElemTokens
-{
- XML_TOK_TEXT_P,
- XML_TOK_TEXT_H,
- XML_TOK_TEXT_LIST,
- XML_TOK_TEXT_FRAME_PAGE,
- XML_TOK_TABLE_TABLE,
- XML_TOK_TEXT_VARFIELD_DECLS,
- XML_TOK_TEXT_USERFIELD_DECLS,
- XML_TOK_TEXT_SEQUENCE_DECLS,
- XML_TOK_TEXT_DDE_DECLS,
- XML_TOK_DRAW_A_PAGE,
- XML_TOK_TEXT_SECTION,
- XML_TOK_TEXT_TOC,
- XML_TOK_TEXT_OBJECT_INDEX,
- XML_TOK_TEXT_TABLE_INDEX,
- XML_TOK_TEXT_ILLUSTRATION_INDEX,
- XML_TOK_TEXT_USER_INDEX,
- XML_TOK_TEXT_ALPHABETICAL_INDEX,
- XML_TOK_TEXT_BIBLIOGRAPHY_INDEX,
- XML_TOK_TEXT_INDEX_TITLE,
- XML_TOK_TEXT_TRACKED_CHANGES,
- XML_TOK_TEXT_CHANGE_START,
- XML_TOK_TEXT_CHANGE_END,
- XML_TOK_TEXT_CHANGE,
- XML_TOK_TEXT_FORMS,
- XML_TOK_TEXT_CALCULATION_SETTINGS,
- XML_TOK_TEXT_AUTOMARK,
- XML_TOK_TEXT_NUMBERED_PARAGRAPH,
- XML_TOK_TEXT_ELEM_END=XML_TOK_UNKNOWN
-};
-
-enum XMLTextPElemTokens
-{
- XML_TOK_TEXT_SPAN,
- XML_TOK_TEXT_TAB_STOP,
- XML_TOK_TEXT_LINE_BREAK,
- XML_TOK_TEXT_SOFT_PAGE_BREAK,
- XML_TOK_TEXT_S,
- XML_TOK_TEXT_FRAME,
- XML_TOK_TEXT_HYPERLINK,
- XML_TOK_TEXT_RUBY,
-
- XML_TOK_TEXT_NOTE,
- XML_TOK_TEXT_BOOKMARK,
- XML_TOK_TEXT_BOOKMARK_START,
- XML_TOK_TEXT_BOOKMARK_END,
- XML_TOK_TEXT_REFERENCE,
- XML_TOK_TEXT_REFERENCE_START,
- XML_TOK_TEXT_REFERENCE_END,
-
- XML_TOK_TEXT_TOC_MARK, // index marks
- XML_TOK_TEXT_TOC_MARK_START,
- XML_TOK_TEXT_TOC_MARK_END,
- XML_TOK_TEXT_USER_INDEX_MARK,
- XML_TOK_TEXT_USER_INDEX_MARK_START,
- XML_TOK_TEXT_USER_INDEX_MARK_END,
- XML_TOK_TEXT_ALPHA_INDEX_MARK,
- XML_TOK_TEXT_ALPHA_INDEX_MARK_START,
- XML_TOK_TEXT_ALPHA_INDEX_MARK_END,
-
- XML_TOK_TEXT_SENDER_FIRSTNAME, // sender fields
- XML_TOK_TEXT_SENDER_LASTNAME,
- XML_TOK_TEXT_SENDER_INITIALS,
- XML_TOK_TEXT_SENDER_TITLE,
- XML_TOK_TEXT_SENDER_POSITION,
- XML_TOK_TEXT_SENDER_EMAIL,
- XML_TOK_TEXT_SENDER_PHONE_PRIVATE,
- XML_TOK_TEXT_SENDER_FAX,
- XML_TOK_TEXT_SENDER_COMPANY,
- XML_TOK_TEXT_SENDER_PHONE_WORK,
- XML_TOK_TEXT_SENDER_STREET,
- XML_TOK_TEXT_SENDER_CITY,
- XML_TOK_TEXT_SENDER_POSTAL_CODE,
- XML_TOK_TEXT_SENDER_COUNTRY,
- XML_TOK_TEXT_SENDER_STATE_OR_PROVINCE,
-
- XML_TOK_TEXT_AUTHOR_NAME, // author fields
- XML_TOK_TEXT_AUTHOR_INITIALS,
-
- XML_TOK_TEXT_DATE, // date & time fields
- XML_TOK_TEXT_TIME,
-
- XML_TOK_TEXT_PAGE_NUMBER, // page number fields
- XML_TOK_TEXT_PAGE_CONTINUATION_STRING,
-
- XML_TOK_TEXT_VARIABLE_SET, // variable fields
- XML_TOK_TEXT_VARIABLE_GET,
- XML_TOK_TEXT_VARIABLE_INPUT,
- XML_TOK_TEXT_USER_FIELD_GET,
- XML_TOK_TEXT_USER_FIELD_INPUT,
- XML_TOK_TEXT_SEQUENCE,
- XML_TOK_TEXT_EXPRESSION,
- XML_TOK_TEXT_TEXT_INPUT,
-
- XML_TOK_TEXT_DATABASE_DISPLAY, // database fields
- XML_TOK_TEXT_DATABASE_NEXT,
- XML_TOK_TEXT_DATABASE_SELECT,
- XML_TOK_TEXT_DATABASE_ROW_NUMBER,
- XML_TOK_TEXT_DATABASE_NAME,
-
- XML_TOK_TEXT_DOCUMENT_CREATION_AUTHOR, //document info fields
- XML_TOK_TEXT_DOCUMENT_CREATION_DATE,
- XML_TOK_TEXT_DOCUMENT_CREATION_TIME,
- XML_TOK_TEXT_DOCUMENT_DESCRIPTION,
- XML_TOK_TEXT_DOCUMENT_PRINT_AUTHOR,
- XML_TOK_TEXT_DOCUMENT_PRINT_DATE,
- XML_TOK_TEXT_DOCUMENT_PRINT_TIME,
- XML_TOK_TEXT_DOCUMENT_TITLE,
- XML_TOK_TEXT_DOCUMENT_SUBJECT,
- XML_TOK_TEXT_DOCUMENT_KEYWORDS,
- XML_TOK_TEXT_DOCUMENT_REVISION,
- XML_TOK_TEXT_DOCUMENT_EDIT_DURATION,
- XML_TOK_TEXT_DOCUMENT_SAVE_AUTHOR,
- XML_TOK_TEXT_DOCUMENT_SAVE_DATE,
- XML_TOK_TEXT_DOCUMENT_SAVE_TIME,
- XML_TOK_TEXT_DOCUMENT_USER_DEFINED,
-
- XML_TOK_TEXT_PLACEHOLDER, // misc. fields
- XML_TOK_TEXT_CONDITIONAL_TEXT,
- XML_TOK_TEXT_HIDDEN_TEXT,
- XML_TOK_TEXT_HIDDEN_PARAGRAPH,
- XML_TOK_TEXT_FILENAME,
- XML_TOK_TEXT_CHAPTER,
- XML_TOK_TEXT_TEMPLATENAME,
- XML_TOK_TEXT_WORD_COUNT, // statistics/count fields
- XML_TOK_TEXT_PARAGRAPH_COUNT,
- XML_TOK_TEXT_TABLE_COUNT,
- XML_TOK_TEXT_CHARACTER_COUNT,
- XML_TOK_TEXT_IMAGE_COUNT,
- XML_TOK_TEXT_OBJECT_COUNT,
- XML_TOK_TEXT_PAGE_COUNT,
- XML_TOK_TEXT_GET_PAGE_VAR,
- XML_TOK_TEXT_SET_PAGE_VAR,
- XML_TOK_TEXT_MACRO,
- XML_TOK_TEXT_DDE,
- XML_TOK_TEXT_REFERENCE_REF,
- XML_TOK_TEXT_BOOKMARK_REF,
- XML_TOK_TEXT_SEQUENCE_REF,
- XML_TOK_TEXT_NOTE_REF,
- XML_TOK_TEXT_SHEET_NAME,
- XML_TOK_TEXT_BIBLIOGRAPHY_MARK,
- XML_TOK_TEXT_ANNOTATION,
- XML_TOK_TEXT_ANNOTATION_END,
- XML_TOK_TEXT_NAME,
- XML_TOK_TEXT_SCRIPT,
- XML_TOK_TEXT_TABLE_FORMULA,
- XML_TOK_TEXT_DROPDOWN,
-
- // RDF metadata
- XML_TOK_TEXT_META,
- XML_TOK_TEXT_META_FIELD,
-
- // misc
- XML_TOK_TEXTP_CHANGE_START, // TEXTP avoids clash with SwXMLTextElemTokens
- XML_TOK_TEXTP_CHANGE_END,
- XML_TOK_TEXTP_CHANGE,
- XML_TOK_DRAW_A,
- XML_TOK_TEXT_MEASURE,
-
- XML_TOK_DRAW_HEADER,
- XML_TOK_DRAW_FOOTER,
- XML_TOK_DRAW_DATE_TIME,
- XML_TOK_TEXT_PAGE_CONTINUATION,
-
- XML_TOK_TEXT_FIELDMARK,
- XML_TOK_TEXT_FIELDMARK_START,
- XML_TOK_TEXT_FIELDMARK_END,
-
- XML_TOK_TEXT_P_ELEM_END=XML_TOK_UNKNOWN
-};
-
-enum XMLTextPAttrTokens
-{
- XML_TOK_TEXT_P_XMLID,
- XML_TOK_TEXT_P_ABOUT,
- XML_TOK_TEXT_P_PROPERTY,
- XML_TOK_TEXT_P_CONTENT,
- XML_TOK_TEXT_P_DATATYPE,
- XML_TOK_TEXT_P_TEXTID,
- XML_TOK_TEXT_P_STYLE_NAME,
- XML_TOK_TEXT_P_COND_STYLE_NAME,
- XML_TOK_TEXT_P_LEVEL,
- XML_TOK_TEXT_P_CLASS_NAMES,
- XML_TOK_TEXT_P_IS_LIST_HEADER,
- XML_TOK_TEXT_P_RESTART_NUMBERING,
- XML_TOK_TEXT_P_START_VALUE,
- XML_TOK_TEXT_P_END=XML_TOK_UNKNOWN
-};
-
-enum XMLTextNumberedParagraphAttrTokens
-{
- XML_TOK_TEXT_NUMBERED_PARAGRAPH_XMLID,
- XML_TOK_TEXT_NUMBERED_PARAGRAPH_LIST_ID,
- XML_TOK_TEXT_NUMBERED_PARAGRAPH_LEVEL,
- XML_TOK_TEXT_NUMBERED_PARAGRAPH_STYLE_NAME,
- XML_TOK_TEXT_NUMBERED_PARAGRAPH_CONTINUE_NUMBERING,
- XML_TOK_TEXT_NUMBERED_PARAGRAPH_START_VALUE,
- XML_TOK_TEXT_NUMBERED_PARAGRAPH_END=XML_TOK_UNKNOWN
-};
-
-enum XMLTextListBlockAttrTokens
-{
- XML_TOK_TEXT_LIST_BLOCK_XMLID,
- XML_TOK_TEXT_LIST_BLOCK_STYLE_NAME,
- XML_TOK_TEXT_LIST_BLOCK_CONTINUE_NUMBERING,
- XML_TOK_TEXT_LIST_BLOCK_ID,
- XML_TOK_TEXT_LIST_BLOCK_CONTINUE_LIST,
- XML_TOK_TEXT_LIST_BLOCK_END=XML_TOK_UNKNOWN
-};
-
-enum XMLTextListBlockElemTokens
-{
- XML_TOK_TEXT_LIST_HEADER,
- XML_TOK_TEXT_LIST_ITEM,
- XML_TOK_TEXT_LIST_BLOCK_ELEM_END=XML_TOK_UNKNOWN
-};
-
-enum XMLTextFrameAttrTokens
-{
- XML_TOK_TEXT_FRAME_STYLE_NAME,
- XML_TOK_TEXT_FRAME_NAME,
- XML_TOK_TEXT_FRAME_ANCHOR_TYPE,
- XML_TOK_TEXT_FRAME_ANCHOR_PAGE_NUMBER,
- XML_TOK_TEXT_FRAME_X,
- XML_TOK_TEXT_FRAME_Y,
- XML_TOK_TEXT_FRAME_WIDTH,
- XML_TOK_TEXT_FRAME_REL_WIDTH,
- XML_TOK_TEXT_FRAME_HEIGHT,
- XML_TOK_TEXT_FRAME_MIN_HEIGHT,
- XML_TOK_TEXT_FRAME_REL_HEIGHT,
- XML_TOK_TEXT_FRAME_NEXT_CHAIN_NAME,
- XML_TOK_TEXT_FRAME_HREF,
- XML_TOK_TEXT_FRAME_FILTER_NAME,
- XML_TOK_TEXT_FRAME_Z_INDEX,
- XML_TOK_TEXT_FRAME_TRANSFORM,
- XML_TOK_TEXT_FRAME_CLASS_ID,
- XML_TOK_TEXT_FRAME_CODE,
- XML_TOK_TEXT_FRAME_OBJECT,
- XML_TOK_TEXT_FRAME_ARCHIVE,
- XML_TOK_TEXT_FRAME_MAY_SCRIPT,
- XML_TOK_TEXT_FRAME_MIME_TYPE,
- XML_TOK_TEXT_FRAME_APPLET_NAME,
- XML_TOK_TEXT_FRAME_FRAME_NAME,
- XML_TOK_TEXT_FRAME_NOTIFY_ON_UPDATE,
- XML_TOK_TEXT_FRAME_MIN_WIDTH,
- XML_TOK_TEXT_FRAME_END=XML_TOK_UNKNOWN
-};
-
-enum XMLTextHyperlinkAttrTokens
-{
- XML_TOK_TEXT_HYPERLINK_HREF,
- XML_TOK_TEXT_HYPERLINK_NAME,
- XML_TOK_TEXT_HYPERLINK_TARGET_FRAME,
- XML_TOK_TEXT_HYPERLINK_SHOW,
- XML_TOK_TEXT_HYPERLINK_STYLE_NAME,
- XML_TOK_TEXT_HYPERLINK_VIS_STYLE_NAME,
- XML_TOK_TEXT_HYPERLINK_SERVER_MAP,
- XML_TOK_TEXT_HYPERLINK_END=XML_TOK_UNKNOWN
-};
-
-enum XMLTextPageMasterElemTokens
-{
- XML_TOK_TEXT_MP_HEADER,
- XML_TOK_TEXT_MP_FOOTER,
- XML_TOK_TEXT_MP_HEADER_LEFT,
- XML_TOK_TEXT_MP_FOOTER_LEFT,
- XML_TOK_TEXT_MP_HEADER_FIRST,
- XML_TOK_TEXT_MP_FOOTER_FIRST,
- XML_TOK_TEXT_MP_END=XML_TOK_UNKNOWN
-};
-
-enum XMLTextContourAttrTokens
-{
- XML_TOK_TEXT_CONTOUR_WIDTH,
- XML_TOK_TEXT_CONTOUR_HEIGHT,
- XML_TOK_TEXT_CONTOUR_VIEWBOX,
- XML_TOK_TEXT_CONTOUR_POINTS,
- XML_TOK_TEXT_CONTOUR_D,
- XML_TOK_TEXT_CONTOUR_AUTO,
- XML_TOK_TEXT_CONTOUR_END=XML_TOK_UNKNOWN
-};
-enum XMLTextType
-{
- XML_TEXT_TYPE_BODY,
- XML_TEXT_TYPE_CELL,
- XML_TEXT_TYPE_SHAPE,
- XML_TEXT_TYPE_TEXTBOX,
- XML_TEXT_TYPE_HEADER_FOOTER,
- XML_TEXT_TYPE_SECTION,
- XML_TEXT_TYPE_FOOTNOTE,
- XML_TEXT_TYPE_CHANGED_REGION
-};
-
-#define XML_TEXT_RENAME_TYPE_FRAME 10
-#define XML_TEXT_RENAME_TYPE_TABLE 20
-
-class XMLOFF_DLLPUBLIC XMLTextImportHelper : public UniRefBase,
- private boost::noncopyable
-{
-private:
- struct Impl;
- boost::scoped_ptr<Impl> m_pImpl;
- /// ugly, but implementation of this is in XMLPropertyBackpatcher.cxx
- struct BackpatcherImpl;
- ::boost::shared_ptr<BackpatcherImpl> m_pBackpatcherImpl;
- ::boost::shared_ptr<BackpatcherImpl> MakeBackpatcherImpl();
-
-protected:
- virtual SvXMLImportContext *CreateTableChildContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrefix, const OUString& rLocalName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
-
- // access, lazy initialization and destruction of backpatchers
- // Code is implemented in XMLPropertyBackpatcher.cxx
- inline XMLPropertyBackpatcher<sal_Int16>& GetFootnoteBP();
- inline XMLPropertyBackpatcher<sal_Int16>& GetSequenceIdBP();
- inline XMLPropertyBackpatcher< OUString> & GetSequenceNameBP();
-
-public:
-
- XMLTextImportHelper(
- ::com::sun::star::uno::Reference <
- ::com::sun::star::frame::XModel> const& rModel,
- SvXMLImport& rImport,
- bool const bInsertMode = false, bool const bStylesOnlyMode = false,
- bool const bProgress = false, bool const bBlockMode = false,
- bool const bOrganizerMode = false);
-
- ~XMLTextImportHelper();
-
- void SetCursor(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextCursor >& rCursor );
- void ResetCursor();
-
- void SetAutoStyles( SvXMLStylesContext *pStyles );
-
- void SetFontDecls( XMLFontStylesContext *pFontDecls );
- const XMLFontStylesContext *GetFontDecls() const;
-
- SvXMLImportContext *CreateTextChildContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrefix, const OUString& rLocalName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
- XMLTextType eType = XML_TEXT_TYPE_SHAPE );
-
- SvXMLTokenMap const& GetTextElemTokenMap();
- SvXMLTokenMap const& GetTextPElemTokenMap();
- SvXMLTokenMap const& GetTextPAttrTokenMap();
- SvXMLTokenMap const& GetTextFrameAttrTokenMap();
- SvXMLTokenMap const& GetTextContourAttrTokenMap();
- SvXMLTokenMap const& GetTextHyperlinkAttrTokenMap();
- SvXMLTokenMap const& GetTextMasterPageElemTokenMap();
-
- const SvXMLTokenMap& GetTextNumberedParagraphAttrTokenMap();
- const SvXMLTokenMap& GetTextListBlockAttrTokenMap();
- const SvXMLTokenMap& GetTextListBlockElemTokenMap();
- const SvXMLTokenMap& GetTextFieldAttrTokenMap(); // impl: txtfldi.cxx
-
- ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XText > & GetText();
- ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextCursor > & GetCursor();
- ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange > & GetCursorAsRange();
-
- bool IsInsertMode() const;
- bool IsStylesOnlyMode() const;
- bool IsBlockMode() const;
- bool IsOrganizerMode() const;
- bool IsProgress() const;
-
- OUString ConvertStarFonts( const OUString& rChars,
- const OUString& rStyleName,
- sal_uInt8& rFlags,
- sal_Bool bPara,
- SvXMLImport& rImport ) const;
- // insert a string without special whitespace processing enabled
- void InsertString( const OUString& rChars );
- // insert a string with special whitespace processing enabled
- void InsertString( const OUString& rChars,
- sal_Bool& rIgnoreLeadingSpace );
- // Delete current paragraph
- void DeleteParagraph();
-
- void InsertControlCharacter( sal_Int16 nControl );
- void InsertTextContent( ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & xContent);
-
- // Add parameter <bOutlineLevelAttrFound> (#i73509#)
- // Add parameter <bSetListAttrs> in order to suppress the handling of the list attributes (#i80724#)
- OUString SetStyleAndAttrs(
- SvXMLImport& rImport,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextCursor >& rCursor,
- const OUString& rStyleName,
- sal_Bool bPara,
- sal_Bool bOutlineLevelAttrFound = sal_False,
- sal_Int8 nOutlineLevel = -1,
- sal_Bool bSetListAttrs = sal_True );
-
- /** Find a suitable name for the given outline level.
- * If rStyleName is empty, change it to a previously used or default style
- * name for that level. Otherwise, leave rStyleName unmodified.
- */
- // Adjust 2nd parameter (#i69629#)
- void FindOutlineStyleName( OUString& rStyleName,
- sal_Int8 nOutlineLevel );
-
- // Change method name to reflect change of data structure (#i69629#)
- void AddOutlineStyleCandidate( const sal_Int8 nOutlineLevel,
- const OUString& rStyleName );
-
- void SetOutlineStyles( sal_Bool bSetEmpty );
-
- void SetHyperlink(
- SvXMLImport& rImport,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextCursor >& rCursor,
- const OUString& rHRef,
- const OUString& rName,
- const OUString& rTargetFrameName,
- const OUString& rStyleName,
- const OUString& rVisitedStyleName,
- XMLEventsImportContext* pEvents = NULL);
- void SetRuby(
- SvXMLImport& rImport,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextCursor >& rCursor,
- const OUString& rStyleName,
- const OUString& rTextStyleName,
- const OUString& rText );
-
- /// return key appropriate for use with NumberFormat property
- /// return -1 if style is not found
- /// (may return whether data style uses the system language)
- sal_Int32 GetDataStyleKey( const OUString& sStyleName,
- sal_Bool* pIsSystemLanguage = NULL );
-
- const SvxXMLListStyleContext *FindAutoListStyle(
- const OUString& rName ) const;
- XMLPropStyleContext *FindAutoFrameStyle(
- const OUString& rName ) const;
- XMLPropStyleContext* FindSectionStyle(
- const OUString& rName ) const;
- XMLPropStyleContext* FindPageMaster(
- const OUString& rName ) const;
-
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameContainer> & GetParaStyles() const;
-
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameContainer> & GetTextStyles() const;
-
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameContainer> &
- GetNumberingStyles() const;
-
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameContainer> & GetFrameStyles() const;
-
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XNameContainer> & GetPageStyles() const;
-
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XIndexReplace > &
- GetChapterNumbering() const;
-
- sal_Bool HasFrameByName( const OUString& rName ) const;
- void ConnectFrameChains( const OUString& rFrmName,
- const OUString& rNextFrmName,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet >& rFrmPropSet );
-
- UniReference< SvXMLImportPropertyMapper > const&
- GetParaImportPropertySetMapper() const;
- UniReference< SvXMLImportPropertyMapper > const&
- GetTextImportPropertySetMapper() const;
- UniReference< SvXMLImportPropertyMapper > const&
- GetSectionImportPropertySetMapper() const;
- UniReference< SvXMLImportPropertyMapper > const&
- GetRubyImportPropertySetMapper() const;
-
- static SvXMLImportPropertyMapper *CreateShapeExtPropMapper(SvXMLImport&);
- static SvXMLImportPropertyMapper *CreateParaExtPropMapper(SvXMLImport&, XMLFontStylesContext *pFontDecls = NULL);
- static SvXMLImportPropertyMapper* CreateParaDefaultExtPropMapper(SvXMLImport&, XMLFontStylesContext* pFontDecls = NULL);
- static SvXMLImportPropertyMapper* CreateTableDefaultExtPropMapper(SvXMLImport&, XMLFontStylesContext* pFontDecls = NULL);
- static SvXMLImportPropertyMapper* CreateTableRowDefaultExtPropMapper(SvXMLImport&, XMLFontStylesContext* pFontDecls = NULL);
-
- SvI18NMap& GetRenameMap();
-
- /// save the start of a range reference
- void InsertBookmarkStartRange(
- const OUString & sName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange> & rRange,
- OUString const& i_rXmlId,
- ::boost::shared_ptr< ::xmloff::ParsedRDFaAttributes > &
- i_rpRDFaAttributes);
-
- /// process the start of a range reference
- sal_Bool FindAndRemoveBookmarkStartRange(
- const OUString & sName,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextRange> & o_rRange,
- OUString & o_rXmlId,
- ::boost::shared_ptr< ::xmloff::ParsedRDFaAttributes > &
- o_rpRDFaAttributes);
-
- OUString FindActiveBookmarkName();
-
- void pushFieldCtx( OUString name, OUString type );
- void popFieldCtx();
- void addFieldParam( OUString name, OUString value );
- void setCurrentFieldParamsTo(::com::sun::star::uno::Reference< ::com::sun::star::text::XFormField> &xFormField);
- OUString getCurrentFieldType();
- bool hasCurrentFieldCtx();
-
-
- /// insert new footnote ID.
- /// Also fixup open references from the backpatch list to this ID.
- // Code is implemented in XMLPropertyBackpatcher.cxx
- void InsertFootnoteID(const OUString& sXMLId, sal_Int16 nAPIId);
-
- /// set the proper footnote reference ID,
- /// or put into backpatch list if ID is unknown
- // Code is implemented in XMLPropertyBackpatcher.cxx
- void ProcessFootnoteReference(
- const OUString& sXMLId,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet> & xPropSet);
-
- /// insert new sequence ID
- /// Also fixup open references from backpatch list to this ID.
- // Code is implemented in XMLPropertyBackpatcher.cxx
- void InsertSequenceID(const OUString& sXMLId,
- const OUString& sName,
- sal_Int16 nAPIId);
-
- /// set sequence ID or insert into backpatch list
- // Code is implemented in XMLPropertyBackpatcher.cxx
- void ProcessSequenceReference(
- const OUString& sXMLId,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet> & xPropSet);
-
- sal_Bool IsInFrame() const;
- virtual sal_Bool IsInHeaderFooter() const;
-
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet>
- createAndInsertOLEObject( SvXMLImport& rImport,
- const OUString& rHRef,
- const OUString &rStyleName,
- const OUString &rTblName,
- sal_Int32 nWidth, sal_Int32 nHeight );
-
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet>
- createAndInsertOOoLink( SvXMLImport& rImport,
- const OUString& rHRef,
- const OUString &rStyleName,
- const OUString &rTblName,
- sal_Int32 nWidth, sal_Int32 nHeight );
-
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet>
- createAndInsertApplet(
- const OUString &rName,
- const OUString &rCode,
- sal_Bool bMayScript,
- const OUString& rHRef,
- sal_Int32 nWidth, sal_Int32 nHeight );
-
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet>
- createAndInsertPlugin(
- const OUString &rMimeType,
- const OUString& rHRef,
- sal_Int32 nWidth, sal_Int32 nHeight );
-
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet>
- createAndInsertFloatingFrame(
- const OUString &rName,
- const OUString &rHRef,
- const OUString &rStyleName,
- sal_Int32 nWidth, sal_Int32 nHeight );
-
- virtual void endAppletOrPlugin(
- const com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet> &rPropSet,
- ::std::map < const OUString, OUString, ::comphelper::UStringLess > &rParamMap );
-
- // applet helper methods
- // implemented in sw/filter/xml/txtparai.hxx
-
- // redlining helper methods
- // (to be implemented in sw/filter/xml/txtparai.hxx)
-
- virtual void RedlineAdd(
- const OUString& rType, /// redline type (insert, del,... )
- const OUString& rId, /// use to identify this redline
- const OUString& rAuthor, /// name of the author
- const OUString& rComment, /// redline comment
- const ::com::sun::star::util::DateTime& rDateTime, /// date+time
- sal_Bool bMergeLastParagraph); /// merge last paras
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextCursor> RedlineCreateText(
- ::com::sun::star::uno::Reference< /// needed to get the document
- ::com::sun::star::text::XTextCursor> & rOldCursor,
- const OUString& rId); /// ID used to RedlineAdd() call
- virtual void RedlineSetCursor(
- const OUString& rId, /// ID used to RedlineAdd() call
- sal_Bool bStart, /// start or end Cursor
- sal_Bool bIsOutsideOfParagraph); /// range is not within <text:p>
- virtual void RedlineAdjustStartNodeCursor(
- sal_Bool bStart);
- virtual void SetShowChanges( sal_Bool bShowChanges );
- virtual void SetRecordChanges( sal_Bool bRecordChanges );
- virtual void SetChangesProtectionKey(
- const ::com::sun::star::uno::Sequence<sal_Int8> & rProtectionKey );
-
- // access to the last open redline ID:
- OUString GetOpenRedlineId();
- void SetOpenRedlineId( OUString& rId);
- void ResetOpenRedlineId();
-
- // #107848#
- // Access methods to the inside_deleted_section flag (redlining)
- void SetInsideDeleteContext(bool const bNew);
- bool IsInsideDeleteContext() const;
-
- SvXMLImport & GetXMLImport();
-
- XMLTextListsHelper & GetTextListHelper();
-
- // forwards to TextListHelper; these are used in many places
- /// push a list context on the list context stack
- void PushListContext(XMLTextListBlockContext *i_pListBlock = 0);
- /// pop the list context stack
- void PopListContext();
-
- void SetCellParaStyleDefault(OUString const& rNewValue);
- OUString const& GetCellParaStyleDefault();
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/txtimppr.hxx b/xmloff/inc/xmloff/txtimppr.hxx
deleted file mode 100644
index ae58bdd9f55e..000000000000
--- a/xmloff/inc/xmloff/txtimppr.hxx
+++ /dev/null
@@ -1,75 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_TXTIMPPR_HXX
-#define _XMLOFF_TXTIMPPR_HXX
-
-#include "xmloff/dllapi.h"
-#include <xmloff/xmlimppr.hxx>
-
-class XMLFontStylesContext;
-
-class XMLOFF_DLLPUBLIC XMLTextImportPropertyMapper : public SvXMLImportPropertyMapper
-{
- sal_Int32 nSizeTypeIndex;
- sal_Int32 nWidthTypeIndex;
- SvXMLImportContextRef xFontDecls;
-
- void FontFinished(
- XMLPropertyState *pFontFamilyNameState,
- XMLPropertyState *pFontStyleNameState,
- XMLPropertyState *pFontFamilyState,
- XMLPropertyState *pFontPitchState,
- XMLPropertyState *pFontCharsetState ) const;
-
- void FontDefaultsCheck(
- XMLPropertyState*pFontFamilyName,
- XMLPropertyState* pFontStyleName,
- XMLPropertyState* pFontFamily,
- XMLPropertyState* pFontPitch,
- XMLPropertyState* pFontCharSet,
- XMLPropertyState** ppNewFontStyleName,
- XMLPropertyState** ppNewFontFamily,
- XMLPropertyState** ppNewFontPitch,
- XMLPropertyState** ppNewFontCharSet ) const;
-
-protected:
- virtual bool handleSpecialItem(
- XMLPropertyState& rProperty,
- ::std::vector< XMLPropertyState >& rProperties,
- const OUString& rValue,
- const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap ) const;
-public:
- XMLTextImportPropertyMapper(
- const UniReference< XMLPropertySetMapper >& rMapper,
- SvXMLImport& rImport,
- XMLFontStylesContext *pFontDecls = 0 );
- virtual ~XMLTextImportPropertyMapper();
-
- void SetFontDecls( XMLFontStylesContext *pFontDecls );
-
- /** This method is called when all attributes have benn processed. It may be used to remove items that are incomplete */
- virtual void finished(
- ::std::vector< XMLPropertyState >& rProperties,
- sal_Int32 nStartIndex, sal_Int32 nEndIndex ) const;
-};
-
-#endif // _XMLOFF_XMLIMPPR_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/txtparae.hxx b/xmloff/inc/xmloff/txtparae.hxx
deleted file mode 100644
index 8e432e8cf7d7..000000000000
--- a/xmloff/inc/xmloff/txtparae.hxx
+++ /dev/null
@@ -1,728 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_TEXTPARAE_HXX_
-#define _XMLOFF_TEXTPARAE_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <rtl/ustring.hxx>
-#include <com/sun/star/uno/Reference.h>
-#include <com/sun/star/uno/Sequence.h>
-#include <com/sun/star/beans/PropertyValue.hpp>
-#include <xmloff/uniref.hxx>
-#include <xmloff/xmlexppr.hxx>
-#include <xmloff/styleexp.hxx>
-#include <xmloff/xmltoken.hxx>
-#include <xmloff/SinglePropertySetInfoCache.hxx>
-#include <xmloff/XMLStringVector.hxx>
-#include <vector>
-#include <boost/scoped_ptr.hpp>
-
-class XMLTextListsHelper;
-class SvXMLExport;
-class SvXMLAutoStylePoolP;
-class XMLTextFieldExport;
-class XMLTextNumRuleInfo;
-class XMLTextListAutoStylePool;
-class XMLSectionExport;
-class XMLIndexMarkExport;
-class XMLRedlineExport;
-struct XMLPropertyState;
-class MultiPropertySetHelper;
-
-namespace com { namespace sun { namespace star
-{
- namespace beans { class XPropertySet; class XPropertyState;
- class XPropertySetInfo; }
- namespace container { class XEnumerationAccess; class XEnumeration; class XIndexAccess; }
- namespace text { class XTextContent; class XTextRange; class XText;
- class XFootnote; class XTextFrame; class XTextSection;
- class XTextField;
- class XDocumentIndex; class XTextShapesSupplier; }
-} } }
-
-namespace xmloff
-{
- class OFormLayerXMLExport;
- class BoundFrameSets;
-}
-
-class XMLOFF_DLLPUBLIC XMLTextParagraphExport : public XMLStyleExport
-{
- struct Impl;
- ::boost::scoped_ptr<Impl> m_pImpl;
-
-// SvXMLExport& rExport;
- SvXMLAutoStylePoolP& rAutoStylePool;
- UniReference < SvXMLExportPropertyMapper > xParaPropMapper;
- UniReference < SvXMLExportPropertyMapper > xTextPropMapper;
- UniReference < SvXMLExportPropertyMapper > xFramePropMapper;
- UniReference < SvXMLExportPropertyMapper > xAutoFramePropMapper;
- UniReference < SvXMLExportPropertyMapper > xSectionPropMapper;
- UniReference < SvXMLExportPropertyMapper > xRubyPropMapper;
-
- const ::std::auto_ptr< ::xmloff::BoundFrameSets > pBoundFrameSets;
- XMLTextFieldExport *pFieldExport;
- std::vector<OUString> *pListElements;
- XMLTextListAutoStylePool *pListAutoPool;
- XMLSectionExport *pSectionExport;
- XMLIndexMarkExport *pIndexMarkExport;
-
- /// may be NULL (if no redlines should be exported; e.g. in block mode)
- XMLRedlineExport *pRedlineExport;
- XMLStringVector *pHeadingStyles;
-
- sal_Bool bProgress;
-
- sal_Bool bBlock;
-
- // keep track of open rubies
- OUString sOpenRubyText;
- OUString sOpenRubyCharStyle;
- sal_Bool bOpenRuby;
-
- XMLTextListsHelper* mpTextListsHelper;
- ::std::vector< XMLTextListsHelper* > maTextListsHelperStack;
-
- enum FrameType { FT_TEXT, FT_GRAPHIC, FT_EMBEDDED, FT_SHAPE };
-public:
-
- enum FieldmarkType { NONE, TEXT, CHECK }; // Used for simulating fieldmarks in OpenDocument 1.n Strict (for n <= 2). CHECK currently ignored.
-
-protected:
-
- const OUString sActualSize;
- // Implement Title/Description Elements UI (#i73249#)
- const OUString sTitle;
- const OUString sDescription;
- const OUString sAnchorCharStyleName;
- const OUString sAnchorPageNo;
- const OUString sAnchorType;
- const OUString sBeginNotice;
- const OUString sBookmark;
- const OUString sCategory;
- const OUString sChainNextName;
- const OUString sCharStyleName;
- const OUString sCharStyleNames;
- const OUString sContourPolyPolygon;
- const OUString sDocumentIndex;
- const OUString sDocumentIndexMark;
- const OUString sEndNotice;
- const OUString sFootnote;
- const OUString sFootnoteCounting;
- const OUString sFrame;
- const OUString sFrameHeightAbsolute;
- const OUString sFrameHeightPercent;
- const OUString sFrameStyleName;
- const OUString sFrameWidthAbsolute;
- const OUString sFrameWidthPercent;
- const OUString sGraphicFilter;
- const OUString sGraphicRotation;
- const OUString sGraphicURL;
- const OUString sReplacementGraphicURL;
- const OUString sHeight;
- const OUString sHoriOrient;
- const OUString sHoriOrientPosition;
- const OUString sHyperLinkName;
- const OUString sHyperLinkTarget;
- const OUString sHyperLinkURL;
- const OUString sIsAutomaticContour;
- const OUString sIsCollapsed;
- const OUString sIsPixelContour;
- const OUString sIsStart;
- const OUString sIsSyncHeightToWidth;
- const OUString sIsSyncWidthToHeight;
- const OUString sNumberingRules;
- const OUString sNumberingType;
- const OUString sPageDescName;
- const OUString sPageStyleName;
- const OUString sParaChapterNumberingLevel;
- const OUString sParaConditionalStyleName;
- const OUString sParagraphService;
- const OUString sParaStyleName;
- const OUString sPositionEndOfDoc;
- const OUString sPrefix;
- const OUString sRedline;
- const OUString sReferenceId;
- const OUString sReferenceMark;
- const OUString sRelativeHeight;
- const OUString sRelativeWidth;
- const OUString sRuby;
- const OUString sRubyAdjust;
- const OUString sRubyCharStyleName;
- const OUString sRubyText;
- const OUString sServerMap;
- const OUString sShapeService;
- const OUString sSizeType;
- const OUString sSoftPageBreak;
- const OUString sStartAt;
- const OUString sSuffix;
- const OUString sTableService;
- const OUString sText;
- const OUString sTextContentService;
- const OUString sTextEmbeddedService;
- const OUString sTextEndnoteService;
- const OUString sTextField;
- const OUString sTextFieldService;
- const OUString sTextFrameService;
- const OUString sTextGraphicService;
- const OUString sTextPortionType;
- const OUString sTextSection;
- const OUString sUnvisitedCharStyleName;
- const OUString sVertOrient;
- const OUString sVertOrientPosition;
- const OUString sVisitedCharStyleName;
- const OUString sWidth;
- const OUString sWidthType;
- const OUString sTextFieldStart;
- const OUString sTextFieldEnd;
- const OUString sTextFieldStartEnd;
-
- SinglePropertySetInfoCache aCharStyleNamesPropInfoCache;
-
-// SvXMLExport& GetExport() { return rExport; }
-// const SvXMLExport& GetExport() const { return rExport; }
-
- UniReference < SvXMLExportPropertyMapper > GetParaPropMapper() const
- {
- return xParaPropMapper;
- }
-
- UniReference < SvXMLExportPropertyMapper > GetTextPropMapper() const
- {
- return xTextPropMapper;
- }
-
- UniReference < SvXMLExportPropertyMapper > GetFramePropMapper() const
- {
- return xFramePropMapper;
- }
- UniReference < SvXMLExportPropertyMapper > GetAutoFramePropMapper() const
- {
- return xAutoFramePropMapper;
- }
- UniReference < SvXMLExportPropertyMapper > GetSectionPropMapper() const
- {
- return xSectionPropMapper;
- }
- UniReference < SvXMLExportPropertyMapper > GetRubyPropMapper() const
- {
- return xRubyPropMapper;
- }
-
-
- SvXMLAutoStylePoolP& GetAutoStylePool() { return rAutoStylePool; }
- const SvXMLAutoStylePoolP& GetAutoStylePool() const { return rAutoStylePool; }
-
-public:
- OUString FindTextStyleAndHyperlink(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- sal_Bool& rbHyperlink,
- sal_Bool& rbHasCharStyle,
- sal_Bool& rbHasAutoStyle,
- const XMLPropertyState** pAddState = NULL) const;
- sal_Bool addHyperlinkAttributes(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertyState > & rPropState,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySetInfo > & rPropSetInfo );
-
- void exportTextRangeEnumeration(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::container::XEnumeration > & rRangeEnum,
- sal_Bool bAutoStyles, sal_Bool bProgress,
- sal_Bool bPrvChrIsSpc = sal_True );
-
-protected:
-
- sal_Int32 addTextFrameAttributes(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet >& rPropSet,
- sal_Bool bShape,
- OUString *pMinHeightValue = 0,
- OUString *pMinWidthValue = 0 );
-
- virtual void exportStyleAttributes(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::style::XStyle > & rStyle );
-
- void exportPageFrames( sal_Bool bAutoStyles, sal_Bool bProgress );
- void exportFrameFrames( sal_Bool bAutoStyles, sal_Bool bProgress,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextFrame > *pParentTxtFrame = 0 );
-
- void exportNumStyles( sal_Bool bUsed );
-
- void exportText(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XText > & rText,
- sal_Bool bAutoStyles, sal_Bool bProgress, sal_Bool bExportParagraph );
-
- void exportText(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XText > & rText,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextSection > & rBaseSection,
- sal_Bool bAutoStyles, sal_Bool bProgress, sal_Bool bExportParagraph );
-
- sal_Bool exportTextContentEnumeration(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::container::XEnumeration > & rContentEnum,
- sal_Bool bAutoStyles,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextSection > & rBaseSection,
- sal_Bool bProgress,
- sal_Bool bExportParagraph = sal_True,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > *pRangePropSet = 0,
- sal_Bool bExportLevels = sal_True );
- void exportParagraph(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rTextContent,
- sal_Bool bAutoStyles, sal_Bool bProgress,
- sal_Bool bExportParagraph,
- MultiPropertySetHelper& rPropSetHelper);
- virtual void exportTable(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rTextContent,
- sal_Bool bAutoStyles, sal_Bool bProgress );
-
- void exportTextField(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextRange > & rTextRange,
- sal_Bool bAutoStyles, sal_Bool bProgress );
-
- void exportTextField(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextField> & xTextField,
- const sal_Bool bAutoStyles, const sal_Bool bProgress,
- const sal_Bool bRecursive );
-
- void exportAnyTextFrame(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rTextContent,
- FrameType eTxpe,
- sal_Bool bAutoStyles, sal_Bool bProgress, sal_Bool bExportContent,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > *pRangePropSet = 0 );
- void _exportTextFrame(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySetInfo > & rPropSetInfo,
- sal_Bool bProgress );
- inline void exportTextFrame(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rTextContent,
- sal_Bool bAutoStyles, sal_Bool bProgress, sal_Bool bExportContent,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > *pRangePropSet = 0 );
- inline void exportShape(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rTextContent,
- sal_Bool bAutoStyles,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > *pRangePropSet = 0 );
-
- void exportContour(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySetInfo > & rPropSetInfo );
- void _exportTextGraphic(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySetInfo > & rPropSetInfo );
- inline void exportTextGraphic(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rTextContent,
- sal_Bool bAutoStyles,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > *pRangePropSet = 0 );
-
- virtual void _collectTextEmbeddedAutoStyles(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet );
- virtual void _exportTextEmbedded(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySetInfo > & rPropSetInfo );
- inline void exportTextEmbedded(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rTextContent,
- sal_Bool bAutoStyles,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > *pRangePropSet = 0 );
- virtual void setTextEmbeddedGraphicURL(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet >& rPropSet,
- OUString& rStreamName ) const;
-
- /// export a footnote and styles
- void exportTextFootnote(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- const OUString& sString,
- sal_Bool bAutoStyles, sal_Bool bProgress );
-
- /// helper for exportTextFootnote
- void exportTextFootnoteHelper(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XFootnote > & rPropSet,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XText> & rText,
- const OUString& sString,
- sal_Bool bAutoStyles,
- sal_Bool bIsEndnote, sal_Bool bProgress );
-
- /// export footnote and endnote configuration elements
- void exportTextFootnoteConfiguration();
-
- void exportTextFootnoteConfigurationHelper(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet> & rFootnoteSupplier,
- sal_Bool bIsEndnote);
-
- void exportTextMark(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet> & xPropSet,
- const OUString& rProperty,
- const enum ::xmloff::token::XMLTokenEnum pElements[],
- sal_Bool bAutoStyles);
-
- void exportIndexMark(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet> & rPropSet,
- sal_Bool bAutoStyles);
-
- void exportSoftPageBreak(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet> & rPropSet,
- sal_Bool bAutoStyles);
-
- void exportTextRange(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextRange > & rTextRange,
- sal_Bool bAutoStyles,
- bool& rPrevCharWasSpace,
- FieldmarkType& openFieldmarkType );
-
- void exportListChange( const XMLTextNumRuleInfo& rPrvInfo,
- const XMLTextNumRuleInfo& rNextInfo );
-
- /// check if current section or current list has changed;
- /// calls exortListChange as appropriate
- void exportListAndSectionChange(
- ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextSection > & rOldSection,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextSection > & rNewSection,
- const XMLTextNumRuleInfo& rOldList,
- const XMLTextNumRuleInfo& rNewList,
- sal_Bool bAutoStyles );
-
- /// overload for exportListAndSectionChange;
- /// takes new content rather than new section.
- void exportListAndSectionChange(
- ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextSection > & rOldSection,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rNewContent,
- const XMLTextNumRuleInfo& rOldList,
- const XMLTextNumRuleInfo& rNewList,
- sal_Bool bAutoStyles );
- void exportListAndSectionChange(
- ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextSection > & rOldSection,
- MultiPropertySetHelper& rPropSetHelper,
- sal_Int16 nTextSectionId,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rNewContent,
- const XMLTextNumRuleInfo& rOldList,
- const XMLTextNumRuleInfo& rNewList,
- sal_Bool bAutoStyles );
-
- /// export a redline text portion
- void exportChange(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- sal_Bool bAutoStyle);
-
- /// export a ruby
- void exportRuby(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet> & rPortionPropSet,
- sal_Bool bAutoStyles );
-
- /// export a text:meta
- void exportMeta(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet> & i_xPortion,
- sal_Bool i_bAutoStyles, sal_Bool i_isProgress );
-
-public:
-
- XMLTextParagraphExport(
- SvXMLExport& rExp,
- SvXMLAutoStylePoolP & rASP
- );
- virtual ~XMLTextParagraphExport();
-
- /// add autostyle for specified family
- void Add(
- sal_uInt16 nFamily,
- MultiPropertySetHelper& rPropSetHelper,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- const XMLPropertyState** pAddState = NULL );
- void Add(
- sal_uInt16 nFamily,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- const XMLPropertyState** pAddState = NULL, bool bDontSeek = false );
-
- /// find style name for specified family and parent
- OUString Find(
- sal_uInt16 nFamily,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > & rPropSet,
- const OUString& rParent,
- const XMLPropertyState** pAddState = NULL ) const;
-
- static SvXMLExportPropertyMapper *CreateShapeExtPropMapper(
- SvXMLExport& rExport );
- static SvXMLExportPropertyMapper *CreateCharExtPropMapper(
- SvXMLExport& rExport);
- static SvXMLExportPropertyMapper *CreateParaExtPropMapper(
- SvXMLExport& rExport);
- static SvXMLExportPropertyMapper *CreateParaDefaultExtPropMapper(
- SvXMLExport& rExport);
-
- // This methods exports all (or all used) styles
- void exportTextStyles( sal_Bool bUsed
- , sal_Bool bProg = sal_False
- );
-
- /// This method exports (text field) declarations etc.
- void exportTextDeclarations();
-
- /// export the (text field) declarations for a particular XText
- void exportTextDeclarations(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XText > & rText );
-
- /// true: export only those declarations that are used;
- /// false: export all declarations
- void exportUsedDeclarations( sal_Bool bOnlyUsed );
-
- /// Export the list of change information (enclosed by <tracked-changes>)
- /// (or the necessary automatic styles)
- void exportTrackedChanges(sal_Bool bAutoStyle);
-
- /// Export the list of change information (enclosed by <tracked-changes>)
- /// (or the necessary automatic styles)
- void exportTrackedChanges(const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XText > & rText,
- sal_Bool bAutoStyle );
-
- /// Record tracked changes for this particular XText
- /// (empty reference stop recording)
- /// This should be used if tracked changes for e.g. footers are to
- /// be exported seperately via the exportTrackedChanges(sal_Bool,
- /// Reference<XText>) method.
- void recordTrackedChangesForXText(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XText > & rText );
-
-
- /// Stop recording tracked changes.
- /// This is the same as calling recordTrackedChanges(...) with an
- /// empty reference.
- void recordTrackedChangesNoXText();
-
-
- // This method exports the given OUString
- void exportText(
- const OUString& rText,
- bool& rPrevCharWasSpace );
-
- // This method collects all automatic styles for the given XText
- void collectTextAutoStyles(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XText > & rText,
- sal_Bool bIsProgress = sal_False,
- sal_Bool bExportParagraph = sal_True )
- {
- exportText( rText, sal_True, bIsProgress, bExportParagraph );
- }
-
- void collectTextAutoStyles(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XText > & rText,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextSection > & rBaseSection,
- sal_Bool bIsProgress = sal_False,
- sal_Bool bExportParagraph = sal_True )
- {
- exportText( rText, rBaseSection, sal_True, bIsProgress, bExportParagraph );
- }
-
- // It the model implements the xAutoStylesSupplier interface, the automatic
- // styles can exported without iterating over the text portions
- bool collectTextAutoStylesOptimized(
- sal_Bool bIsProgress = sal_False );
-
- // This method exports all automatic styles that have been collected.
- virtual void exportTextAutoStyles();
-
- void exportEvents( const ::com::sun::star::uno::Reference < com::sun::star::beans::XPropertySet > & rPropSet );
-
- // Implement Title/Description Elements UI (#i73249#)
- void exportTitleAndDescription( const ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertySet > & rPropSet,
- const ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertySetInfo > & rPropSetInfo );
-
- // This method exports the given XText
- void exportText(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XText > & rText,
- sal_Bool bIsProgress = sal_False,
- sal_Bool bExportParagraph = sal_True)
- {
- exportText( rText, sal_False, bIsProgress, bExportParagraph );
- }
-
- void exportText(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XText > & rText,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextSection > & rBaseSection,
- sal_Bool bIsProgress = sal_False,
- sal_Bool bExportParagraph = sal_True)
- {
- exportText( rText, rBaseSection, sal_False, bIsProgress, bExportParagraph );
- }
-
- void exportFramesBoundToPage( sal_Bool bIsProgress = sal_False )
- {
- exportPageFrames( sal_False, bIsProgress );
- }
- void exportFramesBoundToFrame(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextFrame >& rParentTxtFrame,
- sal_Bool bIsProgress = sal_False )
- {
- exportFrameFrames( sal_False, bIsProgress, &rParentTxtFrame );
- }
- inline const XMLTextListAutoStylePool& GetListAutoStylePool() const;
-
- void SetBlockMode( sal_Bool bSet ) { bBlock = bSet; }
- sal_Bool IsBlockMode() const { return bBlock; }
-
-
- UniReference < SvXMLExportPropertyMapper > GetParagraphPropertyMapper() const
- {
- return xParaPropMapper;
- }
-
-
- /** exclude form controls which are in mute sections.
- *
- * This method is necessary to prevent the form layer export from exporting
- * control models whose controls are not represented in the document. To
- * achieve this, this method iterates over all shapes, checks to see if
- * they are control shapes, and if so, whether they should be exported or
- * not. If not, the form layer export will be notified accordingly.
- *
- * The reason this method is located here is tha it needs to access the
- * XMLSectionExport, which is only available here.
- */
- void PreventExportOfControlsInMuteSections(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::container::XIndexAccess> & rShapes,
- UniReference<xmloff::OFormLayerXMLExport> xFormExport );
-
- SinglePropertySetInfoCache& GetCharStyleNamesPropInfoCache() { return aCharStyleNamesPropInfoCache; }
-
- void PushNewTextListsHelper();
-
- void PopTextListsHelper();
-
-private:
- XMLTextParagraphExport(XMLTextParagraphExport &); // private copy-ctor because of explicit copy-ctor of auto_ptr
-};
-
-inline const XMLTextListAutoStylePool&
- XMLTextParagraphExport::GetListAutoStylePool() const
-{
- return *pListAutoPool;
-}
-
-inline void XMLTextParagraphExport::exportTextFrame(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rTextContent,
- sal_Bool bAutoStyles, sal_Bool bIsProgress, sal_Bool bExportContent,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > *pRangePropSet)
-{
- exportAnyTextFrame( rTextContent, FT_TEXT, bAutoStyles, bIsProgress,
- bExportContent, pRangePropSet );
-}
-
-inline void XMLTextParagraphExport::exportTextGraphic(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rTextContent,
- sal_Bool bAutoStyles,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > *pRangePropSet )
-{
- exportAnyTextFrame( rTextContent, FT_GRAPHIC, bAutoStyles, sal_False,
- sal_True, pRangePropSet );
-}
-
-inline void XMLTextParagraphExport::exportTextEmbedded(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rTextContent,
- sal_Bool bAutoStyles,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > *pRangePropSet )
-{
- exportAnyTextFrame( rTextContent, FT_EMBEDDED, bAutoStyles, sal_False,
- sal_True, pRangePropSet );
-}
-
-inline void XMLTextParagraphExport::exportShape(
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::text::XTextContent > & rTextContent,
- sal_Bool bAutoStyles,
- const ::com::sun::star::uno::Reference <
- ::com::sun::star::beans::XPropertySet > *pRangePropSet )
-{
- exportAnyTextFrame( rTextContent, FT_SHAPE, bAutoStyles, sal_False,
- sal_True, pRangePropSet );
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/txtprmap.hxx b/xmloff/inc/xmloff/txtprmap.hxx
deleted file mode 100644
index 9228591152be..000000000000
--- a/xmloff/inc/xmloff/txtprmap.hxx
+++ /dev/null
@@ -1,204 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_TEXTPRMAP_HXX_
-#define _XMLOFF_TEXTPRMAP_HXX_
-
-#include <xmloff/contextid.hxx>
-#include <xmloff/xmlprmap.hxx>
-
-#define CTF_CHARHEIGHT (XML_TEXT_CTF_START + 1)
-#define CTF_CHARHEIGHT_REL (XML_TEXT_CTF_START + 2)
-#define CTF_PARALEFTMARGIN (XML_TEXT_CTF_START + 3)
-#define CTF_PARALEFTMARGIN_REL (XML_TEXT_CTF_START + 4)
-#define CTF_PARARIGHTMARGIN (XML_TEXT_CTF_START + 5)
-#define CTF_PARARIGHTMARGIN_REL (XML_TEXT_CTF_START + 6)
-#define CTF_PARAFIRSTLINE (XML_TEXT_CTF_START + 7)
-#define CTF_PARAFIRSTLINE_REL (XML_TEXT_CTF_START + 8)
-#define CTF_PARATOPMARGIN (XML_TEXT_CTF_START + 9)
-#define CTF_PARATOPMARGIN_REL (XML_TEXT_CTF_START + 10)
-#define CTF_PARABOTTOMMARGIN (XML_TEXT_CTF_START + 11)
-#define CTF_PARABOTTOMMARGIN_REL (XML_TEXT_CTF_START + 12)
-#define CTF_ALLBORDERWIDTH (XML_TEXT_CTF_START + 13)
-#define CTF_LEFTBORDERWIDTH (XML_TEXT_CTF_START + 14)
-#define CTF_RIGHTBORDERWIDTH (XML_TEXT_CTF_START + 15)
-#define CTF_TOPBORDERWIDTH (XML_TEXT_CTF_START + 16)
-#define CTF_BOTTOMBORDERWIDTH (XML_TEXT_CTF_START + 17)
-#define CTF_ALLBORDERDISTANCE (XML_TEXT_CTF_START + 18)
-#define CTF_LEFTBORDERDISTANCE (XML_TEXT_CTF_START + 19)
-#define CTF_RIGHTBORDERDISTANCE (XML_TEXT_CTF_START + 20)
-#define CTF_TOPBORDERDISTANCE (XML_TEXT_CTF_START + 21)
-#define CTF_BOTTOMBORDERDISTANCE (XML_TEXT_CTF_START + 22)
-#define CTF_ALLBORDER (XML_TEXT_CTF_START + 23)
-#define CTF_LEFTBORDER (XML_TEXT_CTF_START + 24)
-#define CTF_RIGHTBORDER (XML_TEXT_CTF_START + 25)
-#define CTF_TOPBORDER (XML_TEXT_CTF_START + 26)
-#define CTF_BOTTOMBORDER (XML_TEXT_CTF_START + 27)
-#define CTF_DROPCAPWHOLEWORD (XML_TEXT_CTF_START + 28)
-#define CTF_DROPCAPFORMAT (XML_TEXT_CTF_START + 29)
-#define CTF_DROPCAPCHARSTYLE (XML_TEXT_CTF_START + 30)
-#define CTF_TABSTOP (XML_TEXT_CTF_START + 31)
-#define CTF_NUMBERINGSTYLENAME (XML_TEXT_CTF_START + 32)
-#define CTF_OLDTEXTBACKGROUND (XML_TEXT_CTF_START + 33)
-#define CTF_FONTFAMILYNAME (XML_TEXT_CTF_START + 34)
-#define CTF_FONTSTYLENAME (XML_TEXT_CTF_START + 35)
-#define CTF_FONTFAMILY (XML_TEXT_CTF_START + 36)
-#define CTF_FONTPITCH (XML_TEXT_CTF_START + 37)
-#define CTF_FONTCHARSET (XML_TEXT_CTF_START + 38)
-#define CTF_TEXTWRITINGMODE (XML_TEXT_CTF_START + 39)
-#define CTF_SYNCHEIGHT_MIN (XML_TEXT_CTF_START + 40)
-#define CTF_FRAMEHEIGHT_ABS (XML_TEXT_CTF_START + 41)
-#define CTF_FRAMEHEIGHT_REL (XML_TEXT_CTF_START + 42)
-#define CTF_FRAMEHEIGHT_MIN_ABS (XML_TEXT_CTF_START + 43)
-#define CTF_FRAMEHEIGHT_MIN_REL (XML_TEXT_CTF_START + 44)
-#define CTF_SIZETYPE (XML_TEXT_CTF_START + 45)
-#define CTF_SYNCHEIGHT (XML_TEXT_CTF_START + 46)
-#define CTF_WRAP (XML_TEXT_CTF_START + 47)
-#define CTF_WRAP_CONTOUR (XML_TEXT_CTF_START + 48)
-#define CTF_WRAP_CONTOUR_MODE (XML_TEXT_CTF_START + 49)
-#define CTF_WRAP_PARAGRAPH_ONLY (XML_TEXT_CTF_START + 50)
-#define CTF_ANCHORTYPE (XML_TEXT_CTF_START + 51)
-#define CTF_ANCHORPAGENUMBER (XML_TEXT_CTF_START + 52)
-#define CTF_TEXTCOLUMNS (XML_TEXT_CTF_START + 53)
-#define CTF_HORIZONTALPOS (XML_TEXT_CTF_START + 54)
-#define CTF_HORIZONTALPOS_MIRRORED (XML_TEXT_CTF_START + 55)
-#define CTF_HORIZONTALREL (XML_TEXT_CTF_START + 56)
-#define CTF_HORIZONTALREL_FRAME (XML_TEXT_CTF_START + 57)
-#define CTF_HORIZONTALMIRROR (XML_TEXT_CTF_START + 58)
-#define CTF_VERTICALPOS (XML_TEXT_CTF_START + 59)
-#define CTF_VERTICALREL (XML_TEXT_CTF_START + 60)
-#define CTF_VERTICALREL_PAGE (XML_TEXT_CTF_START + 61)
-#define CTF_VERTICALREL_FRAME (XML_TEXT_CTF_START + 62)
-#define CTF_VERTICALREL_ASCHAR (XML_TEXT_CTF_START + 63)
-#define CTF_PAGEDESCNAME (XML_TEXT_CTF_START + 64)
-#define CTF_BACKGROUND_URL (XML_TEXT_CTF_START + 66)
-#define CTF_BACKGROUND_POS (XML_TEXT_CTF_START + 67)
-#define CTF_BACKGROUND_FILTER (XML_TEXT_CTF_START + 68)
-#define CTF_CHARHEIGHT_DIFF (XML_TEXT_CTF_START + 69)
-#define CTF_FONTNAME (XML_TEXT_CTF_START + 70)
-#define CTF_FONTNAME_CJK (XML_TEXT_CTF_START + 71)
-#define CTF_FONTFAMILYNAME_CJK (XML_TEXT_CTF_START + 72)
-#define CTF_FONTSTYLENAME_CJK (XML_TEXT_CTF_START + 73)
-#define CTF_FONTFAMILY_CJK (XML_TEXT_CTF_START + 74)
-#define CTF_FONTPITCH_CJK (XML_TEXT_CTF_START + 75)
-#define CTF_FONTCHARSET_CJK (XML_TEXT_CTF_START + 76)
-#define CTF_CHARHEIGHT_CJK (XML_TEXT_CTF_START + 77)
-#define CTF_CHARHEIGHT_REL_CJK (XML_TEXT_CTF_START + 78)
-#define CTF_CHARHEIGHT_DIFF_CJK (XML_TEXT_CTF_START + 79)
-#define CTF_FONTNAME_CTL (XML_TEXT_CTF_START + 80)
-#define CTF_FONTFAMILYNAME_CTL (XML_TEXT_CTF_START + 81)
-#define CTF_FONTSTYLENAME_CTL (XML_TEXT_CTF_START + 82)
-#define CTF_FONTFAMILY_CTL (XML_TEXT_CTF_START + 83)
-#define CTF_FONTPITCH_CTL (XML_TEXT_CTF_START + 84)
-#define CTF_FONTCHARSET_CTL (XML_TEXT_CTF_START + 85)
-#define CTF_CHARHEIGHT_CTL (XML_TEXT_CTF_START + 86)
-#define CTF_CHARHEIGHT_REL_CTL (XML_TEXT_CTF_START + 87)
-#define CTF_CHARHEIGHT_DIFF_CTL (XML_TEXT_CTF_START + 88)
-#define CTF_UNDERLINE (XML_TEXT_CTF_START + 89)
-#define CTF_UNDERLINE_COLOR (XML_TEXT_CTF_START + 90)
-#define CTF_UNDERLINE_HASCOLOR (XML_TEXT_CTF_START + 91)
-#define CTF_SECTION_FOOTNOTE_END (XML_TEXT_CTF_START + 92)
-#define CTF_SECTION_FOOTNOTE_NUM_RESTART (XML_TEXT_CTF_START + 93)
-#define CTF_SECTION_FOOTNOTE_NUM_RESTART_AT (XML_TEXT_CTF_START + 94)
-#define CTF_SECTION_FOOTNOTE_NUM_TYPE (XML_TEXT_CTF_START + 95)
-#define CTF_SECTION_FOOTNOTE_NUM_PREFIX (XML_TEXT_CTF_START + 96)
-#define CTF_SECTION_FOOTNOTE_NUM_SUFFIX (XML_TEXT_CTF_START + 97)
-#define CTF_SECTION_FOOTNOTE_NUM_OWN (XML_TEXT_CTF_START + 98)
-#define CTF_SECTION_ENDNOTE_END (XML_TEXT_CTF_START + 99)
-#define CTF_SECTION_ENDNOTE_NUM_RESTART (XML_TEXT_CTF_START + 100)
-#define CTF_SECTION_ENDNOTE_NUM_RESTART_AT (XML_TEXT_CTF_START + 101)
-#define CTF_SECTION_ENDNOTE_NUM_TYPE (XML_TEXT_CTF_START + 102)
-#define CTF_SECTION_ENDNOTE_NUM_PREFIX (XML_TEXT_CTF_START + 103)
-#define CTF_SECTION_ENDNOTE_NUM_SUFFIX (XML_TEXT_CTF_START + 104)
-#define CTF_SECTION_ENDNOTE_NUM_OWN (XML_TEXT_CTF_START + 105)
-#define CTF_PAGE_FOOTNOTE (XML_TEXT_CTF_START + 106)
-#define CTF_FRAME_DISPLAY_SCROLLBAR (XML_TEXT_CTF_START + 107)
-#define CTF_FRAME_DISPLAY_BORDER (XML_TEXT_CTF_START + 108)
-#define CTF_FRAME_MARGIN_HORI (XML_TEXT_CTF_START + 109)
-#define CTF_FRAME_MARGIN_VERT (XML_TEXT_CTF_START + 110)
-#define CTF_COMBINED_CHARACTERS_FIELD (XML_TEXT_CTF_START + 111)
-#define CTF_OLE_VIS_AREA_TOP (XML_TEXT_CTF_START + 112)
-#define CTF_OLE_VIS_AREA_LEFT (XML_TEXT_CTF_START + 113)
-#define CTF_OLE_VIS_AREA_WIDTH (XML_TEXT_CTF_START + 114)
-#define CTF_OLE_VIS_AREA_HEIGHT (XML_TEXT_CTF_START + 115)
-#define CTF_OLE_DRAW_ASPECT (XML_TEXT_CTF_START + 116)
-#define CTF_HYPERLINK_URL (XML_TEXT_CTF_START + 117)
-#define CTF_CHAR_STYLE_NAME (XML_TEXT_CTF_START + 118)
-#define CTF_VERTICALPOS_ATCHAR (XML_TEXT_CTF_START + 119)
-#define CTF_BACKGROUND_TRANSPARENCY (XML_TEXT_CTF_START + 120)
-#define CTF_BACKGROUND_TRANSPARENT (XML_TEXT_CTF_START + 121)
-#define CTF_KEEP_TOGETHER (XML_TEXT_CTF_START + 122)
-#define CTF_FRAMEWIDTH_ABS (XML_TEXT_CTF_START + 123)
-#define CTF_FRAMEWIDTH_MIN_ABS (XML_TEXT_CTF_START + 124)
-#define CTF_FRAMEWIDTH_MIN_REL (XML_TEXT_CTF_START + 125)
-#define CTF_FRAMEWIDTH_REL (XML_TEXT_CTF_START + 126)
-#define CTF_FRAMEWIDTH_TYPE (XML_TEXT_CTF_START + 127)
-#define CTF_BORDER_MODEL (XML_TEXT_CTF_START + 128)
-/* Define CTF ids for positioning properties of
- shapes, because on export to OpenOffice.org file format these have to
- be handled special, if shape isn't anchored as-character. (#i28749#)
-*/
-#define CTF_SHAPE_HORIZONTALPOS (XML_TEXT_CTF_START + 129)
-#define CTF_SHAPE_HORIZONTALPOS_MIRRORED (XML_TEXT_CTF_START + 130)
-#define CTF_SHAPE_HORIZONTALREL (XML_TEXT_CTF_START + 131)
-#define CTF_SHAPE_HORIZONTALREL_FRAME (XML_TEXT_CTF_START + 132)
-#define CTF_SHAPE_HORIZONTALMIRROR (XML_TEXT_CTF_START + 133)
-#define CTF_SHAPE_VERTICALPOS (XML_TEXT_CTF_START + 134)
-#define CTF_SHAPE_VERTICALPOS_ATCHAR (XML_TEXT_CTF_START + 135)
-#define CTF_SHAPE_VERTICALREL (XML_TEXT_CTF_START + 136)
-#define CTF_SHAPE_VERTICALREL_PAGE (XML_TEXT_CTF_START + 137)
-#define CTF_SHAPE_VERTICALREL_FRAME (XML_TEXT_CTF_START + 138)
-#define CTF_PARA_ADJUSTLAST (XML_TEXT_CTF_START + 139)
-#define CTF_DEFAULT_OUTLINE_LEVEL (XML_TEXT_CTF_START + 140)
-#define CTF_OLD_FLOW_WITH_TEXT (XML_TEXT_CTF_START + 141)
-#define CTF_ISNUMBERING (XML_TEXT_CTF_START + 142)
-#define CTF_TEXT_DISPLAY (XML_TEXT_CTF_START + 143)
-#define CTF_TEXT_CLIP (XML_TEXT_CTF_START + 144)
-#define CTF_TEXT_CLIP11 (XML_TEXT_CTF_START + 145)
-#define CTF_PARAMARGINALL (XML_TEXT_CTF_START + 146)
-#define CTF_PARAMARGINALL_REL (XML_TEXT_CTF_START + 147)
-#define CTF_MARGINALL (XML_TEXT_CTF_START + 148)
-#define CTF_MARGINLEFT (XML_TEXT_CTF_START + 149)
-#define CTF_MARGINRIGHT (XML_TEXT_CTF_START + 150)
-#define CTF_MARGINTOP (XML_TEXT_CTF_START + 151)
-#define CTF_MARGINBOTTOM (XML_TEXT_CTF_START + 152)
-
-#define TEXT_PROP_MAP_TEXT 0
-#define TEXT_PROP_MAP_PARA 1
-#define TEXT_PROP_MAP_FRAME 2
-#define TEXT_PROP_MAP_AUTO_FRAME 3
-#define TEXT_PROP_MAP_SECTION 4
-#define TEXT_PROP_MAP_SHAPE 5
-#define TEXT_PROP_MAP_RUBY 6
-#define TEXT_PROP_MAP_SHAPE_PARA 7
-#define TEXT_PROP_MAP_TEXT_ADDITIONAL_DEFAULTS 8
-#define TEXT_PROP_MAP_TABLE_DEFAULTS 9
-#define TEXT_PROP_MAP_TABLE_ROW_DEFAULTS 10
-
-class XMLOFF_DLLPUBLIC XMLTextPropertySetMapper : public XMLPropertySetMapper
-{
-public:
- XMLTextPropertySetMapper( sal_uInt16 nType );
- virtual ~XMLTextPropertySetMapper();
-
- static const XMLPropertyMapEntry* getPropertyMapForType( sal_uInt16 _nType );
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/txtstyli.hxx b/xmloff/inc/xmloff/txtstyli.hxx
deleted file mode 100644
index d645cfc11281..000000000000
--- a/xmloff/inc/xmloff/txtstyli.hxx
+++ /dev/null
@@ -1,112 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_TXTSTYLI_HXX_
-#define _XMLOFF_TXTSTYLI_HXX_
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <xmloff/prstylei.hxx>
-
-class SvXMLTokenMap;
-class XMLEventsImportContext;
-
-class XMLOFF_DLLPUBLIC XMLTextStyleContext : public XMLPropStyleContext
-{
- OUString sListStyleName;
- OUString sCategoryVal;
- OUString sDropCapTextStyleName;
- OUString sMasterPageName;
- OUString sDataStyleName; // for grid columns only
- const OUString sIsAutoUpdate;
- const OUString sCategory;
- const OUString sNumberingStyleName;
- const OUString sOutlineLevel;
-
-public:
- const OUString sDropCapCharStyleName;
-private:
- const OUString sPageDescName;
-
- sal_Int8 nOutlineLevel;
-
- sal_Bool bAutoUpdate : 1;
- sal_Bool bHasMasterPageName : 1;
-
- sal_Bool bHasCombinedCharactersLetter : 1;
-
- // Introduce import of empty list style (#i69523#)
- sal_Bool mbListStyleSet : 1;
-
- XMLEventsImportContext* pEventContext;
-
-protected:
-
- virtual void SetAttribute( sal_uInt16 nPrefixKey,
- const OUString& rLocalName,
- const OUString& rValue );
-
-public:
-
- TYPEINFO();
-
- XMLTextStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
- const OUString& rLName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
- SvXMLStylesContext& rStyles, sal_uInt16 nFamily,
- sal_Bool bDefaultStyle = sal_False );
- virtual ~XMLTextStyleContext();
-
- virtual SvXMLImportContext *CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
-
- sal_Bool IsAutoUpdate() const { return bAutoUpdate; }
-
- const OUString& GetListStyle() const { return sListStyleName; }
- // XML import: reconstrution of assignment of paragraph style to outline levels (#i69629#)
- sal_Bool IsListStyleSet() const
- {
- return mbListStyleSet;
- }
-
- const OUString& GetMasterPageName() const { return sMasterPageName; }
- sal_Bool HasMasterPageName() const { return bHasMasterPageName; }
- const OUString& GetDropCapStyleName() const { return sDropCapTextStyleName; }
- const OUString& GetDataStyleName() const { return sDataStyleName; }
-
- virtual void CreateAndInsert( sal_Bool bOverwrite );
- virtual void Finish( sal_Bool bOverwrite );
- virtual void SetDefaults();
-
- // overload FillPropertySet, so we can get at the combined characters
- virtual void FillPropertySet(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > & rPropSet );
-
- inline sal_Bool HasCombinedCharactersLetter()
- { return bHasCombinedCharactersLetter; }
-
- const ::std::vector< XMLPropertyState > & _GetProperties() { return GetProperties(); }
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/uniref.hxx b/xmloff/inc/xmloff/uniref.hxx
deleted file mode 100644
index 808ed8212b97..000000000000
--- a/xmloff/inc/xmloff/uniref.hxx
+++ /dev/null
@@ -1,224 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _UNIVERSALL_REFERENCE_HXX
-#define _UNIVERSALL_REFERENCE_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <sal/types.h>
-#include <osl/interlck.h>
-
-/**
- * An instance of this class holds a pointer to an object. The lifetime of
- * the object is controled by the instance. The constructor calls
- * acquire() and the destructor calls release().
- * You could delive your class from the baseclass UniRefBase wich implements
- * the methods acquire and release, yet.
- */
-template< class T > class UniReference
-{
-private:
- T* mpElement;
-
-public:
- /** Create an empty reference.*/
- UniReference()
- : mpElement( NULL )
- {}
-
- /** Destroy the reference and releases the element.*/
- inline ~UniReference();
-
- /** Create a new reference with the same element as in rRef and acquire this one.*/
- inline UniReference( const UniReference< T > & rRef );
-
- /**
- * Create a new reference with the given element pElement and acquire this one.
- */
- inline UniReference( T * pElement );
-
- /**
- * Release the reference and set the new one pObj.
- */
- inline UniReference< T > & operator = ( T * pElement );
-
- /**
- * Release the reference and set the new one from rObj.
- */
- inline UniReference< T > & operator = ( const UniReference< T > & rRef );
-
- /**
- * Return the pointer to the element, may be null.
- */
- inline T* operator -> () const;
-
- /**
- * Returns true if the pointer to the element is valid.
- */
- inline sal_Bool is() const;
-
- /**
- * Return true if both elements refer to the same object.
- */
- inline sal_Bool operator == ( const UniReference & rRef ) const;
-
- /**
- * Return true if both elements does not refer to the same object.
- */
- inline sal_Bool operator != ( const UniReference & rRef ) const;
-
- /** Gets implementation pointer.
- This call does <b>not</b> acquire the implementation.
- <br>
- @return <b>un</b>acquired implementation pointer
- */
- inline T* get() const;
-};
-
-class XMLOFF_DLLPUBLIC UniRefBase
-{
-private:
- /**
- * The reference counter.
- */
- oslInterlockedCount m_refCount;
-
-public:
- UniRefBase() : m_refCount( 0 )
- {}
- virtual ~UniRefBase();
-
- void acquire() { osl_atomic_increment( &m_refCount ); }
- void release();
-
-};
-
-///////////////////////////////////////////////////////////////////////////////
-//
-// Inline-implementations of UniReference
-//
-
-/** Create a new reference with the same element as in rRef and acquire this one.*/
-template< class T >
-inline UniReference< T >::UniReference( const UniReference< T > & rRef )
- : mpElement( rRef.mpElement )
-{
- if( mpElement )
- mpElement->acquire();
-}
-
-template< class T >
-inline UniReference< T >::~UniReference()
-{
- if( mpElement )
- mpElement->release();
-}
-
-/**
- * Create a new reference with the given element pElement and acquire this one.
- * @param pInterface the interface, pointer may be null.
- */
-template< class T >
-inline UniReference< T >::UniReference( T * pElement )
- : mpElement( pElement )
-{
- if( mpElement )
- mpElement->acquire();
-}
-
-/**
- * Release the reference and set the new one pObj.<BR>
- * <B>The operation is not thread save. You must protect all assigns to a reference class.</B>
- */
-template< class T >
-inline UniReference< T > & UniReference< T >::operator = ( T * pElement )
-{
- if( pElement )
- pElement->acquire();
- if( mpElement )
- mpElement->release();
-
- mpElement = pElement;
-
- return *this;
-}
-
-/**
- * Release the reference and set the new one from rObj.<BR>
- * <B>The operation is not thread save. You must protect all assigns to a reference class.</B>
- */
-template< class T >
-inline UniReference< T > & UniReference< T >::operator = ( const UniReference< T > & rRef )
-{
- return operator = ( rRef.mpElement );
-}
-
-/**
- * Return the pointer to the interface, may be null.
- */
-template< class T >
-inline T* UniReference< T >::operator -> () const
-{
- return get();
-}
-
-/**
- * Return the pointer to the interface, may be null.
- */
-template< class T >
-inline T* UniReference< T >::get () const
-{
- return static_cast< T * >( mpElement );
-}
-
-/**
- * Returns true if the pointer to the interface is valid.
- */
-template< class T >
-inline sal_Bool UniReference< T >::is() const
-{
- return (mpElement != 0);
-}
-/**
- * Return true if both interfaces refer to the same object. The operation can be
- * much more expensive than a pointer comparision.<BR>
- *
- * @param rRef another interface reference
- */
-template< class T >
-inline sal_Bool UniReference< T >::operator == ( const UniReference & rRef ) const
-{
- return ( mpElement == rRef.mpElement );
-}
-/**
- * Return true if both interfaces does not refer to the same object. The operation can be
- * much more expensive than a pointer comparision.<BR>
- *
- * @param rRef another interface reference
- */
-template< class T >
-inline sal_Bool UniReference< T >::operator != ( const UniReference & rRef ) const
-{
- return ( ! operator == ( rRef ) );
-}
-
-#endif // _UNIVERSALL_REFERENCE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/unoatrcn.hxx b/xmloff/inc/xmloff/unoatrcn.hxx
deleted file mode 100644
index 616d1db4f740..000000000000
--- a/xmloff/inc/xmloff/unoatrcn.hxx
+++ /dev/null
@@ -1,79 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/container/XNameContainer.hpp>
-#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/lang/XUnoTunnel.hpp>
-
-#include <cppuhelper/implbase3.hxx>
-
-extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SvUnoAttributeContainer_CreateInstance();
-
-class SvXMLAttrContainerData;
-
-class XMLOFF_DLLPUBLIC SvUnoAttributeContainer:
- public ::cppu::WeakAggImplHelper3<
- ::com::sun::star::lang::XServiceInfo,
- ::com::sun::star::lang::XUnoTunnel,
- ::com::sun::star::container::XNameContainer >
-{
-private:
- SvXMLAttrContainerData* mpContainer;
-
- SAL_DLLPRIVATE sal_uInt16 getIndexByName(const OUString& aName )
- const;
-
-public:
- SvUnoAttributeContainer( SvXMLAttrContainerData* pContainer = NULL );
- virtual ~SvUnoAttributeContainer();
-
- SvXMLAttrContainerData* GetContainerImpl() const { return mpContainer; }
-
- static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
- virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
-
- // ::com::sun::star::container::XElementAccess
- virtual ::com::sun::star::uno::Type SAL_CALL getElementType(void) throw( ::com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL hasElements(void) throw( ::com::sun::star::uno::RuntimeException );
-
- // ::com::sun::star::container::XNameAccess
- virtual ::com::sun::star::uno::Any SAL_CALL getByName(const OUString& aName) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
- virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL hasByName(const OUString& aName) throw( ::com::sun::star::uno::RuntimeException );
-
- // ::com::sun::star::container::XNameReplace
- virtual void SAL_CALL replaceByName(const OUString& aName, const ::com::sun::star::uno::Any& aElement) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
-
- // ::com::sun::star::container::XNameContainer
- virtual void SAL_CALL insertByName(const OUString& aName, const ::com::sun::star::uno::Any& aElement) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL removeByName(const OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
-
- // ::com::sun::star::lang::XServiceInfo
- virtual OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
- virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
-
- friend ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SvUnoAttributeContainer_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr ) throw( ::com::sun::star::uno::Exception );
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/unointerfacetouniqueidentifiermapper.hxx b/xmloff/inc/xmloff/unointerfacetouniqueidentifiermapper.hxx
deleted file mode 100644
index e538cbe176e0..000000000000
--- a/xmloff/inc/xmloff/unointerfacetouniqueidentifiermapper.hxx
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __COMPHELPER_UNOINTERFACETOUNIQUEIDENTIFIERMAPPER__
-#define __COMPHELPER_UNOINTERFACETOUNIQUEIDENTIFIERMAPPER__
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-
-#include <map>
-#include <rtl/ustring.hxx>
-#include <com/sun/star/uno/XInterface.hpp>
-
-namespace comphelper
-{
-
-typedef ::std::map< OUString, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > > IdMap_t;
-
-class XMLOFF_DLLPUBLIC UnoInterfaceToUniqueIdentifierMapper
-{
-public:
- UnoInterfaceToUniqueIdentifierMapper();
-
- /** returns a unique identifier for the given uno object. IF a uno object is
- registered more than once, the returned identifier is always the same.
- */
- const OUString& registerReference( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rInterface );
-
- /** registers the given uno object with the given identifier.
-
- @returns
- false, if the given identifier already exists and is not associated with the given interface
- */
- bool registerReference( const OUString& rIdentifier, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rInterface );
-
- /** @returns
- the identifier for the given uno object. If this uno object is not already
- registered, an empty string is returned
- */
- const OUString& getIdentifier( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rInterface ) const;
-
- /** @returns
- the uno object that is registered with the given identifier. If no uno object
- is registered with the given identifier, an empty reference is returned.
- */
- const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& getReference( const OUString& rIdentifier ) const;
-
-private:
- bool findReference( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rInterface, IdMap_t::const_iterator& rIter ) const;
- bool findIdentifier( const OUString& rIdentifier, IdMap_t::const_iterator& rIter ) const;
-
- IdMap_t maEntries;
- sal_Int32 mnNextId;
-};
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xformsexport.hxx b/xmloff/inc/xmloff/xformsexport.hxx
deleted file mode 100644
index 802180126f1b..000000000000
--- a/xmloff/inc/xmloff/xformsexport.hxx
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_XFORMSEXPORT_HXX
-#define _XMLOFF_XFORMSEXPORT_HXX
-
-#include "xmloff/dllapi.h"
-#include <rtl/ustring.hxx>
-
-class SvXMLExport;
-namespace com { namespace sun { namespace star {
- namespace uno { template<typename T> class Reference; }
- namespace uno { template<typename T> class Sequence; }
- namespace frame { class XModel; }
- namespace beans { class XPropertySet; struct PropertyValue; }
- namespace container { class XNameAccess; }
-} } }
-
-
-/** export an XForms model. */
-void SAL_DLLPRIVATE exportXForms( SvXMLExport& );
-
-OUString SAL_DLLPRIVATE getXFormsBindName( const com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>& xBinding );
-
-OUString SAL_DLLPRIVATE getXFormsListBindName( const com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>& xBinding );
-
-OUString SAL_DLLPRIVATE getXFormsSubmissionName( const com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>& xBinding );
-
-
-/** returns the settings of the given XForms container, to be exported as document specific settings
-*/
-void XMLOFF_DLLPUBLIC getXFormsSettings(
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rXForms,
- ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _out_rSettings
- );
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xformsimport.hxx b/xmloff/inc/xmloff/xformsimport.hxx
deleted file mode 100644
index b6770320dbd3..000000000000
--- a/xmloff/inc/xmloff/xformsimport.hxx
+++ /dev/null
@@ -1,79 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_XFORMSIMPORT_HXX
-#define _XMLOFF_XFORMSIMPORT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-
-#include <tools/solar.h> // for sal_uInt16
-#include <com/sun/star/uno/Reference.hxx>
-
-class SvXMLImport;
-class SvXMLImportContext;
-
-namespace com { namespace sun { namespace star {
- namespace uno { template<typename T> class Reference; }
- namespace beans { class XPropertySet; struct PropertyValue; }
- namespace frame { class XModel; }
- namespace container { class XNameAccess; }
-} } }
-
-/** create import context for xforms:model element. */
-XMLOFF_DLLPUBLIC SvXMLImportContext* createXFormsModelContext(
- SvXMLImport& rImport,
- sal_uInt16 nPrefix,
- const OUString& rLocalName );
-
-/** perform the actual binding of an XForms-binding with the suitable control
- * @param document which contains the XForms-model(s)
- * @param pair<XForms binding ID, reference to control>
- */
-void bindXFormsValueBinding(
- com::sun::star::uno::Reference<com::sun::star::frame::XModel>,
- std::pair<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>,OUString> );
-
-
-/** perform the actual binding of an XForms-binding as list source with a list control
- * @param document which contains the XForms-model(s)
- * @param pair<XForms binding ID, reference to control>
- */
-void bindXFormsListBinding(
- com::sun::star::uno::Reference<com::sun::star::frame::XModel>,
- std::pair<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>,OUString> );
-
-/** perform the actual binding of an XForms submission with the suitable control
- * @param document which contains the XForms-model(s)
- * @param pair<XForms submission ID, reference to control>
- */
-void bindXFormsSubmission(
- com::sun::star::uno::Reference<com::sun::star::frame::XModel>,
- std::pair<com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>,OUString> );
-
-/** applies the given settings to the given XForms container
-*/
-void XMLOFF_DLLPUBLIC applyXFormsSettings(
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& _rXForms,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rSettings
- );
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xmlaustp.hxx b/xmloff/inc/xmloff/xmlaustp.hxx
deleted file mode 100644
index e08b027ddb0f..000000000000
--- a/xmloff/inc/xmloff/xmlaustp.hxx
+++ /dev/null
@@ -1,124 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLASTPLP_HXX
-#define _XMLOFF_XMLASTPLP_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
-#include <xmloff/xmlprmap.hxx>
-#include <xmloff/uniref.hxx>
-
-class SvXMLExportPropertyMapper;
-class SvXMLNamespaceMap;
-class SvXMLAutoStylePoolP_Impl;
-class SvXMLAttributeList;
-class SvXMLExport;
-namespace com { namespace sun { namespace star { namespace uno
- { template<typename A> class Sequence; }
-} } }
-
-class XMLOFF_DLLPUBLIC SvXMLAutoStylePoolP : public UniRefBase
-{
- friend class Test;
- friend class SvXMLAutoStylePoolP_Impl;
-
- SvXMLAutoStylePoolP_Impl *pImpl;
-
-protected:
-
- virtual void exportStyleAttributes(
- SvXMLAttributeList& rAttrList,
- sal_Int32 nFamily,
- const ::std::vector< XMLPropertyState >& rProperties,
- const SvXMLExportPropertyMapper& rPropExp
- , const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap
- ) const;
-
-// this methode is executed after Properties Export, so you can e.g. export a map or so on
- virtual void exportStyleContent(
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler,
- sal_Int32 nFamily,
- const ::std::vector< XMLPropertyState >& rProperties,
- const SvXMLExportPropertyMapper& rPropExp
- , const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap
- ) const;
-
-
-public:
-
- SvXMLAutoStylePoolP( SvXMLExport& rExport);
-
- virtual ~SvXMLAutoStylePoolP();
-
- SvXMLExport& GetExport() const;
-
- /** register a new family with its appropriate instance of a derivation of XMLPropertySetMapper
- for family numbers see families.hxx
- if bAsFamily is sal_False, the family name is used as element name
- */
- // TODO: Remove this ugly method as soon as possible
- void AddFamily( sal_Int32 nFamily, const OUString& rStrName, SvXMLExportPropertyMapper* pMapper, OUString aStrPrefix, sal_Bool bAsFamily = sal_True );
- void AddFamily( sal_Int32 nFamily, const OUString& rStrName,
- const UniReference< SvXMLExportPropertyMapper >& rMapper,
- const OUString& rStrPrefix, sal_Bool bAsFamily = sal_True );
- void SetFamilyPropSetMapper( sal_Int32 nFamily,
- const UniReference< SvXMLExportPropertyMapper >& rMapper );
-
- /// Register a name that must not be used as a generated name.
- void RegisterName( sal_Int32 nFamily, const OUString& rName );
-
- /// retrieve the registered names (names + families)
- void GetRegisteredNames(
- com::sun::star::uno::Sequence<sal_Int32>& aFamilies,
- com::sun::star::uno::Sequence<OUString>& aNames );
-
- /// register (families + names)
- void RegisterNames(
- com::sun::star::uno::Sequence<sal_Int32>& aFamilies,
- com::sun::star::uno::Sequence<OUString>& aNames );
-
- /// Add an item set to the pool and return its generated name.
- OUString Add( sal_Int32 nFamily, const ::std::vector< XMLPropertyState >& rProperties );
- OUString Add( sal_Int32 nFamily, const OUString& rParent, const ::std::vector< XMLPropertyState >& rProperties, bool bDontSeek = false );
- sal_Bool Add( OUString& rName, sal_Int32 nFamily, const OUString& rParent, const ::std::vector< XMLPropertyState >& rProperties );
-
- /// Add an item set with a pre-defined name (needed for saving sheets separately in Calc).
- sal_Bool AddNamed( const OUString& rName, sal_Int32 nFamily, const OUString& rParent,
- const ::std::vector< XMLPropertyState >& rProperties );
-
- /// Find an item set's name.
- OUString Find( sal_Int32 nFamily, const OUString& rParent, const ::std::vector< XMLPropertyState >& rProperties ) const;
-
- /** Export all item sets ofs a certain class in the order in that they have been added. */
- void exportXML( sal_Int32 nFamily
- , const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler,
- const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap
- ) const;
-
- void ClearEntries();
-};
-
-#endif // _XMLOFF_XMLASTPLP_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xmlcnimp.hxx b/xmloff/inc/xmloff/xmlcnimp.hxx
deleted file mode 100644
index f99c0a55ad73..000000000000
--- a/xmloff/inc/xmloff/xmlcnimp.hxx
+++ /dev/null
@@ -1,74 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLCNIMP_HXX
-#define _XMLOFF_XMLCNIMP_HXX
-
-#include "xmloff/dllapi.h" //XMLOFF_DLLPUBLIC
-#include <sal/types.h> //sal_uInt16 and sal_Bool
-#include <boost/scoped_ptr.hpp>
-
-class SvXMLAttrCollection; //Forward declaration only.
-
-class XMLOFF_DLLPUBLIC SvXMLAttrContainerData
-{
-private:
- boost::scoped_ptr<SvXMLAttrCollection> pimpl;
-
-public:
- SvXMLAttrContainerData();
- SvXMLAttrContainerData(const SvXMLAttrContainerData &rCopy);
- ~SvXMLAttrContainerData();
-
- int operator ==( const SvXMLAttrContainerData& rCmp ) const;
-
- sal_Bool AddAttr( const OUString& rLName, const OUString& rValue );
- sal_Bool AddAttr( const OUString& rPrefix, const OUString& rNamespace,
- const OUString& rLName, const OUString& rValue );
- sal_Bool AddAttr( const OUString& rPrefix,
- const OUString& rLName,
- const OUString& rValue );
-
- size_t GetAttrCount() const;
- const OUString GetAttrNamespace( size_t i ) const;
- const OUString GetAttrPrefix( size_t i ) const;
- const OUString& GetAttrLName( size_t i ) const;
- const OUString& GetAttrValue( size_t i ) const;
-
- sal_uInt16 GetFirstNamespaceIndex() const;
- sal_uInt16 GetNextNamespaceIndex( sal_uInt16 nIdx ) const;
- const OUString& GetNamespace( sal_uInt16 i ) const;
- const OUString& GetPrefix( sal_uInt16 i ) const;
-
- sal_Bool SetAt( size_t i,
- const OUString& rLName, const OUString& rValue );
- sal_Bool SetAt( size_t i,
- const OUString& rPrefix, const OUString& rNamespace,
- const OUString& rLName, const OUString& rValue );
- sal_Bool SetAt( size_t i,
- const OUString& rPrefix,
- const OUString& rLName,
- const OUString& rValue );
-
- void Remove( size_t i );
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xmlement.hxx b/xmloff/inc/xmloff/xmlement.hxx
deleted file mode 100644
index ecf90373f30a..000000000000
--- a/xmloff/inc/xmloff/xmlement.hxx
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLEMENT_HXX
-#define _XMLOFF_XMLEMENT_HXX
-
-#include <sal/types.h>
-#include <xmloff/xmltoken.hxx>
-
-/** Map an XMLTokenEnum to a sal_uInt16 value.
- * To be used with SvXMLUnitConverter::convertEnum(...)
- */
-struct SvXMLEnumMapEntry
-{
- ::xmloff::token::XMLTokenEnum eToken;
- sal_uInt16 nValue;
-};
-
-#define ENUM_STRING_MAP_ENTRY(name,tok) { name, sizeof(name)-1, tok }
-
-#define ENUM_STRING_MAP_END() { NULL, 0, 0 }
-
-/** Map a const sal_Char* (with length) to a sal_uInt16 value.
- * To be used with SvXMLUnitConverter::convertEnum(...)
- */
-struct SvXMLEnumStringMapEntry
-{
- const sal_Char * pName;
- sal_Int32 nNameLength;
- sal_uInt16 nValue;
-};
-
-#endif // _XMLOFF_XMLEMENT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xmlerror.hxx b/xmloff/inc/xmloff/xmlerror.hxx
deleted file mode 100644
index 78ecbe914850..000000000000
--- a/xmloff/inc/xmloff/xmlerror.hxx
+++ /dev/null
@@ -1,147 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLERROR_HXX
-#define _XMLOFF_XMLERROR_HXX
-
-#include <com/sun/star/xml/sax/SAXParseException.hpp>
-#include <sal/types.h>
-
-// STL includes
-#include <vector>
-
-
-
-// masks for the error ID fields
-#define XMLERROR_MASK_FLAG 0xF0000000
-#define XMLERROR_MASK_CLASS 0x00FF0000
-#define XMLERROR_MASK_NUMBER 0x0000FFFF
-
-// error flags:
-#define XMLERROR_FLAG_WARNING 0x10000000
-#define XMLERROR_FLAG_ERROR 0x20000000
-#define XMLERROR_FLAG_SEVERE 0x40000000
-
-// error classes: Error ID
-#define XMLERROR_CLASS_IO 0x00010000
-#define XMLERROR_CLASS_FORMAT 0x00020000
-#define XMLERROR_CLASS_API 0x00040000
-#define XMLERROR_CLASS_OTHER 0x00080000
-
-
-// error numbers, listed by error class
-// Within each class, errors should be numbered consecutively. Please
-// always add to error code below the appropriate comment.
-
-// I/O errors:
-
-// format errors:
-#define XMLERROR_SAX ( XMLERROR_CLASS_FORMAT | 0x00000001 )
-#define XMLERROR_STYLE_ATTR_VALUE ( XMLERROR_CLASS_FORMAT | 0x00000002 )
-#define XMLERROR_NO_INDEX_ALLOWED_HERE ( XMLERROR_CLASS_FORMAT | 0x00000003 )
-#define XMLERROR_PARENT_STYLE_NOT_ALLOWED ( XMLERROR_CLASS_FORMAT | 0x00000004 )
-#define XMLERROR_ILLEGAL_EVENT (XMLERROR_CLASS_FORMAT | 0x00000005 )
-#define XMLERROR_NAMESPACE_TROUBLE (XMLERROR_CLASS_FORMAT | 0x00000006 )
-
-#define XMLERROR_XFORMS_NO_SCHEMA_SUPPORT ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x00000007 )
-#define XMLERROR_XFORMS_UNKNOWN ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x00000008 )
-#define XMLERROR_XFORMS_ONLY_ONE_INSTANCE_ELEMENT ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x00000009 )
-#define XMLERROR_UNKNOWN_ATTRIBUTE ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000a )
-#define XMLERROR_UNKNOWN_ELEMENT ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000b )
-#define XMLERROR_UNKNOWN_CHARACTERS ( XMLERROR_CLASS_FORMAT | XMLERROR_FLAG_WARNING | 0x0000000c )
-#define XMLERROR_UNKNOWN_ROOT (XMLERROR_CLASS_FORMAT | 0x0000000d )
-
-// API errors:
-#define XMLERROR_STYLE_PROP_VALUE ( XMLERROR_CLASS_API | 0x00000001 )
-#define XMLERROR_STYLE_PROP_UNKNOWN ( XMLERROR_CLASS_API | 0x00000002 )
-#define XMLERROR_STYLE_PROP_OTHER ( XMLERROR_CLASS_API | 0x00000003 )
-#define XMLERROR_API ( XMLERROR_CLASS_API | 0x00000004 )
-
-// other errors:
-#define XMLERROR_CANCEL ( XMLERROR_CLASS_OTHER | 0x00000001 )
-
-
-
-// 16bit error flag constants for use in the
-// SvXMLExport/SvXMLImport error flags
-#define ERROR_NO 0x0000
-#define ERROR_DO_NOTHING 0x0001
-#define ERROR_ERROR_OCCURRED 0x0002
-#define ERROR_WARNING_OCCURRED 0x0004
-
-
-
-
-// forward declarations
-namespace com { namespace sun { namespace star {
- namespace uno { template<class X> class Sequence; }
- namespace uno { template<class X> class Reference; }
- namespace xml { namespace sax { class XLocator; } }
-} } }
-class ErrorRecord;
-
-
-
-/**
- * The XMLErrors is used to collect all errors and warnings that occur
- * for appropriate processing.
- */
-class XMLErrors
-{
- /// definition of type for error list
- typedef ::std::vector<ErrorRecord> ErrorList;
-
- ErrorList aErrors; /// list of error records
-
-public:
-
- XMLErrors();
- ~XMLErrors();
-
- /// add a new entry to the list of error messages
- void AddRecord(
- sal_Int32 nId, /// error ID == error flags + error class + error number
- const ::com::sun::star::uno::Sequence<
- OUString> & rParams, /// parameters for error message
- const OUString& rExceptionMessage, /// original exception string
- sal_Int32 nRow, /// XLocator: file row number
- sal_Int32 nColumn, /// XLocator: file column number
- const OUString& rPublicId, /// XLocator: file public ID
- const OUString& rSystemId ); /// XLocator: file system ID
-
- void AddRecord(
- sal_Int32 nId, /// error ID == error flags + error class + error number
- const ::com::sun::star::uno::Sequence<
- OUString> & rParams, /// parameters for error message
- const OUString& rExceptionMessage, /// original exception string
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XLocator> & rLocator); /// location
-
- /**
- * throw a SAXParseException that describes the first error that matches
- * the given mask
- */
- void ThrowErrorAsSAXException( sal_Int32 nIdMask )
- throw( ::com::sun::star::xml::sax::SAXParseException );
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xmlevent.hxx b/xmloff/inc/xmloff/xmlevent.hxx
deleted file mode 100644
index 9738a58fc30f..000000000000
--- a/xmloff/inc/xmloff/xmlevent.hxx
+++ /dev/null
@@ -1,145 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLEVENT_HXX
-#define _XMLOFF_XMLEVENT_HXX
-
-#include <com/sun/star/uno/Sequence.hxx>
-#include <com/sun/star/uno/Reference.hxx>
-
-
-/**
- * @#file
- *
- * Several definition used in im- and export of events
- */
-
-namespace com { namespace sun { namespace star {
- namespace xml { namespace sax { class XAttributeList; } }
- namespace beans { struct PropertyValue; }
-} } }
-
-class SvXMLExport;
-class SvXMLImportContext;
-class SvXMLImport;
-class XMLEventsImportContext;
-
-
-struct XMLEventName
-{
- sal_uInt16 m_nPrefix;
- OUString m_aName;
-
- XMLEventName() : m_nPrefix( 0 ) {}
- XMLEventName( sal_uInt16 n, const sal_Char *p ) :
- m_nPrefix( n ),
- m_aName( OUString::createFromAscii(p) )
- {}
-
- XMLEventName( sal_uInt16 n, const OUString& r ) :
- m_nPrefix( n ),
- m_aName( r )
- {}
-
- bool operator<( const XMLEventName& r ) const
- {
- return m_nPrefix < r.m_nPrefix ||
- (m_nPrefix == r.m_nPrefix && m_aName < r.m_aName );
- }
-
-};
-
-/**
- * XMLEventNameTranslation: define tables that translate between event names
- * as used in the XML file format and in the StarOffice API.
- * The last entry in the table must be { NULL, 0, NULL }.
- */
-struct XMLEventNameTranslation
-{
- const sal_Char* sAPIName;
- sal_uInt16 nPrefix; // namespace prefix
- const sal_Char* sXMLName;
-};
-
-/// a translation table for the events defined in the XEventsSupplier service
-/// (implemented in XMLEventExport.cxx)
-extern const XMLEventNameTranslation aStandardEventTable[];
-
-
-/**
- * Handle export of an event for a certain event type (event type as
- * defined by the PropertyValue "EventType" in API).
- *
- * The Handler has to generate the full <script:event> element.
- */
-class XMLEventExportHandler
-{
-public:
- virtual ~XMLEventExportHandler() {};
-
- virtual void Export(
- SvXMLExport& rExport, /// the current XML export
- const OUString& rEventQName, /// the XML name of the event
- ::com::sun::star::uno::Sequence< /// the values for the event
- ::com::sun::star::beans::PropertyValue> & rValues,
- sal_Bool bUseWhitespace) = 0; /// create whitespace around elements?
-};
-
-
-/**
- * Handle import of an event for a certain event type (as defined by
- * the PropertyValue "EventType" in the API).
- *
- * EventContextFactories must be registered with the EventImportHelper
- * that is attached to the SvXMLImport.
- *
- * The factory has to create an import context for a <script:event>
- * element. The context has to call the
- * EventsImportContext::AddEventValues() method to fave its event
- * registered with the enclosing element. For events consisting only
- * of attributes (and an empty element) an easy solution is to handle
- * all attributes in the CreateContext()-method and return a default
- * context.
- *
- * EventContextFactory objects have to be registered with the
- * EventsImportHelper.
- */
-class XMLEventContextFactory
-{
-public:
- virtual ~XMLEventContextFactory() {};
-
- virtual SvXMLImportContext* CreateContext(
- SvXMLImport& rImport, /// import context
- sal_uInt16 nPrefix, /// element: namespace prefix
- const OUString& rLocalName, /// element: local name
- const ::com::sun::star::uno::Reference< /// attribute list
- ::com::sun::star::xml::sax::XAttributeList> & xAttrList,
- /// the context for the enclosing <script:events> element
- XMLEventsImportContext* rEvents,
- /// the event name (as understood by the API)
- const OUString& rApiEventName,
- /// the event type name (as registered)
- const OUString& rApiLanguage) = 0;
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xmlexp.hxx b/xmloff/inc/xmloff/xmlexp.hxx
deleted file mode 100644
index 148f73692158..000000000000
--- a/xmloff/inc/xmloff/xmlexp.hxx
+++ /dev/null
@@ -1,659 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLEXP_HXX
-#define _XMLOFF_XMLEXP_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-
-#include <com/sun/star/embed/XStorage.hpp>
-#include <com/sun/star/xml/sax/SAXParseException.hpp>
-#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
-#include <com/sun/star/xml/sax/SAXException.hpp>
-#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
-#include <com/sun/star/xml/sax/XAttributeList.hpp>
-#include <com/sun/star/xml/sax/XLocator.hpp>
-#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
-#include <com/sun/star/lang/XUnoTunnel.hpp>
-#include <rtl/ustring.hxx>
-#include <xmloff/txtparae.hxx>
-#include <xmloff/formlayerexport.hxx>
-#include <xmloff/xmlnumfe.hxx>
-#include <xmloff/xmlaustp.hxx>
-#include <xmloff/shapeexport.hxx>
-#include <xmloff/xmltoken.hxx>
-#include <xmloff/SchXMLExportHelper.hxx>
-#include <xmloff/XMLFontAutoStylePool.hxx>
-#include <com/sun/star/document/XFilter.hpp>
-#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/document/XExporter.hpp>
-#include <com/sun/star/document/XGraphicObjectResolver.hpp>
-#include <com/sun/star/document/XEmbeddedObjectResolver.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/lang/XInitialization.hpp>
-#include <com/sun/star/lang/XEventListener.hpp>
-#include <com/sun/star/uno/XComponentContext.hpp>
-#include <com/sun/star/container/XNamed.hpp>
-
-#include <unotools/saveopt.hxx>
-
-#include <xmloff/XMLPageExport.hxx>
-#include <xmloff/ProgressBarHelper.hxx>
-#include <cppuhelper/implbase6.hxx>
-
-#include <list>
-
-class SvXMLNamespaceMap;
-class SvXMLAttributeList;
-class SvXMLExport_Impl;
-class SvXMLUnitConverter;
-class ProgressBarHelper;
-class XMLEventExport;
-class XMLSettingsExportHelper;
-class XMLImageMapExport;
-class XMLErrors;
-
-// Shapes in Writer cannot be named via context menu (#i51726#)
-#include <unotools/moduleoptions.hxx>
-
-namespace com { namespace sun { namespace star {
- namespace frame { class XModel; }
- namespace container { class XIndexContainer; }
-} } }
-namespace comphelper { class UnoInterfaceToUniqueIdentifierMapper; }
-
-#define EXPORT_META 0x0001
-#define EXPORT_STYLES 0x0002
-#define EXPORT_MASTERSTYLES 0x0004
-#define EXPORT_AUTOSTYLES 0x0008
-#define EXPORT_CONTENT 0x0010
-#define EXPORT_SCRIPTS 0x0020
-#define EXPORT_SETTINGS 0x0040
-#define EXPORT_FONTDECLS 0x0080
-#define EXPORT_EMBEDDED 0x0100
-#define EXPORT_NODOCTYPE 0x0200
-#define EXPORT_PRETTY 0x0400
-#define EXPORT_SAVEBACKWARDCOMPATIBLE 0x0800
-#define EXPORT_OASIS 0x8000
-#define EXPORT_ALL 0x7fff
-
-class XMLOFF_DLLPUBLIC SvXMLExport : public ::cppu::WeakImplHelper6<
- ::com::sun::star::document::XFilter,
- ::com::sun::star::lang::XServiceInfo,
- ::com::sun::star::document::XExporter,
- ::com::sun::star::lang::XInitialization,
- ::com::sun::star::container::XNamed,
- ::com::sun::star::lang::XUnoTunnel>
-{
- SvXMLExport_Impl *mpImpl; // dummy
-
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
-
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > mxHandler; // the handlers
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XExtendedDocumentHandler > mxExtHandler;
- ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > mxNumberFormatsSupplier;
- ::com::sun::star::uno::Reference< ::com::sun::star::document::XGraphicObjectResolver > mxGraphicResolver;
- ::com::sun::star::uno::Reference< ::com::sun::star::document::XEmbeddedObjectResolver > mxEmbeddedResolver;
- ::com::sun::star::uno::Reference< ::com::sun::star::task::XStatusIndicator > mxStatusIndicator;
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxExportInfo;
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > mxEventListener;
-
- SvXMLAttributeList *mpAttrList; // a common attribute list
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > mxAttrList; // and an interface of it
-
- OUString msOrigFileName; // the original URL
- OUString msGraphicObjectProtocol;
- OUString msEmbeddedObjectProtocol;
- OUString msFilterName;
- SvXMLNamespaceMap *mpNamespaceMap; // the namepspace map
- SvXMLUnitConverter *mpUnitConv; // the unit converter
- SvXMLNumFmtExport *mpNumExport;
- ProgressBarHelper *mpProgressBarHelper;
-
- UniReference< XMLTextParagraphExport > mxTextParagraphExport;
- UniReference< XMLShapeExport > mxShapeExport;
- UniReference< SvXMLAutoStylePoolP > mxAutoStylePool;
- UniReference< SchXMLExportHelper > mxChartExport;
- UniReference< XMLPageExport > mxPageExport;
- UniReference< XMLFontAutoStylePool > mxFontAutoStylePool;
- UniReference< xmloff::OFormLayerXMLExport > mxFormExport;
- XMLEventExport* mpEventExport;
- XMLImageMapExport* mpImageMapExport;
- XMLErrors* mpXMLErrors;
-
- sal_Bool mbExtended; // Does document contain extens.
-
- const enum ::xmloff::token::XMLTokenEnum meClass;
- SAL_DLLPRIVATE void _InitCtor();
-
- sal_uInt16 mnExportFlags;
- sal_uInt16 mnErrorFlags;
- bool mbEnableExperimentalOdfExport;
-
-public:
-
- const OUString msWS; // " "
-
-private:
-
- // Shapes in Writer cannot be named via context menu (#i51726#)
- SvtModuleOptions::EFactory meModelType;
- SAL_DLLPRIVATE void _DetermineModelType();
-
- SAL_DLLPRIVATE void ImplExportMeta(); // <office:meta>
- SAL_DLLPRIVATE void ImplExportSettings(); // <office:settings>
- SAL_DLLPRIVATE void ImplExportStyles( sal_Bool bUsed ); // <office:styles>
- SAL_DLLPRIVATE void ImplExportAutoStyles( sal_Bool bUsed );
- // <office:automatic-styles>
- SAL_DLLPRIVATE void ImplExportMasterStyles( sal_Bool bUsed );
- // <office:master-styles>
- SAL_DLLPRIVATE void ImplExportContent(); // <office:body>
- virtual void SetBodyAttributes();
- void GetViewSettingsAndViews(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rProps);
-
-protected:
- void setExportFlags( sal_uInt16 nExportFlags ) { mnExportFlags = nExportFlags; }
-
- // Get (modifyable) namespace map
- SvXMLNamespaceMap& _GetNamespaceMap() { return *mpNamespaceMap; }
-
- // get a new namespave map (used in starmath to have a default namespace)
- void ResetNamespaceMap();
-
- // This method can be overloaded to export the content of <office:meta>.
- // There is a default implementation.
- virtual void _ExportMeta();
-
- // This method can be overloaded to export the content of <office:scripts>.
- // There is a default implementation.
- virtual void _ExportScripts();
-
- // This method can be overloaded to export the font declarations
- // The default implementation will export the contents of the
- // XMLFontAutoStylePool if it has been created.
- virtual void _ExportFontDecls();
-
- // This method should be overloaded to export the content of <style:styles>.
- // If bUsed is set, used styles should be exported only.
- // Overloaded Methods must call this method !
- virtual void _ExportStyles( sal_Bool bUsed ) ;
-
- // This method must be overloaded to export the contents of
- // <style:auto-styles>
- virtual void _ExportAutoStyles() = 0;
-
- // This method must be overloaded to export the contents of
- // <style:master-styles>
- virtual void _ExportMasterStyles() = 0;
-
- // This method must be overloaded to export the content of <office:body>.
- virtual void _ExportContent() = 0;
-
- void SetExtended( sal_Bool bSet=sal_True ) { mbExtended = bSet; }
-
- // save linked sections? (may be false in global documents)
- sal_Bool mbSaveLinkedSections;
-
- virtual XMLTextParagraphExport* CreateTextParagraphExport();
- virtual XMLShapeExport* CreateShapeExport();
- virtual SvXMLAutoStylePoolP* CreateAutoStylePool();
- virtual SchXMLExportHelper* CreateChartExport();
- virtual XMLPageExport* CreatePageExport();
- virtual XMLFontAutoStylePool* CreateFontAutoStylePool();
- virtual xmloff::OFormLayerXMLExport* CreateFormExport();
- virtual void GetViewSettings(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps);
- virtual void GetConfigurationSettings(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aProps);
-
- struct SettingsGroup
- {
- ::xmloff::token::XMLTokenEnum eGroupName;
- ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aSettings;
-
- SettingsGroup()
- :eGroupName( ::xmloff::token::XML_TOKEN_INVALID )
- ,aSettings()
- {
- }
-
- SettingsGroup(
- const ::xmloff::token::XMLTokenEnum _eGroupName,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rSettings )
- :eGroupName( _eGroupName )
- ,aSettings( _rSettings )
- {
- }
- };
- /** returns the current document settings
-
- The default implementation will obtain the view settings by calling GetViewSettingsAndViews, and the
- configuration settings by calling GetConfigurationSettings, and return them together with the proper XML token.
-
- @return
- the accumulated count of all settings in all groups
- */
- virtual sal_Int32 GetDocumentSpecificSettings( ::std::list< SettingsGroup >& _out_rSettings );
-
- const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEmbeddedObjectResolver >& GetEmbeddedResolver() const { return mxEmbeddedResolver; }
- inline void SetEmbeddedResolver( com::sun::star::uno::Reference< com::sun::star::document::XEmbeddedObjectResolver >& _xEmbeddedResolver );
-
- const ::com::sun::star::uno::Reference< ::com::sun::star::document::XGraphicObjectResolver >& GetGraphicResolver() const { return mxGraphicResolver; }
- void SetGraphicResolver( com::sun::star::uno::Reference< com::sun::star::document::XGraphicObjectResolver >& _xGraphicResolver );
-
- void SetDocHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > &rHandler );
-
-public:
-
- SvXMLExport(
- sal_Int16 const eDefaultMeasureUnit /*css::util::MeasureUnit*/,
- const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
- const enum ::xmloff::token::XMLTokenEnum eClass = xmloff::token::XML_TOKEN_INVALID,
- sal_uInt16 nExportFlag = EXPORT_ALL );
-
- SvXMLExport(
- const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
- const OUString& rFileName,
- sal_Int16 const eDefaultMeasureUnit /*css::util::MeasureUnit*/,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler);
-
- SvXMLExport(
- const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
- const OUString& rFileName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & rHandler,
- const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > &,
- sal_Int16 const eDefaultFieldUnit );
-
- virtual ~SvXMLExport();
-
- static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
- static SvXMLExport* getImplementation( ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > ) throw();
-
- // XExporter
- virtual void SAL_CALL setSourceDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
-
- // XFilter
- virtual sal_Bool SAL_CALL filter( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor ) throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL cancel() throw(::com::sun::star::uno::RuntimeException);
-
- // XInitialization
- virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
-
- // XNamed
- virtual OUString SAL_CALL getName( ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setName( const OUString& aName ) throw (::com::sun::star::uno::RuntimeException);
-
- // XServiceInfo
- virtual OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
-
- // XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
-
- /** ensures that the given namespace is in scope at the next started
- element.
-
- <p>If the namespace is not yet declared, the necessary attribute will
- be added, as well.</p>
-
- @param i_rNamespace the namespace to be declared
- @param i_rPreferredPrefix (opt.) preferred prefix for the namespace
-
- @returns the actual prefix that the namespace is associated with
- */
- OUString EnsureNamespace(OUString const & i_rNamespace,
- OUString const & i_rPreferredPrefix = OUString("gen") );
-
- // Check if common attribute list is empty.
-#ifndef DBG_UTIL
- void CheckAttrList() {}
-#else
- void CheckAttrList();
-#endif
-
- // Clear common attribute list.
- void ClearAttrList();
-
- // Add an attribute to the common attribute list.
- void AddAttributeASCII( sal_uInt16 nPrefix, const sal_Char *pName,
- const sal_Char *pValue );
- void AddAttribute( sal_uInt16 nPrefix, const sal_Char *pName,
- const OUString& rValue );
- void AddAttribute( sal_uInt16 nPrefix, const OUString& rName,
- const OUString& rValue );
- void AddAttribute( sal_uInt16 nPrefix,
- enum ::xmloff::token::XMLTokenEnum eName,
- const OUString& rValue );
- void AddAttribute( sal_uInt16 nPrefix,
- enum ::xmloff::token::XMLTokenEnum eName,
- enum ::xmloff::token::XMLTokenEnum eValue );
- void AddAttribute( const OUString& rQName,
- const OUString& rValue );
- void AddAttribute( const OUString& rQName,
- enum ::xmloff::token::XMLTokenEnum eValue );
- // add several attributes to the common attribute list
- void AddAttributeList( const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
-
- // Get common attribute list as implementation or interface.
- SvXMLAttributeList &GetAttrList() { return *mpAttrList; }
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & GetXAttrList() { return mxAttrList; }
-
- // Get document handler. This methods are not const, because the
- // reference allowes modifications through the handler.
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > & GetDocHandler() { return mxHandler; }
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XExtendedDocumentHandler > & GetExtDocHandler()
- {
- return mxExtHandler;
- }
-
- // Get original ::com::sun::star::util::URL.
- const OUString& GetOrigFileName() const { return msOrigFileName; }
-
- // Get (const) namespace map.
- const SvXMLNamespaceMap& GetNamespaceMap() const { return *mpNamespaceMap; }
-
- // Get unit converter
- const SvXMLUnitConverter& GetMM100UnitConverter() const { return *mpUnitConv; }
-
- SvXMLUnitConverter& GetMM100UnitConverter() { return *mpUnitConv; }
-
- void addChaffWhenEncryptedStorage();
-
- // Export the document.
- virtual sal_uInt32 exportDoc( enum ::xmloff::token::XMLTokenEnum eClass = ::xmloff::token::XML_TOKEN_INVALID );
-
- virtual void addDataStyle(const sal_Int32 nNumberFormat, sal_Bool bTimeFormat = sal_False );
- virtual void exportDataStyles();
- virtual void exportAutoDataStyles();
- virtual OUString getDataStyleName(const sal_Int32 nNumberFormat, sal_Bool bTimeFormat = sal_False ) const;
- sal_Int32 dataStyleForceSystemLanguage(sal_Int32 nFormat) const;
-
- virtual void exportAnnotationMeta( const com::sun::star::uno::Reference < com::sun::star::drawing::XShape >& xShape);
-
- // Get XModel
- const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > &
- GetModel() const { return mxModel; }
- // Get XNumberFormatsSupplier
- ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & GetNumberFormatsSupplier() { return mxNumberFormatsSupplier; }
- inline void SetNumberFormatsSupplier(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >& _xNumberFormatSupplier)
- {
- mxNumberFormatsSupplier = _xNumberFormatSupplier;
- if ( mxNumberFormatsSupplier.is() && mxHandler.is() )
- mpNumExport = new SvXMLNumFmtExport(*this, mxNumberFormatsSupplier);
- }
-
- // get export helper for text
- inline UniReference< XMLTextParagraphExport > GetTextParagraphExport();
-
- // get export helper for shapes
- inline UniReference< XMLShapeExport > GetShapeExport();
-
- // get auto style pool
- inline UniReference< SvXMLAutoStylePoolP > GetAutoStylePool();
-
- // get Page Export
- inline UniReference< XMLPageExport > GetPageExport();
-
- // get chart export helper
- inline UniReference< SchXMLExportHelper > GetChartExport();
-
- // get font auto style pool
- inline UniReference< XMLFontAutoStylePool > GetFontAutoStylePool();
-
- ProgressBarHelper* GetProgressBarHelper();
-
- // get Formlayer Export
- inline UniReference< xmloff::OFormLayerXMLExport > GetFormExport();
- inline bool HasFormExport();
-
- // get XPropertySet with export information
- inline ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getExportInfo() const { return mxExportInfo; }
-
- com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator > GetStatusIndicator() { return mxStatusIndicator; }
-
- /// get Event export, with handlers for script types "None" and
- /// "StarBasic" already registered; other handlers may be registered, too.
- XMLEventExport& GetEventExport();
-
- /// get the export for image maps
- XMLImageMapExport& GetImageMapExport();
-
- OUString AddEmbeddedGraphicObject(
- const OUString& rGraphicObjectURL );
- sal_Bool AddEmbeddedGraphicObjectAsBase64(
- const OUString& rGraphicObjectURL );
-
- OUString AddEmbeddedObject(
- const OUString& rEmbeddedObjectURL );
- sal_Bool AddEmbeddedObjectAsBase64(
- const OUString& rEmbeddedObjectURL );
-
- OUString EncodeStyleName( const OUString& rName,
- sal_Bool *pEncoded=0 ) const;
-
- // save linked sections?
- inline sal_Bool IsSaveLinkedSections() { return mbSaveLinkedSections; }
-
- // get export flags
- sal_uInt16 getExportFlags() const { return mnExportFlags; }
-
- sal_Bool ExportEmbeddedOwnObject(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XComponent >& rComp );
-
- OUString GetRelativeReference(const OUString& rValue);
-
- // methods for accessing the document handler and handling SAX errors
- void StartElement(sal_uInt16 nPrefix,
- enum ::xmloff::token::XMLTokenEnum eName,
- sal_Bool bIgnWSOutside );
- void StartElement(const OUString& rName,
- sal_Bool bIgnWSOutside );
- void Characters(const OUString& rChars);
- void EndElement(sal_uInt16 nPrefix,
- enum ::xmloff::token::XMLTokenEnum eName,
- sal_Bool bIgnWSInside );
- void EndElement(const OUString& rName,
- sal_Bool bIgnWSInside );
- void IgnorableWhitespace();
-
- /**
- * Record an error condition that occurred during export. The
- * behavior of SetError can be modified using the error flag
- * constants.
- */
- void SetError(
- /// error ID, may contain an error flag
- sal_Int32 nId,
- /// string parameters for the error message
- const ::com::sun::star::uno::Sequence< OUString> & rMsgParams,
- /// original exception message (if applicable)
- const OUString& rExceptionMessage,
- /// error location (if applicable)
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XLocator> & rLocator );
-
- void SetError(
- sal_Int32 nId,
- const ::com::sun::star::uno::Sequence< OUString> & rMsgParams);
-
- /** return current error flags (logical 'or' of all error flags so far) */
- sal_uInt16 GetErrorFlags() { return mnErrorFlags; }
-
- virtual void DisposingModel();
-
- ::comphelper::UnoInterfaceToUniqueIdentifierMapper& getInterfaceToIdentifierMapper();
-
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > getComponentContext();
-
- // Shapes in Writer cannot be named via context menu (#i51726#)
- SvtModuleOptions::EFactory GetModelType() const
- {
- return meModelType;
- }
-
- // Written OpenDocument file format doesn't fit to the created text document (#i69627#)
- sal_Bool writeOutlineStyleAsNormalListStyle() const;
- bool isExperimentalOdfExportEnabled() const { return mbEnableExperimentalOdfExport; }
-
- ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > GetTargetStorage();
-
- /// returns the currently configured default version for odf export
- SvtSaveOptions::ODFDefaultVersion getDefaultVersion() const;
-
- /// name of stream in package, e.g., "content.xml"
- OUString GetStreamName() const;
-
- // FIXME: this is only for legacy stuff that has not yet been adapted
- // to implement XMetadatable; this can write duplicate IDs!
- /// add xml:id and legacy namespace id
- void SAL_DLLPRIVATE AddAttributeIdLegacy(
- sal_uInt16 const nLegacyPrefix, OUString const& rValue);
-
- /// add xml:id attribute (for RDF metadata)
- void AddAttributeXmlId(::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface> const & i_xIfc);
-
- /// add RDFa attributes for a metadatable text content
- void AddAttributesRDFa( ::com::sun::star::uno::Reference<
- ::com::sun::star::text::XTextContent> const & i_xTextContent);
-
- sal_Bool exportTextNumberElement() const;
-
- /// set null date from model to unit converter, if not already done
- sal_Bool SetNullDateOnUnitConverter();
-};
-
-inline UniReference< XMLTextParagraphExport > SvXMLExport::GetTextParagraphExport()
-{
- if( !mxTextParagraphExport.is() )
- mxTextParagraphExport = CreateTextParagraphExport();
-
- return mxTextParagraphExport;
-}
-
-inline UniReference< XMLShapeExport > SvXMLExport::GetShapeExport()
-{
- if( !mxShapeExport.is() )
- mxShapeExport = CreateShapeExport();
-
- return mxShapeExport;
-}
-
-inline UniReference< SvXMLAutoStylePoolP > SvXMLExport::GetAutoStylePool()
-{
- if( !mxAutoStylePool.is() )
- mxAutoStylePool = CreateAutoStylePool();
-
- return mxAutoStylePool;
-}
-
-inline UniReference< SchXMLExportHelper > SvXMLExport::GetChartExport()
-{
- if( !mxChartExport.is() )
- mxChartExport = CreateChartExport();
-
- return mxChartExport;
-}
-
-inline UniReference< XMLPageExport > SvXMLExport::GetPageExport()
-{
- if( !mxPageExport.is() )
- mxPageExport = CreatePageExport();
-
- return mxPageExport;
-}
-
-inline UniReference< XMLFontAutoStylePool > SvXMLExport::GetFontAutoStylePool()
-{
- if( !mxFontAutoStylePool.is() )
- mxFontAutoStylePool = CreateFontAutoStylePool();
-
- return mxFontAutoStylePool;
-}
-
-inline UniReference< xmloff::OFormLayerXMLExport > SvXMLExport::GetFormExport()
-{
- if( !mxFormExport.is() )
- mxFormExport = CreateFormExport();
-
- return mxFormExport;
-}
-
-inline bool SvXMLExport::HasFormExport()
-{
- return mxFormExport.is();
-}
-
-inline void SvXMLExport::SetEmbeddedResolver(
- com::sun::star::uno::Reference< com::sun::star::document::XEmbeddedObjectResolver >& _xEmbeddedResolver )
-{
- mxEmbeddedResolver = _xEmbeddedResolver;
-}
-
-inline void SvXMLExport::SetGraphicResolver(
- com::sun::star::uno::Reference< com::sun::star::document::XGraphicObjectResolver >& _xGraphicResolver )
-{
- mxGraphicResolver = _xGraphicResolver;
-}
-
-// Helper class to export an element.
-class XMLOFF_DLLPUBLIC SvXMLElementExport
-{
- SvXMLExport& rExport;
- OUString aName;
- sal_Bool bIgnWS : 1;
- sal_Bool bDoSomething : 1;
-
- SAL_DLLPRIVATE void StartElement( SvXMLExport& rExp, sal_uInt16 nPrefix,
- const OUString& rName,
- sal_Bool bIgnWSOutside );
-
-public:
-
- // The constructor prints a start tag that has the common attributes
- // of the XMLExport instance attached.
- SvXMLElementExport( SvXMLExport& rExp, sal_uInt16 nPrefix,
- const sal_Char *pName,
- sal_Bool bIgnWSOutside, sal_Bool bIgnWSInside );
- SvXMLElementExport( SvXMLExport& rExp, sal_uInt16 nPrefix,
- const OUString& rName,
- sal_Bool bIgnWSOutside, sal_Bool bIgnWSInside );
- SvXMLElementExport( SvXMLExport& rExp, sal_uInt16 nPrefix,
- enum ::xmloff::token::XMLTokenEnum eName,
- sal_Bool bIgnWSOutside, sal_Bool bIgnWSInside );
- SvXMLElementExport( SvXMLExport& rExp, const OUString& rQName,
- sal_Bool bIgnWSOutside, sal_Bool bIgnWSInside );
-
- // Thes constructors do nothing if bDoSomething is not set
- SvXMLElementExport( SvXMLExport& rExp, sal_Bool bDoSomething,
- sal_uInt16 nPrefix,
- enum ::xmloff::token::XMLTokenEnum eName,
- sal_Bool bIgnWSOutside, sal_Bool bIgnWSInside );
-
- // The destructor prints an end tag.
- ~SvXMLElementExport();
-};
-
-#endif // _XMLOFF_SVXMLEXP_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xmlexppr.hxx b/xmloff/inc/xmloff/xmlexppr.hxx
deleted file mode 100644
index 7e7bb7658903..000000000000
--- a/xmloff/inc/xmloff/xmlexppr.hxx
+++ /dev/null
@@ -1,188 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLEXPPR_HXX
-#define _XMLOFF_XMLEXPPR_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include <xmloff/xmlprmap.hxx>
-#include <xmloff/uniref.hxx>
-
-
-class SvXMLUnitConverter;
-class SvXMLAttributeList;
-class SvXMLNamespaceMap;
-class FilterPropertiesInfos_Impl;
-class SvXMLExport;
-
-#define XML_EXPORT_FLAG_DEFAULTS 0x0001 // export also default items
-#define XML_EXPORT_FLAG_DEEP 0x0002 // export also items from
- // parent item sets
-#define XML_EXPORT_FLAG_EMPTY 0x0004 // export attribs element
- // even if its empty
-#define XML_EXPORT_FLAG_IGN_WS 0x0008
-
-class XMLOFF_DLLPUBLIC SvXMLExportPropertyMapper : public UniRefBase
-{
- UniReference< SvXMLExportPropertyMapper> mxNextMapper;
-
- FilterPropertiesInfos_Impl *pCache;
-
-protected:
- UniReference< XMLPropertySetMapper > maPropMapper;
-
- OUString maStyleName;
-
- /** Filter all properties we don't want to export:
- Take all properties of the XPropertySet which are also found in the
- XMLPropertyMapEntry-array and which are not set directly (so, the value isn't
- default and isn't inherited, apart from bDefault is true)
- After this process It'll called 'Contextfilter' for application-specific
- filter-processes. */
- ::std::vector< XMLPropertyState > _Filter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > rPropSet,
- const sal_Bool bDefault ) const;
-
- /** Application-specific filter. By default do nothing. */
- virtual void ContextFilter(
- ::std::vector< XMLPropertyState >& rProperties,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > rPropSet ) const;
-
- /** fills the given attribute list with the items in the given set */
- void _exportXML( sal_uInt16 nPropType, sal_uInt16& rPropTypeFlags,
- SvXMLAttributeList& rAttrList,
- const ::std::vector< XMLPropertyState >& rProperties,
- const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap,
- sal_uInt16 nFlags,
- std::vector<sal_uInt16>* pIndexArray,
- sal_Int32 nPropMapStartIdx, sal_Int32 nPropMapEndIdx ) const;
-
- void _exportXML( SvXMLAttributeList& rAttrList,
- const XMLPropertyState& rProperty,
- const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap,
- sal_uInt16 nFlags,
- const ::std::vector< XMLPropertyState > *pProperties = 0,
- sal_uInt32 nIdx = 0 ) const;
-
- void exportElementItems(
- SvXMLExport& rExport,
- const ::std::vector< XMLPropertyState >& rProperties,
- sal_uInt16 nFlags,
- const std::vector<sal_uInt16>& rIndexArray ) const;
-
-public:
-
- SvXMLExportPropertyMapper(
- const UniReference< XMLPropertySetMapper >& rMapper );
- virtual ~SvXMLExportPropertyMapper();
-
- // Add a ExportPropertyMapper at the end of the import mapper chain.
- // The added mapper MUST not be used outside the Mapper chain any longer,
- // because its PropertyMapper will be replaced.
- void ChainExportMapper(
- const UniReference< SvXMLExportPropertyMapper>& rMapper );
-
- /** Filter all properties we don't want to export:
- Take all properties of the XPropertySet which are also found in the
- XMLPropertyMapEntry-array and which are not set directly (so, the value isn't
- default and isn't inherited)
- After this process It'll called 'Contextfilter' for application-specific
- filter-processes. */
- ::std::vector< XMLPropertyState > Filter(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > rPropSet ) const
- { return _Filter(rPropSet, sal_False); }
-
- /** Like Filter(), except that:
- * - only properties that have the map flag MID_FLAG_DEFAULT_ITEM_EXPORT
- * set are exported,
- * - instead of the property's value, its default value is exported.
- */
- ::std::vector< XMLPropertyState > FilterDefaults(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > rPropSet ) const
- { return _Filter(rPropSet, sal_True); }
-
- /** Compare to arrays of XMLPropertyState */
- sal_Bool Equals( const ::std::vector< XMLPropertyState >& aProperties1,
- const ::std::vector< XMLPropertyState >& aProperties2 ) const;
-
- /** fills the given attribute list with the items in the given set */
- void exportXML(
- SvXMLAttributeList& rAttrList,
- const ::std::vector< XMLPropertyState >& rProperties,
- const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap,
- sal_uInt16 nFlags = 0 ) const;
- /** like above but only properties whose property map index is within the
- specified range are exported */
- void exportXML(
- SvXMLAttributeList& rAttrList,
- const ::std::vector< XMLPropertyState >& rProperties,
- const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap,
- sal_Int32 nPropMapStartIdx, sal_Int32 nPropMapEndIdx,
- sal_uInt16 nFlags = 0 ) const;
-
- void exportXML(
- SvXMLExport& rExport,
- const ::std::vector< XMLPropertyState >& rProperties,
- sal_uInt16 nFlags = 0 ) const;
-
- /** like above but only properties whose property map index is within the
- specified range are exported */
- void exportXML(
- SvXMLExport& rExport,
- const ::std::vector< XMLPropertyState >& rProperties,
- sal_Int32 nPropMapStartIdx, sal_Int32 nPropMapEndIdx,
- sal_uInt16 nFlags = 0 ) const;
-
- /** this method is called for every item that has the
- MID_FLAG_ELEMENT_EXPORT flag set */
- virtual void handleElementItem(
- SvXMLExport& rExport,
- const XMLPropertyState& rProperty,
- sal_uInt16 nFlags,
- const ::std::vector< XMLPropertyState > *pProperties = 0,
- sal_uInt32 nIdx = 0 ) const;
-
- /** this method is called for every item that has the
- MID_FLAG_SPECIAL_ITEM_EXPORT flag set */
- virtual void handleSpecialItem(
- SvXMLAttributeList& rAttrList,
- const XMLPropertyState& rProperty,
- const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap,
- const ::std::vector< XMLPropertyState > *pProperties = 0,
- sal_uInt32 nIdx = 0 ) const;
-
- inline const UniReference< XMLPropertySetMapper >&
- getPropertySetMapper() const { return maPropMapper; }
-
- void SetStyleName( const OUString& rStyleName ) { maStyleName = rStyleName; }
-};
-
-#endif // _XMLOFF_XMLEXPPR_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xmlictxt.hxx b/xmloff/inc/xmloff/xmlictxt.hxx
deleted file mode 100644
index 37903e4b4f8a..000000000000
--- a/xmloff/inc/xmloff/xmlictxt.hxx
+++ /dev/null
@@ -1,101 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLICTXT_HXX
-#define _XMLOFF_XMLICTXT_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <com/sun/star/xml/sax/XAttributeList.hpp>
-#include <tools/solar.h>
-#include <tools/ref.hxx>
-#include <rtl/ustring.hxx>
-#include <tools/rtti.hxx>
-
-class SvXMLNamespaceMap;
-class SvXMLImport;
-
-class XMLOFF_DLLPUBLIC SvXMLImportContext : public SvRefBase
-{
- friend class SvXMLImport;
-
- SvXMLImport& mrImport;
-
- sal_uInt16 mnPrefix;
- OUString maLocalName;
-
- SvXMLNamespaceMap *mpRewindMap;
-
- SAL_DLLPRIVATE SvXMLNamespaceMap *GetRewindMap() const
- { return mpRewindMap; }
- SAL_DLLPRIVATE void SetRewindMap( SvXMLNamespaceMap *p ) { mpRewindMap = p; }
-
-protected:
-
- SvXMLImport& GetImport() { return mrImport; }
- const SvXMLImport& GetImport() const { return mrImport; }
-
-public:
- TYPEINFO();
-
- sal_uInt16 GetPrefix() const { return mnPrefix; }
- const OUString& GetLocalName() const { return maLocalName; }
-
- // A contexts constructor does anything that is required if an element
- // starts. Namespace processing has been done already.
- // Note that virtual methods cannot be used inside constructors. Use
- // StartElement instead if this is required.
- SvXMLImportContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
- const OUString& rLName );
-
- // A contexts destructor does anything that is required if an element
- // ends. By default, nothing is done.
- // Note that virtual methods cannot be used inside destructors. Use
- // EndElement instead if this is required.
- virtual ~SvXMLImportContext();
-
- // Create a children element context. By default, the import's
- // CreateContext method is called to create a new default context.
- virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
-
- // StartElement is called after a context has been constructed and
- // before a elements context is parsed. It may be used for actions that
- // require virtual methods. The default is to do nothing.
- virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
-
- // EndElement is called before a context will be destructed, but
- // after a elements context has been parsed. It may be used for actions
- // that require virtual methods. The default is to do nothing.
- virtual void EndElement();
-
- // This method is called for all characters that are contained in the
- // current element. The default is to ignore them.
- virtual void Characters( const OUString& rChars );
-};
-
-SV_DECL_REF( SvXMLImportContext )
-SV_IMPL_REF( SvXMLImportContext )
-
-
-#endif // _XMLOFF_XMLICTXT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xmlimp.hxx b/xmloff/inc/xmloff/xmlimp.hxx
deleted file mode 100644
index 750f56725aaf..000000000000
--- a/xmloff/inc/xmloff/xmlimp.hxx
+++ /dev/null
@@ -1,525 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _XMLOFF_XMLIMP_HXX
-#define _XMLOFF_XMLIMP_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <com/sun/star/embed/XStorage.hpp>
-#include <com/sun/star/xml/sax/SAXParseException.hpp>
-#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
-#include <com/sun/star/xml/sax/SAXException.hpp>
-#include <com/sun/star/xml/sax/XAttributeList.hpp>
-#include <com/sun/star/xml/sax/XLocator.hpp>
-#include <com/sun/star/lang/XUnoTunnel.hpp>
-#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
-#include <com/sun/star/container/XNameContainer.hpp>
-#include <com/sun/star/lang/XInitialization.hpp>
-#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/document/XImporter.hpp>
-#include <com/sun/star/document/XFilter.hpp>
-#include <com/sun/star/document/XGraphicObjectResolver.hpp>
-#include <com/sun/star/document/XEmbeddedObjectResolver.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/uno/XComponentContext.hpp>
-#include <cppuhelper/weak.hxx>
-#include <xmloff/txtimp.hxx>
-#include <xmloff/shapeimport.hxx>
-#include <xmloff/SchXMLImportHelper.hxx>
-#include <xmloff/ProgressBarHelper.hxx>
-#include <cppuhelper/implbase6.hxx>
-#include <xmloff/formlayerimport.hxx>
-
-#include <com/sun/star/beans/NamedValue.hpp>
-
-namespace com { namespace sun { namespace star {
- namespace frame { class XModel; }
- namespace io { class XOutputStream; }
- namespace rdf { class XMetadatable; }
-} } }
-namespace comphelper { class UnoInterfaceToUniqueIdentifierMapper; }
-
-class SvXMLNamespaceMap;
-class SvXMLImportContext;
-class SvXMLImportContexts_Impl;
-class SvXMLImport_Impl;
-class SvXMLUnitConverter;
-class SvXMLNumFmtHelper;
-class XMLFontStylesContext;
-class XMLEventImportHelper;
-class XMLErrors;
-class StyleMap;
-
-namespace xmloff {
- class RDFaImportHelper;
-}
-
-#define IMPORT_META 0x0001
-#define IMPORT_STYLES 0x0002
-#define IMPORT_MASTERSTYLES 0x0004
-#define IMPORT_AUTOSTYLES 0x0008
-#define IMPORT_CONTENT 0x0010
-#define IMPORT_SCRIPTS 0x0020
-#define IMPORT_SETTINGS 0x0040
-#define IMPORT_FONTDECLS 0x0080
-#define IMPORT_EMBEDDED 0x0100
-#define IMPORT_OOO_NAMESPACES 0x0100
-#define IMPORT_ALL 0xffff
-
-
-
-class XMLOFF_DLLPUBLIC SvXMLImport : public ::cppu::WeakImplHelper6<
- ::com::sun::star::xml::sax::XExtendedDocumentHandler,
- ::com::sun::star::lang::XServiceInfo,
- ::com::sun::star::lang::XInitialization,
- ::com::sun::star::document::XImporter,
- ::com::sun::star::document::XFilter,
- ::com::sun::star::lang::XUnoTunnel>
-{
- friend class SvXMLImportContext;
-
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XLocator > mxLocator;
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
- ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > mxNumberFormatsSupplier;
- ::com::sun::star::uno::Reference< ::com::sun::star::document::XGraphicObjectResolver > mxGraphicResolver;
- ::com::sun::star::uno::Reference< ::com::sun::star::document::XEmbeddedObjectResolver > mxEmbeddedResolver;
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxImportInfo;
-
- UniReference< XMLTextImportHelper > mxTextImport;
- UniReference< XMLShapeImportHelper > mxShapeImport;
- UniReference< SchXMLImportHelper > mxChartImport;
- UniReference< ::xmloff::OFormLayerXMLImport > mxFormImport;
-
- SvXMLImportContextRef mxFontDecls;
- SvXMLImportContextRef mxStyles;
- SvXMLImportContextRef mxAutoStyles;
- SvXMLImportContextRef mxMasterStyles;
-
- ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > mxGradientHelper;
- ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > mxHatchHelper;
- ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > mxBitmapHelper;
- ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > mxTransGradientHelper;
- ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > mxMarkerHelper;
- ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > mxDashHelper;
- ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > mxNumberStyles;
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > mxEventListener;
-
- SvXMLImport_Impl *mpImpl; // dummy
-
- SvXMLNamespaceMap *mpNamespaceMap;
- SvXMLUnitConverter *mpUnitConv;
- SvXMLImportContexts_Impl *mpContexts;
- SvXMLNumFmtHelper *mpNumImport;
- ProgressBarHelper *mpProgressBarHelper;
- XMLEventImportHelper *mpEventImportHelper;
- XMLErrors *mpXMLErrors;
- StyleMap *mpStyleMap;
- OUString msPackageProtocol;
-
- SAL_DLLPRIVATE void _InitCtor();
-
- sal_uInt16 mnImportFlags;
- sal_uInt16 mnErrorFlags;
- std::set< OUString > embeddedFontUrlsKnown;
-
-protected:
-
- ::com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator > mxStatusIndicator;
- sal_Bool mbIsFormsSupported;
- bool mbIsTableShapeSupported;
- bool mbIsGraphicLoadOnDemandSupported;
-
- // This method is called after the namespace map has been updated, but
- // before a context for the current element has been pushed.
- virtual SvXMLImportContext *CreateContext( sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
-
- virtual XMLTextImportHelper* CreateTextImport();
- inline void ClearTextImport() { mxTextImport = 0; }
- virtual XMLShapeImportHelper* CreateShapeImport();
- inline sal_Bool HasShapeImport() const { return mxShapeImport.is(); }
- inline void ClearShapeImport() { mxShapeImport = 0; }
-
- virtual SchXMLImportHelper* CreateChartImport();
- virtual ::xmloff::OFormLayerXMLImport* CreateFormImport();
-
- void SetFontDecls( XMLFontStylesContext *pFontDecls );
- void SetStyles( SvXMLStylesContext *pStyles );
- void SetAutoStyles( SvXMLStylesContext *pAutoStyles );
- void SetMasterStyles( SvXMLStylesContext *pMasterStyles );
-
- sal_Bool IsODFVersionConsistent( const OUString& aODFVersion );
-
- const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEmbeddedObjectResolver >& GetEmbeddedResolver() const { return mxEmbeddedResolver; }
- inline void SetEmbeddedResolver( com::sun::star::uno::Reference< com::sun::star::document::XEmbeddedObjectResolver >& _xEmbeddedResolver );
-
- const ::com::sun::star::uno::Reference< ::com::sun::star::document::XGraphicObjectResolver >& GetGraphicResolver() const { return mxGraphicResolver; }
- void SetGraphicResolver( com::sun::star::uno::Reference< com::sun::star::document::XGraphicObjectResolver >& _xGraphicResolver );
-
-
- void _CreateNumberFormatsSupplier();
- void _CreateDataStylesImport();
-
-public:
- // #110680#
- // SvXMLImport( sal_uInt16 nImportFlags = IMPORT_ALL ) throw();
- SvXMLImport(
- const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
- sal_uInt16 nImportFlags = IMPORT_ALL ) throw();
-
- virtual ~SvXMLImport() throw();
-
- static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
-
- // ::com::sun::star::xml::sax::XDocumentHandler
- virtual void SAL_CALL startDocument(void)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL endDocument(void)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL startElement(const OUString& aName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttribs)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL endElement(const OUString& aName)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL characters(const OUString& aChars)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL ignorableWhitespace(const OUString& aWhitespaces)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL processingInstruction(const OUString& aTarget,
- const OUString& aData)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL setDocumentLocator(const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XLocator > & xLocator)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
-
- // ::com::sun::star::xml::sax::XExtendedDocumentHandler
- virtual void SAL_CALL startCDATA(void) throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL endCDATA(void) throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL comment(const OUString& sComment)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL allowLineBreak(void)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL unknown(const OUString& sString)
- throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
-
- // XImporter
- virtual void SAL_CALL setTargetDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
-
- // XFilter
- virtual sal_Bool SAL_CALL filter( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL cancel( ) throw (::com::sun::star::uno::RuntimeException);
-
- // XInitialization
- virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
-
- // XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
-
- // XServiceInfo
- virtual OUString SAL_CALL getImplementationName( )
- throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
- throw(::com::sun::star::uno::RuntimeException);
-
- // may be called by certain subclasses that handle document meta-data
- // override to provide customized handling of document statistics
- // the base class implementation initializes the progress bar and should
- // be called by overriding methods
- virtual void SetStatistics(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > & i_rStats);
-
- // get import helper for text
- inline UniReference< XMLTextImportHelper > GetTextImport();
- sal_Bool HasTextImport() const { return mxTextImport.is(); }
- inline SvXMLNumFmtHelper* GetDataStylesImport();
-
- // get import helper for shapes
- inline UniReference< XMLShapeImportHelper > GetShapeImport();
-
- // get import helper for charts
- inline UniReference< SchXMLImportHelper > GetChartImport();
-
- // get import helper for form layer
- inline UniReference< ::xmloff::OFormLayerXMLImport > GetFormImport();
-
- // get XPropertySet with import information
- inline ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getImportInfo() const { return mxImportInfo; }
-
- // get import helper for events
- XMLEventImportHelper& GetEventImport();
-
- SvXMLNamespaceMap& GetNamespaceMap() { return *mpNamespaceMap; }
- const SvXMLNamespaceMap& GetNamespaceMap() const { return *mpNamespaceMap; }
- const SvXMLUnitConverter& GetMM100UnitConverter() const { return *mpUnitConv; }
- SvXMLUnitConverter& GetMM100UnitConverter() { return *mpUnitConv; }
- const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XLocator > & GetLocator() const { return mxLocator; }
- const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > &
- GetModel() const { return mxModel; }
-
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > & GetGradientHelper();
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > & GetHatchHelper();
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > & GetBitmapHelper();
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > & GetTransGradientHelper();
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > & GetMarkerHelper();
- const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > & GetDashHelper();
- inline ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & GetNumberFormatsSupplier();
- inline void SetNumberFormatsSupplier(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >& _xNumberFormatSupplier)
- {
- mxNumberFormatsSupplier = _xNumberFormatSupplier;
- }
-
- // Convert a local packe URL into either a graphic manager or a
- // internal package URL. The later one happens only if bLoadURL is true
- OUString ResolveGraphicObjectURL( const OUString& rURL, sal_Bool bLoadOnDemand );
- ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >
- GetStreamForGraphicObjectURLFromBase64();
- OUString ResolveGraphicObjectURLFromBase64(
- const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& rOut );
-
- sal_Bool IsPackageURL( const OUString& rURL ) const;
- OUString ResolveEmbeddedObjectURL( const OUString& rURL,
- const OUString& rClassId );
- ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >
- GetStreamForEmbeddedObjectURLFromBase64();
- OUString ResolveEmbeddedObjectURLFromBase64();
-
- // get source storage we're importing from (if available)
- ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >
- GetSourceStorage();
-
- void AddStyleDisplayName( sal_uInt16 nFamily,
- const OUString& rName,
- const OUString& rDisplayName );
- OUString GetStyleDisplayName( sal_uInt16 nFamily,
- const OUString& rName ) const;
-
- ProgressBarHelper* GetProgressBarHelper();
-
- void AddNumberStyle(sal_Int32 nKey, const OUString& sName);
-
- virtual void SetViewSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aViewProps);
- virtual void SetConfigurationSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aConfigProps);
- virtual void SetDocumentSpecificSettings(const OUString& _rSettingsGroupName,
- const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& _rSettings);
-
- XMLFontStylesContext *GetFontDecls();
- SvXMLStylesContext *GetStyles();
- SvXMLStylesContext *GetAutoStyles();
- const XMLFontStylesContext *GetFontDecls() const;
- const SvXMLStylesContext *GetStyles() const;
- const SvXMLStylesContext *GetAutoStyles() const;
-
- sal_uInt16 getImportFlags() const { return mnImportFlags; }
- sal_Bool IsFormsSupported() const { return mbIsFormsSupported; }
- OUString GetAbsoluteReference(const OUString& rValue) const;
-
- sal_Unicode ConvStarBatsCharToStarSymbol( sal_Unicode c );
- sal_Unicode ConvStarMathCharToStarSymbol( sal_Unicode c );
-
- bool IsTableShapeSupported() const { return mbIsTableShapeSupported; }
-
- OUString GetODFVersion() const;
-
- /**
- * Record an error condition that occurred during import. The
- * behavior of SetError can be modified using the error flag
- * constants.
- */
- void SetError(
- /// error ID, may contain an error flag
- sal_Int32 nId,
- /// string parameters for the error message
- const ::com::sun::star::uno::Sequence< OUString > & rMsgParams,
- /// original exception message (if applicable)
- const OUString& rExceptionMessage,
- /// error location (if applicable)
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XLocator> & rLocator );
-
- void SetError(
- sal_Int32 nId,
- const ::com::sun::star::uno::Sequence< OUString> & rMsgParams);
-
- void SetError( sal_Int32 nId );
- void SetError( sal_Int32 nId, const OUString& rMsg1 );
- void SetError( sal_Int32 nId, const OUString& rMsg1,
- const OUString& rMsg2 );
-
- /** return current error flags */
- sal_uInt16 GetErrorFlags() { return mnErrorFlags; }
-
- virtual void DisposingModel();
-
- ::comphelper::UnoInterfaceToUniqueIdentifierMapper& getInterfaceToIdentifierMapper();
-
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
- GetComponentContext() const;
-
- // Convert drawing object positions from OOo file format to OASIS file format and vice versa (#i28749#)
- sal_Bool IsShapePositionInHoriL2R() const;
-
- sal_Bool IsTextDocInOOoFileFormat() const;
-
- OUString GetBaseURL() const;
- OUString GetDocumentBase() const;
-
- /// name of stream in package, e.g., "content.xml"
- OUString GetStreamName() const;
-
- /// set the XmlId attribute of given UNO object (for RDF metadata)
- void SetXmlId(::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface> const & i_xIfc,
- OUString const & i_rXmlId);
-
- /// Add a RDFa statement; parameters are XML attribute values
- void AddRDFa( ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XMetadatable> i_xObject,
- OUString const & i_rAbout,
- OUString const & i_rProperty,
- OUString const & i_rContent,
- OUString const & i_rDatatype);
-
- /// do not dllexport this; only for advanced cases (bookmark-start)
- SAL_DLLPRIVATE ::xmloff::RDFaImportHelper & GetRDFaImportHelper();
-
- // #i31958# XForms helper method
- // (to be implemented by applications suporting XForms)
- virtual void initXForms();
-
- /** returns the upd and build id (f.e. "680m124$Build-8964" gives rMaster = 680 and rBuild = 8964)
- from the metafile.
- this only works if the meta.xml was already imported and the
- import propertyset contains the string property "BuildId".
- If false is returned the build ids are not available (yet).
- **/
- bool getBuildIds( sal_Int32& rUPD, sal_Int32& rBuild ) const;
-
- static const sal_uInt16 OOo_1x = 10;
- static const sal_uInt16 OOo_2x = 20;
- static const sal_uInt16 OOo_30x = 30;
- static const sal_uInt16 OOo_31x = 31;
- static const sal_uInt16 OOo_32x = 32;
- static const sal_uInt16 OOo_33x = 33;
- static const sal_uInt16 OOo_34x = 34;
- static const sal_uInt16 LO_flag = 0x100;
- static const sal_uInt16 LO_3x = 30 | LO_flag;
- static const sal_uInt16 LO_4x = 40 | LO_flag;
- static const sal_uInt16 ProductVersionUnknown = SAL_MAX_UINT16;
-
- /** depending on whether the generator version indicates LO, compare
- against either the given LO or given OOo version */
- bool isGeneratorVersionOlderThan(
- sal_uInt16 const nOOoVersion, sal_uInt16 const nLOVersion);
-
- /** this checks the build ID and returns
-
- * OOo_1x for files created with OpenOffice.org 1.x or StarOffice 7 (this also includes binary import over binfilter)
- * OOo_2x for files created with OpenOffice.org 2.x or StarOffice 8
- * OOo_30x for files created with OpenOffice.org 3.0/3.0.1 or StarOffice 9/9 PU01
- * OOo_31x for files created with OpenOffice.org 3.1/3.1.1 or StarOffice 9 PU02/9 PU03
- * OOo_32x for files created with OpenOffice.org 3.2/3.2.1 or StarOffice 9 PU04 or Oracle Open Office 3.2.1
- * OOo_33x for files created with OpenOffice.org 3.3 (and minors) or Oracle Open Office 3.3 (and minors)
- * OOo_34x for files created with OpenOffice.org 3.4 Beta or Oracle Open Office 3.4 Beta
- * ProductVersionUnknown for files not created with OpenOffice.org, StarOffice or Oracle Open Office
- */
- sal_uInt16 getGeneratorVersion() const;
-
- /** If true, the URL for graphic shapes may be stored as a package URL and
- loaded later (on demand) by the application. Otherwise graphics are
- loaded immediately and the graphic shape gets the graphic manager URL.
-
- @see <member>mbIsGraphicLoadOnDemandSupported</member>
- */
- bool isGraphicLoadOnDemandSupported() const;
-
- /**
- Returns true if the embedded font document URL has already been processed.
- Otherwise returns false and consequent calls with the same URL will return true.
- */
- bool embeddedFontAlreadyProcessed( const OUString& url );
-
- virtual void NotifyEmbeddedFontRead() {};
-};
-
-inline UniReference< XMLTextImportHelper > SvXMLImport::GetTextImport()
-{
- if( !mxTextImport.is() )
- mxTextImport = CreateTextImport();
-
- return mxTextImport;
-}
-
-inline UniReference< XMLShapeImportHelper > SvXMLImport::GetShapeImport()
-{
- if( !mxShapeImport.is() )
- mxShapeImport = CreateShapeImport();
-
- return mxShapeImport;
-}
-
-inline UniReference< SchXMLImportHelper > SvXMLImport::GetChartImport()
-{
- if( !mxChartImport.is() )
- mxChartImport = CreateChartImport();
-
- return mxChartImport;
-}
-
-inline UniReference< ::xmloff::OFormLayerXMLImport > SvXMLImport::GetFormImport()
-{
- if( !mxFormImport.is() )
- mxFormImport = CreateFormImport();
-
- return mxFormImport;
-}
-
-inline void SvXMLImport::SetEmbeddedResolver(
- com::sun::star::uno::Reference< com::sun::star::document::XEmbeddedObjectResolver >& _xEmbeddedResolver )
-{
- mxEmbeddedResolver = _xEmbeddedResolver;
-}
-
-inline void SvXMLImport::SetGraphicResolver(
- com::sun::star::uno::Reference< com::sun::star::document::XGraphicObjectResolver >& _xGraphicResolver )
-{
- mxGraphicResolver = _xGraphicResolver;
-}
-
-inline ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & SvXMLImport::GetNumberFormatsSupplier()
-{
- if ( ! mxNumberFormatsSupplier.is() && mxModel.is() )
- _CreateNumberFormatsSupplier();
-
- return mxNumberFormatsSupplier;
-}
-
-inline SvXMLNumFmtHelper* SvXMLImport::GetDataStylesImport()
-{
- if ( mpNumImport == NULL)
- _CreateDataStylesImport();
-
- return mpNumImport;
-}
-
-
-#endif // _XMLOFF_XMLIMP_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/xmlimppr.hxx b/xmloff/inc/xmloff/xmlimppr.hxx
deleted file mode 100644
index 642e898aa3bb..000000000000
--- a/xmloff/inc/xmloff/xmlimppr.hxx
+++ /dev/null
@@ -1,192 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _XMLOFF_XMLIMPPR_HXX
-#define _XMLOFF_XMLIMPPR_HXX
-
-#include "sal/config.h"
-#include "xmloff/dllapi.h"
-#include "sal/types.h"
-#include <tools/solar.h>
-#include <com/sun/star/xml/sax/XAttributeList.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/beans/PropertyValue.hpp>
-#include <com/sun/star/beans/XMultiPropertySet.hpp>
-#include <com/sun/star/beans/XTolerantMultiPropertySet.hpp>
-
-#include <vector>
-#include <xmloff/uniref.hxx>
-
-struct XMLPropertyState;
-class XMLPropertySetMapper;
-
-
-class SvXMLUnitConverter;
-class SvXMLNamespaceMap;
-class SvXMLImport;
-
-/** This struct is used as an optional parameter to the static
- * _FillPropertySet() methods.
- *
- * It should not be used in any other context.
- */
-struct _ContextID_Index_Pair
-{
- sal_Int16 nContextID;
- sal_Int32 nIndex;
-};
-
-class XMLOFF_DLLPUBLIC SvXMLImportPropertyMapper : public UniRefBase
-{
- UniReference< SvXMLImportPropertyMapper> mxNextMapper;
-
- SvXMLImport& rImport; // access to error handling
-
- SAL_DLLPRIVATE SvXMLImportPropertyMapper(SvXMLImportPropertyMapper &);
- // not defined
- SAL_DLLPRIVATE void operator =(SvXMLImportPropertyMapper &); // not defined
-
-protected:
-
- UniReference< XMLPropertySetMapper > maPropMapper;
- SvXMLImport& GetImport() const { return rImport;}
-
-public:
-
- SvXMLImportPropertyMapper(
- const UniReference< XMLPropertySetMapper >& rMapper,
- SvXMLImport& rImport);
- virtual ~SvXMLImportPropertyMapper();
-
- // Add a ImportPropertyMapper at the end of the import mapper chain.
- // The added mapper MUST not be used outside the Mapper chain any longer,
- // because its PropertyMapper will be replaced.
- void ChainImportMapper(
- const UniReference< SvXMLImportPropertyMapper>& rMapper );
-
- /** fills the given itemset with the attributes in the given list
- * the map is only searched within the range
- * [nStartIdx, nEndIdx[
- */
- void importXML(
- ::std::vector< XMLPropertyState >& rProperties,
- ::com::sun::star::uno::Reference<
- ::com::sun::star::xml::sax::XAttributeList > xAttrList,
- const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap,
- sal_uInt32 nPropType,
- sal_Int32 nStartIdx, sal_Int32 nEndIdx ) const;
-
- /** this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_IMPORT flag set */
- virtual bool handleSpecialItem(
- XMLPropertyState& rProperty,
- ::std::vector< XMLPropertyState >& rProperties,
- const OUString& rValue,
- const SvXMLUnitConverter& rUnitConverter,
- const SvXMLNamespaceMap& rNamespaceMap ) const;
-
- /** This method is called when all attributes have benn processed. It may be used to remove items that are incomplete */
- virtual void finished(
- ::std::vector< XMLPropertyState >& rProperties,
- sal_Int32 nStartIndex, sal_Int32 nEndIndex ) const;
-
- void CheckSpecialContext(
- const ::std::vector< XMLPropertyState >& aProperties,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > rPropSet,
- _ContextID_Index_Pair* pSpecialContextIds ) const;
-
- sal_Bool FillPropertySet(
- const ::std::vector< XMLPropertyState >& aProperties,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet > rPropSet,
- _ContextID_Index_Pair* pSpecialContextIds = NULL ) const;
-
- void FillPropertySequence(
- const ::std::vector< XMLPropertyState >& aProperties,
- ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rValues )
- const;
-
- inline const UniReference< XMLPropertySetMapper >&
- getPropertySetMapper() const;
-
-
-
- /** implementation helper for FillPropertySet: fill an XPropertySet.
- * Exceptions will be asserted. */
- static sal_Bool _FillPropertySet(
- const ::std::vector<XMLPropertyState> & rProperties,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySet> & rPropSet,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertySetInfo> & rPropSetInfo,
- const UniReference<XMLPropertySetMapper> & rPropMapper,
- SvXMLImport& rImport,
-
- // parameter for use by txtstyli.cxx; allows efficient
- // catching the combined characters property
- _ContextID_Index_Pair* pSpecialContextIds = NULL );
-
- /** implementation helper for FillPropertySet: fill an XMultiPropertySet.
- * If unsuccessul, set return value. */
- static sal_Bool _FillMultiPropertySet(
- const ::std::vector<XMLPropertyState> & rProperties,
- const ::com::sun::star::uno::Reference<