summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyuno/inc/pyuno/pyuno.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyuno/inc/pyuno/pyuno.hxx b/pyuno/inc/pyuno/pyuno.hxx
index 027ac6f359f0..86713bea48e0 100644
--- a/pyuno/inc/pyuno/pyuno.hxx
+++ b/pyuno/inc/pyuno/pyuno.hxx
@@ -131,6 +131,8 @@ public:
struct stRuntimeImpl;
typedef struct stRuntimeImpl RuntimeImpl;
+enum ConversionMode { ACCEPT_UNO_ANY, REJECT_UNO_ANY };
+
/** The pyuno::Runtime class keeps the internal state of the python UNO bridge
for the currently in use python interpreter.
@@ -209,7 +211,8 @@ public:
the global interpreter lock is held and pyuno
has been initialized
*/
- com::sun::star::uno::Any pyObject2Any ( const PyRef & source ) const
+ com::sun::star::uno::Any pyObject2Any (
+ const PyRef & source , enum ConversionMode mode = REJECT_UNO_ANY ) const
throw ( com::sun::star::uno::RuntimeException);