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
c90373f9
Kaydet (Commit)
c90373f9
authored
Mar 15, 2013
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
detect follow-on default member of default member object bnc#809017
Change-Id: I366c049fc342240081957b81d2f28bfcf8d4e331
üst
5fbc90a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
sbunoobj.cxx
basic/source/classes/sbunoobj.cxx
+4
-0
step2.cxx
basic/source/runtime/step2.cxx
+25
-0
No files found.
basic/source/classes/sbunoobj.cxx
Dosyayı görüntüle @
c90373f9
...
...
@@ -296,6 +296,10 @@ SbUnoObject* createOLEObject_Impl( const OUString& aType )
Any
aAny
;
aAny
<<=
xOLEObject
;
pUnoObj
=
new
SbUnoObject
(
aType
,
aAny
);
::
rtl
::
OUString
sDfltPropName
;
if
(
SbUnoObject
::
getDefaultPropName
(
pUnoObj
,
sDfltPropName
)
)
pUnoObj
->
SetDfltProperty
(
sDfltPropName
);
}
}
return
pUnoObj
;
...
...
basic/source/runtime/step2.cxx
Dosyayı görüntüle @
c90373f9
...
...
@@ -43,6 +43,7 @@ using com::sun::star::uno::Reference;
SbxVariable
*
getVBAConstant
(
const
OUString
&
rName
);
SbxVariable
*
getDefaultProp
(
SbxVariable
*
pRef
);
// the bits in the String-ID:
// 0x8000 - Argv is reserved
...
...
@@ -606,6 +607,30 @@ SbxVariable* SbiRuntime::CheckArray( SbxVariable* pElem )
}
else
{
// check if there isn't a default member between the current variable
// and the params, e.g.
// Dim rst1 As New ADODB.Recordset
// "
// val = rst1("FirstName")
// has the default 'Fields' member between rst1 and '("FirstName")'
SbxVariable
*
pDflt
=
getDefaultProp
(
pElem
);
if
(
pDflt
)
{
pDflt
->
Broadcast
(
SBX_HINT_DATAWANTED
);
SbxBaseRef
pObj
=
(
SbxBase
*
)
pDflt
->
GetObject
();
if
(
pObj
)
{
if
(
pObj
->
ISA
(
SbUnoObject
)
)
{
pUnoObj
=
(
SbUnoObject
*
)(
SbxBase
*
)
pObj
;
Any
aAny
=
pUnoObj
->
getUnoAny
();
if
(
aAny
.
getValueType
().
getTypeClass
()
==
TypeClass_INTERFACE
)
x
=
*
(
Reference
<
XInterface
>*
)
aAny
.
getValue
();
pElem
=
pDflt
;
}
}
}
OUString
sDefaultMethod
;
Reference
<
XDefaultMethod
>
xDfltMethod
(
x
,
UNO_QUERY
);
...
...
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