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
b4c3a2bd
Kaydet (Commit)
b4c3a2bd
authored
Mar 24, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove typed Modify for good
Change-Id: I53105b9a8a832affd0545fcd69774fad116a2a3c
üst
0085d2f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
calbck.hxx
sw/inc/calbck.hxx
+1
-15
No files found.
sw/inc/calbck.hxx
Dosyayı görüntüle @
b4c3a2bd
...
...
@@ -176,14 +176,10 @@ public:
// broadcasting: send notifications to all clients
// DO NOT USE IN NEW CODE! use CallSwClientNotify instead.
void
NotifyClients
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
);
// the same, but without setting m_bModifyLocked or checking for any of the flags
// DO NOT USE IN NEW CODE! use CallSwClientNotify instead.
void
ModifyBroadcast
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
)
{
CallSwClientNotify
(
sw
::
LegacyModifyHint
{
pOldValue
,
pNewValue
}
);
};
// the same, but without setting m_bModifyLocked or checking for any of the flags
// mba: it would be interesting to know why this is necessary
// also allows to limit callback to certain type (HACK)
// DO NOT USE IN NEW CODE! use CallSwClientNotify instead.
inline
void
ModifyBroadcast
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
,
TypeId
nType
);
// a more universal broadcasting mechanism
inline
void
CallSwClientNotify
(
const
SfxHint
&
rHint
)
const
;
...
...
@@ -371,16 +367,6 @@ SwClient::SwClient( SwModify* pToRegisterIn )
pToRegisterIn
->
Add
(
this
);
}
void
SwModify
::
ModifyBroadcast
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
,
TypeId
nType
)
{
SwIterator
<
SwClient
,
SwModify
>
aIter
(
*
this
);
for
(
SwClient
*
pClient
=
aIter
.
First
();
pClient
;
pClient
=
aIter
.
Next
())
{
if
(
pClient
->
IsA
(
nType
))
pClient
->
Modify
(
pOldValue
,
pNewValue
);
}
}
void
SwModify
::
CallSwClientNotify
(
const
SfxHint
&
rHint
)
const
{
SwIterator
<
SwClient
,
SwModify
>
aIter
(
*
this
);
...
...
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