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
529f5441
Kaydet (Commit)
529f5441
authored
Eyl 15, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: replace boost::ptr_vector with std::vector
Change-Id: I708bd090b28fd8b9f2642425fa55fcaa5f8346ec
üst
01648a39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
fmtclds.hxx
sw/inc/fmtclds.hxx
+3
-2
atrfrm.cxx
sw/source/core/layout/atrfrm.cxx
+9
-12
No files found.
sw/inc/fmtclds.hxx
Dosyayı görüntüle @
529f5441
...
@@ -25,7 +25,8 @@
...
@@ -25,7 +25,8 @@
#include "swdllapi.h"
#include "swdllapi.h"
#include <hintids.hxx>
#include <hintids.hxx>
#include <format.hxx>
#include <format.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
#include <vector>
/// ColumnDescriptor
/// ColumnDescriptor
class
SwColumn
class
SwColumn
...
@@ -56,7 +57,7 @@ public:
...
@@ -56,7 +57,7 @@ public:
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
void
dumpAsXml
(
struct
_xmlTextWriter
*
pWriter
)
const
;
};
};
typedef
boost
::
ptr_
vector
<
SwColumn
>
SwColumns
;
typedef
std
::
vector
<
SwColumn
>
SwColumns
;
enum
SwColLineAdj
enum
SwColLineAdj
{
{
...
...
sw/source/core/layout/atrfrm.cxx
Dosyayı görüntüle @
529f5441
...
@@ -821,15 +821,14 @@ SwFormatCol::SwFormatCol( const SwFormatCol& rCpy )
...
@@ -821,15 +821,14 @@ SwFormatCol::SwFormatCol( const SwFormatCol& rCpy )
m_aLineColor
(
rCpy
.
m_aLineColor
),
m_aLineColor
(
rCpy
.
m_aLineColor
),
m_nLineHeight
(
rCpy
.
GetLineHeight
()
),
m_nLineHeight
(
rCpy
.
GetLineHeight
()
),
m_eAdj
(
rCpy
.
GetLineAdj
()
),
m_eAdj
(
rCpy
.
GetLineAdj
()
),
m_aColumns
(
(
sal_Int8
)
rCpy
.
GetNumCols
()
),
m_nWidth
(
rCpy
.
GetWishWidth
()
),
m_nWidth
(
rCpy
.
GetWishWidth
()
),
m_aWidthAdjustValue
(
rCpy
.
m_aWidthAdjustValue
),
m_aWidthAdjustValue
(
rCpy
.
m_aWidthAdjustValue
),
m_bOrtho
(
rCpy
.
IsOrtho
()
)
m_bOrtho
(
rCpy
.
IsOrtho
()
)
{
{
m_aColumns
.
reserve
(
rCpy
.
GetNumCols
());
for
(
sal_uInt16
i
=
0
;
i
<
rCpy
.
GetNumCols
();
++
i
)
for
(
sal_uInt16
i
=
0
;
i
<
rCpy
.
GetNumCols
();
++
i
)
{
{
SwColumn
*
pCol
=
new
SwColumn
(
rCpy
.
GetColumns
()[
i
]
);
m_aColumns
.
push_back
(
SwColumn
(
rCpy
.
GetColumns
()[
i
])
);
m_aColumns
.
push_back
(
pCol
);
}
}
}
}
...
@@ -850,8 +849,7 @@ SwFormatCol& SwFormatCol::operator=( const SwFormatCol& rCpy )
...
@@ -850,8 +849,7 @@ SwFormatCol& SwFormatCol::operator=( const SwFormatCol& rCpy )
m_aColumns
.
clear
();
m_aColumns
.
clear
();
for
(
sal_uInt16
i
=
0
;
i
<
rCpy
.
GetNumCols
();
++
i
)
for
(
sal_uInt16
i
=
0
;
i
<
rCpy
.
GetNumCols
();
++
i
)
{
{
SwColumn
*
pCol
=
new
SwColumn
(
rCpy
.
GetColumns
()[
i
]
);
m_aColumns
.
push_back
(
SwColumn
(
rCpy
.
GetColumns
()[
i
])
);
m_aColumns
.
push_back
(
pCol
);
}
}
return
*
this
;
return
*
this
;
}
}
...
@@ -956,8 +954,7 @@ void SwFormatCol::Init( sal_uInt16 nNumCols, sal_uInt16 nGutterWidth, sal_uInt16
...
@@ -956,8 +954,7 @@ void SwFormatCol::Init( sal_uInt16 nNumCols, sal_uInt16 nGutterWidth, sal_uInt16
m_aColumns
.
clear
();
m_aColumns
.
clear
();
for
(
sal_uInt16
i
=
0
;
i
<
nNumCols
;
++
i
)
for
(
sal_uInt16
i
=
0
;
i
<
nNumCols
;
++
i
)
{
{
SwColumn
*
pCol
=
new
SwColumn
;
m_aColumns
.
push_back
(
SwColumn
()
);
m_aColumns
.
push_back
(
pCol
);
}
}
m_bOrtho
=
true
;
m_bOrtho
=
true
;
m_nWidth
=
USHRT_MAX
;
m_nWidth
=
USHRT_MAX
;
...
@@ -1092,12 +1089,12 @@ bool SwFormatCol::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
...
@@ -1092,12 +1089,12 @@ bool SwFormatCol::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
if
(
nCount
>
1
)
if
(
nCount
>
1
)
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
i
++
)
{
{
SwColumn
*
pCol
=
new
SwColumn
;
SwColumn
aCol
;
pCol
->
SetWishWidth
(
static_cast
<
sal_uInt16
>
(
pArray
[
i
].
Width
)
);
aCol
.
SetWishWidth
(
static_cast
<
sal_uInt16
>
(
pArray
[
i
].
Width
)
);
nWidthSum
=
static_cast
<
sal_uInt16
>
(
nWidthSum
+
pArray
[
i
].
Width
);
nWidthSum
=
static_cast
<
sal_uInt16
>
(
nWidthSum
+
pArray
[
i
].
Width
);
pCol
->
SetLeft
(
static_cast
<
sal_uInt16
>
(
convertMm100ToTwip
(
pArray
[
i
].
LeftMargin
))
);
aCol
.
SetLeft
(
static_cast
<
sal_uInt16
>
(
convertMm100ToTwip
(
pArray
[
i
].
LeftMargin
))
);
pCol
->
SetRight
(
static_cast
<
sal_uInt16
>
(
convertMm100ToTwip
(
pArray
[
i
].
RightMargin
))
);
aCol
.
SetRight
(
static_cast
<
sal_uInt16
>
(
convertMm100ToTwip
(
pArray
[
i
].
RightMargin
))
);
m_aColumns
.
insert
(
m_aColumns
.
begin
()
+
i
,
p
Col
);
m_aColumns
.
insert
(
m_aColumns
.
begin
()
+
i
,
a
Col
);
}
}
bRet
=
true
;
bRet
=
true
;
m_nWidth
=
nWidthSum
;
m_nWidth
=
nWidthSum
;
...
...
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