Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_XML_SAX_SAXPARSEEXCEPTION_HPP
2 : : #define INCLUDED_COM_SUN_STAR_XML_SAX_SAXPARSEEXCEPTION_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/xml/sax/SAXParseException.hdl"
7 : :
8 : : #include "com/sun/star/xml/sax/SAXException.hpp"
9 : : #include "com/sun/star/uno/Type.hxx"
10 : : #include "cppu/unotype.hxx"
11 : : #include "osl/mutex.hxx"
12 : : #include "rtl/ustring.hxx"
13 : : #include "rtl/instance.hxx"
14 : : #include "sal/types.h"
15 : :
16 : : namespace com { namespace sun { namespace star { namespace xml { namespace sax {
17 : :
18 : 15660 : inline SAXParseException::SAXParseException() SAL_THROW(())
19 : : : ::com::sun::star::xml::sax::SAXException()
20 : : , PublicId()
21 : : , SystemId()
22 : : , LineNumber(0)
23 : 15660 : , ColumnNumber(0)
24 : 15660 : { }
25 : :
26 : 3 : inline SAXParseException::SAXParseException(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Context_, const ::com::sun::star::uno::Any& WrappedException_, const ::rtl::OUString& PublicId_, const ::rtl::OUString& SystemId_, const ::sal_Int32& LineNumber_, const ::sal_Int32& ColumnNumber_) SAL_THROW(())
27 : : : ::com::sun::star::xml::sax::SAXException(Message_, Context_, WrappedException_)
28 : : , PublicId(PublicId_)
29 : : , SystemId(SystemId_)
30 : : , LineNumber(LineNumber_)
31 : 3 : , ColumnNumber(ColumnNumber_)
32 : 3 : { }
33 : :
34 : 5 : SAXParseException::SAXParseException(SAXParseException const & the_other): ::com::sun::star::xml::sax::SAXException(the_other), PublicId(the_other.PublicId), SystemId(the_other.SystemId), LineNumber(the_other.LineNumber), ColumnNumber(the_other.ColumnNumber) {}
35 : :
36 : 15668 : SAXParseException::~SAXParseException() {}
37 : :
38 : 7299 : SAXParseException & SAXParseException::operator =(SAXParseException const & the_other) {
39 : : //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
40 : 7299 : ::com::sun::star::xml::sax::SAXException::operator =(the_other);
41 : 7299 : PublicId = the_other.PublicId;
42 : 7299 : SystemId = the_other.SystemId;
43 : 7299 : LineNumber = the_other.LineNumber;
44 : 7299 : ColumnNumber = the_other.ColumnNumber;
45 : 7299 : return *this;
46 : : }
47 : :
48 : : } } } } }
49 : :
50 : : namespace com { namespace sun { namespace star { namespace xml { namespace sax {
51 : :
52 : 0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::xml::sax::SAXParseException const *) {
53 : : static typelib_TypeDescriptionReference * the_type = 0;
54 [ # # ]: 0 : if ( !the_type )
55 : : {
56 : 0 : typelib_static_type_init( &the_type, typelib_TypeClass_EXCEPTION, "com.sun.star.xml.sax.SAXParseException" );
57 : : }
58 : 0 : return * reinterpret_cast< ::com::sun::star::uno::Type * >( &the_type );
59 : : }
60 : :
61 : : } } } } }
62 : :
63 : 0 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::xml::sax::SAXParseException const *) SAL_THROW(()) {
64 : 0 : return ::cppu::UnoType< ::com::sun::star::xml::sax::SAXParseException >::get();
65 : : }
66 : :
67 : : #endif // INCLUDED_COM_SUN_STAR_XML_SAX_SAXPARSEEXCEPTION_HPP
|