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
4b3a535a
Kaydet (Commit)
4b3a535a
authored
Nis 08, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svl: prefix members of SfxItemSet
Change-Id: I801aaa8ad9a4ff08dedd2f92b09d98c870c725b8
üst
e3efae3e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
19 deletions
+19
-19
itemiter.hxx
include/svl/itemiter.hxx
+3
-3
itemset.hxx
include/svl/itemset.hxx
+11
-11
README
svl/README
+2
-2
itemiter.cxx
svl/source/items/itemiter.cxx
+3
-3
itemset.cxx
svl/source/items/itemset.cxx
+0
-0
No files found.
include/svl/itemiter.hxx
Dosyayı görüntüle @
4b3a535a
...
...
@@ -39,12 +39,12 @@ public:
// falls es diese gibt, returne sie, sonst 0
const
SfxPoolItem
*
FirstItem
()
{
_nAkt
=
_nStt
;
return
_rSet
.
_nCount
?
*
(
_rSet
.
_aItems
+
_nAkt
)
:
0
;
}
return
_rSet
.
m_nCount
?
*
(
_rSet
.
m_pItems
+
_nAkt
)
:
nullptr
;
}
const
SfxPoolItem
*
LastItem
()
{
_nAkt
=
_nEnd
;
return
_rSet
.
_nCount
?
*
(
_rSet
.
_aItems
+
_nAkt
)
:
0
;
}
return
_rSet
.
m_nCount
?
*
(
_rSet
.
m_pItems
+
_nAkt
)
:
nullptr
;
}
const
SfxPoolItem
*
GetCurItem
()
{
return
_rSet
.
_nCount
?
*
(
_rSet
.
_aItems
+
_nAkt
)
:
0
;
}
{
return
_rSet
.
m_nCount
?
*
(
_rSet
.
m_pItems
+
_nAkt
)
:
nullptr
;
}
const
SfxPoolItem
*
NextItem
();
bool
IsAtStart
()
const
{
return
_nAkt
==
_nStt
;
}
...
...
include/svl/itemset.hxx
Dosyayı görüntüle @
4b3a535a
...
...
@@ -41,11 +41,11 @@ class SVL_DLLPUBLIC SfxItemSet
{
friend
class
SfxItemIter
;
SfxItemPool
*
_pPool
;
// pool, which is used
const
SfxItemSet
*
_pParent
;
//
derivation
SfxItemArray
_aItems
;
// field
of items
sal_uInt16
*
_pWhichRanges
;
//
array of Which Ranges
sal_uInt16
_nCount
;
//
number of items
SfxItemPool
*
m_pPool
;
///< pool that stores the items
const
SfxItemSet
*
m_pParent
;
///<
derivation
SfxItemArray
m_pItems
;
///< array
of items
sal_uInt16
*
m_pWhichRanges
;
///<
array of Which Ranges
sal_uInt16
m_nCount
;
///<
number of items
friend
class
SfxItemPoolCache
;
friend
class
SfxAllItemSet
;
...
...
@@ -57,7 +57,7 @@ private:
SVL_DLLPRIVATE
void
InitRanges_Impl
(
sal_uInt16
nWh1
,
sal_uInt16
nWh2
);
public
:
SfxItemArray
GetItems_Impl
()
const
{
return
_a
Items
;
}
SfxItemArray
GetItems_Impl
()
const
{
return
m_p
Items
;
}
private
:
const
SfxItemSet
&
operator
=
(
const
SfxItemSet
&
)
SAL_DELETED_FUNCTION
;
...
...
@@ -80,7 +80,7 @@ public:
virtual
SfxItemSet
*
Clone
(
bool
bItems
=
true
,
SfxItemPool
*
pToPool
=
0
)
const
;
// Get number of items
sal_uInt16
Count
()
const
{
return
_nCount
;
}
sal_uInt16
Count
()
const
{
return
m
_nCount
;
}
sal_uInt16
TotalCount
()
const
;
const
SfxPoolItem
&
Get
(
sal_uInt16
nWhich
,
bool
bSrchInParent
=
true
)
const
;
...
...
@@ -123,11 +123,11 @@ public:
void
Differentiate
(
const
SfxItemSet
&
rSet
);
void
MergeValue
(
const
SfxPoolItem
&
rItem
,
bool
bOverwriteDefaults
=
false
);
SfxItemPool
*
GetPool
()
const
{
return
_pPool
;
}
const
sal_uInt16
*
GetRanges
()
const
{
return
_pWhichRanges
;
}
SfxItemPool
*
GetPool
()
const
{
return
m
_pPool
;
}
const
sal_uInt16
*
GetRanges
()
const
{
return
m
_pWhichRanges
;
}
void
SetRanges
(
const
sal_uInt16
*
pRanges
);
void
MergeRange
(
sal_uInt16
nFrom
,
sal_uInt16
nTo
);
const
SfxItemSet
*
GetParent
()
const
{
return
_pParent
;
}
const
SfxItemSet
*
GetParent
()
const
{
return
m
_pParent
;
}
SvStream
&
Load
(
SvStream
&
,
bool
bDirect
=
false
,
const
SfxItemPool
*
pRefPool
=
0
);
...
...
@@ -141,7 +141,7 @@ public:
inline
void
SfxItemSet
::
SetParent
(
const
SfxItemSet
*
pNew
)
{
_pParent
=
pNew
;
m
_pParent
=
pNew
;
}
class
SVL_DLLPUBLIC
SfxAllItemSet
:
public
SfxItemSet
...
...
svl/README
Dosyayı görüntüle @
4b3a535a
...
...
@@ -44,7 +44,7 @@ set's SfxItemPool, and for poolable items only a single instance that
compares equal under the predicate operator== will be stored in the pool,
regardless of how many sets contain it, thus conserving memory.
There are members _pWhichRanges for the valid ranges (as pairs of WhichIds),
_nCount for the number of items contained, and _a
Items for the pointers to
There are members
m
_pWhichRanges for the valid ranges (as pairs of WhichIds),
m_nCount for the number of items contained, and m_p
Items for the pointers to
the actual items.
svl/source/items/itemiter.cxx
Dosyayı görüntüle @
4b3a535a
...
...
@@ -25,14 +25,14 @@
SfxItemIter
::
SfxItemIter
(
const
SfxItemSet
&
rItemSet
)
:
_rSet
(
rItemSet
)
{
if
(
!
_rSet
.
_nCount
)
if
(
!
_rSet
.
m_nCount
)
{
_nStt
=
1
;
_nEnd
=
0
;
}
else
{
SfxItemArray
ppFnd
=
_rSet
.
_a
Items
;
SfxItemArray
ppFnd
=
_rSet
.
m_p
Items
;
// Find the first Item that is set
for
(
_nStt
=
0
;
!*
(
ppFnd
+
_nStt
);
++
_nStt
)
...
...
@@ -53,7 +53,7 @@ SfxItemIter::~SfxItemIter()
const
SfxPoolItem
*
SfxItemIter
::
NextItem
()
{
SfxItemArray
ppFnd
=
_rSet
.
_a
Items
;
SfxItemArray
ppFnd
=
_rSet
.
m_p
Items
;
if
(
_nAkt
<
_nEnd
)
{
...
...
svl/source/items/itemset.cxx
Dosyayı görüntüle @
4b3a535a
This diff is collapsed.
Click to expand it.
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