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
e755c1d4
Kaydet (Commit)
e755c1d4
authored
Mar 13, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
inline broadcast iterations
Change-Id: If6f83887ad398161d9ccb1e2649ca6cdfd933ca5
üst
9bfd0481
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
calbck.hxx
sw/inc/calbck.hxx
+15
-2
calbck.cxx
sw/source/core/attr/calbck.cxx
+0
-13
No files found.
sw/inc/calbck.hxx
Dosyayı görüntüle @
e755c1d4
...
...
@@ -155,10 +155,10 @@ public:
// the same, but without setting 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)
void
ModifyBroadcast
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
,
TypeId
nType
=
TYPE
(
SwClient
)
);
inline
void
ModifyBroadcast
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
,
TypeId
nType
=
TYPE
(
SwClient
)
);
// a more universal broadcasting mechanism
void
CallSwClientNotify
(
const
SfxHint
&
rHint
)
const
;
inline
void
CallSwClientNotify
(
const
SfxHint
&
rHint
)
const
;
// single argument ctors shall be explicit.
explicit
SwModify
(
SwModify
*
pToRegisterIn
)
...
...
@@ -333,6 +333,19 @@ SwClient::SwClient( SwModify* pToRegisterIn )
if
(
pToRegisterIn
)
pToRegisterIn
->
Add
(
this
);
}
void
SwModify
::
ModifyBroadcast
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
,
TypeId
nType
)
{
SwClientIter
aIter
(
*
this
);
for
(
aIter
.
First
(
nType
);
aIter
;
aIter
.
Next
())
aIter
->
Modify
(
pOldValue
,
pNewValue
);
}
void
SwModify
::
CallSwClientNotify
(
const
SfxHint
&
rHint
)
const
{
for
(
SwClientIter
aIter
(
*
this
);
aIter
;
++
aIter
)
aIter
->
SwClientNotify
(
*
this
,
rHint
);
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/core/attr/calbck.cxx
Dosyayı görüntüle @
e755c1d4
...
...
@@ -270,19 +270,6 @@ void SwModify::CheckCaching( const sal_uInt16 nWhich )
}
}
void
SwModify
::
CallSwClientNotify
(
const
SfxHint
&
rHint
)
const
{
for
(
SwClientIter
aIter
(
*
this
);
aIter
;
++
aIter
)
aIter
->
SwClientNotify
(
*
this
,
rHint
);
}
void
SwModify
::
ModifyBroadcast
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
,
TypeId
nType
)
{
SwClientIter
aIter
(
*
this
);
for
(
aIter
.
First
(
nType
);
aIter
;
aIter
.
Next
())
aIter
->
Modify
(
pOldValue
,
pNewValue
);
}
SwDepend
::
SwDepend
(
SwClient
*
pTellHim
,
SwModify
*
pDepend
)
:
SwClient
(
pDepend
)
{
...
...
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