1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #include "personasdochandler.hxx"
12 using namespace ::com::sun::star
;
13 using namespace ::com::sun::star::uno
;
17 PersonasDocHandler::startDocument()
18 throw ( xml::sax::SAXException
, RuntimeException
, std::exception
)
23 PersonasDocHandler::endDocument()
24 throw ( xml::sax::SAXException
, RuntimeException
, std::exception
)
29 PersonasDocHandler::characters( const OUString
& aChars
)
30 throw ( xml::sax::SAXException
, RuntimeException
, std::exception
)
32 if( m_isLearnmoreTag
)
33 m_vLearnmoreURLs
.push_back( aChars
);
37 PersonasDocHandler::ignorableWhitespace( const OUString
& )
38 throw ( xml::sax::SAXException
, RuntimeException
, std::exception
)
43 PersonasDocHandler::processingInstruction(
44 const OUString
&, const OUString
& )
45 throw ( xml::sax::SAXException
, RuntimeException
, std::exception
)
50 PersonasDocHandler::setDocumentLocator(
51 const Reference
< xml::sax::XLocator
>& )
52 throw ( xml::sax::SAXException
, RuntimeException
, std::exception
)
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" )
69 if ( aName
== "learnmore" )
70 m_isLearnmoreTag
= true;
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: */