1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
--- ../bridges/test/testcomp.cxx.orig Wed Mar 12 17:40:53 2003
+++ ../bridges/test/testcomp.cxx Wed Mar 12 17:42:54 2003
@@ -2,9 +2,9 @@
*
* $RCSfile: testcomp.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.2.54.1 $
*
- * last change: $Author: jl $ $Date: 2001/03/14 09:25:39 $
+ * last change: $Author: mh $ $Date: 2003/03/12 09:23:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -125,7 +125,7 @@
}
}
-Any OInstanceProvider::queryInterface( const Type & aType )
+Any OInstanceProvider::queryInterface( const Type & aType ) throw ( RuntimeException )
{
Any a = ::cppu::queryInterface( aType ,
SAL_STATIC_CAST( XInstanceProvider * , this ) );
@@ -192,9 +192,9 @@
}
return aRet;
}
- virtual void SAL_CALL acquire() throw(::com::sun::star::uno::RuntimeException)
+ virtual void SAL_CALL acquire() throw()
{ osl_incrementInterlockedCount( &_nRef ); }
- virtual void SAL_CALL release() throw(::com::sun::star::uno::RuntimeException)
+ virtual void SAL_CALL release() throw()
{ if (! osl_decrementInterlockedCount( &_nRef )) delete this; }
// XServiceInfo
@@ -325,7 +325,7 @@
*
*****************/
-Any OCallMe::queryInterface( const Type & aType )
+Any OCallMe::queryInterface( const Type & aType ) throw ( RuntimeException )
{
Any a = ::cppu::queryInterface( aType,
SAL_STATIC_CAST( XCallMe * , this ) );
@@ -421,7 +421,7 @@
* OInterfaceTest
*
*******************/
-Any OInterfaceTest::queryInterface( const Type & aType )
+Any OInterfaceTest::queryInterface( const Type & aType ) throw ( RuntimeException )
{
Any a = ::cppu::queryInterface( aType,
SAL_STATIC_CAST( XInterfaceTest * , this ) );
@@ -473,7 +473,7 @@
}
-Any OTestFactory::queryInterface( const Type & aType )
+Any OTestFactory::queryInterface( const Type & aType ) throw ( RuntimeException )
{
Any a = ::cppu::queryInterface( aType,
SAL_STATIC_CAST( XTestFactory * , this ) );
@@ -500,42 +500,6 @@
-/********************************************************
- *
- ********************************************************/
-/*Any OConnectCallback::queryInterface( const Type & aType )
-{
- Any a = ::cppu::queryInterface( aType,
- SAL_STATIC_CAST( XConnectCallback * , this ) );
- if( a.hasValue() )
- {
- return a;
- }
- return OWeakObject::queryInterface( aType );
-}
-
-
-void SAL_CALL OConnectCallback::attemptConnect(
- const Reference< XConnectionServerSide >& connection )
- throw(SecurityException, ::com::sun::star::uno::RuntimeException)
-{
- // TODO
- // user verification
- if( L"bad guy" == connection->getUser() &&
- L"secret" == connection->getPassword() )
- {
- Reference< XInterface > rInterface(
- ( XInterface * ) (::cppu::OWeakObject *) new OTestFactory() );
- connection->provideRemoteObject( rInterface );
- }
- else
- {
- throw SecurityException();
- }
-}
-
-*/
-
// class OInstanceProvider :
// public ::cppu::OWeakObject,
@@ -551,7 +515,6 @@
// void SAL_CALL release() { OWeakObject::release(); }
// public:
-// // XConnectCallback
// virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
// getInstance( const ::rtl::OUString& sObjectName )
// throw( ::com::sun::star::container::NoSuchElementException,
|