Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_DOCUMENT_OWNLOCKONDOCUMENTREQUEST_HPP
2 : : #define INCLUDED_COM_SUN_STAR_DOCUMENT_OWNLOCKONDOCUMENTREQUEST_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/document/OwnLockOnDocumentRequest.hdl"
7 : :
8 : : #include "com/sun/star/uno/Exception.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 document {
17 : :
18 : 0 : inline OwnLockOnDocumentRequest::OwnLockOnDocumentRequest() SAL_THROW(())
19 : : : ::com::sun::star::uno::Exception()
20 : : , DocumentURL()
21 : : , TimeInfo()
22 : 0 : , IsStoring(false)
23 : 0 : { }
24 : :
25 : 0 : inline OwnLockOnDocumentRequest::OwnLockOnDocumentRequest(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Context_, const ::rtl::OUString& DocumentURL_, const ::rtl::OUString& TimeInfo_, const ::sal_Bool& IsStoring_) SAL_THROW(())
26 : : : ::com::sun::star::uno::Exception(Message_, Context_)
27 : : , DocumentURL(DocumentURL_)
28 : : , TimeInfo(TimeInfo_)
29 : 0 : , IsStoring(IsStoring_)
30 : 0 : { }
31 : :
32 : : OwnLockOnDocumentRequest::OwnLockOnDocumentRequest(OwnLockOnDocumentRequest const & the_other): ::com::sun::star::uno::Exception(the_other), DocumentURL(the_other.DocumentURL), TimeInfo(the_other.TimeInfo), IsStoring(the_other.IsStoring) {}
33 : :
34 : 0 : OwnLockOnDocumentRequest::~OwnLockOnDocumentRequest() {}
35 : :
36 : : OwnLockOnDocumentRequest & OwnLockOnDocumentRequest::operator =(OwnLockOnDocumentRequest const & the_other) {
37 : : //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
38 : : ::com::sun::star::uno::Exception::operator =(the_other);
39 : : DocumentURL = the_other.DocumentURL;
40 : : TimeInfo = the_other.TimeInfo;
41 : : IsStoring = the_other.IsStoring;
42 : : return *this;
43 : : }
44 : :
45 : : } } } }
46 : :
47 : : namespace com { namespace sun { namespace star { namespace document {
48 : :
49 : 0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::document::OwnLockOnDocumentRequest const *) {
50 : : static typelib_TypeDescriptionReference * the_type = 0;
51 [ # # ]: 0 : if ( !the_type )
52 : : {
53 : 0 : typelib_static_type_init( &the_type, typelib_TypeClass_EXCEPTION, "com.sun.star.document.OwnLockOnDocumentRequest" );
54 : : }
55 : 0 : return * reinterpret_cast< ::com::sun::star::uno::Type * >( &the_type );
56 : : }
57 : :
58 : : } } } }
59 : :
60 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::document::OwnLockOnDocumentRequest const *) SAL_THROW(()) {
61 : : return ::cppu::UnoType< ::com::sun::star::document::OwnLockOnDocumentRequest >::get();
62 : : }
63 : :
64 : : #endif // INCLUDED_COM_SUN_STAR_DOCUMENT_OWNLOCKONDOCUMENTREQUEST_HPP
|