bump product version to 5.0.4.1
[LibreOffice.git] / xmloff / inc / SchXMLImport.hxx
blob6535faacfe80a28063beacf19ae94b3e4acdced4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_XMLOFF_INC_SCHXMLIMPORT_HXX
20 #define INCLUDED_XMLOFF_INC_SCHXMLIMPORT_HXX
22 #include <xmloff/SchXMLImportHelper.hxx>
23 #include <xmloff/xmlimp.hxx>
24 #include <xmloff/xmltkmap.hxx>
25 #include <xmloff/xmlictxt.hxx>
26 #include <xmloff/prhdlfac.hxx>
27 #include <xmloff/families.hxx>
30 these enums are used for the
31 SvXMLTokenMapEntries to distinguish
32 the tokens in switch-directives
35 enum SchXMLDocElemTokenMap
37 XML_TOK_DOC_AUTOSTYLES,
38 XML_TOK_DOC_STYLES,
39 XML_TOK_DOC_META,
40 XML_TOK_DOC_BODY
43 enum SchXMLTableElemTokenMap
45 XML_TOK_TABLE_HEADER_COLS,
46 XML_TOK_TABLE_COLUMNS,
47 XML_TOK_TABLE_COLUMN,
48 XML_TOK_TABLE_HEADER_ROWS,
49 XML_TOK_TABLE_ROWS,
50 XML_TOK_TABLE_ROW
53 enum SchXMLChartElemTokenMap
55 XML_TOK_CHART_PLOT_AREA,
56 XML_TOK_CHART_TITLE,
57 XML_TOK_CHART_SUBTITLE,
58 XML_TOK_CHART_LEGEND,
59 XML_TOK_CHART_TABLE
62 enum SchXMLPlotAreaElemTokenMap
64 XML_TOK_PA_COORDINATE_REGION_EXT,
65 XML_TOK_PA_COORDINATE_REGION,
66 XML_TOK_PA_AXIS,
67 XML_TOK_PA_SERIES,
68 XML_TOK_PA_WALL,
69 XML_TOK_PA_FLOOR,
70 XML_TOK_PA_LIGHT_SOURCE,
71 XML_TOK_PA_STOCK_GAIN,
72 XML_TOK_PA_STOCK_LOSS,
73 XML_TOK_PA_STOCK_RANGE
76 enum SchXMLSeriesElemTokenMap
78 XML_TOK_SERIES_DATA_POINT,
79 XML_TOK_SERIES_DOMAIN,
80 XML_TOK_SERIES_MEAN_VALUE_LINE,
81 XML_TOK_SERIES_REGRESSION_CURVE,
82 XML_TOK_SERIES_ERROR_INDICATOR,
83 XML_TOK_SERIES_PROPERTY_MAPPING
86 enum SchXMLPropertyMappingAttrTokenMap
88 XML_TOK_PROPERTY_MAPPING_PROPERTY,
89 XML_TOK_PROPERTY_MAPPING_RANGE
92 enum SchXMLChartAttrMap
94 XML_TOK_CHART_HREF,
95 XML_TOK_CHART_CLASS,
96 XML_TOK_CHART_WIDTH,
97 XML_TOK_CHART_HEIGHT,
98 XML_TOK_CHART_STYLE_NAME,
99 XML_TOK_CHART_ADDIN_NAME,
100 XML_TOK_CHART_COL_MAPPING,
101 XML_TOK_CHART_ROW_MAPPING
104 enum SchXMLPlotAreaAttrTokenMap
106 XML_TOK_PA_X,
107 XML_TOK_PA_Y,
108 XML_TOK_PA_WIDTH,
109 XML_TOK_PA_HEIGHT,
110 XML_TOK_PA_STYLE_NAME,
111 XML_TOK_PA_TRANSFORM,
112 XML_TOK_PA_CHART_ADDRESS,
113 XML_TOK_PA_TABLE_NUMBER_LIST,
114 XML_TOK_PA_DS_HAS_LABELS,
115 XML_TOK_PA_VRP,
116 XML_TOK_PA_VPN,
117 XML_TOK_PA_VUP,
118 XML_TOK_PA_PROJECTION,
119 XML_TOK_PA_DISTANCE,
120 XML_TOK_PA_FOCAL_LENGTH,
121 XML_TOK_PA_SHADOW_SLANT,
122 XML_TOK_PA_SHADE_MODE,
123 XML_TOK_PA_AMBIENT_COLOR,
124 XML_TOK_PA_LIGHTING_MODE
127 enum SchXMLAutoStyleAttrMap
129 XML_TOK_AS_FAMILY,
130 XML_TOK_AS_NAME
133 enum SchXMLCellAttrMap
135 XML_TOK_CELL_VAL_TYPE,
136 XML_TOK_CELL_VALUE
139 enum SchXMLSeriesAttrMap
141 XML_TOK_SERIES_CELL_RANGE,
142 XML_TOK_SERIES_LABEL_ADDRESS,
143 XML_TOK_SERIES_LABEL_STRING,
144 XML_TOK_SERIES_ATTACHED_AXIS,
145 XML_TOK_SERIES_STYLE_NAME,
146 XML_TOK_SERIES_CHART_CLASS
149 enum SchXMLRegEquationAttrMap
151 XML_TOK_REGEQ_STYLE_NAME,
152 XML_TOK_REGEQ_DISPLAY_EQUATION,
153 XML_TOK_REGEQ_DISPLAY_R_SQUARE,
154 XML_TOK_REGEQ_POS_X,
155 XML_TOK_REGEQ_POS_Y
158 class SchXMLImport : public SvXMLImport
160 private:
161 com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator > mxStatusIndicator;
163 SchXMLImportHelper maImportHelper;
165 protected:
166 virtual SvXMLImportContext *CreateContext(
167 sal_uInt16 nPrefix,
168 const OUString& rLocalName,
169 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList ) SAL_OVERRIDE;
171 public:
172 // #110680#
173 SchXMLImport(
174 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
175 OUString const & implementationName, SvXMLImportFlags nImportFlags );
177 virtual ~SchXMLImport() throw ();
179 SvXMLImportContext* CreateStylesContext( const OUString& rLocalName,
180 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
182 // XImporter
183 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, std::exception) SAL_OVERRIDE;
186 #endif // INCLUDED_XMLOFF_INC_SCHXMLIMPORT_HXX
188 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */