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
fb4302d4
Kaydet (Commit)
fb4302d4
authored
Haz 14, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
handle formula is in new conditional format dlg
Change-Id: Ia492b8fb9ad1406800ba855370daafb40f254093
üst
f14bd201
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
3 deletions
+36
-3
condformatdlg.cxx
sc/source/ui/condformat/condformatdlg.cxx
+33
-3
condformatdlg.hxx
sc/source/ui/inc/condformatdlg.hxx
+3
-0
No files found.
sc/source/ui/condformat/condformatdlg.cxx
Dosyayı görüntüle @
fb4302d4
...
...
@@ -219,6 +219,7 @@ ScCondFrmtEntry::ScCondFrmtEntry(Window* pParent, ScDocument* pDoc, const ScForm
ScConditionMode
eMode
=
pEntry
->
GetOperation
();
maLbType
.
SelectEntryPos
(
1
);
maEdVal1
.
SetText
(
pEntry
->
GetExpression
(
maPos
,
0
));
SetCondType
();
switch
(
eMode
)
{
case
SC_COND_EQUAL
:
...
...
@@ -255,12 +256,11 @@ ScCondFrmtEntry::ScCondFrmtEntry(Window* pParent, ScDocument* pDoc, const ScForm
break
;
case
SC_COND_DIRECT
:
maLbType
.
SelectEntryPos
(
2
);
SwitchToType
(
FORMULA
);
break
;
case
SC_COND_NONE
:
break
;
}
SwitchToType
(
CONDITION
);
SetCondType
();
}
else
if
(
pFormatEntry
&&
pFormatEntry
->
GetType
()
==
condformat
::
COLORSCALE
)
{
...
...
@@ -400,6 +400,8 @@ rtl::OUString getTextForType(ScCondFormatEntryType eType)
return
rtl
::
OUString
(
"Color scale"
);
case
DATABAR
:
return
rtl
::
OUString
(
"Data Bar"
);
case
FORMULA
:
return
rtl
::
OUString
(
"Formula is"
);
default
:
break
;
}
...
...
@@ -517,6 +519,7 @@ void ScCondFrmtEntry::SetHeight()
switch
(
meType
)
{
case
CONDITION
:
case
FORMULA
:
aSize
.
Height
()
=
120
;
break
;
case
COLORSCALE
:
...
...
@@ -591,6 +594,18 @@ void ScCondFrmtEntry::SetDataBarType()
maBtOptions
.
Show
();
}
void
ScCondFrmtEntry
::
SetFormulaType
()
{
SwitchToType
(
FORMULA
);
HideColorScaleElements
();
HideDataBarElements
();
maEdVal1
.
Show
();
maEdVal2
.
Hide
();
maLbCondType
.
Hide
();
maLbStyle
.
Show
();
maWdPreview
.
Show
();
}
void
ScCondFrmtEntry
::
Select
()
{
SetControlForeground
(
Color
(
COL_RED
));
...
...
@@ -730,6 +745,18 @@ ScFormatEntry* ScCondFrmtEntry::createDatabarEntry() const
return
pDataBar
;
}
ScFormatEntry
*
ScCondFrmtEntry
::
createFormulaEntry
()
const
{
ScConditionMode
eMode
=
SC_COND_DIRECT
;
rtl
::
OUString
aFormula
=
maEdVal1
.
GetText
();
if
(
aFormula
.
isEmpty
())
return
NULL
;
rtl
::
OUString
aExpr2
;
ScFormatEntry
*
pEntry
=
new
ScCondFormatEntry
(
eMode
,
aFormula
,
aExpr2
,
mpDoc
,
maPos
,
maLbStyle
.
GetSelectEntry
());
return
pEntry
;
}
ScFormatEntry
*
ScCondFrmtEntry
::
GetEntry
()
const
{
switch
(
meType
)
...
...
@@ -743,6 +770,9 @@ ScFormatEntry* ScCondFrmtEntry::GetEntry() const
case
DATABAR
:
return
createDatabarEntry
();
break
;
case
FORMULA
:
return
createFormulaEntry
();
break
;
default
:
break
;
}
...
...
@@ -764,7 +794,7 @@ IMPL_LINK_NOARG(ScCondFrmtEntry, TypeListHdl)
SetDataBarType
();
break
;
case
2
:
Set
Cond
Type
();
Set
Formula
Type
();
break
;
default
:
break
;
...
...
sc/source/ui/inc/condformatdlg.hxx
Dosyayı görüntüle @
fb4302d4
...
...
@@ -51,6 +51,7 @@ enum ScCondFormatEntryType
CONDITION
,
COLORSCALE
,
DATABAR
,
FORMULA
,
COLLAPSED
};
...
...
@@ -107,6 +108,7 @@ private:
void
SetCondType
();
void
SetColorScaleType
();
void
SetDataBarType
();
void
SetFormulaType
();
void
HideCondElements
();
void
HideColorScaleElements
();
void
HideDataBarElements
();
...
...
@@ -117,6 +119,7 @@ private:
ScFormatEntry
*
createConditionEntry
()
const
;
ScFormatEntry
*
createColorscaleEntry
()
const
;
ScFormatEntry
*
createDatabarEntry
()
const
;
ScFormatEntry
*
createFormulaEntry
()
const
;
ScDocument
*
mpDoc
;
ScAddress
maPos
;
...
...
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