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
9013644f
Kaydet (Commit)
9013644f
authored
Nis 14, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Nis 18, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_PTRARR_DEL to boost::ptr_vector
üst
850bfeed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
xmlnumfi.cxx
xmloff/source/style/xmlnumfi.cxx
+12
-12
No files found.
xmloff/source/style/xmlnumfi.cxx
Dosyayı görüntüle @
9013644f
...
...
@@ -51,6 +51,8 @@
#include <xmloff/families.hxx>
#include <xmloff/xmltoken.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
using
::
rtl
::
OUString
;
using
::
rtl
::
OUStringBuffer
;
...
...
@@ -69,8 +71,7 @@ struct SvXMLNumFmtEntry
aName
(
rN
),
nKey
(
nK
),
bRemoveAfterUse
(
bR
)
{}
};
typedef
SvXMLNumFmtEntry
*
SvXMLNumFmtEntryPtr
;
SV_DECL_PTRARR_DEL
(
SvXMLNumFmtEntryArr
,
SvXMLNumFmtEntryPtr
,
4
)
class
SvXMLNumFmtEntryArr
:
public
boost
::
ptr_vector
<
SvXMLNumFmtEntry
>
{};
struct
SvXMLEmbeddedElement
{
...
...
@@ -379,7 +380,6 @@ static SvXMLDefaultDateFormat aDefaultDateFormats[] =
//-------------------------------------------------------------------------
SV_IMPL_PTRARR
(
SvXMLNumFmtEntryArr
,
SvXMLNumFmtEntryPtr
);
SV_IMPL_OP_PTRARR_SORT
(
SvXMLEmbeddedElementArr
,
SvXMLEmbeddedElementPtr
);
//-------------------------------------------------------------------------
...
...
@@ -414,10 +414,10 @@ SvXMLNumImpData::~SvXMLNumImpData()
sal_uInt32
SvXMLNumImpData
::
GetKeyForName
(
const
rtl
::
OUString
&
rName
)
{
sal_uInt16
nCount
=
aNameEntries
.
Count
();
sal_uInt16
nCount
=
aNameEntries
.
size
();
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
i
++
)
{
const
SvXMLNumFmtEntry
*
pObj
=
aNameEntries
[
i
];
const
SvXMLNumFmtEntry
*
pObj
=
&
aNameEntries
[
i
];
if
(
pObj
->
aName
==
rName
)
return
pObj
->
nKey
;
// found
}
...
...
@@ -431,10 +431,10 @@ void SvXMLNumImpData::AddKey( sal_uInt32 nKey, const rtl::OUString& rName, sal_B
// if there is already an entry for this key without the bRemoveAfterUse flag,
// clear the flag for this entry, too
sal_uInt16
nCount
=
aNameEntries
.
Count
();
sal_uInt16
nCount
=
aNameEntries
.
size
();
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
i
++
)
{
SvXMLNumFmtEntry
*
pObj
=
aNameEntries
[
i
];
SvXMLNumFmtEntry
*
pObj
=
&
aNameEntries
[
i
];
if
(
pObj
->
nKey
==
nKey
&&
!
pObj
->
bRemoveAfterUse
)
{
bRemoveAfterUse
=
sal_False
;
// clear flag for new entry
...
...
@@ -449,15 +449,15 @@ void SvXMLNumImpData::AddKey( sal_uInt32 nKey, const rtl::OUString& rName, sal_B
}
SvXMLNumFmtEntry
*
pObj
=
new
SvXMLNumFmtEntry
(
rName
,
nKey
,
bRemoveAfterUse
);
aNameEntries
.
Insert
(
pObj
,
aNameEntries
.
Count
()
);
aNameEntries
.
push_back
(
pObj
);
}
void
SvXMLNumImpData
::
SetUsed
(
sal_uInt32
nKey
)
{
sal_uInt16
nCount
=
aNameEntries
.
Count
();
sal_uInt16
nCount
=
aNameEntries
.
size
();
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
i
++
)
{
SvXMLNumFmtEntry
*
pObj
=
aNameEntries
[
i
];
SvXMLNumFmtEntry
*
pObj
=
&
aNameEntries
[
i
];
if
(
pObj
->
nKey
==
nKey
)
{
pObj
->
bRemoveAfterUse
=
sal_False
;
// used -> don't remove
...
...
@@ -478,10 +478,10 @@ void SvXMLNumImpData::RemoveVolatileFormats()
if
(
!
pFormatter
)
return
;
sal_uInt16
nCount
=
aNameEntries
.
Count
();
sal_uInt16
nCount
=
aNameEntries
.
size
();
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
i
++
)
{
const
SvXMLNumFmtEntry
*
pObj
=
aNameEntries
[
i
];
const
SvXMLNumFmtEntry
*
pObj
=
&
aNameEntries
[
i
];
if
(
pObj
->
bRemoveAfterUse
)
{
const
SvNumberformat
*
pFormat
=
pFormatter
->
GetEntry
(
pObj
->
nKey
);
...
...
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