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
2e803712
Kaydet (Commit)
2e803712
authored
Kas 02, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
don't warn for empty VBA structure, fdo#61059
Change-Id: I0d0f7fa216fcea7ca893120ad183dc3758ca51d4
üst
35210e22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
docmacromode.cxx
sfx2/source/doc/docmacromode.cxx
+14
-15
No files found.
sfx2/source/doc/docmacromode.cxx
Dosyayı görüntüle @
2e803712
...
@@ -331,25 +331,24 @@ namespace sfx2
...
@@ -331,25 +331,24 @@ namespace sfx2
else
else
{
{
OUString
aStdLibName
(
"Standard"
);
OUString
aStdLibName
(
"Standard"
);
OUString
aVBAProject
(
"VBAProject"
);
Sequence
<
OUString
>
aElements
=
xContainer
->
getElementNames
();
Sequence
<
OUString
>
aElements
=
xContainer
->
getElementNames
();
if
(
aElements
.
getLength
()
)
if
(
aElements
.
getLength
()
)
{
{
if
(
aElements
.
getLength
()
>
1
||
!
aElements
[
0
].
equals
(
aStdLibName
)
)
sal_Int32
nElements
=
aElements
.
getLength
();
bHasMacroLib
=
sal_True
;
for
(
sal_Int32
i
=
0
;
i
<
nElements
;
++
i
)
else
{
{
// usually a "Standard" library is always present (design)
OUString
aElement
=
aElements
[
i
];
// for this reason we must check if it's empty
if
(
aElement
==
aStdLibName
||
aElement
==
aVBAProject
)
//
{
// Note: Since #i73229#, this is not true anymore. There's no default
Reference
<
XNameAccess
>
xLib
;
// "Standard" lib anymore. Wouldn't it be time to get completely
Any
aAny
=
xContainer
->
getByName
(
aStdLibName
);
// rid of the "Standard" thingie - this shouldn't be necessary
aAny
>>=
xLib
;
// anymore, should it?
if
(
xLib
.
is
()
&&
xLib
->
hasElements
()
)
Reference
<
XNameAccess
>
xLib
;
return
sal_True
;
Any
aAny
=
xContainer
->
getByName
(
aStdLibName
);
}
aAny
>>=
xLib
;
else
if
(
xLib
.
is
()
)
return
sal_True
;
bHasMacroLib
=
xLib
->
hasElements
();
}
}
}
}
}
}
...
...
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