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
bc01bc63
Kaydet (Commit)
bc01bc63
authored
Agu 11, 2011
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Less indent level.
üst
0bacaf4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
24 deletions
+26
-24
eventattachermgr.cxx
comphelper/source/eventattachermgr/eventattachermgr.cxx
+26
-24
No files found.
comphelper/source/eventattachermgr/eventattachermgr.cxx
Dosyayı görüntüle @
bc01bc63
...
...
@@ -693,32 +693,34 @@ void SAL_CALL ImplEventAttacherManager::attach(sal_Int32 nIndex, const Reference
AttachedObject_Impl
&
rCurObj
=
aCurrentPosition
->
aObjList
.
back
();
rCurObj
.
aAttachedListenerSeq
=
Sequence
<
Reference
<
XEventListener
>
>
(
aCurrentPosition
->
aEventList
.
size
()
);
if
(
!
aCurrentPosition
->
aEventList
.
empty
())
if
(
aCurrentPosition
->
aEventList
.
empty
())
return
;
Sequence
<
com
::
sun
::
star
::
script
::
EventListener
>
aEvents
(
aCurrentPosition
->
aEventList
.
size
());
std
::
deque
<
ScriptEventDescriptor
>::
iterator
itr
=
aCurrentPosition
->
aEventList
.
begin
();
std
::
deque
<
ScriptEventDescriptor
>::
iterator
itrEnd
=
aCurrentPosition
->
aEventList
.
end
();
::
com
::
sun
::
star
::
script
::
EventListener
*
p
=
aEvents
.
getArray
();
size_t
i
=
0
;
for
(;
itr
!=
itrEnd
;
++
itr
)
{
Sequence
<
com
::
sun
::
star
::
script
::
EventListener
>
aEvents
(
aCurrentPosition
->
aEventList
.
size
());
std
::
deque
<
ScriptEventDescriptor
>::
iterator
itr
=
aCurrentPosition
->
aEventList
.
begin
();
std
::
deque
<
ScriptEventDescriptor
>::
iterator
itrEnd
=
aCurrentPosition
->
aEventList
.
end
();
::
com
::
sun
::
star
::
script
::
EventListener
*
p
=
aEvents
.
getArray
();
size_t
i
=
0
;
for
(;
itr
!=
itrEnd
;
++
itr
)
{
com
::
sun
::
star
::
script
::
EventListener
aListener
;
aListener
.
AllListener
=
new
AttacherAllListener_Impl
(
this
,
itr
->
ScriptType
,
itr
->
ScriptCode
);
aListener
.
Helper
=
rCurObj
.
aHelper
;
aListener
.
ListenerType
=
itr
->
ListenerType
;
aListener
.
EventMethod
=
itr
->
EventMethod
;
aListener
.
AddListenerParam
=
itr
->
AddListenerParam
;
p
[
i
++
]
=
aListener
;
}
com
::
sun
::
star
::
script
::
EventListener
aListener
;
aListener
.
AllListener
=
new
AttacherAllListener_Impl
(
this
,
itr
->
ScriptType
,
itr
->
ScriptCode
);
aListener
.
Helper
=
rCurObj
.
aHelper
;
aListener
.
ListenerType
=
itr
->
ListenerType
;
aListener
.
EventMethod
=
itr
->
EventMethod
;
aListener
.
AddListenerParam
=
itr
->
AddListenerParam
;
p
[
i
++
]
=
aListener
;
}
try
{
rCurObj
.
aAttachedListenerSeq
=
xAttacher
->
attachMultipleEventListeners
(
rCurObj
.
xTarget
,
aEvents
);
}
catch
(
const
Exception
&
)
{
}
try
{
rCurObj
.
aAttachedListenerSeq
=
xAttacher
->
attachMultipleEventListeners
(
rCurObj
.
xTarget
,
aEvents
);
}
catch
(
const
Exception
&
)
{
// Fail gracefully.
}
}
...
...
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