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
6670cc35
Kaydet (Commit)
6670cc35
authored
Tem 17, 2016
tarafından
Jaskaran Singh
Kaydeden (comit)
Markus Mohrhard
Eyl 17, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add diagonal borders to calc orcus interface
Change-Id: Ia0d41baa4e4d6fdb5872c8ec3f462ff02a32f518
üst
57f71f19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
5 deletions
+23
-5
interface.cxx
sc/source/filter/orcus/interface.cxx
+23
-5
No files found.
sc/source/filter/orcus/interface.cxx
Dosyayı görüntüle @
6670cc35
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include <editeng/prntitem.hxx>
#include <editeng/prntitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/lineitem.hxx>
#include <formula/token.hxx>
#include <formula/token.hxx>
#include <tools/datetime.hxx>
#include <tools/datetime.hxx>
...
@@ -877,16 +878,33 @@ SvxBoxItemLine getDirection(os::border_direction_t dir)
...
@@ -877,16 +878,33 @@ SvxBoxItemLine getDirection(os::border_direction_t dir)
void
ScOrcusStyles
::
border
::
applyToItemSet
(
SfxItemSet
&
rSet
)
const
void
ScOrcusStyles
::
border
::
applyToItemSet
(
SfxItemSet
&
rSet
)
const
{
{
SvxBoxItem
aItem
(
ATTR_BORDER
);
SvxBoxItem
aBoxItem
(
ATTR_BORDER
);
SvxLineItem
aDiagonal_TLBR
(
ATTR_BORDER_TLBR
);
SvxLineItem
aDiagonal_BLTR
(
ATTR_BORDER_BLTR
);
for
(
auto
&
current_border_line
:
border_lines
)
for
(
auto
&
current_border_line
:
border_lines
)
{
{
SvxBoxItemLine
eDir
=
getDirection
(
current_border_line
.
first
);
SvxBoxItemLine
eDir
=
getDirection
(
current_border_line
.
first
);
editeng
::
SvxBorderLine
aLine
(
&
current_border_line
.
second
.
maColor
,
current_border_line
.
second
.
mnWidth
,
current_border_line
.
second
.
mestyle
);
aItem
.
SetLine
(
&
aLine
,
eDir
);
}
rSet
.
Put
(
aItem
);
if
(
current_border_line
.
first
==
orcus
::
spreadsheet
::
border_direction_t
::
diagonal_tl_br
)
{
editeng
::
SvxBorderLine
aLine
(
&
current_border_line
.
second
.
maColor
,
current_border_line
.
second
.
mnWidth
,
current_border_line
.
second
.
mestyle
);
aDiagonal_BLTR
.
SetLine
(
&
aLine
);
}
if
(
current_border_line
.
first
==
orcus
::
spreadsheet
::
border_direction_t
::
diagonal_bl_tr
)
{
editeng
::
SvxBorderLine
aLine
(
&
current_border_line
.
second
.
maColor
,
current_border_line
.
second
.
mnWidth
,
current_border_line
.
second
.
mestyle
);
aDiagonal_TLBR
.
SetLine
(
&
aLine
);
}
else
{
editeng
::
SvxBorderLine
aLine
(
&
current_border_line
.
second
.
maColor
,
current_border_line
.
second
.
mnWidth
,
current_border_line
.
second
.
mestyle
);
aBoxItem
.
SetLine
(
&
aLine
,
eDir
);
}
}
rSet
.
Put
(
aDiagonal_BLTR
);
rSet
.
Put
(
aDiagonal_TLBR
);
rSet
.
Put
(
aBoxItem
);
}
}
void
ScOrcusStyles
::
number_format
::
applyToItemSet
(
SfxItemSet
&
rSet
)
const
void
ScOrcusStyles
::
number_format
::
applyToItemSet
(
SfxItemSet
&
rSet
)
const
...
...
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