LibreOffice Module sax (master) 1
Macros | Functions
sax_expat.cxx File Reference
#include <string.h>
#include <cassert>
#include <memory>
#include <mutex>
#include <utility>
#include <string_view>
#include <vector>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
#include <com/sun/star/xml/sax/XParser.hpp>
#include <com/sun/star/xml/sax/SAXParseException.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/io/XSeekable.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <comphelper/attributelist.hxx>
#include <cppuhelper/weak.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <rtl/ref.hxx>
#include <sal/log.hxx>
#include <expat.h>
#include <xml2utf.hxx>
Include dependency graph for sax_expat.cxx:

Go to the source code of this file.

Macros

#define XML_CHAR_TO_OUSTRING(x)   OUString(x , strlen( x ), RTL_TEXTENCODING_UTF8)
 
#define XML_CHAR_N_TO_USTRING(x, n)   OUString(x,n, RTL_TEXTENCODING_UTF8 )
 
#define CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS(pThis, call)
 

Functions

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_extensions_xml_sax_ParserExpat_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
 

Macro Definition Documentation

◆ CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS

#define CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS (   pThis,
  call 
)
Value:
if( ! pThis->bExceptionWasThrown ) { \
try {\
pThis->call;\
}\
catch( const SAXParseException &e ) {\
callErrorHandler( pThis , e );\
}\
catch( const SAXException &e ) {\
callErrorHandler( pThis , SAXParseException(\
e.Message, \
e.Context, \
e.WrappedException,\
pThis->rDocumentLocator->getPublicId(),\
pThis->rDocumentLocator->getSystemId(),\
pThis->rDocumentLocator->getLineNumber(),\
pThis->rDocumentLocator->getColumnNumber()\
) );\
}\
catch( const css::uno::RuntimeException &e ) {\
pThis->bExceptionWasThrown = true; \
pThis->bRTExceptionWasThrown = true; \
pImpl->rtexception = e; \
}\
catch( const css::uno::Exception &e ) {\
pThis->bExceptionWasThrown = true; \
pThis->bRTExceptionWasThrown = true; \
pImpl->rtexception = WrappedTargetRuntimeException("Non-runtime UNO exception caught during parse", e.Context, css::uno::Any(e)); \
}\
}\
((void)0)

Definition at line 67 of file sax_expat.cxx.

◆ XML_CHAR_N_TO_USTRING

#define XML_CHAR_N_TO_USTRING (   x,
  n 
)    OUString(x,n, RTL_TEXTENCODING_UTF8 )

Definition at line 59 of file sax_expat.cxx.

◆ XML_CHAR_TO_OUSTRING

#define XML_CHAR_TO_OUSTRING (   x)    OUString(x , strlen( x ), RTL_TEXTENCODING_UTF8)

Definition at line 58 of file sax_expat.cxx.

Function Documentation

◆ com_sun_star_comp_extensions_xml_sax_ParserExpat_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_extensions_xml_sax_ParserExpat_get_implementation ( css::uno::XComponentContext *  ,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 950 of file sax_expat.cxx.