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
5c8e6cca
Kaydet (Commit)
5c8e6cca
authored
Ock 19, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
copy styles from cond format between different docs, fdo#59159
Change-Id: I5472ab648b248d925f1f07cd4194c1201230ff20
üst
e2170dd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
table2.cxx
sc/source/core/data/table2.cxx
+26
-0
No files found.
sc/source/core/data/table2.cxx
Dosyayı görüntüle @
5c8e6cca
...
...
@@ -671,6 +671,7 @@ void ScTable::CopyConditionalFormat( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCRO
{
ScRange
aOldRange
(
nCol1
-
nDx
,
nRow1
-
nDy
,
pTable
->
nTab
,
nCol2
-
nDx
,
nRow2
-
nDy
,
pTable
->
nTab
);
ScRange
aNewRange
(
nCol1
,
nRow1
,
nTab
,
nCol2
,
nRow2
,
nTab
);
bool
bSameDoc
=
pDocument
==
pTable
->
pDocument
;
for
(
ScConditionalFormatList
::
const_iterator
itr
=
pTable
->
mpCondFormatList
->
begin
(),
itrEnd
=
pTable
->
mpCondFormatList
->
end
();
itr
!=
itrEnd
;
++
itr
)
...
...
@@ -695,6 +696,29 @@ void ScTable::CopyConditionalFormat( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCRO
pNewFormat
->
SetKey
(
nMax
+
1
);
mpCondFormatList
->
InsertNew
(
pNewFormat
);
if
(
!
bSameDoc
)
{
for
(
size_t
i
=
0
,
n
=
pNewFormat
->
size
();
i
<
n
;
++
i
)
{
OUString
aStyleName
;
const
ScFormatEntry
*
pEntry
=
pNewFormat
->
GetEntry
(
i
);
if
(
pEntry
->
GetType
()
==
condformat
::
CONDITION
)
aStyleName
=
static_cast
<
const
ScCondFormatEntry
*>
(
pEntry
)
->
GetStyle
();
else
if
(
pEntry
->
GetType
()
==
condformat
::
DATE
)
aStyleName
=
static_cast
<
const
ScCondDateFormatEntry
*>
(
pEntry
)
->
GetStyleName
();
if
(
!
aStyleName
.
isEmpty
())
{
if
(
pDocument
->
GetStyleSheetPool
()
->
Find
(
aStyleName
,
SFX_STYLE_FAMILY_PARA
))
continue
;
pDocument
->
GetStyleSheetPool
()
->
CopyStyleFrom
(
pTable
->
pDocument
->
GetStyleSheetPool
(),
aStyleName
,
SFX_STYLE_FAMILY_PARA
);
}
}
}
pDocument
->
AddCondFormatData
(
pNewFormat
->
GetRange
(),
nTab
,
pNewFormat
->
GetKey
()
);
}
}
...
...
@@ -980,7 +1004,9 @@ void ScTable::CopyToTable(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
}
if
(
pDestTab
->
pDocument
->
IsUndo
()
&&
(
nFlags
&
IDF_ATTRIB
))
{
pDestTab
->
mpCondFormatList
.
reset
(
new
ScConditionalFormatList
(
pDestTab
->
pDocument
,
*
mpCondFormatList
));
}
if
(
pDBDataNoName
)
{
...
...
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