Bump version to 6.4-15
[LibreOffice.git] / include / sax / fastparser.hxx
blobf9776c59583185e02d9cbff09777252b6c35bc1f
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_SAX_FASTPARSER_HXX
21 #define INCLUDED_SAX_FASTPARSER_HXX
23 #include <com/sun/star/xml/sax/XFastParser.hpp>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <cppuhelper/implbase.hxx>
26 #include <com/sun/star/lang/XInitialization.hpp>
28 #include <sax/fastsaxdllapi.h>
29 #include <memory>
31 namespace com { namespace sun { namespace star { namespace xml { namespace sax {
33 class XFastDocumentHandler;
34 class XFastTokenHandler;
36 }}}}}
38 namespace sax_fastparser {
41 class FastSaxParserImpl;
43 // This class implements the external Parser interface
44 class FASTSAX_DLLPUBLIC FastSaxParser final
45 : public ::cppu::WeakImplHelper<
46 css::lang::XInitialization,
47 css::xml::sax::XFastParser,
48 css::lang::XServiceInfo >
50 std::unique_ptr<FastSaxParserImpl> mpImpl;
52 public:
53 FastSaxParser();
54 virtual ~FastSaxParser() override;
56 // css::lang::XInitialization:
57 virtual void SAL_CALL initialize(css::uno::Sequence<css::uno::Any> const& rArguments) override;
59 // XFastParser
60 virtual void SAL_CALL parseStream( const css::xml::sax::InputSource& aInputSource ) override;
61 virtual void SAL_CALL setFastDocumentHandler( const css::uno::Reference< css::xml::sax::XFastDocumentHandler >& Handler ) override;
62 virtual void SAL_CALL setTokenHandler( const css::uno::Reference< css::xml::sax::XFastTokenHandler >& Handler ) override;
63 virtual void SAL_CALL registerNamespace( const OUString& NamespaceURL, sal_Int32 NamespaceToken ) override;
64 virtual OUString SAL_CALL getNamespaceURL( const OUString& rPrefix ) override;
65 virtual void SAL_CALL setErrorHandler( const css::uno::Reference< css::xml::sax::XErrorHandler >& Handler ) override;
66 virtual void SAL_CALL setEntityResolver( const css::uno::Reference< css::xml::sax::XEntityResolver >& Resolver ) override;
67 virtual void SAL_CALL setLocale( const css::lang::Locale& rLocale ) override;
68 virtual void SAL_CALL setNamespaceHandler( const css::uno::Reference< css::xml::sax::XFastNamespaceHandler >& Handler) override;
70 // XServiceInfo
71 virtual OUString SAL_CALL getImplementationName( ) override;
72 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
73 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
78 #endif // _SAX_FASTPARSER_HXX_
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */