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
0c7e52c9
Kaydet (Commit)
0c7e52c9
authored
Ock 04, 2011
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed units mess in SvxBorderLine and BorderLineImpl
üst
a99d5769
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
border.cxx
cui/source/tabpages/border.cxx
+14
-11
No files found.
cui/source/tabpages/border.cxx
Dosyayı görüntüle @
0c7e52c9
...
...
@@ -549,18 +549,21 @@ void SvxBorderTabPage::Reset( const SfxItemSet& rSet )
//-------------------------------------------------------------
{
// Do all visible lines show the same line widths?
sal_uInt16
nPrim
,
nDist
,
nSecn
;
long
nWidth
;
SvxBorderStyle
nStyle
;
bool
bWidthEq
=
aFrameSel
.
GetVisibleWidth
(
n
Prim
,
nDist
,
nSecn
,
nStyle
);
bool
bWidthEq
=
aFrameSel
.
GetVisibleWidth
(
n
Width
,
nStyle
);
if
(
bWidthEq
)
{
// Determine the width first as some styles can be missing depending on it
long
nWidth
=
aLbLineStyle
.
GetWidthFromStyle
(
nPrim
*
5
,
nSecn
*
5
,
nDist
*
5
,
nStyle
);
aLineWidthMF
.
SetValue
(
sal_Int64
(
nWidth
)
);
aLineWidthMF
.
SetValue
(
sal_Int64
(
nWidth
*
5
)
);
aLbLineStyle
.
SetWidth
(
aLineWidthMF
.
GetValue
(
)
);
// then set the style
aLbLineStyle
.
SelectEntry
(
nPrim
*
5
,
nSecn
*
5
,
nDist
*
5
,
nStyle
);
// TODO Change the SelectEntry method
SvxBorderLine
aLine
(
NULL
,
nWidth
,
nStyle
);
aLbLineStyle
.
SelectEntry
(
aLine
.
GetOutWidth
()
*
5
,
aLine
.
GetInWidth
()
*
5
,
aLine
.
GetDistance
()
*
5
,
nStyle
);
}
else
aLbLineStyle
.
SelectEntryPos
(
1
);
...
...
@@ -1106,25 +1109,25 @@ void SvxBorderTabPage::FillLineListBox_Impl()
// Double lines
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
DOUBLE
),
DOUBLE
);
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
THINTHICK_SMALLGAP
),
THINTHICK_SMALLGAP
,
10
0
);
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
THINTHICK_SMALLGAP
),
THINTHICK_SMALLGAP
,
2
0
);
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
THINTHICK_MEDIUMGAP
),
THINTHICK_MEDIUMGAP
);
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
THINTHICK_LARGEGAP
),
THINTHICK_LARGEGAP
);
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
THICKTHIN_SMALLGAP
),
THICKTHIN_SMALLGAP
,
10
0
);
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
THICKTHIN_SMALLGAP
),
THICKTHIN_SMALLGAP
,
2
0
);
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
THICKTHIN_MEDIUMGAP
),
THICKTHIN_MEDIUMGAP
);
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
THICKTHIN_LARGEGAP
),
THICKTHIN_LARGEGAP
);
// Engraved / Embossed
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
EMBOSSED
),
EMBOSSED
,
7
5
,
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
EMBOSSED
),
EMBOSSED
,
1
5
,
&
SvxBorderLine
::
threeDLightColor
,
&
SvxBorderLine
::
threeDDarkColor
,
&
lcl_mediumColor
);
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
ENGRAVED
),
ENGRAVED
,
7
5
,
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
ENGRAVED
),
ENGRAVED
,
1
5
,
&
SvxBorderLine
::
threeDDarkColor
,
&
SvxBorderLine
::
threeDLightColor
,
&
lcl_mediumColor
);
// Inset / Outset
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
OUTSET
),
OUTSET
,
0.
5
,
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
OUTSET
),
OUTSET
,
5
,
&
SvxBorderLine
::
lightColor
,
&
SvxBorderLine
::
darkColor
);
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
INSET
),
INSET
,
0.
5
,
aLbLineStyle
.
InsertEntry
(
SvxBorderLine
::
getWidthImpl
(
INSET
),
INSET
,
5
,
&
SvxBorderLine
::
darkColor
,
&
SvxBorderLine
::
lightColor
);
aLbLineStyle
.
SetWidth
(
aLineWidthMF
.
GetValue
(
)
);
...
...
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