LCOV - code coverage report
Current view: top level - cui/source/options - personasdochandler.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 4 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 5 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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             :  */
       9             : 
      10             : #ifndef INCLUDED_CUI_SOURCE_OPTIONS_PERSONASDOCHANDLER_HXX
      11             : #define INCLUDED_CUI_SOURCE_OPTIONS_PERSONASDOCHANDLER_HXX
      12             : 
      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>
      17             : 
      18           0 : class PersonasDocHandler : public ::cppu::WeakImplHelper1< css::xml::sax::XDocumentHandler >
      19             : {
      20             : private:
      21             :     std::vector<OUString> m_vLearnmoreURLs;
      22             :     bool m_isLearnmoreTag, m_hasResults;
      23             : public:
      24           0 :     PersonasDocHandler(){ m_isLearnmoreTag = false; m_hasResults = false; }
      25           0 :     std::vector<OUString> getLearnmoreURLs() { return m_vLearnmoreURLs; }
      26           0 :     bool hasResults() { return m_hasResults; }
      27             : 
      28             :     // XDocumentHandler
      29             :     virtual void SAL_CALL startDocument()
      30             :         throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      31             : 
      32             :     virtual void SAL_CALL endDocument()
      33             :         throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      34             : 
      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;
      39             : 
      40             :     virtual void SAL_CALL endElement( const OUString & aName )
      41             :         throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      42             : 
      43             :     virtual void SAL_CALL characters( const OUString & aChars )
      44             :         throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      45             : 
      46             :     virtual void SAL_CALL ignorableWhitespace( const OUString & aWhitespaces )
      47             :         throw ( css::xml::sax::SAXException, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      48             : 
      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;
      52             : 
      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;
      56             : };
      57             : 
      58             : #endif // INCLUDED_CUI_SOURCE_OPTIONS_PERSONASDOCHANDLER_HXX
      59             : 
      60             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11