LibreOffice Module pyuno (master)  1
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
pyuno Namespace Reference

Namespaces

 LogLevel
 

Classes

class  Adapter
 
class  PyRef
 Helper class for keeping references to python objects. More...
 
class  PyThreadAttach
 helper class for attaching the current thread to the python runtime. More...
 
class  PyThreadDetach
 helper class for detaching the current thread from the python runtime to do some blocking, non-python related operation. More...
 
struct  PyUNO
 
struct  PyUNO_iterator
 
struct  PyUNO_iterator_Internals
 
struct  PyUNO_list_iterator
 
struct  PyUNO_list_iterator_Internals
 
struct  PyUNOInternals
 
class  Runtime
 The pyuno::Runtime class keeps the internal state of the python UNO bridge for the currently in use python interpreter. More...
 
struct  RuntimeCargo
 
struct  stRuntimeImpl
 

Typedefs

typedef std::unordered_map< PyRef, css::uno::WeakReference< css::script::XInvocation >, PyRef::HashPyRef2Adapter
 
typedef std::unordered_map< OUString, PyRefExceptionClassMap
 
typedef std::unordered_map< OUString, css::uno::Sequence< sal_Int16 >> MethodOutIndexMap
 
typedef std::unordered_set< PyRef, PyRef::HashClassSet
 
typedef struct stRuntimeImpl RuntimeImpl
 

Enumerations

enum  NotNull { NOT_NULL }
 
enum  ConversionMode {
  ACCEPT_UNO_ANY,
  REJECT_UNO_ANY
}
 

Functions

static PyObject * PyUNO_str (PyObject *self)
 
static void PyUNO_del (PyObject *self)
 
OUString val2str (const void *pVal, typelib_TypeDescriptionReference *pTypeRef, sal_Int32 mode)
 
static sal_Int32 lcl_PyNumber_AsSal_Int32 (PyObject *pObj)
 
static int lcl_PySlice_GetIndicesEx (PyObject *pObject, sal_Int32 nLen, sal_Int32 *nStart, sal_Int32 *nStop, sal_Int32 *nStep, sal_Int32 *nSliceLength)
 
static bool lcl_hasInterfaceByName (Any const &object, OUString const &interfaceName)
 
static PyObject * PyUNO_repr (PyObject *self)
 
static Py_hash_t PyUNO_hash (PyObject *self)
 
PyObject * PyUNO_invoke (PyObject *object, const char *name, PyObject *args)
 
static PyObject * PyUNO_dir (PyObject *self)
 
static sal_Int32 lcl_detach_getLength (PyUNO const *me)
 
static int PyUNO_bool (PyObject *self)
 
static Py_ssize_t PyUNO_len (PyObject *self)
 
static void lcl_getRowsColumns (PyUNO const *me, sal_Int32 &nRows, sal_Int32 &nColumns)
 
static PyRef lcl_indexToSlice (const PyRef &rIndex)
 
static PyObject * lcl_getitem_XCellRange (PyUNO const *me, PyObject *pKey)
 
static PyObject * lcl_getitem_index (PyUNO const *me, PyObject *pKey, Runtime const &runtime)
 
static PyObject * lcl_getitem_slice (PyUNO const *me, PyObject *pKey)
 
static PyObject * lcl_getitem_string (PyUNO const *me, PyObject *pKey, Runtime const &runtime)
 
static PyObject * PyUNO_getitem (PyObject *self, PyObject *pKey)
 
static int lcl_setitem_index (PyUNO const *me, PyObject *pKey, PyObject *pValue)
 
static int lcl_setitem_slice (PyUNO const *me, PyObject *pKey, PyObject *pValue)
 
static int lcl_setitem_string (PyUNO const *me, PyObject *pKey, PyObject *pValue)
 
static int PyUNO_setitem (PyObject *self, PyObject *pKey, PyObject *pValue)
 
static PyObject * PyUNO_iter (PyObject *self)
 
static int PyUNO_contains (PyObject *self, PyObject *pKey)
 
static PyObject * PyUNO_getattr (PyObject *self, char *name)
 
static int PyUNO_setattr (PyObject *self, char *name, PyObject *value)
 
static PyObject * PyUNO_cmp (PyObject *self, PyObject *that, int op)
 
int PyUNO_initType ()
 
PyRef getPyUnoClass ()
 
PyRef PyUNO_new (const Any &targetInterface, const Reference< XSingleServiceFactory > &ssf)
 
void raiseInvocationTargetExceptionWhenNeeded (const Runtime &runtime)
 
static void PyUNO_callable_del (PyObject *self)
 
static PyObject * PyUNO_callable_call (PyObject *self, PyObject *args, SAL_UNUSED_PARAMETER PyObject *)
 
PyRef PyUNO_callable_new (const Reference< XInvocation2 > &my_inv, const OUString &methodName, enum ConversionMode mode)
 
void raisePyExceptionWithAny (const css::uno::Any &anyExc)
 
static PyRef createClass (const OUString &name, const Runtime &runtime)
 
bool isInstanceOfStructOrException (PyObject *obj)
 
bool isInterfaceClass (const Runtime &runtime, PyObject *obj)
 
PyRef getClass (const OUString &name, const Runtime &runtime)
 
static bool isAfterUnloadOrPy_Finalize ()
 
void decreaseRefCount (PyInterpreterState *interpreter, PyObject *object)
 releases a refcount on the interpreter object and on another given python object. More...
 
bool isLog (RuntimeCargo const *cargo, sal_Int32 loglevel)
 
void log (RuntimeCargo *cargo, sal_Int32 level, const OUString &logString)
 
void log (RuntimeCargo *cargo, sal_Int32 level, const char *str)
 
void logCall (RuntimeCargo *cargo, const char *intro, void *ptr, const OUString &aFunctionName, const css::uno::Sequence< css::uno::Any > &args)
 
void logReply (RuntimeCargo *cargo, const char *intro, void *ptr, const OUString &aFunctionName, const css::uno::Any &returnValue, const css::uno::Sequence< css::uno::Any > &args)
 
void logException (RuntimeCargo *cargo, const char *intro, void *ptr, const OUString &aFunctionName, const void *data, const css::uno::Type &type)
 
int PyUNOStruct_initType ()
 
PyRef PyUNO_new (const css::uno::Any &targetInterface, const css::uno::Reference< css::lang::XSingleServiceFactory > &ssf)
 
PyRef PyUNOStruct_new (const css::uno::Any &targetInterface, const css::uno::Reference< css::lang::XSingleServiceFactory > &ssf)
 
PyObject * PyUNO_iterator_new (const css::uno::Reference< css::container::XEnumeration > &xEnumeration)
 
PyObject * PyUNO_list_iterator_new (const css::uno::Reference< css::container::XIndexAccess > &xIndexAccess)
 
PyRef ustring2PyUnicode (const OUString &source)
 
PyRef ustring2PyString (const OUString &source)
 
OUString pyString2ustring (PyObject *str)
 
PyRef PyUNO_callable_new (const css::uno::Reference< css::script::XInvocation2 > &xInv, const OUString &methodName, ConversionMode mode=REJECT_UNO_ANY)
 
PyObject * PyUNO_Type_new (const char *typeName, css::uno::TypeClass t, const Runtime &r)
 
PyObject * PyUNO_Enum_new (const char *enumBase, const char *enumValue, const Runtime &r)
 
PyObject * PyUNO_char_new (sal_Unicode c, const Runtime &r)
 
PyObject * PyUNO_ByteSequence_new (const css::uno::Sequence< sal_Int8 > &, const Runtime &r)
 
PyRef getTypeClass (const Runtime &)
 
PyRef getEnumClass (const Runtime &)
 
PyRef getCharClass (const Runtime &)
 
PyRef getByteSequenceClass (const Runtime &)
 
PyRef getPyUnoStructClass ()
 
PyRef getAnyClass (const Runtime &)
 
css::uno::Any PyEnum2Enum (PyObject *obj)
 
sal_Unicode PyChar2Unicode (PyObject *o)
 
css::uno::Type PyType2Type (PyObject *o)
 
const char * typeClassToString (css::uno::TypeClass t)
 
PyRef getObjectFromUnoModule (const Runtime &runtime, const char *object)
 
static void PyUNO_iterator_del (PyObject *self)
 
static PyObject * PyUNO_iterator_iter (PyObject *self)
 
