xref: /aoo41x/main/xmloff/inc/SchXMLExport.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef SCH_XMLEXPORT_HXX_
28 #define SCH_XMLEXPORT_HXX_
29 
30 #include <xmloff/SchXMLExportHelper.hxx>
31 #include "SchXMLAutoStylePoolP.hxx"
32 #include <xmloff/xmlexp.hxx>
33 #include <xmloff/uniref.hxx>
34 #include <xmloff/xmlprmap.hxx>
35 #include <xmloff/prhdlfac.hxx>
36 
37 namespace com { namespace sun { namespace star {
38 	namespace chart {
39 		class XDiagram;
40 		class XChartDocument;
41 		struct ChartSeriesAddress;
42 	}
43 	namespace drawing {
44 		class XShape;
45 	}
46 	namespace task {
47 		class XStatusIndicator;
48 	}
49 }}}
50 
51 class SvXMLAutoStylePoolP;
52 class SvXMLUnitConverter;
53 class XMLChartExportPropertyMapper;
54 
55 // ------------------------------------------
56 // export class for a complete chart document
57 // ------------------------------------------
58 
59 class SchXMLExport : public SvXMLExport
60 {
61 private:
62 	com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator > mxStatusIndicator;
63 	SchXMLAutoStylePoolP maAutoStylePool;
64 
65 	SchXMLExportHelper maExportHelper;
66 
67 protected:
68     virtual sal_uInt32 exportDoc( enum ::xmloff::token::XMLTokenEnum eClass = ::xmloff::token::XML_TOKEN_INVALID );
69 
70 	virtual void _ExportStyles( sal_Bool bUsed );
71 	virtual void _ExportAutoStyles();
72 	virtual void _ExportMasterStyles();
73 	virtual void _ExportContent();
74 
75 public:
76 	// #110680#
77 	SchXMLExport(
78 		const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
79 		sal_uInt16 nExportFlags = EXPORT_ALL );
80 	virtual ~SchXMLExport();
81 
82 	void SetProgress( sal_Int32 nPercentage );
83 
84 	UniReference< XMLPropertySetMapper > GetPropertySetMapper() const;
85 
86     // XServiceInfo ( : SvXMLExport )
87     virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
88 };
89 
90 #endif	// SCH_XMLEXPORT_HXX_
91