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
84eb4272
Kaydet (Commit)
84eb4272
authored
Eki 26, 2017
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't abbreviate "First" as "Fst"
Change-Id: I16726fbc8bf4f67fe1018d54437d59b715738bfe
üst
cb0eb72e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
45 deletions
+45
-45
tableproperties.cxx
oox/source/drawingml/table/tableproperties.cxx
+45
-45
No files found.
oox/source/drawingml/table/tableproperties.cxx
Dosyayı görüntüle @
84eb4272
...
@@ -148,65 +148,65 @@ TableStyle* CreateTableStyle(const OUString& styleId)
...
@@ -148,65 +148,65 @@ TableStyle* CreateTableStyle(const OUString& styleId)
pTableStyle
=
new
TableStyle
();
pTableStyle
=
new
TableStyle
();
//first row style
//first row style
//fill color and type
//fill color and type
oox
::
drawingml
::
FillPropertiesPtr
pFstRowFillProperties
(
new
oox
::
drawingml
::
FillProperties
);
oox
::
drawingml
::
FillPropertiesPtr
pF
ir
stRowFillProperties
(
new
oox
::
drawingml
::
FillProperties
);
pFstRowFillProperties
->
moFillType
.
set
(
XML_solidFill
);
pF
ir
stRowFillProperties
->
moFillType
.
set
(
XML_solidFill
);
pFstRowFillProperties
->
maFillColor
.
setSchemeClr
(
XML_accent1
);
pF
ir
stRowFillProperties
->
maFillColor
.
setSchemeClr
(
XML_accent1
);
pTableStyle
->
getFirstRow
().
getFillProperties
()
=
pFstRowFillProperties
;
pTableStyle
->
getFirstRow
().
getFillProperties
()
=
pF
ir
stRowFillProperties
;
//text color
//text color
::
oox
::
drawingml
::
Color
fstRowTextColor
;
::
oox
::
drawingml
::
Color
f
ir
stRowTextColor
;
fstRowTextColor
.
setSchemeClr
(
XML_lt1
);
f
ir
stRowTextColor
.
setSchemeClr
(
XML_lt1
);
pTableStyle
->
getFirstRow
().
getTextColor
()
=
fstRowTextColor
;
pTableStyle
->
getFirstRow
().
getTextColor
()
=
f
ir
stRowTextColor
;
//bottom line border
//bottom line border
oox
::
drawingml
::
LinePropertiesPtr
pFstBottomBorder
(
new
oox
::
drawingml
::
LineProperties
);
oox
::
drawingml
::
LinePropertiesPtr
pF
ir
stBottomBorder
(
new
oox
::
drawingml
::
LineProperties
);
pFstBottomBorder
->
moLineWidth
=
38100
;
pF
ir
stBottomBorder
->
moLineWidth
=
38100
;
pFstBottomBorder
->
moPresetDash
=
XML_sng
;
pF
ir
stBottomBorder
->
moPresetDash
=
XML_sng
;
pFstBottomBorder
->
maLineFill
.
moFillType
.
set
(
XML_solidFill
);
pF
ir
stBottomBorder
->
maLineFill
.
moFillType
.
set
(
XML_solidFill
);
pFstBottomBorder
->
maLineFill
.
maFillColor
.
setSchemeClr
(
XML_lt1
);
pF
ir
stBottomBorder
->
maLineFill
.
maFillColor
.
setSchemeClr
(
XML_lt1
);
pTableStyle
->
getFirstRow
().
getLineBorders
().
insert
(
std
::
pair
<
sal_Int32
,
::
oox
::
drawingml
::
LinePropertiesPtr
>
(
XML_bottom
,
pFstBottomBorder
));
pTableStyle
->
getFirstRow
().
getLineBorders
().
insert
(
std
::
pair
<
sal_Int32
,
::
oox
::
drawingml
::
LinePropertiesPtr
>
(
XML_bottom
,
pF
ir
stBottomBorder
));
//last row style
//last row style
pTableStyle
->
getLastRow
().
getFillProperties
()
=
pFstRowFillProperties
;
pTableStyle
->
getLastRow
().
getFillProperties
()
=
pF
ir
stRowFillProperties
;
pTableStyle
->
getLastRow
().
getTextColor
()
=
fstRowTextColor
;
pTableStyle
->
getLastRow
().
getTextColor
()
=
f
ir
stRowTextColor
;
pTableStyle
->
getLastRow
().
getLineBorders
().
insert
(
std
::
pair
<
sal_Int32
,
::
oox
::
drawingml
::
LinePropertiesPtr
>
(
XML_top
,
pFstBottomBorder
));
pTableStyle
->
getLastRow
().
getLineBorders
().
insert
(
std
::
pair
<
sal_Int32
,
::
oox
::
drawingml
::
LinePropertiesPtr
>
(
XML_top
,
pF
ir
stBottomBorder
));
//first column style
//first column style
pTableStyle
->
getFirstRow
().
getFillProperties
()
=
pFstRowFillProperties
;
pTableStyle
->
getFirstRow
().
getFillProperties
()
=
pF
ir
stRowFillProperties
;
pTableStyle
->
getFirstRow
().
getTextColor
()
=
fstRowTextColor
;
pTableStyle
->
getFirstRow
().
getTextColor
()
=
f
ir
stRowTextColor
;
//last column style
//last column style
pTableStyle
->
getLastCol
().
getFillProperties
()
=
pFstRowFillProperties
;
pTableStyle
->
getLastCol
().
getFillProperties
()
=
pF
ir
stRowFillProperties
;
pTableStyle
->
getLastCol
().
getTextColor
()
=
fstRowTextColor
;
pTableStyle
->
getLastCol
().
getTextColor
()
=
f
ir
stRowTextColor
;
SetTableStyleProperties
(
pTableStyle
,
XML_accent1
,
XML_dk1
,
XML_lt1
);
SetTableStyleProperties
(
pTableStyle
,
XML_accent1
,
XML_dk1
,
XML_lt1
);
}
}
else
if
(
styleId
==
"{21E4AEA4-8DFA-4A89-87EB-49C32662AFE0}"
)
//Medium Style 2 Accent 2
else
if
(
styleId
==
"{21E4AEA4-8DFA-4A89-87EB-49C32662AFE0}"
)
//Medium Style 2 Accent 2
{
{
pTableStyle
=
new
TableStyle
();
pTableStyle
=
new
TableStyle
();
oox
::
drawingml
::
FillPropertiesPtr
pFstRowFillProperties
(
new
oox
::
drawingml
::
FillProperties
);
oox
::
drawingml
::
FillPropertiesPtr
pF
ir
stRowFillProperties
(
new
oox
::
drawingml
::
FillProperties
);
pFstRowFillProperties
->
moFillType
.
set
(
XML_solidFill
);
pF
ir
stRowFillProperties
->
moFillType
.
set
(
XML_solidFill
);
pFstRowFillProperties
->
maFillColor
.
setSchemeClr
(
XML_accent2
);
pF
ir
stRowFillProperties
->
maFillColor
.
setSchemeClr
(
XML_accent2
);
pTableStyle
->
getFirstRow
().
getFillProperties
()
=
pFstRowFillProperties
;
pTableStyle
->
getFirstRow
().
getFillProperties
()
=
pF
ir
stRowFillProperties
;
::
oox
::
drawingml
::
Color
fstRowTextColor
;
::
oox
::
drawingml
::
Color
f
ir
stRowTextColor
;
fstRowTextColor
.
setSchemeClr
(
XML_lt1
);
f
ir
stRowTextColor
.
setSchemeClr
(
XML_lt1
);
pTableStyle
->
getFirstRow
().
getTextColor
()
=
fstRowTextColor
;
pTableStyle
->
getFirstRow
().
getTextColor
()
=
f
ir
stRowTextColor
;
oox
::
drawingml
::
LinePropertiesPtr
pFstBottomBorder
(
new
oox
::
drawingml
::
LineProperties
);
oox
::
drawingml
::
LinePropertiesPtr
pF
ir
stBottomBorder
(
new
oox
::
drawingml
::
LineProperties
);
pFstBottomBorder
->
moLineWidth
=
38100
;
pF
ir
stBottomBorder
->
moLineWidth
=
38100
;
pFstBottomBorder
->
moPresetDash
=
XML_sng
;
pF
ir
stBottomBorder
->
moPresetDash
=
XML_sng
;
pFstBottomBorder
->
maLineFill
.
moFillType
.
set
(
XML_solidFill
);
pF
ir
stBottomBorder
->
maLineFill
.
moFillType
.
set
(
XML_solidFill
);
pFstBottomBorder
->
maLineFill
.
maFillColor
.
setSchemeClr
(
XML_lt1
);
pF
ir
stBottomBorder
->
maLineFill
.
maFillColor
.
setSchemeClr
(
XML_lt1
);
pTableStyle
->
getFirstRow
().
getLineBorders
().
insert
(
std
::
pair
<
sal_Int32
,
::
oox
::
drawingml
::
LinePropertiesPtr
>
(
XML_bottom
,
pFstBottomBorder
));
pTableStyle
->
getFirstRow
().
getLineBorders
().
insert
(
std
::
pair
<
sal_Int32
,
::
oox
::
drawingml
::
LinePropertiesPtr
>
(
XML_bottom
,
pF
ir
stBottomBorder
));
pTableStyle
->
getLastRow
().
getFillProperties
()
=
pFstRowFillProperties
;
pTableStyle
->
getLastRow
().
getFillProperties
()
=
pF
ir
stRowFillProperties
;
pTableStyle
->
getLastRow
().
getTextColor
()
=
fstRowTextColor
;
pTableStyle
->
getLastRow
().
getTextColor
()
=
f
ir
stRowTextColor
;
pTableStyle
->
getLastRow
().
getLineBorders
().
insert
(
std
::
pair
<
sal_Int32
,
::
oox
::
drawingml
::
LinePropertiesPtr
>
(
XML_top
,
pFstBottomBorder
));
pTableStyle
->
getLastRow
().
getLineBorders
().
insert
(
std
::
pair
<
sal_Int32
,
::
oox
::
drawingml
::
LinePropertiesPtr
>
(
XML_top
,
pF
ir
stBottomBorder
));
pTableStyle
->
getFirstCol
().
getFillProperties
()
=
pFstRowFillProperties
;
pTableStyle
->
getFirstCol
().
getFillProperties
()
=
pF
ir
stRowFillProperties
;
pTableStyle
->
getFirstCol
().
getTextColor
()
=
fstRowTextColor
;
pTableStyle
->
getFirstCol
().
getTextColor
()
=
f
ir
stRowTextColor
;
pTableStyle
->
getLastCol
().
getFillProperties
()
=
pFstRowFillProperties
;
pTableStyle
->
getLastCol
().
getFillProperties
()
=
pF
ir
stRowFillProperties
;
pTableStyle
->
getLastCol
().
getTextColor
()
=
fstRowTextColor
;
pTableStyle
->
getLastCol
().
getTextColor
()
=
f
ir
stRowTextColor
;
SetTableStyleProperties
(
pTableStyle
,
XML_accent2
,
XML_dk1
,
XML_lt1
);
SetTableStyleProperties
(
pTableStyle
,
XML_accent2
,
XML_dk1
,
XML_lt1
);
}
}
...
...
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