static PyObject * PyUNO_iterator_next (PyObject *self)
 
PyObject * PyUNO_iterator_new (const Reference< XEnumeration > &xEnumeration)
 
static void PyUNO_list_iterator_del (PyObject *self)
 
static PyObject * PyUNO_list_iterator_next (PyObject *self)
 
PyObject * PyUNO_list_iterator_new (const Reference< XIndexAccess > &xIndexAccess)
 
static void getRuntimeImpl (PyRef &globalDict, PyRef &runtimeImpl)
 
static PyRef importUnoModule ()
 
static void readLoggingConfig (sal_Int32 *pLevel, FILE **ppFile)
 
static Sequence< TypeinvokeGetTypes (const Runtime &r, PyObject *o)
 
static OUString lcl_ExceptionMessage (PyObject *const o, OUString const *const pWrapped)
 
static void PyUNOStruct_del (PyObject *self)
 
static PyObject * PyUNOStruct_str (PyObject *self)
 
static PyObject * PyUNOStruct_repr (PyObject *self)
 
static PyObject * PyUNOStruct_dir (PyObject *self)
 
static PyObject * PyUNOStruct_getattr (PyObject *self, char *name)
 
static int PyUNOStruct_setattr (PyObject *self, char *name, PyObject *value)
 
static PyObject * PyUNOStruct_cmp (PyObject *self, PyObject *that, int op)
 
PyRef PyUNOStruct_new (const Any &targetInterface, const Reference< XSingleServiceFactory > &ssf)
 
const char * typeClassToString (TypeClass t)
 
static PyRef getClass (const Runtime &r, const char *name)
 
static PyObject * callCtor (const Runtime &r, const char *clazz, const PyRef &args)
 
PyObject * PyUNO_Type_new (const char *typeName, TypeClass t, const Runtime &r)
 
void logReply (RuntimeCargo *cargo, const char *intro, void *ptr, const OUString &aFunctionName, const Any &returnValue, const Sequence< Any > &aParams)
 
void logCall (RuntimeCargo *cargo, const char *intro, void *ptr, const OUString &aFunctionName, const Sequence< Any > &aParams)
 

Variables

static PyMethodDef PyUNOMethods []
 
static PyNumberMethods PyUNONumberMethods []
 
static PySequenceMethods PyUNOSequenceMethods []
 
static PyMappingMethods PyUNOMappingMethods []
 
static PyTypeObject PyUNOType
 
static cppu::OImplementationId g_id (false)
 
static PyTypeObject PyUNO_callable_Type
 
static bool g_destructorsOfStaticObjectsHaveBeenCalled
 
static StaticDestructorGuard guard
 
const sal_Int32 VAL2STR_MODE_DEEP = 0
 
const sal_Int32 VAL2STR_MODE_SHALLOW = 1
 
static PyTypeObject PyUNO_iterator_Type
 
static PyTypeObject PyUNO_list_iterator_Type
 
static PyTypeObject RuntimeImpl_Type
 
static PyMethodDef PyUNOStructMethods []
 
static PyTypeObject PyUNOStructType
 

Typedef Documentation

typedef std::unordered_set< PyRef , PyRef::Hash > pyuno::ClassSet

Definition at line 116 of file pyuno_impl.hxx.

typedef std::unordered_map< OUString, PyRef> pyuno::ExceptionClassMap

Definition at line 108 of file pyuno_impl.hxx.

typedef std::unordered_map< OUString, css::uno::Sequence< sal_Int16 >> pyuno::MethodOutIndexMap

Definition at line 114 of file pyuno_impl.hxx.

typedef std::unordered_map< PyRef, css::uno::WeakReference< css::script::XInvocation >, PyRef::Hash> pyuno::PyRef2Adapter

Definition at line 101 of file pyuno_impl.hxx.

Definition at line 151 of file pyuno.hxx.

Enumeration Type Documentation

Enumerator
ACCEPT_UNO_ANY 
REJECT_UNO_ANY 

Definition at line 153 of file pyuno.hxx.

Enumerator
NOT_NULL 

definition of a no acquire enum for ctors

Definition at line 61 of file pyuno.hxx.

Function Documentation

static PyObject* pyuno::callCtor ( const Runtime r,
const char *  clazz,
const PyRef args 
)
static
static PyRef pyuno::createClass ( const OUString &  name,
const Runtime runtime 
)
static
void pyuno::decreaseRefCount ( PyInterpreterState *  interpreter,
PyObject *  object 
)

releases a refcount on the interpreter object and on another given python object.

The function can be called from any thread regardless of whether the global interpreter lock is held.

Definition at line 104 of file pyuno_gc.cxx.

References isAfterUnloadOrPy_Finalize().

Referenced by pyuno::Adapter::~Adapter().

PyRef pyuno::getAnyClass ( const Runtime r)

Definition at line 122 of file pyuno_type.cxx.

References getClass().

Referenced by pyuno::Runtime::pyObject2Any(), and PyUNO_invoke().

PyRef pyuno::getByteSequenceClass ( const Runtime r)

Definition at line 117 of file pyuno_type.cxx.

References getClass().

Referenced by pyuno::Runtime::pyObject2Any().

PyRef pyuno::getCharClass ( const Runtime r)

Definition at line 112 of file pyuno_type.cxx.

References getClass().

Referenced by pyuno::Runtime::pyObject2Any().

static PyRef pyuno::getClass ( const Runtime r,
const char *  name 
)
static
PyRef pyuno::getClass ( const OUString &  name,
const Runtime runtime 
)
PyRef pyuno::getEnumClass ( const Runtime r)

Definition at line 107 of file pyuno_type.cxx.

References getClass().

Referenced by pyuno::Runtime::pyObject2Any().

PyRef pyuno::getObjectFromUnoModule ( const Runtime runtime,
const char *  object 
)
Exceptions
css::uno::RuntimeException

Definition at line 79 of file pyuno_util.cxx.

References pyuno::stRuntimeImpl::cargo, pyuno::PyRef::get(), pyuno::Runtime::getImpl(), and pyuno::RuntimeCargo::getUnoModule().

Referenced by createClass().

PyRef pyuno::getPyUnoClass ( )

Definition at line 1682 of file pyuno.cxx.

Referenced by pyuno::Runtime::pyObject2Any(), PyUNO_cmp(), and PyUNO_invoke().

PyRef pyuno::getPyUnoStructClass ( )

Definition at line 369 of file pyuno_struct.cxx.

Referenced by pyuno::Runtime::pyObject2Any(), and PyUNOStruct_cmp().

static void pyuno::getRuntimeImpl ( PyRef globalDict,
PyRef runtimeImpl 
)
static
Exceptions
css::uno::RuntimeException

Definition at line 148 of file pyuno_runtime.cxx.

References pyuno::PyRef::get(), and pyuno::PyRef::is().

Referenced by pyuno::Runtime::initialize(), pyuno::Runtime::isInitialized(), and pyuno::Runtime::Runtime().

PyRef pyuno::getTypeClass ( const Runtime r)

Definition at line 102 of file pyuno_type.cxx.

References getClass().

Referenced by pyuno::Runtime::pyObject2Any().

static PyRef pyuno::importUnoModule ( )
static
Exceptions
RuntimeException

Definition at line 173 of file pyuno_runtime.cxx.

References pyuno::PyRef::get(), and NOT_NULL.

Referenced by pyuno::RuntimeCargo::getUnoModule().

static Sequence< Type > pyuno::invokeGetTypes ( const Runtime r,
PyObject *  o 
)
static
static bool pyuno::isAfterUnloadOrPy_Finalize ( )
static

Definition at line 47 of file pyuno_gc.cxx.

Referenced by decreaseRefCount().

bool pyuno::isInstanceOfStructOrException ( PyObject *  obj)
bool pyuno::isInterfaceClass ( const Runtime runtime,
PyObject *  obj 
)
bool pyuno::isLog ( RuntimeCargo const *  cargo,
sal_Int32  loglevel 
)
static sal_Int32 pyuno::lcl_detach_getLength ( PyUNO const *  me)
static

Definition at line 492 of file pyuno.cxx.

References pyuno::PyUNO::members, and pyuno::PyUNOInternals::xInvocation.

Referenced by PyUNO_bool(), and PyUNO_len().

static OUString pyuno::lcl_ExceptionMessage ( PyObject *const  o,
OUString const *const  pWrapped 
)
static

Definition at line 595 of file pyuno_runtime.cxx.

References pyuno::PyRef::get().

Referenced by pyuno::Runtime::pyObject2Any().

static PyObject* pyuno::lcl_getitem_index ( PyUNO const *  me,
PyObject *  pKey,
Runtime const &  runtime 
)
static
static PyObject* pyuno::lcl_getitem_slice ( PyUNO const *  me,
PyObject *  pKey 
)
static
static PyObject* pyuno::lcl_getitem_string ( PyUNO const *  me,
PyObject *  pKey,
Runtime const &  runtime 
)
static
static PyObject* pyuno::lcl_getitem_XCellRange ( PyUNO const *  me,
PyObject *  pKey 
)
static
static void pyuno::lcl_getRowsColumns ( PyUNO const *  me,
sal_Int32 &  nRows,
sal_Int32 &  nColumns 
)
static

Definition at line 559 of file pyuno.cxx.

References Any, pyuno::PyUNO::members, and pyuno::PyUNOInternals::xInvocation.

Referenced by lcl_getitem_XCellRange().

static bool pyuno::lcl_hasInterfaceByName ( Any const &  object,
OUString const &  interfaceName 
)
static

Definition at line 355 of file pyuno.cxx.

References Any.

Referenced by lcl_getitem_XCellRange(), and PyUNO_getitem().

static PyRef pyuno::lcl_indexToSlice ( const PyRef rIndex)
static

Definition at line 572 of file pyuno.cxx.

References pyuno::PyRef::get(), and nIndex.

Referenced by lcl_getitem_XCellRange().

static sal_Int32 pyuno::lcl_PyNumber_AsSal_Int32 ( PyObject *  pObj)
static
static int pyuno::lcl_PySlice_GetIndicesEx ( PyObject *  pObject,
sal_Int32  nLen,
sal_Int32 *  nStart,
sal_Int32 *  nStop,
sal_Int32 *  nStep,
sal_Int32 *  nSliceLength 
)
static

Definition at line 330 of file pyuno.cxx.

References SAL_MAX_INT32, and SAL_MIN_INT32.

Referenced by lcl_getitem_slice(), lcl_getitem_XCellRange(), and lcl_setitem_slice().

static int pyuno::lcl_setitem_index ( PyUNO const *  me,
PyObject *  pKey,
PyObject *  pValue 
)
static
static int pyuno::lcl_setitem_slice ( PyUNO const *  me,
PyObject *  pKey,
PyObject *  pValue 
)
static
static int pyuno::lcl_setitem_string ( PyUNO const *  me,
PyObject *  pKey,
PyObject *  pValue 
)
static
void pyuno::log ( RuntimeCargo cargo,
sal_Int32  level,
const OUString &  logString 
)

Definition at line 98 of file pyuno_util.cxx.

References OUStringToOString().

Referenced by pyuno::stRuntimeImpl::create(), logCall(), logException(), and logReply().

void pyuno::log ( RuntimeCargo cargo,
sal_Int32  level,
const char *  str 
)

Definition at line 103 of file pyuno_util.cxx.

References isLog(), and pyuno::RuntimeCargo::logFile.

void pyuno::logCall ( RuntimeCargo cargo,
const char *  intro,
void ptr,
const OUString &  aFunctionName,
const css::uno::Sequence< css::uno::Any > &  args 
)
void pyuno::logCall ( RuntimeCargo cargo,
const char *  intro,
void ptr,
const OUString &  aFunctionName,
const Sequence< Any > &  aParams 
)
void pyuno::logException ( RuntimeCargo cargo,
const char *  intro,
void ptr,
const OUString &  aFunctionName,
const void data,
const css::uno::Type &  type 
)
void pyuno::logReply ( RuntimeCargo cargo,
const char *  intro,
void ptr,
const OUString &  aFunctionName,
const css::uno::Any &  returnValue,
const css::uno::Sequence< css::uno::Any > &  args 
)
void pyuno::logReply ( RuntimeCargo cargo,
const char *  intro,
void ptr,
const OUString &  aFunctionName,
const Any &  returnValue,
const Sequence< Any > &  aParams 
)
sal_Unicode pyuno::PyChar2Unicode ( PyObject *  o)
Exceptions
css::uno::RuntimeException

Definition at line 128 of file pyuno_type.cxx.

References pyuno::PyRef::get(), and value.

Referenced by pyuno::Runtime::pyObject2Any().

Any pyuno::PyEnum2Enum ( PyObject *  obj)
Exceptions
css::uno::RuntimeException

Definition at line 147 of file pyuno_type.cxx.

References Any, pyuno::PyRef::get(), i, typeClassToString(), typeName, and value.

Referenced by pyuno::Runtime::pyObject2Any(), and PyType2Type().

OUString pyuno::pyString2ustring ( PyObject *  str)
Type pyuno::PyType2Type ( PyObject *  o)
Exceptions
css::uno::RuntimeException

Definition at line 197 of file pyuno_type.cxx.

References Any, pyuno::PyRef::get(), name, PyEnum2Enum(), and typeClassToString().

Referenced by pyuno::Runtime::pyObject2Any().

static int pyuno::PyUNO_bool ( PyObject *  self)
static

Definition at line 518 of file pyuno.cxx.

References lcl_detach_getLength(), and raisePyExceptionWithAny().

PyObject * pyuno::PyUNO_ByteSequence_new ( const css::uno::Sequence< sal_Int8 > &  byteSequence,
const Runtime r 
)
static PyObject* pyuno::PyUNO_callable_call ( PyObject *  self,
PyObject *  args,
SAL_UNUSED_PARAMETER PyObject *   
)
static
static void pyuno::PyUNO_callable_del ( PyObject *  self)
static

Definition at line 51 of file pyuno_callable.cxx.

PyRef pyuno::PyUNO_callable_new ( const css::uno::Reference< css::script::XInvocation2 > &  xInv,
const OUString &  methodName,
ConversionMode  mode = REJECT_UNO_ANY 
)
PyRef pyuno::PyUNO_callable_new ( const Reference< XInvocation2 > &  my_inv,
const OUString &  methodName,
enum ConversionMode  mode 
)

Definition at line 252 of file pyuno_callable.cxx.

References methodName, and mode.

Referenced by PyUNO_getattr(), and PyUNO_invoke().

PyObject * pyuno::PyUNO_char_new ( sal_Unicode  c,
const Runtime r 
)

Definition at line 266 of file pyuno_type.cxx.

References args, callCtor(), pyuno::PyRef::get(), NOT_NULL, and u.

Referenced by pyuno::Runtime::any2PyObject().

static PyObject* pyuno::PyUNO_cmp ( PyObject *  self,
PyObject *  that,
int  op 
)
static
static int pyuno::PyUNO_contains ( PyObject *  self,
PyObject *  pKey 
)
static
static void pyuno::PyUNO_del ( PyObject *  self)
static

Definition at line 78 of file pyuno.cxx.

References pyuno::PyUNO::members.

static PyObject* pyuno::PyUNO_dir ( PyObject *  self)
static
PyObject * pyuno::PyUNO_Enum_new ( const char *  enumBase,
const char *  enumValue,
const Runtime r 
)

Definition at line 242 of file pyuno_type.cxx.

References args, callCtor(), pyuno::PyRef::get(), and NOT_NULL.

Referenced by pyuno::Runtime::any2PyObject(), and PyUNO_Type_new().

static PyObject* pyuno::PyUNO_getattr ( PyObject *  self,
char *  name 
)
static
static PyObject* pyuno::PyUNO_getitem ( PyObject *  self,
PyObject *  pKey 
)
static
static Py_hash_t pyuno::PyUNO_hash ( PyObject *  self)
static

Definition at line 369 of file pyuno.cxx.

References pyuno::PyUNO::members, and pyuno::PyUNOInternals::wrappedObject.

int pyuno::PyUNO_initType ( )

Definition at line 1677 of file pyuno.cxx.

Referenced by PyInit_pyuno().

PyObject * pyuno::PyUNO_invoke ( PyObject *  object,
const char *  name,
PyObject *  args 
)
static PyObject* pyuno::PyUNO_iter ( PyObject *  self)
static
static void pyuno::PyUNO_iterator_del ( PyObject *  self)
static

Definition at line 42 of file pyuno_iterator.cxx.

References pyuno::PyUNO_iterator::members.

static PyObject* pyuno::PyUNO_iterator_iter ( PyObject *  self)
static

Definition at line 53 of file pyuno_iterator.cxx.

PyObject* pyuno::PyUNO_iterator_new ( const css::uno::Reference< css::container::XEnumeration > &  xEnumeration)

Referenced by PyUNO_iter().

PyObject* pyuno::PyUNO_iterator_new ( const Reference< XEnumeration > &  xEnumeration)

Definition at line 184 of file pyuno_iterator.cxx.

References pyuno::PyUNO_iterator_Internals::xEnumeration.

static PyObject* pyuno::PyUNO_iterator_next ( PyObject *  self)
static
static Py_ssize_t pyuno::PyUNO_len ( PyObject *  self)
static

Definition at line 539 of file pyuno.cxx.

References lcl_detach_getLength(), and raisePyExceptionWithAny().

static void pyuno::PyUNO_list_iterator_del ( PyObject *  self)
static

Definition at line 196 of file pyuno_iterator.cxx.

References pyuno::PyUNO_list_iterator::members.

PyObject* pyuno::PyUNO_list_iterator_new ( const css::uno::Reference< css::container::XIndexAccess > &  xIndexAccess)

Referenced by PyUNO_iter().

PyObject* pyuno::PyUNO_list_iterator_new ( const Reference< XIndexAccess > &  xIndexAccess)
static PyObject* pyuno::PyUNO_list_iterator_next ( PyObject *  self)
static
PyRef pyuno::PyUNO_new ( const css::uno::Any &  targetInterface,
const css::uno::Reference< css::lang::XSingleServiceFactory > &  ssf 
)
PyRef pyuno::PyUNO_new ( const Any &  targetInterface,
const Reference< XSingleServiceFactory > &  ssf 
)

Definition at line 1687 of file pyuno.cxx.

References xInvocation, and pyuno::PyUNOInternals::xInvocation.

Referenced by pyuno::Runtime::any2PyObject().

static PyObject* pyuno::PyUNO_repr ( PyObject *  self)
static

Definition at line 364 of file pyuno.cxx.

References PyUNO_str().

static int pyuno::PyUNO_setattr ( PyObject *  self,
char *  name,
PyObject *  value 
)
static
static int pyuno::PyUNO_setitem ( PyObject *  self,
PyObject *  pKey,
PyObject *  pValue 
)
static
PyObject * pyuno::PyUNO_str ( PyObject *  self)
static
PyObject* pyuno::PyUNO_Type_new ( const char *  typeName,
css::uno::TypeClass  t,
const Runtime r 
)
PyObject* pyuno::PyUNO_Type_new ( const char *  typeName,
TypeClass  t,
const Runtime r 
)
static PyObject* pyuno::PyUNOStruct_cmp ( PyObject *  self,
PyObject *  that,
int  op 
)
static
static void pyuno::PyUNOStruct_del ( PyObject *  self)
static

Definition at line 47 of file pyuno_struct.cxx.

References pyuno::PyUNO::members.

static PyObject* pyuno::PyUNOStruct_dir ( PyObject *  self)
static
static PyObject* pyuno::PyUNOStruct_getattr ( PyObject *  self,
char *  name 
)
static
int pyuno::PyUNOStruct_initType ( )

Definition at line 364 of file pyuno_struct.cxx.

Referenced by PyInit_pyuno().

PyRef pyuno::PyUNOStruct_new ( const css::uno::Any &  targetInterface,
const css::uno::Reference< css::lang::XSingleServiceFactory > &  ssf 
)
PyRef pyuno::PyUNOStruct_new ( const Any &  targetInterface,
const Reference< XSingleServiceFactory > &  ssf 
)

Definition at line 374 of file pyuno_struct.cxx.

References xInvocation, and pyuno::PyUNOInternals::xInvocation.

static PyObject* pyuno::PyUNOStruct_repr ( PyObject *  self)
static
static int pyuno::PyUNOStruct_setattr ( PyObject *  self,
char *  name,
PyObject *  value 
)
static
static PyObject* pyuno::PyUNOStruct_str ( PyObject *  self)
static
void pyuno::raiseInvocationTargetExceptionWhenNeeded ( const Runtime runtime)
Exceptions
css::reflection::InvocationTargetException
css::uno::RuntimeException

Definition at line 83 of file pyuno_adapter.cxx.

References Any, and pyuno::Runtime::extractUnoException().

Referenced by pyuno::Adapter::invoke(), invokeGetTypes(), and pyuno::Adapter::setValue().

void pyuno::raisePyExceptionWithAny ( const css::uno::Any &  anyExc)
static void pyuno::readLoggingConfig ( sal_Int32 *  pLevel,
FILE **  ppFile 
)
static
const char* pyuno::typeClassToString ( TypeClass  t)

Definition at line 36 of file pyuno_type.cxx.

const char* pyuno::typeClassToString ( css::uno::TypeClass  t)
PyRef pyuno::ustring2PyString ( const OUString &  source)
PyRef pyuno::ustring2PyUnicode ( const OUString &  source)

Definition at line 34 of file pyuno_util.cxx.

References OUStringToOString().

Referenced by pyuno::Runtime::any2PyObject(), and PyUNOStruct_repr().

OUString pyuno::val2str ( const void pVal,
typelib_TypeDescriptionReference *  pTypeRef,
sal_Int32  mode 
)

Variable Documentation

bool pyuno::g_destructorsOfStaticObjectsHaveBeenCalled
static

Definition at line 30 of file pyuno_gc.cxx.

cppu::OImplementationId pyuno::g_id(false)
static
StaticDestructorGuard pyuno::guard
static
PyTypeObject pyuno::PyUNO_callable_Type
static

Definition at line 181 of file pyuno_callable.cxx.

PyTypeObject pyuno::PyUNO_iterator_Type
static

Definition at line 113 of file pyuno_iterator.cxx.

PyTypeObject pyuno::PyUNO_list_iterator_Type
static

Definition at line 259 of file pyuno_iterator.cxx.

PyMappingMethods pyuno::PyUNOMappingMethods[]
static
Initial value:
=
{
}
static PyObject * PyUNO_getitem(PyObject *self, PyObject *pKey)
Definition: pyuno.cxx:801
static Py_ssize_t PyUNO_len(PyObject *self)
Definition: pyuno.cxx:539
static int PyUNO_setitem(PyObject *self, PyObject *pKey, PyObject *pValue)
Definition: pyuno.cxx:1146

Definition at line 1599 of file pyuno.cxx.

PyMethodDef pyuno::PyUNOMethods[]
static
Initial value:
=
{
{"__dir__", reinterpret_cast<PyCFunction>(PyUNO_dir), METH_NOARGS, nullptr},
{nullptr, nullptr, 0, nullptr}
}
static PyObject * PyUNO_dir(PyObject *self)
Definition: pyuno.cxx:467

Definition at line 1535 of file pyuno.cxx.

PyNumberMethods pyuno::PyUNONumberMethods[]
static

Definition at line 1541 of file pyuno.cxx.

PySequenceMethods pyuno::PyUNOSequenceMethods[]
static
Initial value:
=
{
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr
}
static int PyUNO_contains(PyObject *self, PyObject *pKey)
Definition: pyuno.cxx:1275

Definition at line 1585 of file pyuno.cxx.

PyMethodDef pyuno::PyUNOStructMethods[]
static
Initial value:
=
{
{"__dir__", reinterpret_cast<PyCFunction>(PyUNOStruct_dir), METH_NOARGS, nullptr},
{nullptr, nullptr, 0, nullptr}
}
static PyObject * PyUNOStruct_dir(PyObject *self)

Definition at line 287 of file pyuno_struct.cxx.

PyTypeObject pyuno::PyUNOStructType
static

Definition at line 293 of file pyuno_struct.cxx.

PyTypeObject pyuno::PyUNOType
static

Definition at line 1606 of file pyuno.cxx.

PyTypeObject pyuno::RuntimeImpl_Type
static

Definition at line 73 of file pyuno_runtime.cxx.

const sal_Int32 pyuno::VAL2STR_MODE_DEEP = 0

Definition at line 91 of file pyuno_impl.hxx.

Referenced by val2str().

const sal_Int32 pyuno::VAL2STR_MODE_SHALLOW = 1

Definition at line 92 of file pyuno_impl.hxx.

Referenced by logCall(), logException(), and logReply().