Lines Matching refs:o

215                 OString o = OUStringToOString( str, osl_getThreadTextEncoding() );  in readLoggingConfig()  local
216 o += "."; in readLoggingConfig()
217 o += OString::valueOf( (sal_Int32)data.Ident ); in readLoggingConfig()
219 *ppFile = fopen( o.getStr() , "w" ); in readLoggingConfig()
493 OString o = OUStringToOString( t.getTypeName(), RTL_TEXTENCODING_ASCII_US ); in any2PyObject() local
496 o.getStr(), (com::sun::star::uno::TypeClass)t.getTypeClass(), *this), in any2PyObject()
629 static Sequence< Type > invokeGetTypes( const Runtime & r , PyObject * o ) in invokeGetTypes() argument
633 PyRef method( PyObject_GetAttrString( o , const_cast< char * >("getTypes") ), SAL_NO_ACQUIRE ); in invokeGetTypes()
667 PyObject *o = source.get(); in pyObject2Any() local
668 if( Py_None == o ) in pyObject2Any()
673 else if (PyBool_Check(o)) in pyObject2Any()
675 if( o == Py_True ) in pyObject2Any()
687 else if (PyInt_Check (o)) in pyObject2Any()
689 if( o == Py_True ) in pyObject2Any()
694 else if ( o == Py_False ) in pyObject2Any()
701 sal_Int32 l = (sal_Int32) PyInt_AsLong( o ); in pyObject2Any()
719 else if (PyLong_Check (o)) in pyObject2Any()
721 sal_Int64 l = (sal_Int64)PyLong_AsLong (o); in pyObject2Any()
743 else if (PyFloat_Check (o)) in pyObject2Any()
745 double d = PyFloat_AsDouble (o); in pyObject2Any()
749 else if (PyBytes_Check (o)) in pyObject2Any()
750 a <<= pyString2ustring(o); in pyObject2Any()
752 else if( PyUnicode_Check( o ) ) in pyObject2Any()
753 a <<= pyString2ustring(o); in pyObject2Any()
754 else if (PyTuple_Check (o)) in pyObject2Any()
756 Sequence<Any> s (PyTuple_Size (o)); in pyObject2Any()
757 for (int i = 0; i < PyTuple_Size (o); i++) in pyObject2Any()
759 s[i] = pyObject2Any (PyTuple_GetItem (o, i), mode ); in pyObject2Any()
767 if( PyObject_IsInstance( o, getByteSequenceClass( runtime ).get() ) ) in pyObject2Any()
769 PyRef str(PyObject_GetAttrString( o , const_cast< char * >("value") ),SAL_NO_ACQUIRE); in pyObject2Any()
786 if( PyObject_IsInstance( o, getTypeClass( runtime ).get() ) ) in pyObject2Any()
788 Type t = PyType2Type( o ); in pyObject2Any()
791 else if( PyObject_IsInstance( o, getEnumClass( runtime ).get() ) ) in pyObject2Any()
793 a = PyEnum2Enum( o ); in pyObject2Any()
795 else if( isInstanceOfStructOrException( o ) ) in pyObject2Any()
797 PyRef struc(PyObject_GetAttrString( o , const_cast< char * >("value") ),SAL_NO_ACQUIRE); in pyObject2Any()
809 else if( PyObject_IsInstance( o, getPyUnoClass().get() ) ) in pyObject2Any()
812 o_pi = (PyUNO*) o; in pyObject2Any()
834 else if( PyObject_IsInstance( o, getCharClass( runtime ).get() ) ) in pyObject2Any()
836 sal_Unicode c = PyChar2Unicode( o ); in pyObject2Any()
839 else if( PyObject_IsInstance( o, getAnyClass( runtime ).get() ) ) in pyObject2Any()
843 …a = pyObject2Any( PyRef( PyObject_GetAttrString( o , const_cast< char * >("value") ), SAL_NO_ACQUI… in pyObject2Any()
845 …pyObject2Any( PyRef( PyObject_GetAttrString( o, const_cast< char * >("type") ), SAL_NO_ACQUIRE ) )… in pyObject2Any()
871 PyRef2Adapter::iterator ii = impl->cargo->mappedObjects.find( PyRef( o ) ); in pyObject2Any()
892 Sequence< Type > interfaces = invokeGetTypes( *this, o ); in pyObject2Any()
895 Adapter *pAdapter = new Adapter( o, interfaces ); in pyObject2Any()
901 impl->cargo->mappedObjects[ PyRef(o) ] = in pyObject2Any()
913 PyRef reprString( PyObject_Str( o ) , SAL_NO_ACQUIRE ); in pyObject2Any()