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
eedf546a
Kaydet (Commit)
eedf546a
authored
Nis 03, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
correct implementation
Change-Id: Ie195e46e1cb14b39875efd1c9689db0f13968e87
üst
be8e63cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
7 deletions
+26
-7
condformatuno.cxx
sc/source/ui/unoobj/condformatuno.cxx
+26
-7
No files found.
sc/source/ui/unoobj/condformatuno.cxx
Dosyayı görüntüle @
eedf546a
...
...
@@ -332,16 +332,35 @@ void ScCondFormatsObj::Notify(SfxBroadcaster& /*rBC*/, const SfxHint& rHint)
}
}
sal_Int32
ScCondFormatsObj
::
createByRange
(
const
uno
::
Reference
<
sheet
::
XSheetCellRanges
>&
/*xRanges*/
)
sal_Int32
ScCondFormatsObj
::
createByRange
(
const
uno
::
Reference
<
sheet
::
XSheetCellRanges
>&
xRanges
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
SolarMutexGuard
aGuard
;
/*
ScCondFormatObj* pFormatObj = ScCondFormatObj::getImplementation(xCondFormat);
ScConditionalFormat* pFormat = pFormatObj->getCoreObject();
mpFormatList->InsertNew(pFormat);
*/
return
0
;
if
(
!
mpDocShell
)
throw
lang
::
IllegalArgumentException
();
if
(
!
xRanges
.
is
())
throw
lang
::
IllegalArgumentException
();
uno
::
Sequence
<
table
::
CellRangeAddress
>
aRanges
=
xRanges
->
getRangeAddresses
();
ScRangeList
aCoreRange
;
for
(
sal_Int32
i
=
0
,
n
=
aRanges
.
getLength
();
i
<
n
;
++
i
)
{
ScRange
aRange
;
ScUnoConversion
::
FillScRange
(
aRange
,
aRanges
[
i
]);
aCoreRange
.
Join
(
aRange
);
}
if
(
aCoreRange
.
empty
())
throw
lang
::
IllegalArgumentException
();
SCTAB
nTab
=
aCoreRange
[
0
]
->
aStart
.
Tab
();
ScConditionalFormat
*
pNewFormat
=
new
ScConditionalFormat
(
0
,
&
mpDocShell
->
GetDocument
());
pNewFormat
->
SetRange
(
aCoreRange
);
return
mpDocShell
->
GetDocument
().
AddCondFormat
(
pNewFormat
,
nTab
);
}
void
ScCondFormatsObj
::
removeByID
(
const
sal_Int32
nID
)
...
...
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