bump product version to 5.0.4.1
[LibreOffice.git] / cui / source / options / personasdochandler.cxx
blob9173aea8b550aee558784fc3748b4c1770982226
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 #include "personasdochandler.hxx"
12 using namespace ::com::sun::star;
13 using namespace ::com::sun::star::uno;
15 // XDocumentHandler
16 void SAL_CALL
17 PersonasDocHandler::startDocument()
18 throw ( xml::sax::SAXException, RuntimeException, std::exception )
22 void SAL_CALL
23 PersonasDocHandler::endDocument()
24 throw ( xml::sax::SAXException, RuntimeException, std::exception )
28 void SAL_CALL
29 PersonasDocHandler::characters( const OUString & aChars)
30 throw ( xml::sax::SAXException, RuntimeException, std::exception )
32 if( m_isLearnmoreTag )
33 m_vLearnmoreURLs.push_back( aChars );
36 void SAL_CALL
37 PersonasDocHandler::ignorableWhitespace( const OUString & )
38 throw ( xml::sax::SAXException, RuntimeException, std::exception )
42 void SAL_CALL
43 PersonasDocHandler::processingInstruction(
44 const OUString &, const OUString & )
45 throw ( xml::sax::SAXException, RuntimeException, std::exception )
49 void SAL_CALL
50 PersonasDocHandler::setDocumentLocator(
51 const Reference< xml::sax::XLocator >& )
52 throw ( xml::sax::SAXException, RuntimeException, std::exception )
56 void SAL_CALL
57 PersonasDocHandler::startElement( const OUString& aName,
58 const Reference< xml::sax::XAttributeList > &xAttribs )
59 throw ( xml::sax::SAXException,
60 RuntimeException, std::exception )
62 if( aName == "searchresults" )
64 OUString aTotalResults = xAttribs->getValueByName( "total_results" );
65 if( aTotalResults != "0" )
66 m_hasResults = true;
69 if ( aName == "learnmore" )
70 m_isLearnmoreTag = true;
71 else
72 m_isLearnmoreTag = false;
75 void SAL_CALL PersonasDocHandler::endElement( const OUString & )
76 throw ( xml::sax::SAXException, RuntimeException, std::exception )
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */