nss: upgrade to release 3.73
[LibreOffice.git] / xmloff / inc / SchXMLImport.hxx
blob33b0f50d5764dc43ac5ede278614ad21df04be4c
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/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,
35 XML_TOK_DOC_STYLES,
36 XML_TOK_DOC_META,
37 XML_TOK_DOC_BODY
40 enum SchXMLTableElemTokenMap
42 XML_TOK_TABLE_HEADER_COLS,
43 XML_TOK_TABLE_COLUMNS,
44 XML_TOK_TABLE_COLUMN,
45 XML_TOK_TABLE_HEADER_ROWS,
46 XML_TOK_TABLE_ROWS,
47 XML_TOK_TABLE_ROW
50 enum SchXMLChartElemTokenMap
52 XML_TOK_CHART_PLOT_AREA,
53 XML_TOK_CHART_TITLE,
54 XML_TOK_CHART_SUBTITLE,
55 XML_TOK_CHART_LEGEND,
56 XML_TOK_CHART_TABLE
59 enum SchXMLPlotAreaElemTokenMap
61 XML_TOK_PA_COORDINATE_REGION_EXT,
62 XML_TOK_PA_COORDINATE_REGION,
63 XML_TOK_PA_AXIS,
64 XML_TOK_PA_SERIES,
65 XML_TOK_PA_WALL,
66 XML_TOK_PA_FLOOR,
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
92 XML_TOK_CHART_HREF,
93 XML_TOK_CHART_CLASS,
94 XML_TOK_CHART_WIDTH,
95 XML_TOK_CHART_HEIGHT,
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
104 XML_TOK_PA_X,
105 XML_TOK_PA_Y,
106 XML_TOK_PA_WIDTH,
107 XML_TOK_PA_HEIGHT,
108 XML_TOK_PA_STYLE_NAME,
109 XML_TOK_PA_TRANSFORM,
110 XML_TOK_PA_CHART_ADDRESS,
111 XML_TOK_PA_DS_HAS_LABELS,
112 XML_TOK_PA_VRP,
113 XML_TOK_PA_VPN,
114 XML_TOK_PA_VUP,
115 XML_TOK_PA_PROJECTION,
116 XML_TOK_PA_DISTANCE,
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,
127 XML_TOK_CELL_VALUE
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,
146 XML_TOK_REGEQ_POS_X,
147 XML_TOK_REGEQ_POS_Y
150 class SchXMLImport final : public SvXMLImport
152 private:
153 rtl::Reference<SchXMLImportHelper> maImportHelper;
155 virtual SvXMLImportContext* CreateFastContext(
156 sal_Int32 nElement,
157 const ::css::uno::Reference<::css::xml::sax::XFastAttributeList>& xAttrList) override;
159 public:
160 SchXMLImport(const css::uno::Reference<css::uno::XComponentContext>& xContext,
161 OUString const& implementationName, SvXMLImportFlags nImportFlags);
163 virtual ~SchXMLImport() throw() override;
165 SvXMLImportContext* CreateStylesContext();
167 // XImporter
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: */