update dev300-m58
[ooovba.git] / xmloff / inc / XMLEmbeddedObjectExportFilter.hxx
blob64892550cfe3e57db43d44eda54df99dcc344bca
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: XMLEmbeddedObjectExportFilter.hxx,v $
10 * $Revision: 1.3 $
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_XMLEMBEDDEDOBJECTEXPORTFILTER_HXX
32 #define _XMLOFF_XMLEMBEDDEDOBJECTEXPORTFILTER_HXX
34 #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
35 #include <com/sun/star/lang/XInitialization.hpp>
36 #include <com/sun/star/lang/XServiceInfo.hpp>
37 #include <cppuhelper/implbase3.hxx>
39 class XMLEmbeddedObjectExportFilter : public ::cppu::WeakImplHelper3<
40 ::com::sun::star::xml::sax::XExtendedDocumentHandler,
41 ::com::sun::star::lang::XServiceInfo,
42 ::com::sun::star::lang::XInitialization>
44 ::com::sun::star::uno::Reference<
45 ::com::sun::star::xml::sax::XDocumentHandler > xHandler;
46 ::com::sun::star::uno::Reference<
47 ::com::sun::star::xml::sax::XExtendedDocumentHandler > xExtHandler;
49 public:
50 XMLEmbeddedObjectExportFilter() throw();
51 XMLEmbeddedObjectExportFilter( const ::com::sun::star::uno::Reference<
52 ::com::sun::star::xml::sax::XDocumentHandler > & rHandler ) throw();
53 virtual ~XMLEmbeddedObjectExportFilter () throw();
55 // ::com::sun::star::xml::sax::XDocumentHandler
56 virtual void SAL_CALL startDocument(void)
57 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
58 virtual void SAL_CALL endDocument(void)
59 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
60 virtual void SAL_CALL startElement(const ::rtl::OUString& aName,
61 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttribs)
62 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
63 virtual void SAL_CALL endElement(const ::rtl::OUString& aName)
64 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
65 virtual void SAL_CALL characters(const ::rtl::OUString& aChars)
66 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
67 virtual void SAL_CALL ignorableWhitespace(const ::rtl::OUString& aWhitespaces)
68 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
69 virtual void SAL_CALL processingInstruction(const ::rtl::OUString& aTarget,
70 const ::rtl::OUString& aData)
71 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
72 virtual void SAL_CALL setDocumentLocator(const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XLocator > & xLocator)
73 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
75 // ::com::sun::star::xml::sax::XExtendedDocumentHandler
76 virtual void SAL_CALL startCDATA(void) throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
77 virtual void SAL_CALL endCDATA(void) throw( ::com::sun::star::uno::RuntimeException );
78 virtual void SAL_CALL comment(const ::rtl::OUString& sComment)
79 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
80 virtual void SAL_CALL allowLineBreak(void)
81 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
82 virtual void SAL_CALL unknown(const ::rtl::OUString& sString)
83 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException );
85 // XInitialization
86 virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
88 // XServiceInfo
89 virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
90 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
91 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
95 #endif // _XMLOFF_XMLEMBEDDEDOBJECTEXPORTFILTER_HXX