bump product version to 5.0.4.1
[LibreOffice.git] / cui / source / options / personasdochandler.hxx
blob2383452468032ffea28cd6a3a5416288569b7b3d
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/.
8 */
10 #ifndef INCLUDED_CUI_SOURCE_OPTIONS_PERSONASDOCHANDLER_HXX
11 #define INCLUDED_CUI_SOURCE_OPTIONS_PERSONASDOCHANDLER_HXX
13 #include <cppuhelper/implbase1.hxx>
14 #include <com/sun/star/xml/sax/XAttributeList.hpp>
15 #include <com/sun/star/xml/sax/XParser.hpp>
16 #include <vector>
18 class PersonasDocHandler : public ::cppu::WeakImplHelper1< css::xml::sax::XDocumentHandler >
20 private:
21 std::vector<OUString> m_vLearnmoreURLs;
22 bool m_isLearnmoreTag, m_hasResults;
23 public:
24 PersonasDocHandler(){ m_isLearnmoreTag = false; m_hasResults = false; }
25 std::vector<OUString> getLearnmoreURLs() { return m_vLearnmoreURLs; }
26 bool hasResults() { return m_hasResults; }
28 // XDocumentHandler
29 virtual void SAL_CALL startDocument()
30 throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
32 virtual void SAL_CALL endDocument()
33 throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
35 virtual void SAL_CALL startElement( const OUString& aName,
36 const css::uno::Reference< css::xml::sax::XAttributeList > & xAttribs )
37 throw ( css::xml::sax::SAXException,
38 css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
40 virtual void SAL_CALL endElement( const OUString & aName )
41 throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
43 virtual void SAL_CALL characters( const OUString & aChars )
44 throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
46 virtual void SAL_CALL ignorableWhitespace( const OUString & aWhitespaces )
47 throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
49 virtual void SAL_CALL processingInstruction(
50 const OUString & aTarget, const OUString & aData )
51 throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
53 virtual void SAL_CALL setDocumentLocator(
54 const css::uno::Reference< css::xml::sax::XLocator >& xLocator )
55 throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
58 #endif // INCLUDED_CUI_SOURCE_OPTIONS_PERSONASDOCHANDLER_HXX
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */