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
47c8927f
Kaydet (Commit)
47c8927f
authored
Nis 26, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
May 09, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_PTRARR_DEL(_SwShareBoxFmts) to boost::ptr_vector
üst
ca5f56a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
tblrwcl.cxx
sw/source/core/doc/tblrwcl.cxx
+9
-11
tblrwcl.hxx
sw/source/core/inc/tblrwcl.hxx
+1
-1
No files found.
sw/source/core/doc/tblrwcl.cxx
Dosyayı görüntüle @
47c8927f
...
...
@@ -82,8 +82,6 @@ typedef SwTableLine* SwTableLinePtr;
SV_DECL_PTRARR_SORT
(
SwSortTableLines
,
SwTableLinePtr
,
16
)
SV_IMPL_PTRARR_SORT
(
SwSortTableLines
,
SwTableLinePtr
);
SV_IMPL_PTRARR
(
_SwShareBoxFmts
,
SwShareBoxFmt
*
)
// In order to set the Frame Formats for the Boxes, it's enough to look
// up the current one in the array. If it's already there return the new one.
struct
_CpyTabFrm
...
...
@@ -4573,7 +4571,7 @@ SwFrmFmt* SwShareBoxFmts::GetFormat( const SwFrmFmt& rFmt, long nWidth ) const
{
sal_uInt16
nPos
;
return
Seek_Entry
(
rFmt
,
&
nPos
)
?
aShareArr
[
nPos
]
->
GetFormat
(
nWidth
)
?
aShareArr
[
nPos
]
.
GetFormat
(
nWidth
)
:
0
;
}
SwFrmFmt
*
SwShareBoxFmts
::
GetFormat
(
const
SwFrmFmt
&
rFmt
,
...
...
@@ -4581,7 +4579,7 @@ SwFrmFmt* SwShareBoxFmts::GetFormat( const SwFrmFmt& rFmt,
{
sal_uInt16
nPos
;
return
Seek_Entry
(
rFmt
,
&
nPos
)
?
aShareArr
[
nPos
]
->
GetFormat
(
rItem
)
?
aShareArr
[
nPos
]
.
GetFormat
(
rItem
)
:
0
;
}
...
...
@@ -4593,10 +4591,10 @@ void SwShareBoxFmts::AddFormat( const SwFrmFmt& rOld, const SwFrmFmt& rNew )
if
(
!
Seek_Entry
(
rOld
,
&
nPos
))
{
pEntry
=
new
SwShareBoxFmt
(
rOld
);
aShareArr
.
C40_INSERT
(
SwShareBoxFmt
,
pEntry
,
nPos
);
aShareArr
.
insert
(
aShareArr
.
begin
()
+
nPos
,
pEntry
);
}
else
pEntry
=
aShareArr
[
nPos
];
pEntry
=
&
aShareArr
[
nPos
];
pEntry
->
AddFormat
(
rNew
);
}
...
...
@@ -4670,22 +4668,22 @@ void SwShareBoxFmts::SetAttr( SwTableLine& rLine, const SfxPoolItem& rItem )
void
SwShareBoxFmts
::
RemoveFormat
(
const
SwFrmFmt
&
rFmt
)
{
for
(
sal_uInt16
i
=
aShareArr
.
Count
();
i
;
)
if
(
aShareArr
[
--
i
]
->
RemoveFormat
(
rFmt
))
aShareArr
.
DeleteAndDestroy
(
i
);
for
(
sal_uInt16
i
=
aShareArr
.
size
();
i
;
)
if
(
aShareArr
[
--
i
]
.
RemoveFormat
(
rFmt
))
aShareArr
.
erase
(
aShareArr
.
begin
()
+
i
);
}
sal_Bool
SwShareBoxFmts
::
Seek_Entry
(
const
SwFrmFmt
&
rFmt
,
sal_uInt16
*
pPos
)
const
{
sal_uLong
nIdx
=
(
sal_uLong
)
&
rFmt
;
sal_uInt16
nO
=
aShareArr
.
Count
(),
nM
,
nU
=
0
;
sal_uInt16
nO
=
aShareArr
.
size
(),
nM
,
nU
=
0
;
if
(
nO
>
0
)
{
nO
--
;
while
(
nU
<=
nO
)
{
nM
=
nU
+
(
nO
-
nU
)
/
2
;
sal_uLong
nFmt
=
(
sal_uLong
)
&
aShareArr
[
nM
]
->
GetOldFormat
();
sal_uLong
nFmt
=
(
sal_uLong
)
&
aShareArr
[
nM
]
.
GetOldFormat
();
if
(
nFmt
==
nIdx
)
{
if
(
pPos
)
...
...
sw/source/core/inc/tblrwcl.hxx
Dosyayı görüntüle @
47c8927f
...
...
@@ -186,7 +186,7 @@ public:
};
SV_DECL_PTRARR_DEL
(
_SwShareBoxFmts
,
SwShareBoxFmt
*
,
8
)
typedef
boost
::
ptr_vector
<
SwShareBoxFmt
>
_SwShareBoxFmts
;
class
SwShareBoxFmts
{
...
...
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