From 4640b548a7ceda0016c465ee4e15086a54defdb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Budischewski?= Date: Sat, 24 May 2003 22:28:33 +0000 Subject: #i12504# added conversion mode --- pyuno/source/module/pyuno_callable.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'pyuno/source/module/pyuno_callable.cxx') diff --git a/pyuno/source/module/pyuno_callable.cxx b/pyuno/source/module/pyuno_callable.cxx index fbe1f3690d86..71f1429d7204 100644 --- a/pyuno/source/module/pyuno_callable.cxx +++ b/pyuno/source/module/pyuno_callable.cxx @@ -2,9 +2,9 @@ * * $RCSfile: pyuno_callable.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: jbu $ $Date: 2003-03-23 12:12:56 $ + * last change: $Author: jbu $ $Date: 2003-05-24 23:27:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -85,6 +85,7 @@ typedef struct Reference xInvocationFactory; Reference xTypeConverter; OUString methodName; + ConversionMode mode; } PyUNO_callable_Internals; typedef struct @@ -124,7 +125,7 @@ PyObject* PyUNO_callable_call (PyObject* self, PyObject* args, PyObject* kwords) try { Runtime runtime; - any_params = runtime.pyObject2Any (args); + any_params = runtime.pyObject2Any (args, me->members->mode); if (any_params.getValueTypeClass () == com::sun::star::uno::TypeClass_SEQUENCE) { @@ -215,7 +216,8 @@ PyRef PyUNO_callable_new ( const Reference &my_inv, const OUString & methodName, const Reference &xInvocationFactory, - const Reference &tc) + const Reference &tc, + enum ConversionMode mode ) { PyUNO_callable* self; @@ -228,6 +230,7 @@ PyRef PyUNO_callable_new ( self->members->methodName = methodName; self->members->xInvocationFactory = xInvocationFactory; self->members->xTypeConverter = tc; + self->members->mode = mode; return PyRef( (PyObject*)self, SAL_NO_ACQUIRE ); } -- cgit v1.2.1