Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
b2d99944
Kaydet (Commit)
b2d99944
authored
May 22, 2014
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
stoc: remove using namespace from headers
Change-Id: I1bee29ddcef66cb38ef2619507ad66c886f6f20d
üst
71e36bbc
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
163 additions
and
154 deletions
+163
-154
base.hxx
stoc/source/corereflection/base.hxx
+105
-113
crarray.cxx
stoc/source/corereflection/crarray.cxx
+6
-3
crbase.cxx
stoc/source/corereflection/crbase.cxx
+8
-5
crcomp.cxx
stoc/source/corereflection/crcomp.cxx
+9
-6
crefl.cxx
stoc/source/corereflection/crefl.cxx
+7
-5
crenum.cxx
stoc/source/corereflection/crenum.cxx
+8
-5
criface.cxx
stoc/source/corereflection/criface.cxx
+20
-17
No files found.
stoc/source/corereflection/base.hxx
Dosyayı görüntüle @
b2d99944
...
@@ -46,14 +46,6 @@
...
@@ -46,14 +46,6 @@
#include <com/sun/star/reflection/XIdlField2.hpp>
#include <com/sun/star/reflection/XIdlField2.hpp>
#include <com/sun/star/reflection/XIdlMethod.hpp>
#include <com/sun/star/reflection/XIdlMethod.hpp>
using
namespace
std
;
using
namespace
osl
;
using
namespace
cppu
;
using
namespace
com
::
sun
::
star
::
uno
;
using
namespace
com
::
sun
::
star
::
lang
;
using
namespace
com
::
sun
::
star
::
reflection
;
using
namespace
com
::
sun
::
star
::
container
;
namespace
stoc_corefl
namespace
stoc_corefl
{
{
...
@@ -63,7 +55,7 @@ extern ClassNameList g_aClassNames;
...
@@ -63,7 +55,7 @@ extern ClassNameList g_aClassNames;
#endif
#endif
Mutex
&
getMutexAccess
();
::
osl
::
Mutex
&
getMutexAccess
();
inline
bool
td_equals
(
typelib_TypeDescription
*
pTD
,
typelib_TypeDescriptionReference
*
pType
)
inline
bool
td_equals
(
typelib_TypeDescription
*
pTD
,
typelib_TypeDescriptionReference
*
pType
)
...
@@ -82,45 +74,45 @@ inline typelib_TypeDescription * getTypeByName( const OUString & rName )
...
@@ -82,45 +74,45 @@ inline typelib_TypeDescription * getTypeByName( const OUString & rName )
return
pTypeDescr
;
return
pTypeDescr
;
}
}
typedef
boost
::
unordered_map
<
OUString
,
WeakReference
<
XIdlField
>
,
typedef
boost
::
unordered_map
<
OUString
,
css
::
uno
::
WeakReference
<
css
::
reflection
::
XIdlField
>
,
FctHashOUString
,
equal_to
<
OUString
>
>
OUString2Field
;
FctHashOUString
,
std
::
equal_to
<
OUString
>
>
OUString2Field
;
typedef
boost
::
unordered_map
<
OUString
,
WeakReference
<
XIdlMethod
>
,
typedef
boost
::
unordered_map
<
OUString
,
css
::
uno
::
WeakReference
<
css
::
reflection
::
XIdlMethod
>
,
FctHashOUString
,
equal_to
<
OUString
>
>
OUString2Method
;
FctHashOUString
,
std
::
equal_to
<
OUString
>
>
OUString2Method
;
class
IdlReflectionServiceImpl
class
IdlReflectionServiceImpl
:
public
OComponentHelper
:
public
::
cppu
::
OComponentHelper
,
public
XIdlReflection
,
public
css
::
reflection
::
XIdlReflection
,
public
XHierarchicalNameAccess
,
public
css
::
container
::
XHierarchicalNameAccess
,
public
XServiceInfo
,
public
css
::
lang
::
XServiceInfo
{
{
Mutex
_aComponentMutex
;
::
osl
::
Mutex
_aComponentMutex
;
Reference
<
XMultiServiceFactory
>
_xMgr
;
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>
_xMgr
;
Reference
<
XHierarchicalNameAccess
>
_xTDMgr
;
css
::
uno
::
Reference
<
css
::
container
::
XHierarchicalNameAccess
>
_xTDMgr
;
// caching
// caching
LRU_CacheAnyByOUString
_aElements
;
LRU_CacheAnyByOUString
_aElements
;
Mapping
_aCpp2Uno
;
css
::
uno
::
Mapping
_aCpp2Uno
;
Mapping
_aUno2Cpp
;
css
::
uno
::
Mapping
_aUno2Cpp
;
inline
Reference
<
XIdlClass
>
constructClass
(
typelib_TypeDescription
*
pTypeDescr
);
inline
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
constructClass
(
typelib_TypeDescription
*
pTypeDescr
);
public
:
public
:
Reference
<
XHierarchicalNameAccess
>
getTDMgr
()
const
css
::
uno
::
Reference
<
css
::
container
::
XHierarchicalNameAccess
>
getTDMgr
()
const
{
return
_xTDMgr
;
}
{
return
_xTDMgr
;
}
Reference
<
XMultiServiceFactory
>
getSMgr
()
const
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>
getSMgr
()
const
{
return
_xMgr
;
}
{
return
_xMgr
;
}
const
Mapping
&
getCpp2Uno
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
const
css
::
uno
::
Mapping
&
getCpp2Uno
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
const
Mapping
&
getUno2Cpp
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
const
css
::
uno
::
Mapping
&
getUno2Cpp
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
uno_Interface
*
mapToUno
(
const
Any
&
rObj
,
typelib_InterfaceTypeDescription
*
pTo
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
uno_Interface
*
mapToUno
(
const
css
::
uno
::
Any
&
rObj
,
typelib_InterfaceTypeDescription
*
pTo
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// ctor/ dtor
// ctor/ dtor
IdlReflectionServiceImpl
(
const
Reference
<
XComponentContext
>
&
xContext
);
IdlReflectionServiceImpl
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
&
xContext
);
virtual
~
IdlReflectionServiceImpl
();
virtual
~
IdlReflectionServiceImpl
();
// XInterface
// XInterface
virtual
Any
SAL_CALL
queryInterface
(
const
Type
&
rType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Any
SAL_CALL
queryInterface
(
const
css
::
uno
::
Type
&
rType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
acquire
()
throw
()
SAL_OVERRIDE
;
virtual
void
SAL_CALL
acquire
()
throw
()
SAL_OVERRIDE
;
virtual
void
SAL_CALL
release
()
throw
()
SAL_OVERRIDE
;
virtual
void
SAL_CALL
release
()
throw
()
SAL_OVERRIDE
;
...
@@ -130,32 +122,32 @@ public:
...
@@ -130,32 +122,32 @@ public:
// XServiceInfo
// XServiceInfo
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
rServiceName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
rServiceName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// XTypeProvider
// XTypeProvider
virtual
Sequence
<
Type
>
SAL_CALL
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Type
>
SAL_CALL
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
sal_Int8
>
SAL_CALL
getImplementationId
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getImplementationId
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// XIdlReflection
// XIdlReflection
virtual
Reference
<
XIdlClass
>
SAL_CALL
forName
(
const
OUString
&
rTypeName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
SAL_CALL
forName
(
const
OUString
&
rTypeName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Reference
<
XIdlClass
>
SAL_CALL
getType
(
const
Any
&
rObj
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
SAL_CALL
getType
(
const
css
::
uno
::
Any
&
rObj
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// XHierarchicalNameAccess
// XHierarchicalNameAccess
virtual
Any
SAL_CALL
getByHierarchicalName
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
container
::
NoSuchElementException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Any
SAL_CALL
getByHierarchicalName
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
container
::
NoSuchElementException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
hasByHierarchicalName
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
hasByHierarchicalName
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
Reference
<
XIdlClass
>
forType
(
typelib_TypeDescription
*
pTypeDescr
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
forType
(
typelib_TypeDescription
*
pTypeDescr
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
Reference
<
XIdlClass
>
forType
(
typelib_TypeDescriptionReference
*
pRef
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
forType
(
typelib_TypeDescriptionReference
*
pRef
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
};
};
class
IdlClassImpl
class
IdlClassImpl
:
public
WeakImplHelper1
<
XIdlClass
>
:
public
::
cppu
::
WeakImplHelper1
<
css
::
reflection
::
XIdlClass
>
{
{
IdlReflectionServiceImpl
*
_pReflection
;
IdlReflectionServiceImpl
*
_pReflection
;
OUString
_aName
;
OUString
_aName
;
TypeClass
_eTypeClass
;
css
::
uno
::
TypeClass
_eTypeClass
;
typelib_TypeDescription
*
_pTypeDescr
;
typelib_TypeDescription
*
_pTypeDescr
;
...
@@ -164,9 +156,9 @@ public:
...
@@ -164,9 +156,9 @@ public:
{
return
_pTypeDescr
;
}
{
return
_pTypeDescr
;
}
IdlReflectionServiceImpl
*
getReflection
()
const
IdlReflectionServiceImpl
*
getReflection
()
const
{
return
_pReflection
;
}
{
return
_pReflection
;
}
Reference
<
XMultiServiceFactory
>
getSMgr
()
const
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>
getSMgr
()
const
{
return
_pReflection
->
getSMgr
();
}
{
return
_pReflection
->
getSMgr
();
}
Reference
<
XHierarchicalNameAccess
>
getTDMgr
()
const
css
::
uno
::
Reference
<
css
::
container
::
XHierarchicalNameAccess
>
getTDMgr
()
const
{
return
getReflection
()
->
getTDMgr
();
}
{
return
getReflection
()
->
getTDMgr
();
}
// Ctor
// Ctor
...
@@ -176,39 +168,39 @@ public:
...
@@ -176,39 +168,39 @@ public:
virtual
~
IdlClassImpl
();
virtual
~
IdlClassImpl
();
// XIdlClassImpl default implementation
// XIdlClassImpl default implementation
virtual
TypeClass
SAL_CALL
getTypeClass
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
TypeClass
SAL_CALL
getTypeClass
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
OUString
SAL_CALL
getName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
OUString
SAL_CALL
getName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
equals
(
const
Reference
<
XIdlClass
>&
xType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
equals
(
const
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>&
xType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
isAssignableFrom
(
const
Reference
<
XIdlClass
>
&
xType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
isAssignableFrom
(
const
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
&
xType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
createObject
(
Any
&
rObj
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
createObject
(
css
::
uno
::
Any
&
rObj
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// def impl ????
// def impl ????
virtual
Sequence
<
Reference
<
XIdlClass
>
>
SAL_CALL
getClasses
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
>
SAL_CALL
getClasses
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Reference
<
XIdlClass
>
SAL_CALL
getClass
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
SAL_CALL
getClass
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
Reference
<
XIdlClass
>
>
SAL_CALL
getInterfaces
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
>
SAL_CALL
getInterfaces
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// structs, interfaces
// structs, interfaces
virtual
Sequence
<
Reference
<
XIdlClass
>
>
SAL_CALL
getSuperclasses
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
>
SAL_CALL
getSuperclasses
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// structs
// structs
virtual
Reference
<
XIdlField
>
SAL_CALL
getField
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlField
>
SAL_CALL
getField
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
Reference
<
XIdlField
>
>
SAL_CALL
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlField
>
>
SAL_CALL
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// interfaces
// interfaces
virtual
Uik
SAL_CALL
getUik
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Uik
SAL_CALL
getUik
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Reference
<
XIdlMethod
>
SAL_CALL
getMethod
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlMethod
>
SAL_CALL
getMethod
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
Reference
<
XIdlMethod
>
>
SAL_CALL
getMethods
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlMethod
>
>
SAL_CALL
getMethods
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// array
// array
virtual
Reference
<
XIdlClass
>
SAL_CALL
getComponentType
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
SAL_CALL
getComponentType
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Reference
<
XIdlArray
>
SAL_CALL
getArray
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlArray
>
SAL_CALL
getArray
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
};
};
class
InterfaceIdlClassImpl
class
InterfaceIdlClassImpl
:
public
IdlClassImpl
:
public
IdlClassImpl
{
{
typedef
pair
<
OUString
,
typelib_TypeDescription
*
>
MemberInit
;
typedef
std
::
pair
<
OUString
,
typelib_TypeDescription
*
>
MemberInit
;
Sequence
<
Reference
<
XIdlClass
>
>
_xSuperClasses
;
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
>
_xSuperClasses
;
MemberInit
*
_pSortedMemberInit
;
// first methods, then attributes
MemberInit
*
_pSortedMemberInit
;
// first methods, then attributes
OUString2Field
_aName2Field
;
OUString2Field
_aName2Field
;
...
@@ -234,23 +226,23 @@ public:
...
@@ -234,23 +226,23 @@ public:
virtual
~
InterfaceIdlClassImpl
();
virtual
~
InterfaceIdlClassImpl
();
// IdlClassImpl modifications
// IdlClassImpl modifications
virtual
sal_Bool
SAL_CALL
isAssignableFrom
(
const
Reference
<
XIdlClass
>
&
xType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
isAssignableFrom
(
const
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
&
xType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
Reference
<
XIdlClass
>
>
SAL_CALL
getSuperclasses
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
>
SAL_CALL
getSuperclasses
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Uik
SAL_CALL
getUik
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Uik
SAL_CALL
getUik
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Reference
<
XIdlMethod
>
SAL_CALL
getMethod
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlMethod
>
SAL_CALL
getMethod
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
Reference
<
XIdlMethod
>
>
SAL_CALL
getMethods
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlMethod
>
>
SAL_CALL
getMethods
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Reference
<
XIdlField
>
SAL_CALL
getField
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlField
>
SAL_CALL
getField
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
Reference
<
XIdlField
>
>
SAL_CALL
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlField
>
>
SAL_CALL
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
createObject
(
Any
&
rObj
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
createObject
(
css
::
uno
::
Any
&
rObj
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
};
};
class
CompoundIdlClassImpl
class
CompoundIdlClassImpl
:
public
IdlClassImpl
:
public
IdlClassImpl
{
{
Reference
<
XIdlClass
>
_xSuperClass
;
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
_xSuperClass
;
Sequence
<
Reference
<
XIdlField
>
>
*
_pFields
;
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlField
>
>
*
_pFields
;
OUString2Field
_aName2Field
;
OUString2Field
_aName2Field
;
public
:
public
:
...
@@ -267,16 +259,16 @@ public:
...
@@ -267,16 +259,16 @@ public:
virtual
~
CompoundIdlClassImpl
();
virtual
~
CompoundIdlClassImpl
();
// IdlClassImpl modifications
// IdlClassImpl modifications
virtual
sal_Bool
SAL_CALL
isAssignableFrom
(
const
Reference
<
XIdlClass
>
&
xType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
isAssignableFrom
(
const
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
&
xType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
Reference
<
XIdlClass
>
>
SAL_CALL
getSuperclasses
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
>
SAL_CALL
getSuperclasses
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Reference
<
XIdlField
>
SAL_CALL
getField
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlField
>
SAL_CALL
getField
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
Reference
<
XIdlField
>
>
SAL_CALL
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlField
>
>
SAL_CALL
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
};
};
class
ArrayIdlClassImpl
class
ArrayIdlClassImpl
:
public
IdlClassImpl
:
public
IdlClassImpl
,
public
XIdlArray
,
public
css
::
reflection
::
XIdlArray
{
{
public
:
public
:
typelib_IndirectTypeDescription
*
getTypeDescr
()
const
typelib_IndirectTypeDescription
*
getTypeDescr
()
const
...
@@ -289,31 +281,31 @@ public:
...
@@ -289,31 +281,31 @@ public:
:
IdlClassImpl
(
pReflection
,
rName
,
eTypeClass
,
pTypeDescr
)
:
IdlClassImpl
(
pReflection
,
rName
,
eTypeClass
,
pTypeDescr
)
{}
{}
virtual
Any
SAL_CALL
queryInterface
(
const
Type
&
rType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Any
SAL_CALL
queryInterface
(
const
css
::
uno
::
Type
&
rType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
acquire
()
throw
()
SAL_OVERRIDE
;
virtual
void
SAL_CALL
acquire
()
throw
()
SAL_OVERRIDE
;
virtual
void
SAL_CALL
release
()
throw
()
SAL_OVERRIDE
;
virtual
void
SAL_CALL
release
()
throw
()
SAL_OVERRIDE
;
// XTypeProvider
// XTypeProvider
virtual
Sequence
<
Type
>
SAL_CALL
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Type
>
SAL_CALL
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
sal_Int8
>
SAL_CALL
getImplementationId
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
sal_Int8
>
SAL_CALL
getImplementationId
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// IdlClassImpl modifications
// IdlClassImpl modifications
virtual
sal_Bool
SAL_CALL
isAssignableFrom
(
const
Reference
<
XIdlClass
>
&
xType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
isAssignableFrom
(
const
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
&
xType
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Reference
<
XIdlClass
>
SAL_CALL
getComponentType
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
SAL_CALL
getComponentType
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Reference
<
XIdlArray
>
SAL_CALL
getArray
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlArray
>
SAL_CALL
getArray
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// XIdlArray
// XIdlArray
virtual
void
SAL_CALL
realloc
(
Any
&
rArray
,
sal_Int32
nLen
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
realloc
(
css
::
uno
::
Any
&
rArray
,
sal_Int32
nLen
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int32
SAL_CALL
getLen
(
const
Any
&
rArray
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
sal_Int32
SAL_CALL
getLen
(
const
css
::
uno
::
Any
&
rArray
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Any
SAL_CALL
get
(
const
Any
&
rArray
,
sal_Int32
nIndex
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
lang
::
ArrayIndexOutOfBoundsException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Any
SAL_CALL
get
(
const
css
::
uno
::
Any
&
rArray
,
sal_Int32
nIndex
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
lang
::
ArrayIndexOutOfBoundsException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
set
(
Any
&
rArray
,
sal_Int32
nIndex
,
const
Any
&
rNewValue
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
lang
::
ArrayIndexOutOfBoundsException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
set
(
css
::
uno
::
Any
&
rArray
,
sal_Int32
nIndex
,
const
css
::
uno
::
Any
&
rNewValue
)
throw
(
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
,
::
com
::
sun
::
star
::
lang
::
ArrayIndexOutOfBoundsException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
};
};
class
EnumIdlClassImpl
class
EnumIdlClassImpl
:
public
IdlClassImpl
:
public
IdlClassImpl
{
{
Sequence
<
Reference
<
XIdlField
>
>
*
_pFields
;
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlField
>
>
*
_pFields
;
OUString2Field
_aName2Field
;
OUString2Field
_aName2Field
;
public
:
public
:
...
@@ -330,14 +322,14 @@ public:
...
@@ -330,14 +322,14 @@ public:
virtual
~
EnumIdlClassImpl
();
virtual
~
EnumIdlClassImpl
();
// IdlClassImpl modifications
// IdlClassImpl modifications
virtual
Reference
<
XIdlField
>
SAL_CALL
getField
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlField
>
SAL_CALL
getField
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Sequence
<
Reference
<
XIdlField
>
>
SAL_CALL
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlField
>
>
SAL_CALL
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
createObject
(
Any
&
rObj
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
void
SAL_CALL
createObject
(
css
::
uno
::
Any
&
rObj
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
};
};
class
IdlMemberImpl
class
IdlMemberImpl
:
public
WeakImplHelper1
<
XIdlMember
>
:
public
::
cppu
::
WeakImplHelper1
<
css
::
reflection
::
XIdlMember
>
{
{
IdlReflectionServiceImpl
*
_pReflection
;
IdlReflectionServiceImpl
*
_pReflection
;
OUString
_aName
;
OUString
_aName
;
...
@@ -346,12 +338,12 @@ class IdlMemberImpl
...
@@ -346,12 +338,12 @@ class IdlMemberImpl
typelib_TypeDescription
*
_pDeclTypeDescr
;
typelib_TypeDescription
*
_pDeclTypeDescr
;
protected
:
protected
:
Reference
<
XIdlClass
>
_xDeclClass
;
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
_xDeclClass
;
public
:
public
:
IdlReflectionServiceImpl
*
getReflection
()
const
IdlReflectionServiceImpl
*
getReflection
()
const
{
return
_pReflection
;
}
{
return
_pReflection
;
}
Reference
<
XMultiServiceFactory
>
getSMgr
()
const
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>
getSMgr
()
const
{
return
_pReflection
->
getSMgr
();
}
{
return
_pReflection
->
getSMgr
();
}
typelib_TypeDescription
*
getTypeDescr
()
const
typelib_TypeDescription
*
getTypeDescr
()
const
{
return
_pTypeDescr
;
}
{
return
_pTypeDescr
;
}
...
@@ -364,7 +356,7 @@ public:
...
@@ -364,7 +356,7 @@ public:
virtual
~
IdlMemberImpl
();
virtual
~
IdlMemberImpl
();
// XIdlMember
// XIdlMember
virtual
Reference
<
XIdlClass
>
SAL_CALL
getDeclaringClass
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Reference
<
css
::
reflection
::
XIdlClass
>
SAL_CALL
getDeclaringClass
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
OUString
SAL_CALL
getName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
OUString
SAL_CALL
getName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
};
};
...
@@ -372,8 +364,8 @@ public:
...
@@ -372,8 +364,8 @@ public:
// coerces to type descr pTo else queries for it: the interface pointer is returned via rDest
// coerces to type descr pTo else queries for it: the interface pointer is returned via rDest
// ## type to XidlClass coercion possible
// ## type to XidlClass coercion possible
inline
bool
extract
(
inline
bool
extract
(
const
Any
&
rObj
,
typelib_InterfaceTypeDescription
*
pTo
,
const
css
::
uno
::
Any
&
rObj
,
typelib_InterfaceTypeDescription
*
pTo
,
Reference
<
XInterface
>
&
rDest
,
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
&
rDest
,
IdlReflectionServiceImpl
*
pRefl
)
IdlReflectionServiceImpl
*
pRefl
)
{
{
rDest
.
clear
();
rDest
.
clear
();
...
@@ -381,18 +373,18 @@ inline bool extract(
...
@@ -381,18 +373,18 @@ inline bool extract(
{
{
if
(
!
rObj
.
hasValue
())
if
(
!
rObj
.
hasValue
())
return
true
;
return
true
;
if
(
rObj
.
getValueTypeClass
()
==
TypeClass_INTERFACE
)
if
(
rObj
.
getValueTypeClass
()
==
css
::
uno
::
TypeClass_INTERFACE
)
{
{
return
::
uno_type_assignData
(
return
::
uno_type_assignData
(
&
rDest
,
((
typelib_TypeDescription
*
)
pTo
)
->
pWeakRef
,
&
rDest
,
((
typelib_TypeDescription
*
)
pTo
)
->
pWeakRef
,
const_cast
<
void
*
>
(
rObj
.
getValue
()
),
rObj
.
getValueTypeRef
(),
const_cast
<
void
*
>
(
rObj
.
getValue
()
),
rObj
.
getValueTypeRef
(),
reinterpret_cast
<
uno_QueryInterfaceFunc
>
(
cpp_queryInterface
),
reinterpret_cast
<
uno_QueryInterfaceFunc
>
(
c
ss
::
uno
::
c
pp_queryInterface
),
reinterpret_cast
<
uno_AcquireFunc
>
(
cpp_acquire
),
reinterpret_cast
<
uno_AcquireFunc
>
(
c
ss
::
uno
::
c
pp_acquire
),
reinterpret_cast
<
uno_ReleaseFunc
>
(
cpp_release
)
);
reinterpret_cast
<
uno_ReleaseFunc
>
(
c
ss
::
uno
::
c
pp_release
)
);
}
}
else
if
(
rObj
.
getValueTypeClass
()
==
TypeClass_TYPE
)
else
if
(
rObj
.
getValueTypeClass
()
==
css
::
uno
::
TypeClass_TYPE
)
{
{
rDest
=
pRefl
->
forType
(
reinterpret_cast
<
const
Type
*
>
(
rObj
.
getValue
()
)
->
getTypeLibType
()
);
rDest
=
pRefl
->
forType
(
reinterpret_cast
<
const
css
::
uno
::
Type
*
>
(
rObj
.
getValue
()
)
->
getTypeLibType
()
);
return
rDest
.
is
();
return
rDest
.
is
();
}
}
}
}
...
@@ -400,19 +392,19 @@ inline bool extract(
...
@@ -400,19 +392,19 @@ inline bool extract(
}
}
inline
bool
coerce_assign
(
inline
bool
coerce_assign
(
void
*
pDest
,
typelib_TypeDescription
*
pTD
,
const
Any
&
rSource
,
void
*
pDest
,
typelib_TypeDescription
*
pTD
,
const
css
::
uno
::
Any
&
rSource
,
IdlReflectionServiceImpl
*
pRefl
)
IdlReflectionServiceImpl
*
pRefl
)
{
{
if
(
pTD
->
eTypeClass
==
typelib_TypeClass_INTERFACE
)
if
(
pTD
->
eTypeClass
==
typelib_TypeClass_INTERFACE
)
{
{
Reference
<
XInterface
>
xVal
;
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
xVal
;
if
(
extract
(
rSource
,
(
typelib_InterfaceTypeDescription
*
)
pTD
,
xVal
,
pRefl
))
if
(
extract
(
rSource
,
(
typelib_InterfaceTypeDescription
*
)
pTD
,
xVal
,
pRefl
))
{
{
if
(
*
(
XInterface
**
)
pDest
)
if
(
*
(
css
::
uno
::
XInterface
**
)
pDest
)
(
*
(
XInterface
**
)
pDest
)
->
release
();
(
*
(
css
::
uno
::
XInterface
**
)
pDest
)
->
release
();
*
(
XInterface
**
)
pDest
=
xVal
.
get
();
*
(
css
::
uno
::
XInterface
**
)
pDest
=
xVal
.
get
();
if
(
*
(
XInterface
**
)
pDest
)
if
(
*
(
css
::
uno
::
XInterface
**
)
pDest
)
(
*
(
XInterface
**
)
pDest
)
->
acquire
();
(
*
(
css
::
uno
::
XInterface
**
)
pDest
)
->
acquire
();
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
@@ -422,18 +414,18 @@ inline bool coerce_assign(
...
@@ -422,18 +414,18 @@ inline bool coerce_assign(
return
uno_assignData
(
return
uno_assignData
(
pDest
,
pTD
,
pDest
,
pTD
,
(
void
*
)
&
rSource
,
pTD
,
(
void
*
)
&
rSource
,
pTD
,
reinterpret_cast
<
uno_QueryInterfaceFunc
>
(
cpp_queryInterface
),
reinterpret_cast
<
uno_QueryInterfaceFunc
>
(
c
ss
::
uno
::
c
pp_queryInterface
),
reinterpret_cast
<
uno_AcquireFunc
>
(
cpp_acquire
),
reinterpret_cast
<
uno_AcquireFunc
>
(
c
ss
::
uno
::
c
pp_acquire
),
reinterpret_cast
<
uno_ReleaseFunc
>
(
cpp_release
)
);
reinterpret_cast
<
uno_ReleaseFunc
>
(
c
ss
::
uno
::
c
pp_release
)
);
}
}
else
else
{
{
return
uno_type_assignData
(
return
uno_type_assignData
(
pDest
,
pTD
->
pWeakRef
,
pDest
,
pTD
->
pWeakRef
,
(
void
*
)
rSource
.
getValue
(),
rSource
.
getValueTypeRef
(),
(
void
*
)
rSource
.
getValue
(),
rSource
.
getValueTypeRef
(),
reinterpret_cast
<
uno_QueryInterfaceFunc
>
(
cpp_queryInterface
),
reinterpret_cast
<
uno_QueryInterfaceFunc
>
(
c
ss
::
uno
::
c
pp_queryInterface
),
reinterpret_cast
<
uno_AcquireFunc
>
(
cpp_acquire
),
reinterpret_cast
<
uno_AcquireFunc
>
(
c
ss
::
uno
::
c
pp_acquire
),
reinterpret_cast
<
uno_ReleaseFunc
>
(
cpp_release
)
);
reinterpret_cast
<
uno_ReleaseFunc
>
(
c
ss
::
uno
::
c
pp_release
)
);
}
}
}
}
...
...
stoc/source/corereflection/crarray.cxx
Dosyayı görüntüle @
b2d99944
...
@@ -22,6 +22,9 @@
...
@@ -22,6 +22,9 @@
#include "base.hxx"
#include "base.hxx"
using
namespace
css
::
lang
;
using
namespace
css
::
reflection
;
using
namespace
css
::
uno
;
namespace
stoc_corefl
namespace
stoc_corefl
{
{
...
@@ -50,13 +53,13 @@ void ArrayIdlClassImpl::release() throw()
...
@@ -50,13 +53,13 @@ void ArrayIdlClassImpl::release() throw()
Sequence
<
Type
>
ArrayIdlClassImpl
::
getTypes
()
Sequence
<
Type
>
ArrayIdlClassImpl
::
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
static
OTypeCollection
*
s_pTypes
=
0
;
static
::
cppu
::
OTypeCollection
*
s_pTypes
=
0
;
if
(
!
s_pTypes
)
if
(
!
s_pTypes
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
s_pTypes
)
if
(
!
s_pTypes
)
{
{
static
OTypeCollection
s_aTypes
(
static
::
cppu
::
OTypeCollection
s_aTypes
(
::
getCppuType
(
(
const
Reference
<
XIdlArray
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlArray
>
*
)
0
),
IdlClassImpl
::
getTypes
()
);
IdlClassImpl
::
getTypes
()
);
s_pTypes
=
&
s_aTypes
;
s_pTypes
=
&
s_aTypes
;
...
...
stoc/source/corereflection/crbase.cxx
Dosyayı görüntüle @
b2d99944
...
@@ -22,6 +22,9 @@
...
@@ -22,6 +22,9 @@
#include "base.hxx"
#include "base.hxx"
using
namespace
css
::
reflection
;
using
namespace
css
::
uno
;
namespace
stoc_corefl
namespace
stoc_corefl
{
{
...
@@ -30,15 +33,15 @@ ClassNameList g_aClassNames;
...
@@ -30,15 +33,15 @@ ClassNameList g_aClassNames;
#endif
#endif
Mutex
&
getMutexAccess
()
::
osl
::
Mutex
&
getMutexAccess
()
{
{
static
Mutex
*
s_pMutex
=
0
;
static
::
osl
::
Mutex
*
s_pMutex
=
0
;
if
(
!
s_pMutex
)
if
(
!
s_pMutex
)
{
{
MutexGuard
aGuard
(
Mutex
::
getGlobalMutex
()
);
::
osl
::
MutexGuard
aGuard
(
::
osl
::
Mutex
::
getGlobalMutex
()
);
if
(
!
s_pMutex
)
if
(
!
s_pMutex
)
{
{
static
Mutex
s_aMutex
;
static
::
osl
::
Mutex
s_aMutex
;
s_pMutex
=
&
s_aMutex
;
s_pMutex
=
&
s_aMutex
;
}
}
}
}
...
@@ -263,7 +266,7 @@ Reference< XIdlClass > IdlMemberImpl::getDeclaringClass()
...
@@ -263,7 +266,7 @@ Reference< XIdlClass > IdlMemberImpl::getDeclaringClass()
if
(
!
_xDeclClass
.
is
())
if
(
!
_xDeclClass
.
is
())
{
{
Reference
<
XIdlClass
>
xDeclClass
(
getReflection
()
->
forType
(
getDeclTypeDescr
()
)
);
Reference
<
XIdlClass
>
xDeclClass
(
getReflection
()
->
forType
(
getDeclTypeDescr
()
)
);
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_xDeclClass
.
is
())
if
(
!
_xDeclClass
.
is
())
_xDeclClass
=
xDeclClass
;
_xDeclClass
=
xDeclClass
;
}
}
...
...
stoc/source/corereflection/crcomp.cxx
Dosyayı görüntüle @
b2d99944
...
@@ -25,6 +25,9 @@
...
@@ -25,6 +25,9 @@
#include "base.hxx"
#include "base.hxx"
using
namespace
css
::
lang
;
using
namespace
css
::
reflection
;
using
namespace
css
::
uno
;
namespace
stoc_corefl
namespace
stoc_corefl
{
{
...
@@ -92,13 +95,13 @@ void IdlCompFieldImpl::release() throw()
...
@@ -92,13 +95,13 @@ void IdlCompFieldImpl::release() throw()
Sequence
<
Type
>
IdlCompFieldImpl
::
getTypes
()
Sequence
<
Type
>
IdlCompFieldImpl
::
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
static
OTypeCollection
*
s_pTypes
=
0
;
static
::
cppu
::
OTypeCollection
*
s_pTypes
=
0
;
if
(
!
s_pTypes
)
if
(
!
s_pTypes
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
s_pTypes
)
if
(
!
s_pTypes
)
{
{
static
OTypeCollection
s_aTypes
(
static
::
cppu
::
OTypeCollection
s_aTypes
(
::
getCppuType
(
(
const
Reference
<
XIdlField2
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField2
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField
>
*
)
0
),
IdlMemberImpl
::
getTypes
()
);
IdlMemberImpl
::
getTypes
()
);
...
@@ -121,7 +124,7 @@ Reference< XIdlClass > IdlCompFieldImpl::getDeclaringClass()
...
@@ -121,7 +124,7 @@ Reference< XIdlClass > IdlCompFieldImpl::getDeclaringClass()
{
{
if
(
!
_xDeclClass
.
is
())
if
(
!
_xDeclClass
.
is
())
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_xDeclClass
.
is
())
if
(
!
_xDeclClass
.
is
())
{
{
typelib_CompoundTypeDescription
*
pTD
=
typelib_CompoundTypeDescription
*
pTD
=
...
@@ -311,7 +314,7 @@ Sequence< Reference< XIdlClass > > CompoundIdlClassImpl::getSuperclasses()
...
@@ -311,7 +314,7 @@ Sequence< Reference< XIdlClass > > CompoundIdlClassImpl::getSuperclasses()
{
{
if
(
!
_xSuperClass
.
is
())
if
(
!
_xSuperClass
.
is
())
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_xSuperClass
.
is
())
if
(
!
_xSuperClass
.
is
())
{
{
typelib_CompoundTypeDescription
*
pCompTypeDescr
=
getTypeDescr
()
->
pBaseTypeDescription
;
typelib_CompoundTypeDescription
*
pCompTypeDescr
=
getTypeDescr
()
->
pBaseTypeDescription
;
...
@@ -341,7 +344,7 @@ Reference< XIdlField > CompoundIdlClassImpl::getField( const OUString & rName )
...
@@ -341,7 +344,7 @@ Reference< XIdlField > CompoundIdlClassImpl::getField( const OUString & rName )
Sequence
<
Reference
<
XIdlField
>
>
CompoundIdlClassImpl
::
getFields
()
Sequence
<
Reference
<
XIdlField
>
>
CompoundIdlClassImpl
::
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pFields
)
if
(
!
_pFields
)
{
{
sal_Int32
nAll
=
0
;
sal_Int32
nAll
=
0
;
...
...
stoc/source/corereflection/crefl.cxx
Dosyayı görüntüle @
b2d99944
...
@@ -27,9 +27,11 @@
...
@@ -27,9 +27,11 @@
#include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/RuntimeException.hpp"
#include <uno/lbnames.h>
#include <uno/lbnames.h>
using
namespace
com
::
sun
::
star
;
using
namespace
css
;
using
namespace
com
::
sun
::
star
::
lang
;
using
namespace
css
::
uno
;
using
namespace
com
::
sun
::
star
::
registry
;
using
namespace
css
::
lang
;
using
namespace
css
::
reflection
;
using
namespace
css
::
registry
;
using
namespace
cppu
;
using
namespace
cppu
;
using
namespace
osl
;
using
namespace
osl
;
...
@@ -298,7 +300,7 @@ Any IdlReflectionServiceImpl::getByHierarchicalName( const OUString & rName )
...
@@ -298,7 +300,7 @@ Any IdlReflectionServiceImpl::getByHierarchicalName( const OUString & rName )
_aElements
.
setValue
(
rName
,
aRet
);
_aElements
.
setValue
(
rName
,
aRet
);
else
else
{
{
throw
NoSuchElementException
(
rName
,
Reference
<
XInterface
>
()
);
throw
container
::
NoSuchElementException
(
rName
,
Reference
<
XInterface
>
()
);
}
}
}
}
return
aRet
;
return
aRet
;
...
@@ -311,7 +313,7 @@ sal_Bool IdlReflectionServiceImpl::hasByHierarchicalName( const OUString & rName
...
@@ -311,7 +313,7 @@ sal_Bool IdlReflectionServiceImpl::hasByHierarchicalName( const OUString & rName
{
{
return
getByHierarchicalName
(
rName
).
hasValue
();
return
getByHierarchicalName
(
rName
).
hasValue
();
}
}
catch
(
NoSuchElementException
&
)
catch
(
container
::
NoSuchElementException
&
)
{
{
}
}
return
sal_False
;
return
sal_False
;
...
...
stoc/source/corereflection/crenum.cxx
Dosyayı görüntüle @
b2d99944
...
@@ -17,9 +17,12 @@
...
@@ -17,9 +17,12 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include "base.hxx"
#include "base.hxx"
using
namespace
css
::
lang
;
using
namespace
css
::
reflection
;
using
namespace
css
::
uno
;
namespace
stoc_corefl
namespace
stoc_corefl
{
{
...
@@ -90,13 +93,13 @@ void IdlEnumFieldImpl::release() throw()
...
@@ -90,13 +93,13 @@ void IdlEnumFieldImpl::release() throw()
Sequence
<
Type
>
IdlEnumFieldImpl
::
getTypes
()
Sequence
<
Type
>
IdlEnumFieldImpl
::
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
static
OTypeCollection
*
s_pTypes
=
0
;
static
::
cppu
::
OTypeCollection
*
s_pTypes
=
0
;
if
(
!
s_pTypes
)
if
(
!
s_pTypes
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
s_pTypes
)
if
(
!
s_pTypes
)
{
{
static
OTypeCollection
s_aTypes
(
static
::
cppu
::
OTypeCollection
s_aTypes
(
::
getCppuType
(
(
const
Reference
<
XIdlField2
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField2
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField
>
*
)
0
),
IdlMemberImpl
::
getTypes
()
);
IdlMemberImpl
::
getTypes
()
);
...
@@ -193,7 +196,7 @@ Sequence< Reference< XIdlField > > EnumIdlClassImpl::getFields()
...
@@ -193,7 +196,7 @@ Sequence< Reference< XIdlField > > EnumIdlClassImpl::getFields()
{
{
if
(
!
_pFields
)
if
(
!
_pFields
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pFields
)
if
(
!
_pFields
)
{
{
sal_Int32
nFields
=
getTypeDescr
()
->
nEnumValues
;
sal_Int32
nFields
=
getTypeDescr
()
->
nEnumValues
;
...
...
stoc/source/corereflection/criface.cxx
Dosyayı görüntüle @
b2d99944
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <sal/config.h>
#include <sal/config.h>
#ifdef SAL_UNX
#ifdef SAL_UNX
#include <sal/alloca.h>
#include <sal/alloca.h>
...
@@ -35,6 +34,10 @@
...
@@ -35,6 +34,10 @@
#include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/RuntimeException.hpp"
#include "cppuhelper/exc_hlp.hxx"
#include "cppuhelper/exc_hlp.hxx"
using
namespace
css
::
lang
;
using
namespace
css
::
reflection
;
using
namespace
css
::
uno
;
namespace
stoc_corefl
namespace
stoc_corefl
{
{
...
@@ -104,13 +107,13 @@ void IdlAttributeFieldImpl::release() throw()
...
@@ -104,13 +107,13 @@ void IdlAttributeFieldImpl::release() throw()
Sequence
<
Type
>
IdlAttributeFieldImpl
::
getTypes
()
Sequence
<
Type
>
IdlAttributeFieldImpl
::
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
static
OTypeCollection
*
s_pTypes
=
0
;
static
::
cppu
::
OTypeCollection
*
s_pTypes
=
0
;
if
(
!
s_pTypes
)
if
(
!
s_pTypes
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
s_pTypes
)
if
(
!
s_pTypes
)
{
{
static
OTypeCollection
s_aTypes
(
static
::
cppu
::
OTypeCollection
s_aTypes
(
::
getCppuType
(
(
const
Reference
<
XIdlField2
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField2
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlField
>
*
)
0
),
IdlMemberImpl
::
getTypes
()
);
IdlMemberImpl
::
getTypes
()
);
...
@@ -133,7 +136,7 @@ Reference< XIdlClass > IdlAttributeFieldImpl::getDeclaringClass()
...
@@ -133,7 +136,7 @@ Reference< XIdlClass > IdlAttributeFieldImpl::getDeclaringClass()
{
{
if
(
!
_xDeclClass
.
is
())
if
(
!
_xDeclClass
.
is
())
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_xDeclClass
.
is
())
if
(
!
_xDeclClass
.
is
())
{
{
OUString
aName
(
getAttributeTypeDescr
()
->
aBase
.
aBase
.
pTypeName
);
OUString
aName
(
getAttributeTypeDescr
()
->
aBase
.
aBase
.
pTypeName
);
...
@@ -399,13 +402,13 @@ void IdlInterfaceMethodImpl::release() throw()
...
@@ -399,13 +402,13 @@ void IdlInterfaceMethodImpl::release() throw()
Sequence
<
Type
>
IdlInterfaceMethodImpl
::
getTypes
()
Sequence
<
Type
>
IdlInterfaceMethodImpl
::
getTypes
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
static
OTypeCollection
*
s_pTypes
=
0
;
static
::
cppu
::
OTypeCollection
*
s_pTypes
=
0
;
if
(
!
s_pTypes
)
if
(
!
s_pTypes
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
s_pTypes
)
if
(
!
s_pTypes
)
{
{
static
OTypeCollection
s_aTypes
(
static
::
cppu
::
OTypeCollection
s_aTypes
(
::
getCppuType
(
(
const
Reference
<
XIdlMethod
>
*
)
0
),
::
getCppuType
(
(
const
Reference
<
XIdlMethod
>
*
)
0
),
IdlMemberImpl
::
getTypes
()
);
IdlMemberImpl
::
getTypes
()
);
s_pTypes
=
&
s_aTypes
;
s_pTypes
=
&
s_aTypes
;
...
@@ -427,7 +430,7 @@ Reference< XIdlClass > IdlInterfaceMethodImpl::getDeclaringClass()
...
@@ -427,7 +430,7 @@ Reference< XIdlClass > IdlInterfaceMethodImpl::getDeclaringClass()
{
{
if
(
!
_xDeclClass
.
is
())
if
(
!
_xDeclClass
.
is
())
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_xDeclClass
.
is
())
if
(
!
_xDeclClass
.
is
())
{
{
OUString
aName
(
getMethodTypeDescr
()
->
aBase
.
aBase
.
pTypeName
);
OUString
aName
(
getMethodTypeDescr
()
->
aBase
.
aBase
.
pTypeName
);
...
@@ -458,7 +461,7 @@ Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getExceptionTypes()
...
@@ -458,7 +461,7 @@ Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getExceptionTypes()
{
{
if
(
!
_pExceptionTypes
)
if
(
!
_pExceptionTypes
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pExceptionTypes
)
if
(
!
_pExceptionTypes
)
{
{
sal_Int32
nExc
=
getMethodTypeDescr
()
->
nExceptions
;
sal_Int32
nExc
=
getMethodTypeDescr
()
->
nExceptions
;
...
@@ -484,7 +487,7 @@ Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getParameterTypes()
...
@@ -484,7 +487,7 @@ Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getParameterTypes()
{
{
if
(
!
_pParamTypes
)
if
(
!
_pParamTypes
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pParamTypes
)
if
(
!
_pParamTypes
)
{
{
sal_Int32
nParams
=
getMethodTypeDescr
()
->
nParams
;
sal_Int32
nParams
=
getMethodTypeDescr
()
->
nParams
;
...
@@ -510,7 +513,7 @@ Sequence< ParamInfo > IdlInterfaceMethodImpl::getParameterInfos()
...
@@ -510,7 +513,7 @@ Sequence< ParamInfo > IdlInterfaceMethodImpl::getParameterInfos()
{
{
if
(
!
_pParamInfos
)
if
(
!
_pParamInfos
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pParamInfos
)
if
(
!
_pParamInfos
)
{
{
sal_Int32
nParams
=
getMethodTypeDescr
()
->
nParams
;
sal_Int32
nParams
=
getMethodTypeDescr
()
->
nParams
;
...
@@ -778,7 +781,7 @@ InterfaceIdlClassImpl::~InterfaceIdlClassImpl()
...
@@ -778,7 +781,7 @@ InterfaceIdlClassImpl::~InterfaceIdlClassImpl()
Sequence
<
Reference
<
XIdlClass
>
>
InterfaceIdlClassImpl
::
getSuperclasses
()
Sequence
<
Reference
<
XIdlClass
>
>
InterfaceIdlClassImpl
::
getSuperclasses
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
MutexGuard
aGuard
(
getMutexAccess
());
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
());
if
(
_xSuperClasses
.
getLength
()
==
0
)
{
if
(
_xSuperClasses
.
getLength
()
==
0
)
{
typelib_InterfaceTypeDescription
*
pType
=
getTypeDescr
();
typelib_InterfaceTypeDescription
*
pType
=
getTypeDescr
();
_xSuperClasses
.
realloc
(
pType
->
nBaseTypes
);
_xSuperClasses
.
realloc
(
pType
->
nBaseTypes
);
...
@@ -853,7 +856,7 @@ Uik InterfaceIdlClassImpl::getUik()
...
@@ -853,7 +856,7 @@ Uik InterfaceIdlClassImpl::getUik()
Sequence
<
Reference
<
XIdlMethod
>
>
InterfaceIdlClassImpl
::
getMethods
()
Sequence
<
Reference
<
XIdlMethod
>
>
InterfaceIdlClassImpl
::
getMethods
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pSortedMemberInit
)
if
(
!
_pSortedMemberInit
)
initMembers
();
initMembers
();
...
@@ -873,7 +876,7 @@ Sequence< Reference< XIdlMethod > > InterfaceIdlClassImpl::getMethods()
...
@@ -873,7 +876,7 @@ Sequence< Reference< XIdlMethod > > InterfaceIdlClassImpl::getMethods()
Sequence
<
Reference
<
XIdlField
>
>
InterfaceIdlClassImpl
::
getFields
()
Sequence
<
Reference
<
XIdlField
>
>
InterfaceIdlClassImpl
::
getFields
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pSortedMemberInit
)
if
(
!
_pSortedMemberInit
)
initMembers
();
initMembers
();
...
@@ -893,7 +896,7 @@ Sequence< Reference< XIdlField > > InterfaceIdlClassImpl::getFields()
...
@@ -893,7 +896,7 @@ Sequence< Reference< XIdlField > > InterfaceIdlClassImpl::getFields()
Reference
<
XIdlMethod
>
InterfaceIdlClassImpl
::
getMethod
(
const
OUString
&
rName
)
Reference
<
XIdlMethod
>
InterfaceIdlClassImpl
::
getMethod
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pSortedMemberInit
)
if
(
!
_pSortedMemberInit
)
initMembers
();
initMembers
();
...
@@ -923,7 +926,7 @@ Reference< XIdlMethod > InterfaceIdlClassImpl::getMethod( const OUString & rName
...
@@ -923,7 +926,7 @@ Reference< XIdlMethod > InterfaceIdlClassImpl::getMethod( const OUString & rName
Reference
<
XIdlField
>
InterfaceIdlClassImpl
::
getField
(
const
OUString
&
rName
)
Reference
<
XIdlField
>
InterfaceIdlClassImpl
::
getField
(
const
OUString
&
rName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
MutexGuard
aGuard
(
getMutexAccess
()
);
::
osl
::
MutexGuard
aGuard
(
getMutexAccess
()
);
if
(
!
_pSortedMemberInit
)
if
(
!
_pSortedMemberInit
)
initMembers
();
initMembers
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment