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
e2a38e65
Kaydet (Commit)
e2a38e65
authored
Mar 13, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
inline trivial SwModify functions
Change-Id: I0dda2a53e49073a75b9ce14d7aa4b5088eeb2fd7
üst
3fc8c700
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
29 deletions
+9
-29
calbck.hxx
sw/inc/calbck.hxx
+9
-3
calbck.cxx
sw/source/core/attr/calbck.cxx
+0
-26
No files found.
sw/inc/calbck.hxx
Dosyayı görüntüle @
e2a38e65
...
@@ -141,10 +141,13 @@ class SW_DLLPUBLIC SwModify: public SwClient
...
@@ -141,10 +141,13 @@ class SW_DLLPUBLIC SwModify: public SwClient
bool
bInSwFntCache
:
1
;
bool
bInSwFntCache
:
1
;
// mba: IMHO this method should be pure virtual
// mba: IMHO this method should be pure virtual
virtual
void
Modify
(
const
SfxPoolItem
*
pOld
,
const
SfxPoolItem
*
pNew
)
SAL_OVERRIDE
;
virtual
void
Modify
(
const
SfxPoolItem
*
pOld
,
const
SfxPoolItem
*
pNew
)
SAL_OVERRIDE
{
NotifyClients
(
pOld
,
pNew
);
};
public
:
public
:
SwModify
();
SwModify
()
:
SwClient
(
nullptr
),
pRoot
(
nullptr
),
bModifyLocked
(
false
),
bLockClientList
(
false
),
bInDocDTOR
(
false
),
bInCache
(
false
),
bInSwFntCache
(
false
)
{}
// broadcasting: send notifications to all clients
// broadcasting: send notifications to all clients
void
NotifyClients
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
);
void
NotifyClients
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
);
...
@@ -158,7 +161,10 @@ public:
...
@@ -158,7 +161,10 @@ public:
void
CallSwClientNotify
(
const
SfxHint
&
rHint
)
const
;
void
CallSwClientNotify
(
const
SfxHint
&
rHint
)
const
;
// single argument ctors shall be explicit.
// single argument ctors shall be explicit.
explicit
SwModify
(
SwModify
*
pToRegisterIn
);
explicit
SwModify
(
SwModify
*
pToRegisterIn
)
:
SwClient
(
pToRegisterIn
),
pRoot
(
nullptr
),
bModifyLocked
(
false
),
bLockClientList
(
false
),
bInDocDTOR
(
false
),
bInCache
(
false
),
bInSwFntCache
(
false
)
{}
virtual
~
SwModify
();
virtual
~
SwModify
();
void
Add
(
SwClient
*
pDepend
);
void
Add
(
SwClient
*
pDepend
);
...
...
sw/source/core/attr/calbck.cxx
Dosyayı görüntüle @
e2a38e65
...
@@ -56,27 +56,6 @@ void SwClient::CheckRegistration( const SfxPoolItem* pOld, const SfxPoolItem* )
...
@@ -56,27 +56,6 @@ void SwClient::CheckRegistration( const SfxPoolItem* pOld, const SfxPoolItem* )
}
}
}
}
SwModify
::
SwModify
()
:
SwClient
(
nullptr
),
pRoot
(
nullptr
)
{
bModifyLocked
=
false
;
bLockClientList
=
false
;
bInDocDTOR
=
false
;
bInCache
=
false
;
bInSwFntCache
=
false
;
}
SwModify
::
SwModify
(
SwModify
*
pToRegisterIn
)
:
SwClient
(
pToRegisterIn
),
pRoot
(
nullptr
)
{
bModifyLocked
=
false
;
bLockClientList
=
false
;
bInDocDTOR
=
false
;
bInCache
=
false
;
bInSwFntCache
=
false
;
}
SwModify
::~
SwModify
()
SwModify
::~
SwModify
()
{
{
OSL_ENSURE
(
!
IsModifyLocked
(),
"Modify destroyed but locked."
);
OSL_ENSURE
(
!
IsModifyLocked
(),
"Modify destroyed but locked."
);
...
@@ -117,11 +96,6 @@ SwModify::~SwModify()
...
@@ -117,11 +96,6 @@ SwModify::~SwModify()
}
}
}
}
void
SwModify
::
Modify
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
)
{
NotifyClients
(
pOldValue
,
pNewValue
);
}
void
SwModify
::
NotifyClients
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
)
void
SwModify
::
NotifyClients
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
)
{
{
if
(
IsInCache
()
||
IsInSwFntCache
()
)
if
(
IsInCache
()
||
IsInSwFntCache
()
)
...
...
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