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
17db270c
Kaydet (Commit)
17db270c
authored
Agu 29, 2002
tarafından
Andreas Bregas
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#95159# Changed XExactName handling to enable full qualified method names
üst
7f4a4e91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
49 deletions
+47
-49
sbunoobj.cxx
basic/source/classes/sbunoobj.cxx
+47
-49
No files found.
basic/source/classes/sbunoobj.cxx
Dosyayı görüntüle @
17db270c
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: sbunoobj.cxx,v $
*
* $Revision: 1.2
1
$
* $Revision: 1.2
2
$
*
* last change: $Author: ab $ $Date: 2002-08-
12 08:59:55
$
* last change: $Author: ab $ $Date: 2002-08-
29 10:49:59
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -1735,41 +1735,42 @@ SbxVariable* SbUnoObject::Find( const XubString& rName, SbxClassType t )
{
OUString
aUName
(
rName
);
if
(
mxExactName
.
is
()
)
aUName
=
mxExactName
->
getExactName
(
aUName
);
{
OUString
aUExactName
=
mxExactName
->
getExactName
(
aUName
);
if
(
aUExactName
.
getLength
()
)
aUName
=
aUExactName
;
}
if
(
mxUnoAccess
.
is
()
)
{
if
(
aUName
.
getLength
(
)
)
if
(
mxUnoAccess
->
hasProperty
(
aUName
,
PropertyConcept
::
ALL
-
PropertyConcept
::
DANGEROUS
)
)
{
if
(
mxUnoAccess
->
hasProperty
(
aUName
,
PropertyConcept
::
ALL
-
PropertyConcept
::
DANGEROUS
)
)
{
const
Property
&
rProp
=
mxUnoAccess
->
getProperty
(
aUName
,
PropertyConcept
::
ALL
-
PropertyConcept
::
DANGEROUS
);
// #58455 Wenn die Property void sein kann, muss als Typ Variant gesetzt werden
SbxDataType
eSbxType
;
if
(
rProp
.
Attributes
&
PropertyAttribute
::
MAYBEVOID
)
eSbxType
=
SbxVARIANT
;
else
eSbxType
=
unoToSbxType
(
rProp
.
Type
.
getTypeClass
()
);
// Property anlegen und reinbraten
SbxVariableRef
xVarRef
=
new
SbUnoProperty
(
rProp
.
Name
,
eSbxType
,
rProp
,
0
);
QuickInsert
(
(
SbxVariable
*
)
xVarRef
);
pRes
=
xVarRef
;
}
else
if
(
mxUnoAccess
->
hasMethod
(
aUName
,
MethodConcept
::
ALL
-
MethodConcept
::
DANGEROUS
)
)
{
// Methode ansprechen
const
Reference
<
XIdlMethod
>&
rxMethod
=
mxUnoAccess
->
getMethod
(
aUName
,
MethodConcept
::
ALL
-
MethodConcept
::
DANGEROUS
);
// SbUnoMethode anlegen und reinbraten
SbxVariableRef
xMethRef
=
new
SbUnoMethod
(
rxMethod
->
getName
(),
unoToSbxType
(
rxMethod
->
getReturnType
()
),
rxMethod
);
QuickInsert
(
(
SbxVariable
*
)
xMethRef
);
pRes
=
xMethRef
;
}
const
Property
&
rProp
=
mxUnoAccess
->
getProperty
(
aUName
,
PropertyConcept
::
ALL
-
PropertyConcept
::
DANGEROUS
);
// #58455 Wenn die Property void sein kann, muss als Typ Variant gesetzt werden
SbxDataType
eSbxType
;
if
(
rProp
.
Attributes
&
PropertyAttribute
::
MAYBEVOID
)
eSbxType
=
SbxVARIANT
;
else
eSbxType
=
unoToSbxType
(
rProp
.
Type
.
getTypeClass
()
);
// Property anlegen und reinbraten
SbxVariableRef
xVarRef
=
new
SbUnoProperty
(
rProp
.
Name
,
eSbxType
,
rProp
,
0
);
QuickInsert
(
(
SbxVariable
*
)
xVarRef
);
pRes
=
xVarRef
;
}
else
if
(
mxUnoAccess
->
hasMethod
(
aUName
,
MethodConcept
::
ALL
-
MethodConcept
::
DANGEROUS
)
)
{
// Methode ansprechen
const
Reference
<
XIdlMethod
>&
rxMethod
=
mxUnoAccess
->
getMethod
(
aUName
,
MethodConcept
::
ALL
-
MethodConcept
::
DANGEROUS
);
// SbUnoMethode anlegen und reinbraten
SbxVariableRef
xMethRef
=
new
SbUnoMethod
(
rxMethod
->
getName
(),
unoToSbxType
(
rxMethod
->
getReturnType
()
),
rxMethod
);
QuickInsert
(
(
SbxVariable
*
)
xMethRef
);
pRes
=
xMethRef
;
}
// Wenn immer noch nichts gefunden wurde, muss geprueft werden, ob NameAccess vorliegt
...
...
@@ -1815,22 +1816,19 @@ SbxVariable* SbUnoObject::Find( const XubString& rName, SbxClassType t )
}
else
if
(
mxInvocation
.
is
()
)
{
if
(
aUName
.
getLength
(
)
)
if
(
mxInvocation
->
hasProperty
(
aUName
)
)
{
if
(
mxInvocation
->
hasProperty
(
aUName
)
)
{
// Property anlegen und reinbraten
SbxVariableRef
xVarRef
=
new
SbUnoProperty
(
aUName
,
SbxVARIANT
,
aDummyProp
,
0
);
QuickInsert
(
(
SbxVariable
*
)
xVarRef
);
pRes
=
xVarRef
;
}
else
if
(
mxInvocation
->
hasMethod
(
aUName
)
)
{
// SbUnoMethode anlegen und reinbraten
SbxVariableRef
xMethRef
=
new
SbUnoMethod
(
aUName
,
SbxVARIANT
,
xDummyMethod
);
QuickInsert
(
(
SbxVariable
*
)
xMethRef
);
pRes
=
xMethRef
;
}
// Property anlegen und reinbraten
SbxVariableRef
xVarRef
=
new
SbUnoProperty
(
aUName
,
SbxVARIANT
,
aDummyProp
,
0
);
QuickInsert
(
(
SbxVariable
*
)
xVarRef
);
pRes
=
xVarRef
;
}
else
if
(
mxInvocation
->
hasMethod
(
aUName
)
)
{
// SbUnoMethode anlegen und reinbraten
SbxVariableRef
xMethRef
=
new
SbUnoMethod
(
aUName
,
SbxVARIANT
,
xDummyMethod
);
QuickInsert
(
(
SbxVariable
*
)
xMethRef
);
pRes
=
xMethRef
;
}
}
}
...
...
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