xref: /aoo42x/main/xmloff/inc/SchXMLExport.hxx (revision ecfe53c5)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef SCH_XMLEXPORT_HXX_
24 #define SCH_XMLEXPORT_HXX_
25 
26 #include <xmloff/SchXMLExportHelper.hxx>
27 #include "SchXMLAutoStylePoolP.hxx"
28 #include <xmloff/xmlexp.hxx>
29 #include <xmloff/uniref.hxx>
30 #include <xmloff/xmlprmap.hxx>
31 #include <xmloff/prhdlfac.hxx>
32 
33 namespace com { namespace sun { namespace star {
34 	namespace chart {
35 		class XDiagram;
36 		class XChartDocument;
37 		struct ChartSeriesAddress;
38 	}
39 	namespace drawing {
40 		class XShape;
41 	}
42 	namespace task {
43 		class XStatusIndicator;
44 	}
45 }}}
46 
47 class SvXMLAutoStylePoolP;
48 class SvXMLUnitConverter;
49 class XMLChartExportPropertyMapper;
50 
51 // ------------------------------------------
52 // export class for a complete chart document
53 // ------------------------------------------
54 
55 class SchXMLExport : public SvXMLExport
56 {
57 private:
58 	com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator > mxStatusIndicator;
59 	SchXMLAutoStylePoolP maAutoStylePool;
60 
61 	SchXMLExportHelper maExportHelper;
62 
63 protected:
64     virtual sal_uInt32 exportDoc( enum ::xmloff::token::XMLTokenEnum eClass = ::xmloff::token::XML_TOKEN_INVALID );
65 
66 	virtual void _ExportStyles( sal_Bool bUsed );
67 	virtual void _ExportAutoStyles();
68 	virtual void _ExportMasterStyles();
69 	virtual void _ExportContent();
70 
71 public:
72 	// #110680#
73 	SchXMLExport(
74 		const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
75 		sal_uInt16 nExportFlags = EXPORT_ALL );
76 	virtual ~SchXMLExport();
77 
78 	void SetProgress( sal_Int32 nPercentage );
79 
80 	UniReference< XMLPropertySetMapper > GetPropertySetMapper() const;
81 
82     // XServiceInfo ( : SvXMLExport )
83     virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
84 };
85 
86 #endif	// SCH_XMLEXPORT_HXX_
87