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
2b44ae0a
Kaydet (Commit)
2b44ae0a
authored
Eki 10, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
also support formulas in the data bar dialog
Change-Id: Ie86f935280667c8d9b4497fec7d519a212a452b6
üst
fcdd08b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
12 deletions
+21
-12
colorformat.cxx
sc/source/ui/condformat/colorformat.cxx
+14
-9
condformatdlgentry.cxx
sc/source/ui/condformat/condformatdlgentry.cxx
+1
-1
colorformat.hxx
sc/source/ui/inc/colorformat.hxx
+6
-2
No files found.
sc/source/ui/condformat/colorformat.cxx
Dosyayı görüntüle @
2b44ae0a
...
...
@@ -36,7 +36,7 @@
#include <svx/drawitem.hxx>
#include <vcl/msgbox.hxx>
ScDataBarSettingsDlg
::
ScDataBarSettingsDlg
(
Window
*
pWindow
,
ScDocument
*
pDoc
)
:
ScDataBarSettingsDlg
::
ScDataBarSettingsDlg
(
Window
*
pWindow
,
ScDocument
*
pDoc
,
const
ScAddress
&
rPos
)
:
ModalDialog
(
pWindow
,
ScResId
(
RID_SCDLG_DATABAR
)
),
maBtnOk
(
this
,
ScResId
(
BTN_OK
)
),
maBtnCancel
(
this
,
ScResId
(
BTN_CANCEL
)
),
...
...
@@ -57,7 +57,9 @@ ScDataBarSettingsDlg::ScDataBarSettingsDlg(Window* pWindow, ScDocument* pDoc):
maLbAxisPos
(
this
,
ScResId
(
LB_AXIS_POSITION
)
),
maEdMin
(
this
,
ScResId
(
ED_MIN
)
),
maEdMax
(
this
,
ScResId
(
ED_MAX
)
),
mpNumberFormatter
(
pDoc
->
GetFormatTable
()
)
mpNumberFormatter
(
pDoc
->
GetFormatTable
()
),
mpDoc
(
pDoc
),
maPos
(
rPos
)
{
Init
();
FreeResource
();
...
...
@@ -74,7 +76,8 @@ void SetType(const ScColorScaleEntry* pEntry, ListBox& rLstBox)
rLstBox
.
SelectEntryPos
(
pEntry
->
GetType
());
}
void
GetType
(
const
ListBox
&
rLstBox
,
const
Edit
&
rEd
,
ScColorScaleEntry
*
pEntry
,
SvNumberFormatter
*
pNumberFormatter
)
void
GetType
(
const
ListBox
&
rLstBox
,
const
Edit
&
rEd
,
ScColorScaleEntry
*
pEntry
,
SvNumberFormatter
*
pNumberFormatter
,
ScDocument
*
pDoc
,
const
ScAddress
&
rPos
)
{
double
nVal
=
0
;
sal_uInt32
nIndex
=
0
;
...
...
@@ -91,8 +94,8 @@ void GetType(const ListBox& rLstBox, const Edit& rEd, ScColorScaleEntry* pEntry,
pNumberFormatter
->
IsNumberFormat
(
rEd
.
GetText
(),
nIndex
,
nVal
);
pEntry
->
SetValue
(
nVal
);
break
;
case
6
:
//TODO: moggi
case
COLORSCALE_FORMULA
:
pEntry
->
SetFormula
(
rEd
.
GetText
(),
pDoc
,
rPos
);
break
;
}
}
...
...
@@ -109,7 +112,7 @@ void SetValue( ScColorScaleEntry* pEntry, Edit& aEdit)
}
ScDataBarSettingsDlg
::
ScDataBarSettingsDlg
(
Window
*
pWindow
,
const
ScDataBarFormatData
&
rData
,
ScDocument
*
pDoc
)
:
ScDataBarSettingsDlg
::
ScDataBarSettingsDlg
(
Window
*
pWindow
,
const
ScDataBarFormatData
&
rData
,
ScDocument
*
pDoc
,
const
ScAddress
&
rPos
)
:
ModalDialog
(
pWindow
,
ScResId
(
RID_SCDLG_DATABAR
)
),
maBtnOk
(
this
,
ScResId
(
BTN_OK
)
),
maBtnCancel
(
this
,
ScResId
(
BTN_CANCEL
)
),
...
...
@@ -131,7 +134,9 @@ ScDataBarSettingsDlg::ScDataBarSettingsDlg(Window* pWindow, const ScDataBarForma
maEdMin
(
this
,
ScResId
(
ED_MIN
)
),
maEdMax
(
this
,
ScResId
(
ED_MAX
)
),
maStrWarnSameValue
(
SC_RESSTR
(
STR_WARN_SAME_VALUE
)
),
mpNumberFormatter
(
pDoc
->
GetFormatTable
()
)
mpNumberFormatter
(
pDoc
->
GetFormatTable
()
),
mpDoc
(
pDoc
),
maPos
(
rPos
)
{
Init
();
FreeResource
();
...
...
@@ -240,8 +245,8 @@ ScDataBarFormatData* ScDataBarSettingsDlg::GetData()
pData
->
mpLowerLimit
.
reset
(
new
ScColorScaleEntry
());
pData
->
maAxisColor
=
maLbAxisCol
.
GetSelectEntryColor
();
::
GetType
(
maLbTypeMin
,
maEdMin
,
pData
->
mpLowerLimit
.
get
(),
mpNumberFormatter
);
::
GetType
(
maLbTypeMax
,
maEdMax
,
pData
->
mpUpperLimit
.
get
(),
mpNumberFormatter
);
::
GetType
(
maLbTypeMin
,
maEdMin
,
pData
->
mpLowerLimit
.
get
(),
mpNumberFormatter
,
mpDoc
,
maPos
);
::
GetType
(
maLbTypeMax
,
maEdMax
,
pData
->
mpUpperLimit
.
get
(),
mpNumberFormatter
,
mpDoc
,
maPos
);
GetAxesPosition
(
pData
,
maLbAxisPos
);
return
pData
;
...
...
sc/source/ui/condformat/condformatdlgentry.cxx
Dosyayı görüntüle @
2b44ae0a
...
...
@@ -1041,7 +1041,7 @@ IMPL_LINK_NOARG( ScDataBarFrmtEntry, OptionBtnHdl )
{
SetColorScaleEntry
(
mpDataBarData
->
mpLowerLimit
.
get
(),
maLbDataBarMinType
,
maEdDataBarMin
,
mpDoc
,
maPos
,
true
);
SetColorScaleEntry
(
mpDataBarData
->
mpUpperLimit
.
get
(),
maLbDataBarMaxType
,
maEdDataBarMax
,
mpDoc
,
maPos
,
true
);
ScDataBarSettingsDlg
*
pDlg
=
new
ScDataBarSettingsDlg
(
this
,
*
mpDataBarData
,
mpDoc
);
ScDataBarSettingsDlg
*
pDlg
=
new
ScDataBarSettingsDlg
(
this
,
*
mpDataBarData
,
mpDoc
,
maPos
);
if
(
pDlg
->
Execute
()
==
RET_OK
)
{
mpDataBarData
.
reset
(
pDlg
->
GetData
());
...
...
sc/source/ui/inc/colorformat.hxx
Dosyayı görüntüle @
2b44ae0a
...
...
@@ -34,6 +34,7 @@
#include "anyrefdg.hxx"
struct
ScDataBarFormatData
;
class
ScDocument
;
class
ScDataBarSettingsDlg
:
public
ModalDialog
{
...
...
@@ -65,14 +66,17 @@ private:
rtl
::
OUString
maStrWarnSameValue
;
SvNumberFormatter
*
mpNumberFormatter
;
ScDocument
*
mpDoc
;
ScAddress
maPos
;
DECL_LINK
(
OkBtnHdl
,
void
*
);
DECL_LINK
(
TypeSelectHdl
,
void
*
);
void
Init
();
public
:
ScDataBarSettingsDlg
(
Window
*
pParent
,
ScDocument
*
pDoc
);
ScDataBarSettingsDlg
(
Window
*
pParent
,
const
ScDataBarFormatData
&
rData
,
ScDocument
*
pDoc
);
ScDataBarSettingsDlg
(
Window
*
pParent
,
ScDocument
*
pDoc
,
const
ScAddress
&
rPos
);
ScDataBarSettingsDlg
(
Window
*
pParent
,
const
ScDataBarFormatData
&
rData
,
ScDocument
*
pDoc
,
const
ScAddress
&
rPos
);
ScDataBarFormatData
*
GetData
();
};
...
...
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