Home
last modified time | relevance | path

Searched refs:PyRef (Results 1 – 11 of 11) sorted by relevance

/trunk/main/pyuno/source/module/
H A Dpyuno_runtime.cxx128 static void getRuntimeImpl( PyRef & globalDict, PyRef &runtimeImpl ) in getRuntimeImpl()
331 PyRef globalDict, runtime; in initialize()
349 PyRef globalDict, runtime; in isInitialized()
357 PyRef globalDict, runtime; in finalize()
375 PyRef globalDict, runtime; in Runtime()
425 return PyRef(Py_None); in any2PyObject()
494 return PyRef( in any2PyObject()
923 Any Runtime::extractUnoException( const PyRef & excType, const PyRef &excValue, const PyRef &excTra… in extractUnoException()
925 PyRef str; in extractUnoException()
943 str = PyRef( in extractUnoException()
[all …]
H A Dpyuno_impl.hxx97 PyRef,
99 PyRef::Hash,
100 std::equal_to< PyRef >
107 PyRef,
120 typedef ::std::hash_set< PyRef , PyRef::Hash , std::equal_to<PyRef> > ClassSet;
161 PyRef PyUNO_callable_new (
178 PyRef getPyUnoClass();
212 PyRef dictUnoModule;
220 PyRef getUnoModule();
230 static PyRef create(
[all …]
H A Dpyuno_type.cxx117 PyRef getTypeClass( const Runtime & r ) in getTypeClass()
122 PyRef getEnumClass( const Runtime & r ) in getEnumClass()
127 PyRef getCharClass( const Runtime & r ) in getCharClass()
132 PyRef getByteSequenceClass( const Runtime & r ) in getByteSequenceClass()
137 PyRef getAnyClass( const Runtime & r ) in getAnyClass()
302 PyRef exc = getClass( name, runtime ); in importToGlobal()
406 PyRef args( PyTuple_New( 2 ), SAL_NO_ACQUIRE ); in PyUNO_Enum_new()
417 PyRef args( PyTuple_New( 2 ), SAL_NO_ACQUIRE ); in PyUNO_Type_new()
431 PyRef args( PyTuple_New( 1 ), SAL_NO_ACQUIRE ); in PyUNO_char_new()
450 PyRef str( in PyUNO_ByteSequence_new()
[all …]
H A Dpyuno_except.cxx48 PyRef exc = runtime.any2PyObject( anyExc ); in raisePyExceptionWithAny()
116 PyRef base; in createClass()
140 base = PyRef(PyExc_Exception); in createClass()
143 PyRef args( PyTuple_New( 3 ), SAL_NO_ACQUIRE ); in createClass()
147 PyRef bases; in createClass()
151 bases = PyRef( PyTuple_New( 1 ), SAL_NO_ACQUIRE ); in createClass()
157 bases = PyRef( PyTuple_New( 0 ), SAL_NO_ACQUIRE ); in createClass()
164 PyRef ret( in createClass()
214 PyRef attr( in isInstanceOfStructOrException()
227 PyRef getClass( const OUString & name , const Runtime &runtime) in getClass()
[all …]
H A Dpyuno_util.cxx61 PyRef ustring2PyUnicode( const OUString & str ) in ustring2PyUnicode()
63 PyRef ret; in ustring2PyUnicode()
67 …ret = PyRef( PyUnicode_FromUnicode( (const Py_UNICODE*)str.getStr(), str.getLength() ), SAL_NO_ACQ… in ustring2PyUnicode()
70 ret = PyRef( PyUnicode_DecodeUTF8( sUtf8.getStr(), sUtf8.getLength(), NULL) , SAL_NO_ACQUIRE ); in ustring2PyUnicode()
75 PyRef ustring2PyString( const OUString &str ) in ustring2PyString()
78 return PyRef( PyBytes_FromString( o.getStr() ), SAL_NO_ACQUIRE ); in ustring2PyString()
108 PyRef getObjectFromUnoModule( const Runtime &runtime, const char * func ) in getObjectFromUnoModule()
111PyRef object(PyDict_GetItemString( runtime.getImpl()->cargo->getUnoModule().get(), (char*)func ) ); in getObjectFromUnoModule()
H A Dpyuno_adapter.cxx61 Adapter::Adapter( const PyRef & ref, const Sequence< Type > &types ) in Adapter()
94 PyRef excType, excValue, excTraceback; in raiseInvocationTargetExceptionWhenNeeded()
223 PyRef argsTuple(PyTuple_New( size ), SAL_NO_ACQUIRE ); in invoke()
235 PyRef val = runtime.any2PyObject( aParams[i] ); in invoke()
240 PyRef method(PyObject_GetAttrString( mWrappedObject.get(), (char*)TO_ASCII(aFunctionName)), in invoke()
248 PyRef str( PyObject_Repr( mWrappedObject.get() ), SAL_NO_ACQUIRE ); in invoke()
253 PyRef pyRet( PyObject_CallObject( method.get(), argsTuple.get() ), SAL_NO_ACQUIRE ); in invoke()
378 PyRef obj = runtime.any2PyObject( value ); in setValue()
398 PyRef pyRef( in getValue()
H A Dpyuno.cxx339 PyRef ret; in PyUNO_invoke()
344 PyRef paras,callable; in PyUNO_invoke()
368 paras = PyRef(PyTuple_New( size ), SAL_NO_ACQUIRE); in PyUNO_invoke()
384 callable = PyRef( PyObject_GetAttrString( object , (char*)name ), SAL_NO_ACQUIRE ); in PyUNO_invoke()
388 ret = PyRef( PyObject_CallObject( callable.get(), paras.get() ), SAL_NO_ACQUIRE ); in PyUNO_invoke()
456 PyRef pUtf8(PyUnicode_AsUTF8String(attr_name), SAL_NO_ACQUIRE); in PyUNO_getattr()
514 PyRef ret = PyUNO_callable_new ( in PyUNO_getattr()
531 PyRef ret = runtime.any2PyObject(anyRet); in PyUNO_getattr()
574 PyRef pUtf8(PyUnicode_AsUTF8String(attr_name), SAL_NO_ACQUIRE); in PyUNO_setattr()
826 PyRef getPyUnoClass() in getPyUnoClass()
[all …]
H A Dpyuno_module.cxx141 PyRef ret; in getComponentContext()
245 PyRef ret; in createUnoStructHelper()
266 PyRef returnCandidate( (PyObject*)me, SAL_NO_ACQUIRE ); in createUnoStructHelper()
386 PyRef constant = runtime.any2PyObject( a ); in getConstantByName()
469 PyRef ret = getClass( pyString2ustring(obj), runtime ); in getClass()
509 PyRef ret; in generateUuid()
613 PyRef pUtf8(PyUnicode_AsUTF8String( PyTuple_GetItem( args, 1 ) ), SAL_NO_ACQUIRE); in invoke()
657 PyRef ret; in getCurrentContext()
673 PyRef ret; in setCurrentContext()
H A Dpyuno_callable.cxx82 PyRef ret; in PyUNO_callable_call()
122 PyRef temp = runtime.any2PyObject (ret_value); in PyUNO_callable_call()
125 PyRef return_list( PyTuple_New (1+aOutParam.getLength()), SAL_NO_ACQUIRE ); in PyUNO_callable_call()
138 PyRef ref = runtime.any2PyObject( aOutParam[i] ); in PyUNO_callable_call()
247 PyRef PyUNO_callable_new ( in PyUNO_callable_new()
263 return PyRef( (PyObject*)self, SAL_NO_ACQUIRE ); in PyUNO_callable_new()
/trunk/main/pyuno/inc/pyuno/
H A Dpyuno.hxx100 class PyRef class
104 PyRef () : m(0) {} in PyRef() function in pyuno::PyRef
105 PyRef( PyObject * p ) : m( p ) { Py_XINCREF( m ); } in PyRef() function in pyuno::PyRef
107 PyRef( PyObject * p, __sal_NoAcquire ) : m( p ) {} in PyRef() function in pyuno::PyRef
109 PyRef( const PyRef &r ) : m( r.get() ) { Py_XINCREF( m ); } in PyRef() function in pyuno::PyRef
111 ~PyRef() { Py_XDECREF( m ); } in ~PyRef()
121 PyRef & operator = ( const PyRef & r ) in operator =()
129 bool operator == ( const PyRef & r ) const in operator ==()
235 PyRef any2PyObject (const com::sun::star::uno::Any &source ) const
247 const PyRef & source , enum ConversionMode mode = REJECT_UNO_ANY ) const
[all …]
/trunk/main/pyuno/source/loader/
H A Dpyuno_loader.cxx41 using pyuno::PyRef;
59 PyRef excType, excValue, excTraceback; in raiseRuntimeExceptionWhenNeeded()
71 static PyRef getLoaderModule() throw( RuntimeException ) in getLoaderModule()
73 PyRef module( in getLoaderModule()
83 return PyRef( PyModule_GetDict( module.get() )); in getLoaderModule()
86 static PyRef getObjectFromLoaderModule( const char * func ) in getObjectFromLoaderModule()
89 PyRef object( PyDict_GetItemString(getLoaderModule().get(), (char*)func ) ); in getObjectFromLoaderModule()
202 PyRef pyCtx = runtime.any2PyObject( in CreateInstance()
205 PyRef clazz = getObjectFromLoaderModule( "Loader" ); in CreateInstance()
206 PyRef args ( PyTuple_New( 1 ), SAL_NO_ACQUIRE ); in CreateInstance()
[all …]

Completed in 54 milliseconds