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 9900 : inline SAXParseException::SAXParseException() SAL_THROW(())
19 : : css::xml::sax::SAXException()
20 : , PublicId()
21 : , SystemId()
22 : , LineNumber(0)
23 9900 : , ColumnNumber(0)
24 9900 : { }
25 :
26 1 : inline SAXParseException::SAXParseException(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< css::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 : : css::xml::sax::SAXException(Message_, Context_, WrappedException_)
28 : , PublicId(PublicId_)
29 : , SystemId(SystemId_)
30 : , LineNumber(LineNumber_)
31 1 : , ColumnNumber(ColumnNumber_)
32 1 : { }
33 :
34 2 : SAXParseException::SAXParseException(SAXParseException const & the_other): css::xml::sax::SAXException(the_other), PublicId(the_other.PublicId), SystemId(the_other.SystemId), LineNumber(the_other.LineNumber), ColumnNumber(the_other.ColumnNumber) {}
35 :
36 9903 : SAXParseException::~SAXParseException() {}
37 :
38 4218 : SAXParseException & SAXParseException::operator =(SAXParseException const & the_other) {
39 : //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
40 4218 : css::xml::sax::SAXException::operator =(the_other);
41 4218 : PublicId = the_other.PublicId;
42 4218 : SystemId = the_other.SystemId;
43 4218 : LineNumber = the_other.LineNumber;
44 4218 : ColumnNumber = the_other.ColumnNumber;
45 4218 : 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 css::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 css::xml::sax::SAXParseException const *) SAL_THROW(()) {
64 0 : return ::cppu::UnoType< css::xml::sax::SAXParseException >::get();
65 : }
66 :
67 : #endif // INCLUDED_COM_SUN_STAR_XML_SAX_SAXPARSEEXCEPTION_HPP
|