Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_xmloff / xmlmetae.hxx
blob4be249051335d9250809cd925df8580a695b0a4c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xmlmetae.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _XMLOFF_XMLMETAE_HXX
32 #define _XMLOFF_XMLMETAE_HXX
34 #ifndef _COM_SUN_STAR_DOCUMENT_XDOCUMENTINFO_HPP_
35 #include <com/sun/star/document/XDocumentInfo.hpp>
36 #endif
37 #ifndef _COM_SUN_STAR_XML_SAX_XDOCUMENTHANDLER_HPP_
38 #include <com/sun/star/xml/sax/XDocumentHandler.hpp>
39 #endif
40 #ifndef _COM_SUN_STAR_XML_SAX_XATTRIBUTELIST_HPP_
41 #include <com/sun/star/xml/sax/XAttributeList.hpp>
42 #endif
43 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
44 #include <com/sun/star/beans/XPropertySet.hpp>
45 #endif
46 #ifndef _COM_SUN_STAR_UTIL_DATETIME_HPP_
47 #include <com/sun/star/util/DateTime.hpp>
48 #endif
49 #ifndef _COM_SUN_STAR_LANG_LOCALE_HPP_
50 #include <com/sun/star/lang/Locale.hpp>
51 #endif
52 #ifndef _XMLOFF_XMLTOKEN_HXX
53 #include <bf_xmloff/xmltoken.hxx>
54 #endif
55 class Time;
57 namespace com { namespace sun { namespace star { namespace frame {
58 class XModel;
59 } } } }
60 namespace binfilter {
62 class SvXMLNamespaceMap;
63 class SvXMLAttributeList;
64 class SvXMLExport;
66 class SfxXMLMetaExport
68 private:
69 SvXMLExport& rExport;
70 ::com::sun::star::uno::Reference<
71 ::com::sun::star::document::XDocumentInfo> xDocInfo;
72 ::com::sun::star::uno::Reference<
73 ::com::sun::star::beans::XPropertySet> xInfoProp;
74 ::com::sun::star::lang::Locale aLocale;
76 void SimpleStringElement( const ::rtl::OUString& rPropertyName,
77 sal_uInt16 nNamespace,
78 enum ::binfilter::xmloff::token::XMLTokenEnum eElementName );
79 void SimpleDateTimeElement( const ::rtl::OUString& rPropertyName,
80 sal_uInt16 nNamespace,
81 enum ::binfilter::xmloff::token::XMLTokenEnum eElementName );
83 public:
84 SfxXMLMetaExport( SvXMLExport& rExport,
85 const ::com::sun::star::uno::Reference<
86 ::com::sun::star::frame::XModel>& rDocModel );
88 virtual ~SfxXMLMetaExport();
90 // core API
91 void Export();
93 static ::rtl::OUString GetISODateTimeString(
94 const ::com::sun::star::util::DateTime& rDateTime );
95 static ::rtl::OUString GetISODurationString( const Time& rTime );
98 }//end of namespace binfilter
99 #endif // _XMLOFF_XMLMETAE_HXX