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
7e2677c0
Kaydet (Commit)
7e2677c0
authored
Kas 11, 2013
tarafından
Michael Meeks
Kaydeden (comit)
Kohei Yoshida
Kas 11, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Accelerate checking for VBA macros that are not there.
üst
01ea75c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
XVBAEventProcessor.idl
offapi/com/sun/star/script/vba/XVBAEventProcessor.idl
+1
-4
vbaeventshelperbase.cxx
vbahelper/source/vbahelper/vbaeventshelperbase.cxx
+10
-9
No files found.
offapi/com/sun/star/script/vba/XVBAEventProcessor.idl
Dosyayı görüntüle @
7e2677c0
...
...
@@ -44,10 +44,7 @@ interface XVBAEventProcessor
@
return
`
TRUE
`
,
if
the
VBA
event
handler
exists
.
@
throws
::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
if
the
passed
event
identifier
is
not
supported
,
or
if
the
passed
specifier
is
required
but
invalid
.
`
FALSE
`
,
for
all
other
cases
.
**/
boolean
hasVbaEventHandler
(
[
in
]
long
nEventId
,
[
in
]
sequence
<
any
>
aArgs
)
raises
(::
com
::
sun
::
star
::
lang
::
IllegalArgumentException
)
;
...
...
vbahelper/source/vbahelper/vbaeventshelperbase.cxx
Dosyayı görüntüle @
7e2677c0
...
...
@@ -51,15 +51,6 @@ VbaEventsHelperBase::~VbaEventsHelperBase()
SAL_WARN_IF
(
!
mbDisposed
,
"vbahelper"
,
"VbaEventsHelperBase::~VbaEventsHelperBase - missing disposing notification"
);
}
sal_Bool
SAL_CALL
VbaEventsHelperBase
::
hasVbaEventHandler
(
sal_Int32
nEventId
,
const
uno
::
Sequence
<
uno
::
Any
>&
rArgs
)
throw
(
lang
::
IllegalArgumentException
,
uno
::
RuntimeException
)
{
// getEventHandlerInfo() throws, if unknown event dentifier has been passed
const
EventHandlerInfo
&
rInfo
=
getEventHandlerInfo
(
nEventId
);
// getEventHandlerPath() searches for the macro in the document
return
!
getEventHandlerPath
(
rInfo
,
rArgs
).
isEmpty
();
}
sal_Bool
SAL_CALL
VbaEventsHelperBase
::
processVbaEvent
(
sal_Int32
nEventId
,
const
uno
::
Sequence
<
uno
::
Any
>&
rArgs
)
throw
(
lang
::
IllegalArgumentException
,
util
::
VetoException
,
uno
::
RuntimeException
)
{
...
...
@@ -241,6 +232,16 @@ void VbaEventsHelperBase::stopListening()
mbDisposed
=
true
;
}
sal_Bool
SAL_CALL
VbaEventsHelperBase
::
hasVbaEventHandler
(
sal_Int32
nEventId
,
const
uno
::
Sequence
<
uno
::
Any
>&
rArgs
)
throw
(
lang
::
IllegalArgumentException
,
uno
::
RuntimeException
)
{
EventHandlerInfoMap
::
const_iterator
aIt
=
maEventInfos
.
find
(
nEventId
);
if
(
aIt
==
maEventInfos
.
end
()
)
return
sal_False
;
// throwing a lot of exceptions is slow.
else
// getEventHandlerPath() searches for the macro in the document
return
!
getEventHandlerPath
(
aIt
->
second
,
rArgs
).
isEmpty
();
}
const
VbaEventsHelperBase
::
EventHandlerInfo
&
VbaEventsHelperBase
::
getEventHandlerInfo
(
sal_Int32
nEventId
)
const
throw
(
lang
::
IllegalArgumentException
)
{
...
...
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