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
37262d61
Kaydet (Commit)
37262d61
authored
Mar 18, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove superficial helpers
Change-Id: Icd690bf20c47152b00e1f51586471f9fe029c4cf
üst
a5fead9c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
34 deletions
+13
-34
calbck.hxx
sw/inc/calbck.hxx
+7
-28
calbck.cxx
sw/source/core/attr/calbck.cxx
+6
-6
No files found.
sw/inc/calbck.hxx
Dosyayı görüntüle @
37262d61
...
...
@@ -285,23 +285,6 @@ public:
our_pClientIters
=
unique
()
?
nullptr
:
GetNextInRing
();
MoveTo
(
nullptr
);
}
SwClient
*
operator
++
()
{
if
(
m_pPosition
==
m_pCurrent
)
m_pPosition
=
static_cast
<
SwClient
*>
(
m_pPosition
->
m_pRight
);
return
m_pCurrent
=
m_pPosition
;
}
// returns the current SwClient object, wether it is still a client or not
SwClient
&
operator
*
()
const
{
return
*
m_pCurrent
;
}
// returns the current SwClient object, wether it is still a client or not
SwClient
*
operator
->
()
const
{
return
m_pCurrent
;
}
explicit
operator
bool
()
const
{
return
m_pCurrent
!=
nullptr
;
}
// return "true" if an object was removed from a client chain in iteration
// adding objects to a client chain in iteration is forbidden
// SwModify::Add() asserts this
...
...
@@ -401,23 +384,19 @@ SwClient::SwClient( SwModify* pToRegisterIn )
void
SwModify
::
ModifyBroadcast
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
,
TypeId
nType
)
{
SwClientIter
aIter
(
*
this
);
aIter
.
GoStart
();
while
(
aIter
)
SwIterator
<
SwClient
,
SwModify
>
aIter
(
*
this
);
for
(
SwClient
*
pClient
=
aIter
.
First
();
pClient
;
pClient
=
aIter
.
Next
())
{
if
(
aIter
.
m_pPosition
==
aIter
.
m_pCurrent
)
aIter
.
m_pPosition
=
static_cast
<
SwClient
*>
(
aIter
.
m_pPosition
->
m_pRight
);
while
(
aIter
.
m_pPosition
&&
!
aIter
.
m_pPosition
->
IsA
(
nType
)
)
aIter
.
m_pPosition
=
static_cast
<
SwClient
*>
(
aIter
.
m_pPosition
->
m_pRight
);
aIter
.
m_pCurrent
=
aIter
.
m_pPosition
;
aIter
->
Modify
(
pOldValue
,
pNewValue
);
if
(
pClient
->
IsA
(
nType
))
pClient
->
Modify
(
pOldValue
,
pNewValue
);
}
}
void
SwModify
::
CallSwClientNotify
(
const
SfxHint
&
rHint
)
const
{
for
(
SwClientIter
aIter
(
*
this
);
aIter
;
++
aIter
)
aIter
->
SwClientNotify
(
*
this
,
rHint
);
SwIterator
<
SwClient
,
SwModify
>
aIter
(
*
this
);
for
(
SwClient
*
pClient
=
aIter
.
First
();
pClient
;
pClient
=
aIter
.
Next
())
pClient
->
SwClientNotify
(
*
this
,
rHint
);
}
#endif
...
...
sw/source/core/attr/calbck.cxx
Dosyayı görüntüle @
37262d61
...
...
@@ -74,9 +74,9 @@ SwModify::~SwModify()
// If the document gets destroyed anyway, just tell clients to
// forget me so that they don't try to get removed from my list
// later when they also get destroyed
Sw
ClientIter
aIter
(
*
this
);
for
(
aIter
.
GoStart
();
aIter
;
++
aIter
)
aIter
->
pRegisteredIn
=
nullptr
;
Sw
Iterator
<
SwClient
,
SwModify
>
aIter
(
*
this
);
for
(
SwClient
*
pClient
=
aIter
.
First
();
pClient
;
pClient
=
aIter
.
Next
()
)
pClient
->
pRegisteredIn
=
nullptr
;
}
else
{
...
...
@@ -134,9 +134,9 @@ bool SwModify::GetInfo( SfxPoolItem& rInfo ) const
{
if
(
!
pRoot
)
return
true
;
Sw
ClientIter
aIter
(
*
const_cast
<
SwModify
*>
(
this
)
);
for
(
aIter
.
GoStart
();
aIter
;
++
aIter
)
if
(
!
aIter
->
GetInfo
(
rInfo
))
Sw
Iterator
<
SwClient
,
SwModify
>
aIter
(
*
this
);
for
(
SwClient
*
pClient
=
aIter
.
First
();
pClient
;
pClient
=
aIter
.
Next
()
)
if
(
!
pClient
->
GetInfo
(
rInfo
))
return
false
;
return
true
;
}
...
...
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