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 _XMLOFF_METAEXPORTCOMPONENT_HXX
25 #define _XMLOFF_METAEXPORTCOMPONENT_HXX
26 
27 #include <com/sun/star/document/XDocumentProperties.hpp>
28 
29 #include <xmloff/xmlexp.hxx>
30 
31 class XMLMetaExportComponent : public SvXMLExport
32 {
33 	::com::sun::star::uno::Reference<
34         ::com::sun::star::document::XDocumentProperties > mxDocProps;
35 
36 public:
37 	// #110680#
38 	// XMLMetaExportComponent();
39 	XMLMetaExportComponent(
40 		const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
41 		sal_uInt16 nFlags
42 		);
43 
44 	virtual ~XMLMetaExportComponent();
45 
46 protected:
47 	// export the events off all autotexts
48 	virtual sal_uInt32 exportDoc(
49         enum ::xmloff::token::XMLTokenEnum eClass = xmloff::token::XML_TOKEN_INVALID );
50 
51     // accept XDocumentProperties in addition to XModel
52 	virtual void SAL_CALL setSourceDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
53 
54     // override
55 	virtual void _ExportMeta();
56 
57 	// methods without content:
58 	virtual void _ExportAutoStyles();
59 	virtual void _ExportMasterStyles();
60 	virtual void _ExportContent();
61 };
62 
63 // global functions to support the component
64 
65 ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
66 	XMLMetaExportComponent_getSupportedServiceNames()
67 	throw();
68 
69 ::rtl::OUString SAL_CALL XMLMetaExportComponent_getImplementationName()
70 	throw();
71 
72 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
73 	XMLMetaExportComponent_createInstance(
74 		const ::com::sun::star::uno::Reference<
75 			::com::sun::star::lang::XMultiServiceFactory > & )
76 	throw( ::com::sun::star::uno::Exception );
77 
78 #endif
79 
80