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
4351703c
Kaydet (Commit)
4351703c
authored
Kas 03, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwAttrSet
Change-Id: I0f38c87d46f913a3bbb5f3e40b6ae71c515a8c9c
üst
561ce3f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
swatrset.hxx
sw/inc/swatrset.hxx
+1
-1
swatrset.cxx
sw/source/core/attr/swatrset.cxx
+22
-22
No files found.
sw/inc/swatrset.hxx
Dosyayı görüntüle @
4351703c
...
@@ -173,7 +173,7 @@ public:
...
@@ -173,7 +173,7 @@ public:
class
SW_DLLPUBLIC
SwAttrSet
:
public
SfxItemSet
class
SW_DLLPUBLIC
SwAttrSet
:
public
SfxItemSet
{
{
// Pointer for Modify-System
// Pointer for Modify-System
SwAttrSet
*
pOldSet
,
*
pNewSet
;
SwAttrSet
*
m_pOldSet
,
*
m_
pNewSet
;
// Notification-Callback
// Notification-Callback
virtual
void
Changed
(
const
SfxPoolItem
&
rOld
,
const
SfxPoolItem
&
rNew
)
override
;
virtual
void
Changed
(
const
SfxPoolItem
&
rOld
,
const
SfxPoolItem
&
rNew
)
override
;
...
...
sw/source/core/attr/swatrset.cxx
Dosyayı görüntüle @
4351703c
...
@@ -145,17 +145,17 @@ void SwAttrPool::removeAndDeleteSecondaryPools()
...
@@ -145,17 +145,17 @@ void SwAttrPool::removeAndDeleteSecondaryPools()
}
}
SwAttrSet
::
SwAttrSet
(
SwAttrPool
&
rPool
,
sal_uInt16
nWh1
,
sal_uInt16
nWh2
)
SwAttrSet
::
SwAttrSet
(
SwAttrPool
&
rPool
,
sal_uInt16
nWh1
,
sal_uInt16
nWh2
)
:
SfxItemSet
(
rPool
,
nWh1
,
nWh2
),
pOldSet
(
0
),
pNewSet
(
0
)
:
SfxItemSet
(
rPool
,
nWh1
,
nWh2
),
m_pOldSet
(
0
),
m_
pNewSet
(
0
)
{
{
}
}
SwAttrSet
::
SwAttrSet
(
SwAttrPool
&
rPool
,
const
sal_uInt16
*
nWhichPairTable
)
SwAttrSet
::
SwAttrSet
(
SwAttrPool
&
rPool
,
const
sal_uInt16
*
nWhichPairTable
)
:
SfxItemSet
(
rPool
,
nWhichPairTable
),
pOldSet
(
0
),
pNewSet
(
0
)
:
SfxItemSet
(
rPool
,
nWhichPairTable
),
m_pOldSet
(
0
),
m_
pNewSet
(
0
)
{
{
}
}
SwAttrSet
::
SwAttrSet
(
const
SwAttrSet
&
rSet
)
SwAttrSet
::
SwAttrSet
(
const
SwAttrSet
&
rSet
)
:
SfxItemSet
(
rSet
),
pOldSet
(
0
),
pNewSet
(
0
)
:
SfxItemSet
(
rSet
),
m_pOldSet
(
0
),
m_
pNewSet
(
0
)
{
{
}
}
...
@@ -194,30 +194,30 @@ SfxItemSet* SwAttrSet::Clone( bool bItems, SfxItemPool *pToPool ) const
...
@@ -194,30 +194,30 @@ SfxItemSet* SwAttrSet::Clone( bool bItems, SfxItemPool *pToPool ) const
bool
SwAttrSet
::
Put_BC
(
const
SfxPoolItem
&
rAttr
,
bool
SwAttrSet
::
Put_BC
(
const
SfxPoolItem
&
rAttr
,
SwAttrSet
*
pOld
,
SwAttrSet
*
pNew
)
SwAttrSet
*
pOld
,
SwAttrSet
*
pNew
)
{
{
pNewSet
=
pNew
;
m_
pNewSet
=
pNew
;
pOldSet
=
pOld
;
m_
pOldSet
=
pOld
;
bool
bRet
=
0
!=
SfxItemSet
::
Put
(
rAttr
);
bool
bRet
=
0
!=
SfxItemSet
::
Put
(
rAttr
);
pOldSet
=
pNewSet
=
0
;
m_pOldSet
=
m_
pNewSet
=
0
;
return
bRet
;
return
bRet
;
}
}
bool
SwAttrSet
::
Put_BC
(
const
SfxItemSet
&
rSet
,
bool
SwAttrSet
::
Put_BC
(
const
SfxItemSet
&
rSet
,
SwAttrSet
*
pOld
,
SwAttrSet
*
pNew
)
SwAttrSet
*
pOld
,
SwAttrSet
*
pNew
)
{
{
pNewSet
=
pNew
;
m_
pNewSet
=
pNew
;
pOldSet
=
pOld
;
m_
pOldSet
=
pOld
;
bool
bRet
=
SfxItemSet
::
Put
(
rSet
);
bool
bRet
=
SfxItemSet
::
Put
(
rSet
);
pOldSet
=
pNewSet
=
0
;
m_pOldSet
=
m_
pNewSet
=
0
;
return
bRet
;
return
bRet
;
}
}
sal_uInt16
SwAttrSet
::
ClearItem_BC
(
sal_uInt16
nWhich
,
sal_uInt16
SwAttrSet
::
ClearItem_BC
(
sal_uInt16
nWhich
,
SwAttrSet
*
pOld
,
SwAttrSet
*
pNew
)
SwAttrSet
*
pOld
,
SwAttrSet
*
pNew
)
{
{
pNewSet
=
pNew
;
m_
pNewSet
=
pNew
;
pOldSet
=
pOld
;
m_
pOldSet
=
pOld
;
sal_uInt16
nRet
=
SfxItemSet
::
ClearItem
(
nWhich
);
sal_uInt16
nRet
=
SfxItemSet
::
ClearItem
(
nWhich
);
pOldSet
=
pNewSet
=
0
;
m_pOldSet
=
m_
pNewSet
=
0
;
return
nRet
;
return
nRet
;
}
}
...
@@ -225,32 +225,32 @@ sal_uInt16 SwAttrSet::ClearItem_BC( sal_uInt16 nWhich1, sal_uInt16 nWhich2,
...
@@ -225,32 +225,32 @@ sal_uInt16 SwAttrSet::ClearItem_BC( sal_uInt16 nWhich1, sal_uInt16 nWhich2,
SwAttrSet
*
pOld
,
SwAttrSet
*
pNew
)
SwAttrSet
*
pOld
,
SwAttrSet
*
pNew
)
{
{
OSL_ENSURE
(
nWhich1
<=
nWhich2
,
"no valid range"
);
OSL_ENSURE
(
nWhich1
<=
nWhich2
,
"no valid range"
);
pNewSet
=
pNew
;
m_
pNewSet
=
pNew
;
pOldSet
=
pOld
;
m_
pOldSet
=
pOld
;
sal_uInt16
nRet
=
0
;
sal_uInt16
nRet
=
0
;
for
(
;
nWhich1
<=
nWhich2
;
++
nWhich1
)
for
(
;
nWhich1
<=
nWhich2
;
++
nWhich1
)
nRet
=
nRet
+
SfxItemSet
::
ClearItem
(
nWhich1
);
nRet
=
nRet
+
SfxItemSet
::
ClearItem
(
nWhich1
);
pOldSet
=
pNewSet
=
0
;
m_pOldSet
=
m_
pNewSet
=
0
;
return
nRet
;
return
nRet
;
}
}
int
SwAttrSet
::
Intersect_BC
(
const
SfxItemSet
&
rSet
,
int
SwAttrSet
::
Intersect_BC
(
const
SfxItemSet
&
rSet
,
SwAttrSet
*
pOld
,
SwAttrSet
*
pNew
)
SwAttrSet
*
pOld
,
SwAttrSet
*
pNew
)
{
{
pNewSet
=
pNew
;
m_
pNewSet
=
pNew
;
pOldSet
=
pOld
;
m_
pOldSet
=
pOld
;
SfxItemSet
::
Intersect
(
rSet
);
SfxItemSet
::
Intersect
(
rSet
);
pOldSet
=
pNewSet
=
0
;
m_pOldSet
=
m_
pNewSet
=
0
;
return
pNew
?
pNew
->
Count
()
:
(
pOld
?
pOld
->
Count
()
:
0
);
return
pNew
?
pNew
->
Count
()
:
(
pOld
?
pOld
->
Count
()
:
0
);
}
}
/// Notification callback
/// Notification callback
void
SwAttrSet
::
Changed
(
const
SfxPoolItem
&
rOld
,
const
SfxPoolItem
&
rNew
)
void
SwAttrSet
::
Changed
(
const
SfxPoolItem
&
rOld
,
const
SfxPoolItem
&
rNew
)
{
{
if
(
pOldSet
)
if
(
m_
pOldSet
)
pOldSet
->
PutChgd
(
rOld
);
m_
pOldSet
->
PutChgd
(
rOld
);
if
(
pNewSet
)
if
(
m_
pNewSet
)
pNewSet
->
PutChgd
(
rNew
);
m_
pNewSet
->
PutChgd
(
rNew
);
}
}
/** special treatment for some attributes
/** special treatment for some attributes
...
...
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