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
d5109b2f
Kaydet (Commit)
d5109b2f
authored
Tem 28, 2014
tarafından
Krisztian Pinter
Kaydeden (comit)
Tomaž Vajngerl
Eyl 17, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make it easier to add new color attributes to GetDocColors
Change-Id: I2098892fc44c7a8bde1eb30f6db1709e58925577
üst
78afbfa1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
document10.cxx
sc/source/core/data/document10.cxx
+3
-2
docfmt.cxx
sw/source/core/doc/docfmt.cxx
+3
-3
No files found.
sc/source/core/data/document10.cxx
Dosyayı görüntüle @
d5109b2f
...
...
@@ -248,6 +248,8 @@ void ScDocument::CopyCellValuesFrom( const ScAddress& rTopPos, const sc::CellVal
std
::
vector
<
Color
>
ScDocument
::
GetDocColors
()
{
// list of color attributes to collect
const
std
::
vector
<
sal_uInt16
>
aColAttrs
({
ATTR_FONT_COLOR
,
ATTR_BACKGROUND
});
std
::
vector
<
Color
>
docColors
;
for
(
unsigned
int
nTabIx
=
0
;
nTabIx
<
maTabs
.
size
();
++
nTabIx
)
...
...
@@ -271,8 +273,7 @@ std::vector<Color> ScDocument::GetDocColors()
if
(
SFX_ITEM_SET
==
rItemSet
.
GetItemState
(
nWhich
,
false
,
&
pItem
)
)
{
sal_uInt16
aWhich
=
pItem
->
Which
();
if
(
ATTR_FONT_COLOR
==
aWhich
||
ATTR_BACKGROUND
==
aWhich
)
if
(
std
::
find
(
aColAttrs
.
begin
(),
aColAttrs
.
end
(),
aWhich
)
!=
aColAttrs
.
end
()
)
{
Color
aColor
(
((
SvxColorItem
*
)
pItem
)
->
GetValue
()
);
if
(
COL_AUTO
!=
aColor
.
GetColor
()
&&
...
...
sw/source/core/doc/docfmt.cxx
Dosyayı görüntüle @
d5109b2f
...
...
@@ -1915,6 +1915,8 @@ void SwDoc::RenameFmt(SwFmt & rFmt, const OUString & sNewName,
std
::
vector
<
Color
>
SwDoc
::
GetDocColors
()
{
// list of color attributes to collect
const
std
::
vector
<
sal_uInt16
>
aColAttrs
({
RES_CHRATR_COLOR
,
RES_CHRATR_HIGHLIGHT
,
RES_BACKGROUND
});
std
::
vector
<
Color
>
docColors
;
for
(
unsigned
int
i
=
0
;
i
<
m_pNodes
->
Count
();
++
i
)
...
...
@@ -1935,9 +1937,7 @@ std::vector<Color> SwDoc::GetDocColors()
if
(
SFX_ITEM_SET
==
pItemSet
->
GetItemState
(
nWhich
,
false
,
&
pItem
)
)
{
sal_uInt16
aWhich
=
pItem
->
Which
();
if
(
RES_CHRATR_COLOR
==
aWhich
||
RES_CHRATR_HIGHLIGHT
==
aWhich
||
RES_BACKGROUND
==
aWhich
)
if
(
std
::
find
(
aColAttrs
.
begin
(),
aColAttrs
.
end
(),
aWhich
)
!=
aColAttrs
.
end
()
)
{
Color
aColor
(
((
SvxColorItem
*
)
pItem
)
->
GetValue
()
);
if
(
COL_AUTO
!=
aColor
.
GetColor
()
&&
...
...
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