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
80cbfb75
Kaydet (Commit)
80cbfb75
authored
Tem 16, 2015
tarafından
Matthew J. Francis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Translate German comments
Change-Id: I1d1c66fb2c62a3c6e0c65c2b89efcd8bfd2b87cd
üst
ec243f43
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
introspection.cxx
stoc/source/inspect/introspection.cxx
+0
-0
invocation.cxx
stoc/source/invocation/invocation.cxx
+13
-13
No files found.
stoc/source/inspect/introspection.cxx
Dosyayı görüntüle @
80cbfb75
This diff is collapsed.
Click to expand it.
stoc/source/invocation/invocation.cxx
Dosyayı görüntüle @
80cbfb75
...
@@ -79,7 +79,7 @@ static OUString inv_getImplementationName()
...
@@ -79,7 +79,7 @@ static OUString inv_getImplementationName()
return
OUString
(
IMPLNAME
);
return
OUString
(
IMPLNAME
);
}
}
// TODO:
Zentral implementieren
// TODO:
Implement centrally
inline
Reference
<
XIdlClass
>
TypeToIdlClass
(
const
Type
&
rType
,
const
Reference
<
XIdlReflection
>
&
xRefl
)
inline
Reference
<
XIdlClass
>
TypeToIdlClass
(
const
Type
&
rType
,
const
Reference
<
XIdlReflection
>
&
xRefl
)
{
{
return
xRefl
->
forName
(
rType
.
getTypeName
()
);
return
xRefl
->
forName
(
rType
.
getTypeName
()
);
...
@@ -115,7 +115,7 @@ public:
...
@@ -115,7 +115,7 @@ public:
virtual
Sequence
<
sal_Int8
>
SAL_CALL
getImplementationId
(
)
virtual
Sequence
<
sal_Int8
>
SAL_CALL
getImplementationId
(
)
throw
(
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
throw
(
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
//
Methoden von
XMaterialHolder
// XMaterialHolder
virtual
Any
SAL_CALL
getMaterial
()
throw
(
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
Any
SAL_CALL
getMaterial
()
throw
(
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// XInvocation
// XInvocation
...
@@ -137,7 +137,7 @@ public:
...
@@ -137,7 +137,7 @@ public:
virtual
InvocationInfo
SAL_CALL
getInfoForName
(
const
OUString
&
aName
,
sal_Bool
bExact
)
virtual
InvocationInfo
SAL_CALL
getInfoForName
(
const
OUString
&
aName
,
sal_Bool
bExact
)
throw
(
IllegalArgumentException
,
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
throw
(
IllegalArgumentException
,
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
// All Access and Container methods are not thread sa
v
e
// All Access and Container methods are not thread sa
f
e
// XElementAccess
// XElementAccess
virtual
Type
SAL_CALL
getElementType
()
throw
(
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
virtual
Type
SAL_CALL
getElementType
()
throw
(
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
{
return
_xElementAccess
->
getElementType
();
}
{
return
_xElementAccess
->
getElementType
();
}
...
@@ -260,7 +260,7 @@ Invocation_Impl::~Invocation_Impl() {}
...
@@ -260,7 +260,7 @@ Invocation_Impl::~Invocation_Impl() {}
Any
SAL_CALL
Invocation_Impl
::
queryInterface
(
const
Type
&
aType
)
Any
SAL_CALL
Invocation_Impl
::
queryInterface
(
const
Type
&
aType
)
throw
(
RuntimeException
,
std
::
exception
)
throw
(
RuntimeException
,
std
::
exception
)
{
{
// PropertySet
-I
mplementation
// PropertySet
i
mplementation
Any
a
=
::
cppu
::
queryInterface
(
aType
,
Any
a
=
::
cppu
::
queryInterface
(
aType
,
(
static_cast
<
XInvocation
*
>
(
this
)),
(
static_cast
<
XInvocation
*
>
(
this
)),
(
static_cast
<
XMaterialHolder
*
>
(
this
)),
(
static_cast
<
XMaterialHolder
*
>
(
this
)),
...
@@ -331,9 +331,9 @@ Any SAL_CALL Invocation_Impl::queryInterface( const Type & aType )
...
@@ -331,9 +331,9 @@ Any SAL_CALL Invocation_Impl::queryInterface( const Type & aType )
Any
Invocation_Impl
::
getMaterial
()
throw
(
RuntimeException
,
std
::
exception
)
Any
Invocation_Impl
::
getMaterial
()
throw
(
RuntimeException
,
std
::
exception
)
{
{
// AB, 12.2.1999
Sicherstellen, dass das Material wenn moeglich
// AB, 12.2.1999
Make sure that the material is taken when possible
//
aus der direkten Invocation bzw. von der Introspection geholt
//
from the direct Invocation of the Introspection, otherwise structs
//
wird, da sonst Structs nicht korrekt behandelt werden
//
are not handled correctly
Reference
<
XMaterialHolder
>
xMaterialHolder
;
Reference
<
XMaterialHolder
>
xMaterialHolder
;
if
(
_xDirect
.
is
()
)
if
(
_xDirect
.
is
()
)
{
{
...
@@ -362,12 +362,12 @@ void Invocation_Impl::setMaterial( const Any& rMaterial )
...
@@ -362,12 +362,12 @@ void Invocation_Impl::setMaterial( const Any& rMaterial )
xObj
=
*
static_cast
<
Reference
<
XInterface
>
const
*>
(
rMaterial
.
getValue
());
xObj
=
*
static_cast
<
Reference
<
XInterface
>
const
*>
(
rMaterial
.
getValue
());
_aMaterial
=
rMaterial
;
_aMaterial
=
rMaterial
;
//
Ersteinmal alles ausserhalb des guards machen
//
First do this outside the guard
_xDirect
=
Reference
<
XInvocation
>::
query
(
xObj
);
_xDirect
=
Reference
<
XInvocation
>::
query
(
xObj
);
if
(
_xDirect
.
is
()
)
if
(
_xDirect
.
is
()
)
{
{
//
Objekt direkt befragen
//
Consult object directly
_xElementAccess
=
Reference
<
XElementAccess
>::
query
(
_xDirect
);
_xElementAccess
=
Reference
<
XElementAccess
>::
query
(
_xDirect
);
_xEnumerationAccess
=
Reference
<
XEnumerationAccess
>::
query
(
_xDirect
);
_xEnumerationAccess
=
Reference
<
XEnumerationAccess
>::
query
(
_xDirect
);
_xIndexAccess
=
Reference
<
XIndexAccess
>::
query
(
_xDirect
);
_xIndexAccess
=
Reference
<
XIndexAccess
>::
query
(
_xDirect
);
...
@@ -383,7 +383,7 @@ void Invocation_Impl::setMaterial( const Any& rMaterial )
...
@@ -383,7 +383,7 @@ void Invocation_Impl::setMaterial( const Any& rMaterial )
}
}
else
else
{
{
//
Invocation ueber die Introspection mache
n
//
Make Invocation on the Introspectio
n
if
(
xIntrospection
.
is
())
if
(
xIntrospection
.
is
())
{
{
_xIntrospectionAccess
=
xIntrospection
->
inspect
(
_aMaterial
);
_xIntrospectionAccess
=
xIntrospection
->
inspect
(
_aMaterial
);
...
@@ -565,7 +565,7 @@ void Invocation_Impl::setValue( const OUString& PropertyName, const Any& Value )
...
@@ -565,7 +565,7 @@ void Invocation_Impl::setValue( const OUString& PropertyName, const Any& Value )
else
else
throw
RuntimeException
(
"no type converter service!"
);
throw
RuntimeException
(
"no type converter service!"
);
//
bei Vorhandensein ersetzen, ansonsten einfuegen
//
Replace if present, otherwise insert
if
(
_xNameContainer
->
hasByName
(
PropertyName
))
if
(
_xNameContainer
->
hasByName
(
PropertyName
))
_xNameContainer
->
replaceByName
(
PropertyName
,
aConv
);
_xNameContainer
->
replaceByName
(
PropertyName
,
aConv
);
else
else
...
@@ -675,7 +675,7 @@ Any Invocation_Impl::invoke( const OUString& FunctionName, const Sequence<Any>&
...
@@ -675,7 +675,7 @@ Any Invocation_Impl::invoke( const OUString& FunctionName, const Sequence<Any>&
}
}
catch
(
CannotConvertException
&
rExc
)
catch
(
CannotConvertException
&
rExc
)
{
{
rExc
.
ArgumentIndex
=
nPos
;
//
optionalen Parameter Index hinzufuegen
rExc
.
ArgumentIndex
=
nPos
;
//
Add optional parameter index
throw
;
throw
;
}
}
}
}
...
@@ -987,7 +987,7 @@ Sequence< Type > SAL_CALL Invocation_Impl::getTypes() throw( RuntimeException, s
...
@@ -987,7 +987,7 @@ Sequence< Type > SAL_CALL Invocation_Impl::getTypes() throw( RuntimeException, s
pTypes
[
n
++
]
=
cppu
::
UnoType
<
XInvocation
>::
get
();
pTypes
[
n
++
]
=
cppu
::
UnoType
<
XInvocation
>::
get
();
pTypes
[
n
++
]
=
cppu
::
UnoType
<
XMaterialHolder
>::
get
();
pTypes
[
n
++
]
=
cppu
::
UnoType
<
XMaterialHolder
>::
get
();
// I
vocation does not support XExactName,
if direct object supports
// I
nvocation does not support XExactName
if direct object supports
// XInvocation, but not XExactName.
// XInvocation, but not XExactName.
if
((
_xDirect
.
is
()
&&
_xENDirect
.
is
())
||
if
((
_xDirect
.
is
()
&&
_xENDirect
.
is
())
||
(
!
_xDirect
.
is
()
&&
(
_xENIntrospection
.
is
()
||
_xENNameAccess
.
is
())))
(
!
_xDirect
.
is
()
&&
(
_xENIntrospection
.
is
()
||
_xENNameAccess
.
is
())))
...
...
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