xref: /aoo42x/main/svx/source/inc/xmlxtexp.hxx (revision 3334a7e6)
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 
24 #ifndef _SVX_XMLXTEXP_HXX
25 #define _SVX_XMLXTEXP_HXX
26 
27 #include "xmloff/xmlexp.hxx"
28 
29 namespace rtl {	class OUString; }
30 namespace com { namespace sun { namespace star {
31 	namespace frame { class XModel; }
32 	namespace uno { template<class X> class Reference; }
33 	namespace uno { class XInterface; }
34 	namespace container { class XNameContainer; }
35 	namespace document { class XGraphicObjectResolver; }
36 	namespace xml { namespace sax { class XDocumentHandler; } }
37 } } }
38 
39 class SvxXMLXTableExportComponent : public SvXMLExport
40 {
41 public:
42 	// #110680#
43 	SvxXMLXTableExportComponent(
44 		const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory,
45 		const rtl::OUString& rFileName,
46 		const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler > & xHandler,
47 		const com::sun::star::uno::Reference< com::sun::star::container::XNameContainer > & xTable,
48 		com::sun::star::uno::Reference< com::sun::star::document::XGraphicObjectResolver >& xGrfResolver);
49 
50 	~SvxXMLXTableExportComponent();
51 
52 	static sal_Bool save( const rtl::OUString& rURL, const com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& xTable ) throw();
53 
54 	sal_Bool exportTable() throw();
55 
56 	// methods without content:
57 	virtual void _ExportAutoStyles();
58 	virtual void _ExportMasterStyles();
59 	virtual void _ExportContent();
60 
61 private:
62 	const com::sun::star::uno::Reference< com::sun::star::container::XNameContainer > & mxTable;
63 };
64 
65 #endif
66 
67