Branch libreoffice-5-0-4
[LibreOffice.git] / include / xmloff / XMLEmbeddedObjectExportFilter.hxx
blob8100c0f1aaad5cbf357557aca5a481d20db85e13
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_XMLOFF_XMLEMBEDDEDOBJECTEXPORTFILTER_HXX
21 #define INCLUDED_XMLOFF_XMLEMBEDDEDOBJECTEXPORTFILTER_HXX
23 #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
24 #include <com/sun/star/lang/XInitialization.hpp>
25 #include <com/sun/star/lang/XServiceInfo.hpp>
26 #include <cppuhelper/implbase3.hxx>
28 class XMLEmbeddedObjectExportFilter : public ::cppu::WeakImplHelper3<
29 ::com::sun::star::xml::sax::XExtendedDocumentHandler,
30 ::com::sun::star::lang::XServiceInfo,
31 ::com::sun::star::lang::XInitialization>
33 ::com::sun::star::uno::Reference<
34 ::com::sun::star::xml::sax::XDocumentHandler > xHandler;
35 ::com::sun::star::uno::Reference<
36 ::com::sun::star::xml::sax::XExtendedDocumentHandler > xExtHandler;
38 public:
39 XMLEmbeddedObjectExportFilter( const ::com::sun::star::uno::Reference<
40 ::com::sun::star::xml::sax::XDocumentHandler > & rHandler ) throw();
41 virtual ~XMLEmbeddedObjectExportFilter () throw();
43 // ::com::sun::star::xml::sax::XDocumentHandler
44 virtual void SAL_CALL startDocument()
45 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
46 virtual void SAL_CALL endDocument()
47 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
48 virtual void SAL_CALL startElement(const OUString& aName,
49 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttribs)
50 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
51 virtual void SAL_CALL endElement(const OUString& aName)
52 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
53 virtual void SAL_CALL characters(const OUString& aChars)
54 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
55 virtual void SAL_CALL ignorableWhitespace(const OUString& aWhitespaces)
56 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
57 virtual void SAL_CALL processingInstruction(const OUString& aTarget,
58 const OUString& aData)
59 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
60 virtual void SAL_CALL setDocumentLocator(const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XLocator > & xLocator)
61 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
63 // ::com::sun::star::xml::sax::XExtendedDocumentHandler
64 virtual void SAL_CALL startCDATA() throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
65 virtual void SAL_CALL endCDATA() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
66 virtual void SAL_CALL comment(const OUString& sComment)
67 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
68 virtual void SAL_CALL allowLineBreak()
69 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
70 virtual void SAL_CALL unknown(const OUString& sString)
71 throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
73 // XInitialization
74 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, std::exception) SAL_OVERRIDE;
76 // XServiceInfo
77 virtual OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
78 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
79 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
83 #endif // INCLUDED_XMLOFF_XMLEMBEDDEDOBJECTEXPORTFILTER_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */