summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-10-06 12:01:03 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-10-06 12:01:03 +0000
commitdbcb064fff42afeb5b5c2eb333acf467dc40cb5a (patch)
tree3562d72ba2b9da7bed73a177a97f6e7255169f57 /cppu
parenta3f6e45af48e59d374489937e96deadb460d6a92 (diff)
INTEGRATION: CWS unopkg (1.12.58); FILE MERGED
2003/09/25 13:26:27 dbo 1.12.58.1: added member function Reference<>::set( any const &, UnoReference_Query[Throw] )
Diffstat (limited to 'cppu')
-rw-r--r--cppu/inc/com/sun/star/uno/Reference.h31
1 files changed, 29 insertions, 2 deletions
diff --git a/cppu/inc/com/sun/star/uno/Reference.h b/cppu/inc/com/sun/star/uno/Reference.h
index 25c774f016f6..cd4a63d5e5c2 100644
--- a/cppu/inc/com/sun/star/uno/Reference.h
+++ b/cppu/inc/com/sun/star/uno/Reference.h
@@ -2,9 +2,9 @@
*
* $RCSfile: Reference.h,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: dbo $ $Date: 2002-08-21 09:19:05 $
+ * last change: $Author: vg $ $Date: 2003-10-06 13:01:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -390,6 +390,20 @@ public:
@return true, if non-null interface was set
*/
inline sal_Bool SAL_CALL set( const BaseReference & rRef, UnoReference_Query ) SAL_THROW( (RuntimeException) );
+
+ /** Queries given any for reference interface type (interface_type)
+ and sets it. An interface already set will be released.
+
+ @param rAny
+ an Any containing an interface
+ @param dummy
+ UNO_QUERY or UNO_REF_QUERY to force obvious distinction
+ to set methods
+ @return
+ true, if non-null interface was set
+ */
+ inline bool set( Any const & rAny, UnoReference_Query );
+
#ifndef EXCEPTIONS_OFF
/** Queries given interface for reference interface type (interface_type) and sets it.
An interface already set will be released.
@@ -409,6 +423,19 @@ public:
to set methods
*/
inline void SAL_CALL set( const BaseReference & rRef, UnoReference_QueryThrow ) SAL_THROW( (RuntimeException) );
+
+ /** Queries given any for reference interface type (interface_type) and
+ sets it. An interface already set will be released.
+ Throws a RuntimeException if the demanded interface cannot be set.
+
+ @param rAny
+ an Any containing an interface
+ @param dummy
+ UNO_QUERY_THROW or UNO_REF_QUERY_THROW to force obvious
+ distinction to set methods
+ */
+ inline void set( Any const & rAny, UnoReference_QueryThrow );
+
#endif
/** Assignment operator: Acquires given interface pointer and sets reference.