Lines Matching refs:args
218 PyObject * extractOneStringArg( PyObject *args, char const *funcName ) in extractOneStringArg() argument
220 if( !PyTuple_Check( args ) || PyTuple_Size( args) != 1 ) in extractOneStringArg()
227 PyObject *obj = PyTuple_GetItem( args, 0 ); in extractOneStringArg()
242 static PyObject *createUnoStructHelper(PyObject *, PyObject* args ) in createUnoStructHelper() argument
250 if( PyTuple_Size( args ) == 2 ) in createUnoStructHelper()
252 PyObject *structName = PyTuple_GetItem( args,0 ); in createUnoStructHelper()
253 PyObject *initializer = PyTuple_GetItem( args ,1 ); in createUnoStructHelper()
331 static PyObject *getTypeByName( PyObject *, PyObject *args ) in getTypeByName() argument
339 if (PyArg_ParseTuple (args, const_cast< char * >("s"), &name)) in getTypeByName()
364 static PyObject *getConstantByName( PyObject *, PyObject *args ) in getConstantByName() argument
371 if (PyArg_ParseTuple (args, const_cast< char * >("s"), &name)) in getConstantByName()
412 static PyObject *checkType( PyObject *, PyObject *args ) in checkType() argument
414 if( !PyTuple_Check( args ) || PyTuple_Size( args) != 1 ) in checkType()
421 PyObject *obj = PyTuple_GetItem( args, 0 ); in checkType()
436 static PyObject *checkEnum( PyObject *, PyObject *args ) in checkEnum() argument
438 if( !PyTuple_Check( args ) || PyTuple_Size( args) != 1 ) in checkEnum()
445 PyObject *obj = PyTuple_GetItem( args, 0 ); in checkEnum()
460 static PyObject *getClass( PyObject *, PyObject *args ) in getClass() argument
462 PyObject *obj = extractOneStringArg( args, "pyuno.getClass"); in getClass()
484 static PyObject *isInterface( PyObject *, PyObject *args ) in isInterface() argument
487 if( PyTuple_Check( args ) && PyTuple_Size( args ) == 1 ) in isInterface()
489 PyObject *obj = PyTuple_GetItem( args, 0 ); in isInterface()
522 static PyObject *systemPathToFileUrl( PyObject *, PyObject * args ) in systemPathToFileUrl() argument
524 PyObject *obj = extractOneStringArg( args, "pyuno.systemPathToFileUrl" ); in systemPathToFileUrl()
547 static PyObject * fileUrlToSystemPath( PyObject *, PyObject * args ) in fileUrlToSystemPath() argument
549 PyObject *obj = extractOneStringArg( args, "pyuno.fileUrlToSystemPath" ); in fileUrlToSystemPath()
572 static PyObject * absolutize( PyObject *, PyObject * args ) in absolutize() argument
574 if( PyTuple_Check( args ) && PyTuple_Size( args ) == 2 ) in absolutize()
576 OUString ouPath = pyString2ustring( PyTuple_GetItem( args , 0 ) ); in absolutize()
577 OUString ouRel = pyString2ustring( PyTuple_GetItem( args, 1 ) ); in absolutize()
601 static PyObject * invoke ( PyObject *, PyObject * args ) in invoke() argument
604 if( PyTuple_Check( args ) && PyTuple_Size( args ) == 3 ) in invoke()
606 PyObject *object = PyTuple_GetItem( args, 0 ); in invoke()
608 if( PYSTR_CHECK( PyTuple_GetItem( args, 1 ) ) ) in invoke()
611 const char *name = PyUnicode_AsUTF8( PyTuple_GetItem( args, 1 ) ); in invoke()
613 PyRef pUtf8(PyUnicode_AsUTF8String( PyTuple_GetItem( args, 1 ) ), SAL_NO_ACQUIRE); in invoke()
616 const char *name = PyBytes_AsString( PyTuple_GetItem( args, 1 ) ); in invoke()
618 if( PyTuple_Check( PyTuple_GetItem( args , 2 ))) in invoke()
620 ret = PyUNO_invoke( object, name , PyTuple_GetItem( args, 2 ) ); in invoke()
627 …buf.append( OUStringToOString( pyString2ustring( PyTuple_GetItem( args, 2 ) ), RTL_TEXTENCODING_AS… in invoke()
629 buf.append( PyBytes_AsString( PyObject_Str( PyTuple_GetItem( args, 2) ) ) ); in invoke()
639 …buf.append( OUStringToOString( pyString2ustring( PyTuple_GetItem( args, 1 ) ), RTL_TEXTENCODING_AS… in invoke()
641 buf.append( PyBytes_AsString( PyObject_Str( PyTuple_GetItem( args, 1) ) ) ); in invoke()
671 static PyObject *setCurrentContext( PyObject *, PyObject * args ) in setCurrentContext() argument
676 if( PyTuple_Check( args ) && PyTuple_Size( args ) == 1 ) in setCurrentContext()
680 Any a = runtime.pyObject2Any( PyTuple_GetItem( args, 0 ) ); in setCurrentContext()
693 …buf.append( OUStringToOString( pyString2ustring( PyTuple_GetItem( args, 0 ) ), RTL_TEXTENCODING_AS… in setCurrentContext()
695 buf.append( PyBytes_AsString( PyObject_Str( PyTuple_GetItem( args, 0) ) ) ); in setCurrentContext()