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
3d193574
Kaydet (Commit)
3d193574
authored
Haz 08, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add data bar ui elements
Change-Id: I3ba7ac39e5339dc42850a15df9b95adf474f8e3a
üst
76f5ca40
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
1 deletion
+37
-1
condformatdlg.cxx
sc/source/ui/condformat/condformatdlg.cxx
+25
-0
condformatdlg.hrc
sc/source/ui/inc/condformatdlg.hrc
+1
-0
condformatdlg.hxx
sc/source/ui/inc/condformatdlg.hxx
+6
-1
condformatdlg.src
sc/source/ui/src/condformatdlg.src
+5
-0
No files found.
sc/source/ui/condformat/condformatdlg.cxx
Dosyayı görüntüle @
3d193574
...
...
@@ -109,6 +109,11 @@ ScCondFrmtEntry::ScCondFrmtEntry(Window* pParent, ScDocument* pDoc):
maLbColMin
(
this
,
ScResId
(
LB_COL
)
),
maLbColMiddle
(
this
,
ScResId
(
LB_COL
)
),
maLbColMax
(
this
,
ScResId
(
LB_COL
)
),
maLbDataBarMinType
(
this
,
ScResId
(
LB_TYPE_COL_SCALE
)
),
maLbDataBarMaxType
(
this
,
ScResId
(
LB_TYPE_COL_SCALE
)
),
maEdDataBarMin
(
this
,
ScResId
(
ED_COL_SCALE
)
),
maEdDataBarMax
(
this
,
ScResId
(
ED_COL_SCALE
)
),
maBtOptions
(
this
,
ScResId
(
BTN_OPTIONS
)
),
mpDoc
(
pDoc
)
{
SetControlBackground
(
GetSettings
().
GetStyleSettings
().
GetDialogColor
());
...
...
@@ -260,13 +265,16 @@ void ScCondFrmtEntry::Init()
Point
aPointLb
=
maLbEntryTypeMiddle
.
GetPosPixel
();
Point
aPointEd
=
maEdMiddle
.
GetPosPixel
();
Point
aPointCol
=
maLbColMiddle
.
GetPosPixel
();
Point
aPointEdDataBar
=
maEdDataBarMin
.
GetPosPixel
();
const
long
nMovePos
=
150
;
aPointLb
.
X
()
+=
nMovePos
;
aPointEd
.
X
()
+=
nMovePos
;
aPointCol
.
X
()
+=
nMovePos
;
aPointEdDataBar
.
X
()
+=
1.5
*
nMovePos
;
maLbEntryTypeMiddle
.
SetPosPixel
(
aPointLb
);
maEdMiddle
.
SetPosPixel
(
aPointEd
);
maLbColMiddle
.
SetPosPixel
(
aPointCol
);
maEdDataBarMin
.
SetPosPixel
(
aPointEdDataBar
);
aPointLb
.
X
()
+=
nMovePos
;
aPointEd
.
X
()
+=
nMovePos
;
aPointCol
.
X
()
+=
nMovePos
;
...
...
@@ -485,6 +493,11 @@ void ScCondFrmtEntry::SetColorScaleType()
void
ScCondFrmtEntry
::
HideDataBarElements
()
{
maLbColorFormat
.
Hide
();
maLbDataBarMinType
.
Hide
();
maLbDataBarMaxType
.
Hide
();
maEdDataBarMin
.
Hide
();
maEdDataBarMax
.
Hide
();
maBtOptions
.
Hide
();
}
void
ScCondFrmtEntry
::
SetDataBarType
()
...
...
@@ -493,6 +506,11 @@ void ScCondFrmtEntry::SetDataBarType()
HideCondElements
();
HideColorScaleElements
();
maLbColorFormat
.
Show
();
maLbDataBarMinType
.
Show
();
maLbDataBarMaxType
.
Show
();
maEdDataBarMin
.
Show
();
maEdDataBarMax
.
Show
();
maBtOptions
.
Show
();
}
void
ScCondFrmtEntry
::
Select
()
...
...
@@ -733,6 +751,13 @@ IMPL_LINK_NOARG(ScCondFrmtEntry, StyleSelectHdl)
return
0
;
}
IMPL_LINK_NOARG
(
ScCondFrmtEntry
,
OptionBtnHdl
)
{
ScDataBarSettingsDlg
*
pDlg
=
new
ScDataBarSettingsDlg
(
this
);
pDlg
->
Execute
();
return
0
;
}
ScCondFormatList
::
ScCondFormatList
(
Window
*
pParent
,
const
ResId
&
rResId
,
ScDocument
*
pDoc
)
:
Control
(
pParent
,
rResId
),
mbHasScrollBar
(
false
),
...
...
sc/source/ui/inc/condformatdlg.hrc
Dosyayı görüntüle @
3d193574
...
...
@@ -52,5 +52,6 @@
#define ED_COL_SCALE 28
#define WD_PREVIEW 26
#define LB_COL 27
#define BTN_OPTIONS 28
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/inc/condformatdlg.hxx
Dosyayı görüntüle @
3d193574
...
...
@@ -93,7 +93,12 @@ private:
ColorListBox
maLbColMax
;
//data bar ui elements
//
ListBox
maLbDataBarMinType
;
ListBox
maLbDataBarMaxType
;
Edit
maEdDataBarMin
;
Edit
maEdDataBarMax
;
Button
maBtOptions
;
//
void
SwitchToType
(
ScCondFormatEntryType
eType
);
void
SetCondType
();
...
...
sc/source/ui/src/condformatdlg.src
Dosyayı görüntüle @
3d193574
...
...
@@ -215,6 +215,11 @@ Control RID_COND_ENTRY
DropDown = TRUE;
DDExtraWidth = TRUE;
};
Button BTN_OPTIONS
{
Pos = MAP_APPFONT( 120 , 62 );
Size = MAP_APPFONT( 60, 14 );
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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