1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/xmlictxt.hxx>
27 these enums are used for the
28 SvXMLTokenMapEntries to distinguish
29 the tokens in switch-directives
32 enum SchXMLDocElemTokenMap
34 XML_TOK_DOC_AUTOSTYLES
,
40 enum SchXMLTableElemTokenMap
42 XML_TOK_TABLE_HEADER_COLS
,
43 XML_TOK_TABLE_COLUMNS
,
45 XML_TOK_TABLE_HEADER_ROWS
,
50 enum SchXMLChartElemTokenMap
52 XML_TOK_CHART_PLOT_AREA
,
54 XML_TOK_CHART_SUBTITLE
,
59 enum SchXMLPlotAreaElemTokenMap
61 XML_TOK_PA_COORDINATE_REGION_EXT
,
62 XML_TOK_PA_COORDINATE_REGION
,
67 XML_TOK_PA_LIGHT_SOURCE
,
68 XML_TOK_PA_STOCK_GAIN
,
69 XML_TOK_PA_STOCK_LOSS
,
70 XML_TOK_PA_STOCK_RANGE
73 enum SchXMLSeriesElemTokenMap
75 XML_TOK_SERIES_DATA_POINT
,
76 XML_TOK_SERIES_DATA_LABEL
,
77 XML_TOK_SERIES_DOMAIN
,
78 XML_TOK_SERIES_MEAN_VALUE_LINE
,
79 XML_TOK_SERIES_REGRESSION_CURVE
,
80 XML_TOK_SERIES_ERROR_INDICATOR
,
81 XML_TOK_SERIES_PROPERTY_MAPPING
84 enum SchXMLPropertyMappingAttrTokenMap
86 XML_TOK_PROPERTY_MAPPING_PROPERTY
,
87 XML_TOK_PROPERTY_MAPPING_RANGE
90 enum SchXMLChartAttrMap
96 XML_TOK_CHART_STYLE_NAME
,
97 XML_TOK_CHART_COL_MAPPING
,
98 XML_TOK_CHART_ROW_MAPPING
,
99 XML_TOK_CHART_DATA_PILOT_SOURCE
,
102 enum SchXMLPlotAreaAttrTokenMap
108 XML_TOK_PA_STYLE_NAME
,
109 XML_TOK_PA_TRANSFORM
,
110 XML_TOK_PA_CHART_ADDRESS
,
111 XML_TOK_PA_DS_HAS_LABELS
,
115 XML_TOK_PA_PROJECTION
,
117 XML_TOK_PA_FOCAL_LENGTH
,
118 XML_TOK_PA_SHADOW_SLANT
,
119 XML_TOK_PA_SHADE_MODE
,
120 XML_TOK_PA_AMBIENT_COLOR
,
121 XML_TOK_PA_LIGHTING_MODE
124 enum SchXMLCellAttrMap
126 XML_TOK_CELL_VAL_TYPE
,
130 enum SchXMLSeriesAttrMap
132 XML_TOK_SERIES_CELL_RANGE
,
133 XML_TOK_SERIES_LABEL_ADDRESS
,
134 XML_TOK_SERIES_LABEL_STRING
,
135 XML_TOK_SERIES_ATTACHED_AXIS
,
136 XML_TOK_SERIES_STYLE_NAME
,
137 XML_TOK_SERIES_CHART_CLASS
,
138 XML_TOK_SERIES_HIDE_LEGEND
141 enum SchXMLRegEquationAttrMap
143 XML_TOK_REGEQ_STYLE_NAME
,
144 XML_TOK_REGEQ_DISPLAY_EQUATION
,
145 XML_TOK_REGEQ_DISPLAY_R_SQUARE
,
150 class SchXMLImport final
: public SvXMLImport
153 rtl::Reference
<SchXMLImportHelper
> maImportHelper
;
155 virtual SvXMLImportContext
* CreateFastContext(
157 const ::css::uno::Reference
<::css::xml::sax::XFastAttributeList
>& xAttrList
) override
;
160 SchXMLImport(const css::uno::Reference
<css::uno::XComponentContext
>& xContext
,
161 OUString
const& implementationName
, SvXMLImportFlags nImportFlags
);
163 virtual ~SchXMLImport() throw() override
;
165 SvXMLImportContext
* CreateStylesContext();
168 virtual void SAL_CALL
169 setTargetDocument(const css::uno::Reference
<css::lang::XComponent
>& xDoc
) override
;
172 #endif // INCLUDED_XMLOFF_INC_SCHXMLIMPORT_HXX
174 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */