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

Namespaces

namespace  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, std::u16string_view logString)
 
void log (RuntimeCargo *cargo, sal_Int32 level, const char *str)
 
void logCall (RuntimeCargo *cargo, const char *intro, void *ptr, std::u16string_view aFunctionName, const css::uno::Sequence< css::uno::Any > &args)
 
void logReply (RuntimeCargo *cargo, const char *intro, void *ptr, std::u16string_view aFunctionName, const css::uno::Any &returnValue, const css::uno::Sequence< css::uno::Any > &args)
 
void logException (RuntimeCargo *cargo, const char *intro, void *ptr, std::u16string_view 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 (std::u16string_view 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, std::u16string_view aFunctionName, const Any &returnValue, const Sequence< Any > &aParams)
 
void logCall (RuntimeCargo *cargo, const char *intro, void *ptr, std::u16string_view aFunctionName, const Sequence< Any > &aParams)
 

Variables

static PyMethodDef PyUNOMethods []
 
static PyNumberMethods PyUNONumberMethods []
 
static PySequenceMethods PyUNOSequenceMethods []
 
static PyMappingMethods PyUNOMappingMethods []
 
static PyTypeObject PyUNOType
 
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

◆ ClassSet

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

Definition at line 116 of file pyuno_impl.hxx.

◆ ExceptionClassMap

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

Definition at line 108 of file pyuno_impl.hxx.

◆ MethodOutIndexMap

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

Definition at line 114 of file pyuno_impl.hxx.

◆ PyRef2Adapter

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

Definition at line 101 of file pyuno_impl.hxx.

◆ RuntimeImpl

Definition at line 151 of file pyuno.hxx.

Enumeration Type Documentation

◆ ConversionMode

Enumerator
ACCEPT_UNO_ANY 
REJECT_UNO_ANY 

Definition at line 153 of file pyuno.hxx.

◆ NotNull

Enumerator
NOT_NULL 

definition of a no acquire enum for ctors

Definition at line 61 of file pyuno.hxx.

Function Documentation

◆ callCtor()

static PyObject * pyuno::callCtor ( const Runtime r,
const char *  clazz,
const PyRef args 
)
static

◆ createClass()

static PyRef pyuno::createClass ( const OUString &  name,
const Runtime runtime 
)
static

◆ decreaseRefCount()

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().

◆ getAnyClass()

PyRef pyuno::getAnyClass ( const Runtime r)

Definition at line 120 of file pyuno_type.cxx.

References getClass().

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

◆ getByteSequenceClass()

PyRef pyuno::getByteSequenceClass ( const Runtime r)

Definition at line 115 of file pyuno_type.cxx.

References getClass().

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

◆ getCharClass()

PyRef pyuno::getCharClass ( const Runtime r)

Definition at line 110 of file pyuno_type.cxx.

References getClass().

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

◆ getClass() [1/2]

PyRef pyuno::getClass ( const OUString &  name,
const Runtime runtime 
)

◆ getClass() [2/2]

static PyRef pyuno::getClass ( const Runtime r,
const char *  name 
)
static

◆ getEnumClass()

PyRef pyuno::getEnumClass ( const Runtime r)

Definition at line 105 of file pyuno_type.cxx.

References getClass().

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

◆ getObjectFromUnoModule()

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().

◆ getPyUnoClass()

PyRef pyuno::getPyUnoClass ( )

Definition at line 1679 of file pyuno.cxx.

References PyUNOType.

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

◆ getPyUnoStructClass()

PyRef pyuno::getPyUnoStructClass ( )

Definition at line 366 of file pyuno_struct.cxx.

References PyUNOStructType.

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

◆ getRuntimeImpl()

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

Definition at line 149 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().

◆ getTypeClass()

PyRef pyuno::getTypeClass ( const Runtime r)

Definition at line 100 of file pyuno_type.cxx.

References getClass().

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

◆ importUnoModule()

static PyRef pyuno::importUnoModule ( )
static
Exceptions
RuntimeException

Definition at line 174 of file pyuno_runtime.cxx.

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

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

◆ invokeGetTypes()

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

◆ isAfterUnloadOrPy_Finalize()

static bool pyuno::isAfterUnloadOrPy_Finalize ( )
static

Definition at line 47 of file pyuno_gc.cxx.

References g_destructorsOfStaticObjectsHaveBeenCalled.

Referenced by decreaseRefCount().

◆ isInstanceOfStructOrException()

bool pyuno::isInstanceOfStructOrException ( PyObject *  obj)

◆ isInterfaceClass()

bool pyuno::isInterfaceClass ( const Runtime runtime,
PyObject *  obj 
)

◆ isLog()

bool pyuno::isLog ( RuntimeCargo const *  cargo,
sal_Int32  loglevel 
)

◆ lcl_detach_getLength()

static sal_Int32 pyuno::lcl_detach_getLength ( PyUNO const *  me)
static

Definition at line 490 of file pyuno.cxx.

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

Referenced by PyUNO_bool(), and PyUNO_len().

◆ lcl_ExceptionMessage()

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

Definition at line 597 of file pyuno_runtime.cxx.

References pyuno::PyRef::get().

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

◆ lcl_getitem_index()

static PyObject * pyuno::lcl_getitem_index ( PyUNO const *  me,
PyObject *  pKey,
Runtime const &  runtime 
)
static

◆ lcl_getitem_slice()

static PyObject * pyuno::lcl_getitem_slice ( PyUNO const *  me,
PyObject *  pKey 
)
static

◆ lcl_getitem_string()

static PyObject * pyuno::lcl_getitem_string ( PyUNO const *  me,
PyObject *  pKey,
Runtime const &  runtime 
)
static

◆ lcl_getitem_XCellRange()

static PyObject * pyuno::lcl_getitem_XCellRange ( PyUNO const *  me,
PyObject *  pKey 
)
static

◆ lcl_getRowsColumns()

static void pyuno::lcl_getRowsColumns ( PyUNO const *  me,
sal_Int32 &  nRows,
sal_Int32 &  nColumns 
)
static

Definition at line 557 of file pyuno.cxx.

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

Referenced by lcl_getitem_XCellRange().

◆ lcl_hasInterfaceByName()

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

Definition at line 353 of file pyuno.cxx.

References Any.

Referenced by lcl_getitem_XCellRange(), and PyUNO_getitem().

◆ lcl_indexToSlice()

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

Definition at line 570 of file pyuno.cxx.

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

Referenced by lcl_getitem_XCellRange().

◆ lcl_PyNumber_AsSal_Int32()

static sal_Int32 pyuno::lcl_PyNumber_AsSal_Int32 ( PyObject *  pObj)
static

◆ lcl_PySlice_GetIndicesEx()

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 328 of file pyuno.cxx.

References pObject, SAL_MAX_INT32, and SAL_MIN_INT32.

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

◆ lcl_setitem_index()

static int pyuno::lcl_setitem_index ( PyUNO const *  me,
PyObject *  pKey,
PyObject *  pValue 
)
static

◆ lcl_setitem_slice()

static int pyuno::lcl_setitem_slice ( PyUNO const *  me,
PyObject *  pKey,
PyObject *  pValue 
)
static

◆ lcl_setitem_string()

static int pyuno::lcl_setitem_string ( PyUNO const *  me,
PyObject *  pKey,
PyObject *  pValue 
)
static

◆ log() [1/2]

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.

◆ log() [2/2]

void pyuno::log ( RuntimeCargo cargo,
sal_Int32  level,
std::u16string_view  logString 
)

Definition at line 98 of file pyuno_util.cxx.

References log(), and OUStringToOString().

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

◆ logCall() [1/2]

void pyuno::logCall ( RuntimeCargo cargo,
const char *  intro,
void *  ptr,
std::u16string_view  aFunctionName,
const css::uno::Sequence< css::uno::Any > &  args 
)

◆ logCall() [2/2]

void pyuno::logCall ( RuntimeCargo cargo,
const char *  intro,
void *  ptr,
std::u16string_view  aFunctionName,
const Sequence< Any > &  aParams 
)

◆ logException()

void pyuno::logException ( RuntimeCargo cargo,
const char *  intro,
void *  ptr,
std::u16string_view  aFunctionName,
const void *  data,
const css::uno::Type &  type 
)

◆ logReply() [1/2]

void pyuno::logReply ( RuntimeCargo cargo,
const char *  intro,
void *  ptr,
std::u16string_view  aFunctionName,
const Any &  returnValue,
const Sequence< Any > &  aParams 
)

◆ logReply() [2/2]

void pyuno::logReply ( RuntimeCargo cargo,
const char *  intro,
void *  ptr,
std::u16string_view  aFunctionName,
const css::uno::Any &  returnValue,
const css::uno::Sequence< css::uno::Any > &  args 
)

◆ PyChar2Unicode()

sal_Unicode pyuno::PyChar2Unicode ( PyObject *  o)
Exceptions
css::uno::RuntimeException

Definition at line 126 of file pyuno_type.cxx.

References value.

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

◆ PyEnum2Enum()

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

Definition at line 145 of file pyuno_type.cxx.

References Any, i, typeClassToString(), typeName, and value.

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

◆ pyString2ustring()

OUString pyuno::pyString2ustring ( PyObject *  str)

◆ PyType2Type()

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

Definition at line 195 of file pyuno_type.cxx.

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

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

◆ PyUNO_bool()

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

Definition at line 516 of file pyuno.cxx.

References lcl_detach_getLength(), and raisePyExceptionWithAny().

◆ PyUNO_ByteSequence_new()

PyObject * pyuno::PyUNO_ByteSequence_new ( const css::uno::Sequence< sal_Int8 > &  byteSequence,
const Runtime r 
)

Definition at line 274 of file pyuno_type.cxx.

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

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

◆ PyUNO_callable_call()

static PyObject * pyuno::PyUNO_callable_call ( PyObject *  self,
PyObject *  args,
SAL_UNUSED_PARAMETER PyObject *   
)
static

◆ PyUNO_callable_del()

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

Definition at line 51 of file pyuno_callable.cxx.

◆ PyUNO_callable_new() [1/2]

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

◆ PyUNO_callable_new() [2/2]

PyRef pyuno::PyUNO_callable_new ( const Reference< XInvocation2 > &  my_inv,
const OUString &  methodName,
enum ConversionMode  mode 
)

Definition at line 251 of file pyuno_callable.cxx.

References methodName, mode, and PyUNO_callable_Type.

Referenced by PyUNO_getattr(), and PyUNO_invoke().

◆ PyUNO_char_new()

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

Definition at line 264 of file pyuno_type.cxx.

References args, callCtor(), and NOT_NULL.

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

◆ PyUNO_cmp()

static PyObject * pyuno::PyUNO_cmp ( PyObject *  self,
PyObject *  that,
int  op 
)
static

◆ PyUNO_contains()

static int pyuno::PyUNO_contains ( PyObject *  self,
PyObject *  pKey 
)
static

◆ PyUNO_del()

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

Definition at line 76 of file pyuno.cxx.

References pyuno::PyUNO::members.

◆ PyUNO_dir()

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

◆ PyUNO_Enum_new()

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

Definition at line 240 of file pyuno_type.cxx.

References args, callCtor(), and NOT_NULL.

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

◆ PyUNO_getattr()

static PyObject * pyuno::PyUNO_getattr ( PyObject *  self,
char *  name 
)
static

◆ PyUNO_getitem()

static PyObject * pyuno::PyUNO_getitem ( PyObject *  self,
PyObject *  pKey 
)
static

◆ PyUNO_hash()

static Py_hash_t pyuno::PyUNO_hash ( PyObject *  self)
static

Definition at line 367 of file pyuno.cxx.

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

◆ PyUNO_initType()

int pyuno::PyUNO_initType ( )

Definition at line 1674 of file pyuno.cxx.

References PyUNOType.

Referenced by PyInit_pyuno().

◆ PyUNO_invoke()

PyObject * pyuno::PyUNO_invoke ( PyObject *  object,
const char *  name,
PyObject *  args 
)

◆ PyUNO_iter()

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

◆ PyUNO_iterator_del()

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

Definition at line 42 of file pyuno_iterator.cxx.

References pyuno::PyUNO_iterator::members.

◆ PyUNO_iterator_iter()

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

Definition at line 53 of file pyuno_iterator.cxx.

◆ PyUNO_iterator_new() [1/2]

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

Referenced by PyUNO_iter().

◆ PyUNO_iterator_new() [2/2]

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

◆ PyUNO_iterator_next()

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

◆ PyUNO_len()

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

Definition at line 537 of file pyuno.cxx.

References lcl_detach_getLength(), and raisePyExceptionWithAny().

◆ PyUNO_list_iterator_del()

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.

◆ PyUNO_list_iterator_new() [1/2]

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

Referenced by PyUNO_iter().

◆ PyUNO_list_iterator_new() [2/2]

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

◆ PyUNO_list_iterator_next()

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

◆ PyUNO_new() [1/2]

PyRef pyuno::PyUNO_new ( const Any &  targetInterface,
const Reference< XSingleServiceFactory > &  ssf 
)

◆ PyUNO_new() [2/2]

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

◆ PyUNO_repr()

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

Definition at line 362 of file pyuno.cxx.

References PyUNO_str().

◆ PyUNO_setattr()

static int pyuno::PyUNO_setattr ( PyObject *  self,
char *  name,
PyObject *  value 
)
static

◆ PyUNO_setitem()

static int pyuno::PyUNO_setitem ( PyObject *  self,
PyObject *  pKey,
PyObject *  pValue 
)
static

◆ PyUNO_str()

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

◆ PyUNO_Type_new() [1/2]

PyObject * pyuno::PyUNO_Type_new ( const char *  typeName,
css::uno::TypeClass  t,
const Runtime r 
)

◆ PyUNO_Type_new() [2/2]

PyObject * pyuno::PyUNO_Type_new ( const char *  typeName,
TypeClass  t,
const Runtime r 
)

Definition at line 250 of file pyuno_type.cxx.

References args, callCtor(), NOT_NULL, PyUNO_Enum_new(), t, typeClassToString(), and typeName.

◆ PyUNOStruct_cmp()

static PyObject * pyuno::PyUNOStruct_cmp ( PyObject *  self,
PyObject *  that,
int  op 
)
static

◆ PyUNOStruct_del()

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

Definition at line 44 of file pyuno_struct.cxx.

References pyuno::PyUNO::members.

◆ PyUNOStruct_dir()

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

◆ PyUNOStruct_getattr()

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

◆ PyUNOStruct_initType()

int pyuno::PyUNOStruct_initType ( )

Definition at line 361 of file pyuno_struct.cxx.

References PyUNOStructType.

Referenced by PyInit_pyuno().

◆ PyUNOStruct_new() [1/2]

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

◆ PyUNOStruct_new() [2/2]

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

◆ PyUNOStruct_repr()

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

◆ PyUNOStruct_setattr()

static int pyuno::PyUNOStruct_setattr ( PyObject *  self,
char *  name,
PyObject *  value 
)
static

◆ PyUNOStruct_str()

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

◆ raiseInvocationTargetExceptionWhenNeeded()

void pyuno::raiseInvocationTargetExceptionWhenNeeded ( const Runtime runtime)
Exceptions
css::reflection::InvocationTargetException
css::uno::RuntimeException

Definition at line 80 of file pyuno_adapter.cxx.

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

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

◆ raisePyExceptionWithAny()

void pyuno::raisePyExceptionWithAny ( const css::uno::Any &  anyExc)

◆ readLoggingConfig()

static void pyuno::readLoggingConfig ( sal_Int32 *  pLevel,
FILE **  ppFile 
)
static

◆ typeClassToString() [1/2]

const char * pyuno::typeClassToString ( css::uno::TypeClass  t)

◆ typeClassToString() [2/2]

const char * pyuno::typeClassToString ( TypeClass  t)

Definition at line 34 of file pyuno_type.cxx.

References t.

◆ ustring2PyString()

PyRef pyuno::ustring2PyString ( std::u16string_view  source)

◆ ustring2PyUnicode()

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().

◆ val2str()

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

Variable Documentation

◆ g_destructorsOfStaticObjectsHaveBeenCalled

bool pyuno::g_destructorsOfStaticObjectsHaveBeenCalled
static

Definition at line 30 of file pyuno_gc.cxx.

Referenced by isAfterUnloadOrPy_Finalize().

◆ guard

StaticDestructorGuard pyuno::guard
static

◆ PyUNO_callable_Type

PyTypeObject pyuno::PyUNO_callable_Type
static

Definition at line 180 of file pyuno_callable.cxx.

Referenced by PyUNO_callable_new().

◆ PyUNO_iterator_Type

PyTypeObject pyuno::PyUNO_iterator_Type
static

Definition at line 113 of file pyuno_iterator.cxx.

Referenced by PyUNO_iterator_new().

◆ PyUNO_list_iterator_Type

PyTypeObject pyuno::PyUNO_list_iterator_Type
static

Definition at line 259 of file pyuno_iterator.cxx.

Referenced by PyUNO_list_iterator_new().

◆ PyUNOMappingMethods

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

Definition at line 1596 of file pyuno.cxx.

◆ PyUNOMethods

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:465

Definition at line 1532 of file pyuno.cxx.

◆ PyUNONumberMethods

PyNumberMethods pyuno::PyUNONumberMethods[]
static

Definition at line 1538 of file pyuno.cxx.

◆ PyUNOSequenceMethods

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:1264

Definition at line 1582 of file pyuno.cxx.

◆ PyUNOStructMethods

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 284 of file pyuno_struct.cxx.

◆ PyUNOStructType

PyTypeObject pyuno::PyUNOStructType
static

Definition at line 290 of file pyuno_struct.cxx.

Referenced by getPyUnoStructClass(), PyUNOStruct_initType(), and PyUNOStruct_new().

◆ PyUNOType

PyTypeObject pyuno::PyUNOType
static

Definition at line 1603 of file pyuno.cxx.

Referenced by getPyUnoClass(), PyUNO_initType(), and PyUNO_new().

◆ RuntimeImpl_Type

PyTypeObject pyuno::RuntimeImpl_Type
static

Definition at line 74 of file pyuno_runtime.cxx.

Referenced by pyuno::stRuntimeImpl::create().

◆ VAL2STR_MODE_DEEP

const sal_Int32 pyuno::VAL2STR_MODE_DEEP = 0

Definition at line 91 of file pyuno_impl.hxx.

Referenced by val2str().

◆ VAL2STR_MODE_SHALLOW

const sal_Int32 pyuno::VAL2STR_MODE_SHALLOW = 1

Definition at line 92 of file pyuno_impl.hxx.

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