LibreOffice Module pyuno (master) 1
|
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::Hash > | PyRef2Adapter |
typedef std::unordered_map< OUString, PyRef > | ExceptionClassMap |
typedef std::unordered_map< OUString, css::uno::Sequence< sal_Int16 > > | MethodOutIndexMap |
typedef std::unordered_set< PyRef, PyRef::Hash > | ClassSet |
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< Type > | invokeGetTypes (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 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.
typedef struct stRuntimeImpl pyuno::RuntimeImpl |
enum pyuno::NotNull |
|
static |
Definition at line 224 of file pyuno_type.cxx.
References args, pyuno::stRuntimeImpl::cargo, code, pyuno::PyRef::get(), pyuno::Runtime::getImpl(), and pyuno::RuntimeCargo::getUnoModule().
Referenced by PyUNO_ByteSequence_new(), PyUNO_char_new(), PyUNO_Enum_new(), and PyUNO_Type_new().
RuntimeException |
Definition at line 73 of file pyuno_except.cxx.
References args, base, pyuno::PyRef::get(), get(), pyuno::PyRef::getAcquired(), getClass(), getObjectFromUnoModule(), uno::isInterface(), name, NOT_NULL, typeClassToString(), and ustring2PyString().
Referenced by getClass().
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().
Definition at line 120 of file pyuno_type.cxx.
References getClass().
Referenced by pyuno::Runtime::pyObject2Any(), and PyUNO_invoke().
Definition at line 115 of file pyuno_type.cxx.
References getClass().
Referenced by pyuno::Runtime::pyObject2Any().
Definition at line 110 of file pyuno_type.cxx.
References getClass().
Referenced by pyuno::Runtime::pyObject2Any().
Definition at line 203 of file pyuno_except.cxx.
References pyuno::stRuntimeImpl::cargo, createClass(), pyuno::RuntimeCargo::exceptionMap, pyuno::PyRef::get(), get(), pyuno::Runtime::getImpl(), pyuno::RuntimeCargo::interfaceSet, name, and ustring2PyString().
Referenced by uno::_uno_import(), uno::_uno_struct__init__(), pyuno::Runtime::any2PyObject(), createClass(), getAnyClass(), getByteSequenceClass(), getCharClass(), uno::getClass(), getEnumClass(), getTypeClass(), PyUNOStruct_getattr(), and raisePyExceptionWithAny().
Definition at line 95 of file pyuno_type.cxx.
References pyuno::stRuntimeImpl::cargo, pyuno::PyRef::get(), pyuno::Runtime::getImpl(), pyuno::RuntimeCargo::getUnoModule(), and name.
Definition at line 105 of file pyuno_type.cxx.
References getClass().
Referenced by pyuno::Runtime::pyObject2Any().
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 1679 of file pyuno.cxx.
References PyUNOType.
Referenced by pyuno::Runtime::pyObject2Any(), PyUNO_cmp(), and PyUNO_invoke().
PyRef pyuno::getPyUnoStructClass | ( | ) |
Definition at line 366 of file pyuno_struct.cxx.
References PyUNOStructType.
Referenced by pyuno::Runtime::pyObject2Any(), and PyUNOStruct_cmp().
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().
Definition at line 100 of file pyuno_type.cxx.
References getClass().
Referenced by pyuno::Runtime::pyObject2Any().
|
static |
RuntimeException |
Definition at line 174 of file pyuno_runtime.cxx.
References pyuno::PyRef::get(), module, and NOT_NULL.
Referenced by pyuno::RuntimeCargo::getUnoModule().
Definition at line 568 of file pyuno_runtime.cxx.
References a, Any, cppu::UnoType< typename T >::get(), pyuno::PyRef::get(), i, pyuno::PyRef::is(), pyuno::Runtime::pyObject2Any(), raiseInvocationTargetExceptionWhenNeeded(), and size.
Referenced by pyuno::Runtime::pyObject2Any().
|
static |
Definition at line 47 of file pyuno_gc.cxx.
References g_destructorsOfStaticObjectsHaveBeenCalled.
Referenced by decreaseRefCount().
bool pyuno::isInstanceOfStructOrException | ( | PyObject * | obj | ) |
Definition at line 186 of file pyuno_except.cxx.
References pyuno::PyRef::get(), and pyuno::PyRef::is().
Referenced by pyuno::Runtime::extractUnoException(), and pyuno::Runtime::pyObject2Any().
bool pyuno::isInterfaceClass | ( | const Runtime & | runtime, |
PyObject * | obj | ||
) |
Definition at line 197 of file pyuno_except.cxx.
References pyuno::stRuntimeImpl::cargo, pyuno::Runtime::getImpl(), pyuno::RuntimeCargo::interfaceSet, and set().
bool pyuno::isLog | ( | RuntimeCargo const * | cargo, |
sal_Int32 | loglevel | ||
) |
Definition at line 93 of file pyuno_util.cxx.
References pyuno::RuntimeCargo::logFile, and pyuno::RuntimeCargo::logLevel.
Referenced by pyuno::Adapter::invoke(), log(), logCall(), logException(), logReply(), and PyUNO_callable_call().
|
static |
Definition at line 490 of file pyuno.cxx.
References pyuno::PyUNO::members, and pyuno::PyUNOInternals::xInvocation.
Referenced by PyUNO_bool(), and PyUNO_len().
|
static |
Definition at line 597 of file pyuno_runtime.cxx.
References pyuno::PyRef::get().
Referenced by pyuno::Runtime::pyObject2Any().
|
static |
Definition at line 697 of file pyuno.cxx.
References Any, pyuno::Runtime::any2PyObject(), pyuno::PyRef::getAcquired(), lcl_PyNumber_AsSal_Int32(), pyuno::PyUNO::members, nIndex, and pyuno::PyUNOInternals::xInvocation.
Referenced by PyUNO_getitem().
|
static |
Definition at line 726 of file pyuno.cxx.
References Any, pyuno::Runtime::any2PyObject(), pyuno::PyRef::get(), pyuno::PyRef::getAcquired(), i, lcl_PySlice_GetIndicesEx(), pyuno::PyUNO::members, NOT_NULL, and pyuno::PyUNOInternals::xInvocation.
Referenced by PyUNO_getitem().
|
static |
Definition at line 767 of file pyuno.cxx.
References Any, pyuno::Runtime::any2PyObject(), pyuno::PyRef::getAcquired(), pyuno::PyUNO::members, pyString2ustring(), and pyuno::PyUNOInternals::xInvocation.
Referenced by PyUNO_getitem().
|
static |
Definition at line 583 of file pyuno.cxx.
References Any, pyuno::Runtime::any2PyObject(), pyuno::PyRef::get(), pyuno::PyRef::getAcquired(), lcl_getRowsColumns(), lcl_hasInterfaceByName(), lcl_indexToSlice(), lcl_PyNumber_AsSal_Int32(), lcl_PySlice_GetIndicesEx(), pyuno::PyUNO::members, pyString2ustring(), SAL_MAX_INT32, pyuno::PyUNOInternals::wrappedObject, and pyuno::PyUNOInternals::xInvocation.
Referenced by PyUNO_getitem().
|
static |
Definition at line 557 of file pyuno.cxx.
References Any, pyuno::PyUNO::members, and pyuno::PyUNOInternals::xInvocation.
Referenced by lcl_getitem_XCellRange().
|
static |
Definition at line 353 of file pyuno.cxx.
References Any.
Referenced by lcl_getitem_XCellRange(), and PyUNO_getitem().
Definition at line 570 of file pyuno.cxx.
References pyuno::PyRef::get(), and nIndex.
Referenced by lcl_getitem_XCellRange().
|
static |
Definition at line 309 of file pyuno.cxx.
References pyuno::PyRef::is(), SAL_MAX_INT32, and SAL_MIN_INT32.
Referenced by lcl_getitem_index(), lcl_getitem_XCellRange(), and lcl_setitem_index().
|
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().
Definition at line 877 of file pyuno.cxx.
References Any, pyuno::stRuntimeImpl::cargo, pyuno::Runtime::getImpl(), lcl_PyNumber_AsSal_Int32(), pyuno::PyUNO::members, nIndex, pyuno::Runtime::pyObject2Any(), pyuno::PyUNOInternals::xInvocation, and pyuno::RuntimeCargo::xTypeConverter.
Referenced by PyUNO_setitem().
Definition at line 945 of file pyuno.cxx.
References Any, pyuno::stRuntimeImpl::cargo, pyuno::PyRef::get(), pyuno::Runtime::getImpl(), i, lcl_PySlice_GetIndicesEx(), pyuno::PyUNO::members, pyuno::Runtime::pyObject2Any(), SAL_MAX_INT32, pyuno::PyUNOInternals::xInvocation, and pyuno::RuntimeCargo::xTypeConverter.
Referenced by PyUNO_setitem().
|
static |
Definition at line 1063 of file pyuno.cxx.
References Any, pyuno::stRuntimeImpl::cargo, pyuno::Runtime::getImpl(), pyuno::PyUNO::members, pyuno::Runtime::pyObject2Any(), pyString2ustring(), pyuno::PyUNOInternals::xInvocation, and pyuno::RuntimeCargo::xTypeConverter.
Referenced by PyUNO_setitem().
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::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().
void pyuno::logCall | ( | RuntimeCargo * | cargo, |
const char * | intro, | ||
void * | ptr, | ||
std::u16string_view | aFunctionName, | ||
const css::uno::Sequence< css::uno::Any > & | args | ||
) |
Referenced by pyuno::Adapter::invoke(), and PyUNO_callable_call().
void pyuno::logCall | ( | RuntimeCargo * | cargo, |
const char * | intro, | ||
void * | ptr, | ||
std::u16string_view | aFunctionName, | ||
const Sequence< Any > & | aParams | ||
) |
Definition at line 187 of file pyuno_util.cxx.
References pyuno::LogLevel::ARGS, pyuno::LogLevel::CALL, getValue(), i, isLog(), log(), val2str(), and VAL2STR_MODE_SHALLOW.
void pyuno::logException | ( | RuntimeCargo * | cargo, |
const char * | intro, | ||
void * | ptr, | ||
std::u16string_view | aFunctionName, | ||
const void * | data, | ||
const css::uno::Type & | type | ||
) |
Definition at line 145 of file pyuno_util.cxx.
References pyuno::LogLevel::CALL, isLog(), log(), type, val2str(), and VAL2STR_MODE_SHALLOW.
Referenced by pyuno::Adapter::invoke(), and PyUNO_callable_call().
void pyuno::logReply | ( | RuntimeCargo * | cargo, |
const char * | intro, | ||
void * | ptr, | ||
std::u16string_view | aFunctionName, | ||
const Any & | returnValue, | ||
const Sequence< Any > & | aParams | ||
) |
Definition at line 162 of file pyuno_util.cxx.
References pyuno::LogLevel::ARGS, pyuno::LogLevel::CALL, isLog(), log(), p, val2str(), and VAL2STR_MODE_SHALLOW.
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 | ||
) |
Referenced by pyuno::Adapter::invoke(), and PyUNO_callable_call().
sal_Unicode pyuno::PyChar2Unicode | ( | PyObject * | o | ) |
css::uno::RuntimeException |
Definition at line 126 of file pyuno_type.cxx.
References value.
Referenced by pyuno::Runtime::pyObject2Any().
Any pyuno::PyEnum2Enum | ( | PyObject * | obj | ) |
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().
OUString pyuno::pyString2ustring | ( | PyObject * | str | ) |
Definition at line 57 of file pyuno_util.cxx.
Referenced by pyuno::Adapter::invoke(), lcl_getitem_string(), lcl_getitem_XCellRange(), lcl_setitem_string(), and pyuno::Runtime::pyObject2Any().
Type pyuno::PyType2Type | ( | PyObject * | o | ) |
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().
|
static |
Definition at line 516 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 | ||
) |
Definition at line 274 of file pyuno_type.cxx.
References args, callCtor(), pyuno::PyRef::getAcquired(), and NOT_NULL.
Referenced by pyuno::Runtime::any2PyObject().
|
static |
Definition at line 60 of file pyuno_callable.cxx.
References Any, pyuno::Runtime::any2PyObject(), args, pyuno::LogLevel::CALL, pyuno::stRuntimeImpl::cargo, pyuno::PyRef::get(), pyuno::PyRef::getAcquired(), pyuno::Runtime::getImpl(), i, isLog(), logCall(), logException(), logReply(), NOT_NULL, pyuno::Runtime::pyObject2Any(), raisePyExceptionWithAny(), and pyuno::RuntimeCargo::xInvocation.
|
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 251 of file pyuno_callable.cxx.
References methodName, mode, and PyUNO_callable_Type.
Referenced by PyUNO_getattr(), and PyUNO_invoke().
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().
|
static |
Definition at line 1485 of file pyuno.cxx.
References Any, get(), getPyUnoClass(), pyuno::PyUNO::members, raisePyExceptionWithAny(), result, and pyuno::PyUNOInternals::wrappedObject.
|
static |
Definition at line 1264 of file pyuno.cxx.
References Any, pyuno::PyRef::get(), pyuno::PyRef::is(), pyuno::PyUNO::members, pyuno::Runtime::pyObject2Any(), PyUNO_iter(), raisePyExceptionWithAny(), and pyuno::PyUNOInternals::xInvocation.
|
static |
Definition at line 76 of file pyuno.cxx.
References pyuno::PyUNO::members.
|
static |
Definition at line 465 of file pyuno.cxx.
References Any, i, pyuno::PyUNO::members, raisePyExceptionWithAny(), ustring2PyString(), and pyuno::PyUNOInternals::xInvocation.
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().
|
static |
Definition at line 1353 of file pyuno.cxx.
References Any, pyuno::Runtime::any2PyObject(), attrName, pyuno::PyRef::get(), pyuno::PyUNO::members, name, PyUNO_callable_new(), raisePyExceptionWithAny(), and pyuno::PyUNOInternals::xInvocation.
|
static |
Definition at line 790 of file pyuno.cxx.
References lcl_getitem_index(), lcl_getitem_slice(), lcl_getitem_string(), lcl_getitem_XCellRange(), lcl_hasInterfaceByName(), pyuno::PyUNO::members, raisePyExceptionWithAny(), pyuno::PyUNOInternals::wrappedObject, and pyuno::PyUNOInternals::xInvocation.
|
static |
Definition at line 367 of file pyuno.cxx.
References pyuno::PyUNO::members, and pyuno::PyUNOInternals::wrappedObject.
int pyuno::PyUNO_initType | ( | ) |
PyObject * pyuno::PyUNO_invoke | ( | PyObject * | object, |
const char * | name, | ||
PyObject * | args | ||
) |
Definition at line 379 of file pyuno.cxx.
References ACCEPT_UNO_ANY, args, attrName, pyuno::PyRef::get(), get(), pyuno::PyRef::getAcquired(), getAnyClass(), getPyUnoClass(), i, pyuno::PyRef::is(), pyuno::PyUNO::members, name, PyUNO_callable_new(), raisePyExceptionWithAny(), size, and pyuno::PyUNOInternals::xInvocation.
|
static |
Definition at line 1188 of file pyuno.cxx.
References Any, pyuno::Runtime::any2PyObject(), pyuno::PyRef::getAcquired(), pyuno::PyUNO::members, PyUNO_iterator_new(), PyUNO_list_iterator_new(), raisePyExceptionWithAny(), pyuno::PyUNOInternals::wrappedObject, and pyuno::PyUNOInternals::xInvocation.
Referenced by PyUNO_contains().
|
static |
Definition at line 42 of file pyuno_iterator.cxx.
References pyuno::PyUNO_iterator::members.
|
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::members, PyUNO_iterator_Type, and pyuno::PyUNO_iterator_Internals::xEnumeration.
|
static |
Definition at line 59 of file pyuno_iterator.cxx.
References Any, pyuno::Runtime::any2PyObject(), pyuno::PyRef::getAcquired(), pyuno::PyUNO_iterator::members, raisePyExceptionWithAny(), and pyuno::PyUNO_iterator_Internals::xEnumeration.
|
static |
Definition at line 537 of file pyuno.cxx.
References lcl_detach_getLength(), and raisePyExceptionWithAny().
|
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 | ) |
Definition at line 330 of file pyuno_iterator.cxx.
References pyuno::PyUNO_list_iterator_Internals::index, pyuno::PyUNO_list_iterator::members, PyUNO_list_iterator_Type, and pyuno::PyUNO_list_iterator_Internals::xIndexAccess.
|
static |
PyRef pyuno::PyUNO_new | ( | const Any & | targetInterface, |
const Reference< XSingleServiceFactory > & | ssf | ||
) |
Definition at line 1684 of file pyuno.cxx.
References pyuno::PyUNO::members, PyUNOType, pyuno::PyUNOInternals::wrappedObject, xInvocation, and pyuno::PyUNOInternals::xInvocation.
Referenced by pyuno::Runtime::any2PyObject().
PyRef pyuno::PyUNO_new | ( | const css::uno::Any & | targetInterface, |
const css::uno::Reference< css::lang::XSingleServiceFactory > & | ssf | ||
) |
|
static |
Definition at line 362 of file pyuno.cxx.
References PyUNO_str().
|
static |
Definition at line 1441 of file pyuno.cxx.
References ACCEPT_UNO_ANY, Any, attrName, pyuno::PyUNO::members, name, pyuno::Runtime::pyObject2Any(), raisePyExceptionWithAny(), value, and pyuno::PyUNOInternals::xInvocation.
|
static |
Definition at line 1135 of file pyuno.cxx.
References lcl_setitem_index(), lcl_setitem_slice(), lcl_setitem_string(), and raisePyExceptionWithAny().
|
static |
Definition at line 448 of file pyuno.cxx.
References pyuno::PyUNO::members, OUStringToOString(), val2str(), and pyuno::PyUNOInternals::wrappedObject.
Referenced by PyUNO_repr().
PyObject * pyuno::PyUNO_Type_new | ( | const char * | typeName, |
css::uno::TypeClass | t, | ||
const Runtime & | r | ||
) |
Referenced by pyuno::Runtime::any2PyObject().
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.
|
static |
Definition at line 231 of file pyuno_struct.cxx.
References Any, get(), getPyUnoStructClass(), pyuno::PyUNO::members, raisePyExceptionWithAny(), result, pyuno::PyUNOInternals::wrappedObject, and pyuno::PyUNOInternals::xInvocation.
|
static |
Definition at line 44 of file pyuno_struct.cxx.
References pyuno::PyUNO::members.
|
static |
Definition at line 96 of file pyuno_struct.cxx.
References Any, pyuno::PyUNO::members, raisePyExceptionWithAny(), ustring2PyString(), and pyuno::PyUNOInternals::xInvocation.
|
static |
Definition at line 120 of file pyuno_struct.cxx.
References Any, pyuno::Runtime::any2PyObject(), attrName, pyuno::PyRef::get(), pyuno::PyRef::getAcquired(), getClass(), pyuno::PyUNO::members, name, raisePyExceptionWithAny(), pyuno::PyUNOInternals::wrappedObject, and pyuno::PyUNOInternals::xInvocation.
int pyuno::PyUNOStruct_initType | ( | ) |
Definition at line 361 of file pyuno_struct.cxx.
References PyUNOStructType.
Referenced by PyInit_pyuno().
PyRef pyuno::PyUNOStruct_new | ( | const Any & | targetInterface, |
const Reference< XSingleServiceFactory > & | ssf | ||
) |
Definition at line 371 of file pyuno_struct.cxx.
References pyuno::PyUNO::members, PyUNOStructType, pyuno::PyUNOInternals::wrappedObject, xInvocation, and pyuno::PyUNOInternals::xInvocation.
PyRef pyuno::PyUNOStruct_new | ( | const css::uno::Any & | targetInterface, |
const css::uno::Reference< css::lang::XSingleServiceFactory > & | ssf | ||
) |
Referenced by pyuno::Runtime::any2PyObject().
|
static |
Definition at line 71 of file pyuno_struct.cxx.
References a, Any, Exception, pyuno::PyRef::getAcquired(), pyuno::PyUNO::members, PyUNOStruct_str(), ustring2PyUnicode(), pyuno::PyUNOInternals::wrappedObject, and pyuno::PyUNOInternals::xInvocation.
|
static |
Definition at line 186 of file pyuno_struct.cxx.
References ACCEPT_UNO_ANY, Any, attrName, pyuno::PyUNO::members, name, pyuno::Runtime::pyObject2Any(), raisePyExceptionWithAny(), value, and pyuno::PyUNOInternals::xInvocation.
|
static |
Definition at line 54 of file pyuno_struct.cxx.
References a, Any, pyuno::PyUNO::members, OUStringToOString(), val2str(), and pyuno::PyUNOInternals::xInvocation.
Referenced by PyUNOStruct_repr().
void pyuno::raiseInvocationTargetExceptionWhenNeeded | ( | const Runtime & | runtime | ) |
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().
void pyuno::raisePyExceptionWithAny | ( | const css::uno::Any & | anyExc | ) |
Definition at line 32 of file pyuno_except.cxx.
References pyuno::Runtime::any2PyObject(), pyuno::PyRef::get(), getClass(), pyuno::PyRef::is(), OUStringToOString(), and type.
Referenced by PyUNO_bool(), PyUNO_callable_call(), PyUNO_cmp(), PyUNO_contains(), PyUNO_dir(), PyUNO_getattr(), PyUNO_getitem(), PyUNO_invoke(), PyUNO_iter(), PyUNO_iterator_next(), PyUNO_len(), PyUNO_list_iterator_next(), PyUNO_setattr(), PyUNO_setitem(), PyUNOStruct_cmp(), PyUNOStruct_dir(), PyUNOStruct_getattr(), and PyUNOStruct_setattr().
|
static |
Definition at line 199 of file pyuno_runtime.cxx.
References pyuno::LogLevel::ARGS, pyuno::LogLevel::CALL, pyuno::LogLevel::NONE, OUStringToOString(), readLoggingConfig(), and SAL_CONFIGFILE.
Referenced by pyuno::stRuntimeImpl::create(), and readLoggingConfig().
const char * pyuno::typeClassToString | ( | css::uno::TypeClass | t | ) |
Referenced by createClass(), PyEnum2Enum(), PyType2Type(), and PyUNO_Type_new().
const char * pyuno::typeClassToString | ( | TypeClass | t | ) |
Definition at line 34 of file pyuno_type.cxx.
References t.
PyRef pyuno::ustring2PyString | ( | std::u16string_view | source | ) |
Definition at line 51 of file pyuno_util.cxx.
References OUStringToOString().
Referenced by pyuno::Runtime::any2PyObject(), createClass(), getClass(), PyUNO_dir(), and PyUNOStruct_dir().
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 | ||
) |
Definition at line 87 of file pyuno.cxx.
References getTypeName(), i, mode, nElements, nPos, pData, pValues, val2str(), and VAL2STR_MODE_DEEP.
Referenced by logCall(), logException(), logReply(), PyUNO_str(), PyUNOStruct_str(), and val2str().
|
static |
Definition at line 30 of file pyuno_gc.cxx.
Referenced by isAfterUnloadOrPy_Finalize().
|
static |
Definition at line 45 of file pyuno_gc.cxx.
Referenced by pyuno::Adapter::getValue(), pyuno::Adapter::hasProperty(), pyuno::Adapter::invoke(), and pyuno::Adapter::setValue().
|
static |
Definition at line 180 of file pyuno_callable.cxx.
Referenced by PyUNO_callable_new().
|
static |
Definition at line 113 of file pyuno_iterator.cxx.
Referenced by PyUNO_iterator_new().
|
static |
Definition at line 259 of file pyuno_iterator.cxx.
Referenced by PyUNO_list_iterator_new().
|
static |
|
static |
|
static |
|
static |
Definition at line 284 of file pyuno_struct.cxx.
|
static |
Definition at line 290 of file pyuno_struct.cxx.
Referenced by getPyUnoStructClass(), PyUNOStruct_initType(), and PyUNOStruct_new().
|
static |
Definition at line 1603 of file pyuno.cxx.
Referenced by getPyUnoClass(), PyUNO_initType(), and PyUNO_new().
|
static |
Definition at line 74 of file pyuno_runtime.cxx.
Referenced by pyuno::stRuntimeImpl::create().
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().