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
b669e312
Kaydet (Commit)
b669e312
authored
Kas 27, 2013
tarafından
Katarina Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Converted data bar options dialog to .ui
Change-Id: I6a1cd4bc3eb91e89c5d15a2281d5f3d4a978df4e
üst
94efa177
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
308 additions
and
84 deletions
+308
-84
AllLangResTarget_sc.mk
sc/AllLangResTarget_sc.mk
+2
-6
UIConfig_scalc.mk
sc/UIConfig_scalc.mk
+10
-1
colorformat.cxx
sc/source/ui/condformat/colorformat.cxx
+75
-67
colorformat.hrc
sc/source/ui/inc/colorformat.hrc
+36
-0
colorformat.hxx
sc/source/ui/inc/colorformat.hxx
+25
-10
colorformat.src
sc/source/ui/src/colorformat.src
+160
-0
databaroptions.ui
sc/uiconfig/scalc/ui/databaroptions.ui
+0
-0
No files found.
sc/AllLangResTarget_sc.mk
Dosyayı görüntüle @
b669e312
...
...
@@ -53,6 +53,7 @@ $(eval $(call gb_SrsTarget_add_files,sc/res,\
sc/source/ui/src/scstring.src \
sc/source/ui/src/sortdlg.src \
sc/source/ui/src/filter.src \
sc/source/ui/src/colorformat.src \
sc/source/ui/src/condformatdlg.src \
sc/source/ui/src/condformatmgr.src \
sc/source/ui/src/xmlsourcedlg.src \
...
...
@@ -77,12 +78,7 @@ $(eval $(call gb_SrsTarget_add_files,sc/res,\
sc/source/ui/formdlg/formdlgs.src \
sc/source/ui/formdlg/dwfunctr.src \
sc/source/ui/sidebar/CellAppearancePropertyPanel.src \
sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.src \
sc/source/ui/StatisticsDialogs/SamplingDialog.src \
sc/source/ui/StatisticsDialogs/DescriptiveStatisticsDialog.src \
sc/source/ui/StatisticsDialogs/AnalysisOfVarianceDialog.src \
sc/source/ui/StatisticsDialogs/CorrelationDialog.src \
sc/source/ui/StatisticsDialogs/CovarianceDialog.src \
sc/source/ui/StatisticsDialogs/StatisticsDialogs.src \
sc/source/core/src/compiler.src \
))
...
...
sc/UIConfig_scalc.mk
Dosyayı görüntüle @
b669e312
...
...
@@ -29,6 +29,7 @@ $(eval $(call gb_UIConfig_add_toolbarfiles,modules/scalc,\
sc/uiconfig/scalc/toolbar/basicshapes \
sc/uiconfig/scalc/toolbar/calloutshapes \
sc/uiconfig/scalc/toolbar/colorbar \
sc/uiconfig/scalc/toolbar/datastreams \
sc/uiconfig/scalc/toolbar/drawbar \
sc/uiconfig/scalc/toolbar/drawobjectbar \
sc/uiconfig/scalc/toolbar/extrusionobjectbar \
...
...
@@ -64,16 +65,20 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/analysisofvariancedialog \
sc/uiconfig/scalc/ui/cellprotectionpage \
sc/uiconfig/scalc/ui/consolidatedialog \
sc/uiconfig/scalc/ui/correlationdialog \
sc/uiconfig/scalc/ui/covariancedialog \
sc/uiconfig/scalc/ui/createnamesdialog \
sc/uiconfig/scalc/ui/dataform \
sc/uiconfig/scalc/ui/data
baroption
s \
sc/uiconfig/scalc/ui/data
stream
s \
sc/uiconfig/scalc/ui/definedatabaserangedialog \
sc/uiconfig/scalc/ui/definename \
sc/uiconfig/scalc/ui/deletecells \
sc/uiconfig/scalc/ui/deletecontents \
sc/uiconfig/scalc/ui/descriptivestatisticsdialog \
sc/uiconfig/scalc/ui/doubledialog \
sc/uiconfig/scalc/ui/erroralerttabpage \
sc/uiconfig/scalc/ui/externaldata \
sc/uiconfig/scalc/ui/exponentialsmoothingdialog \
sc/uiconfig/scalc/ui/filldlg \
sc/uiconfig/scalc/ui/footerdialog \
sc/uiconfig/scalc/ui/formatcellsdialog \
...
...
@@ -83,9 +88,11 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/headerdialog \
sc/uiconfig/scalc/ui/headerfootercontent \
sc/uiconfig/scalc/ui/headerfooterdialog \
sc/uiconfig/scalc/ui/inputstringdialog \
sc/uiconfig/scalc/ui/insertcells \
sc/uiconfig/scalc/ui/insertname \
sc/uiconfig/scalc/ui/insertsheet \
sc/uiconfig/scalc/ui/integerdialog \
sc/uiconfig/scalc/ui/leftfooterdialog \
sc/uiconfig/scalc/ui/leftheaderdialog \
sc/uiconfig/scalc/ui/namerangesdialog \
...
...
@@ -108,6 +115,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/samplingdialog \
sc/uiconfig/scalc/ui/standardfilterdialog \
sc/uiconfig/scalc/ui/scgeneralpage \
sc/uiconfig/scalc/ui/searchresults \
sc/uiconfig/scalc/ui/selectrange \
sc/uiconfig/scalc/ui/selectsource \
sc/uiconfig/scalc/ui/sheetprintpage \
...
...
@@ -130,6 +138,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/ungroupdialog \
sc/uiconfig/scalc/ui/validationhelptabpage \
sc/uiconfig/scalc/ui/movecopysheet \
sc/uiconfig/scalc/ui/movingaveragedialog \
))
# vim: set noet sw=4 ts=4:
sc/source/ui/condformat/colorformat.cxx
Dosyayı görüntüle @
b669e312
...
...
@@ -10,8 +10,8 @@
#include "colorformat.hxx"
#include "colorscale.hxx"
#include "colorformat.hrc"
#include "document.hxx"
#include "sc.hrc"
#include <svx/xtable.hxx>
#include <svx/drawitem.hxx>
...
...
@@ -61,47 +61,55 @@ void SetValue( ScColorScaleEntry* pEntry, Edit& aEdit)
}
ScDataBarSettingsDlg
::
ScDataBarSettingsDlg
(
Window
*
pWindow
,
const
ScDataBarFormatData
&
rData
,
ScDocument
*
pDoc
,
const
ScAddress
&
rPos
)
:
ModalDialog
(
pWindow
,
"DataBarOptions"
,
"modules/scalc/ui/databaroptions.ui"
),
ModalDialog
(
pWindow
,
ScResId
(
RID_SCDLG_DATABAR
)
),
maBtnOk
(
this
,
ScResId
(
BTN_OK
)
),
maBtnCancel
(
this
,
ScResId
(
BTN_CANCEL
)
),
maFlBarColors
(
this
,
ScResId
(
FL_BAR_COLORS
)
),
maFlAxes
(
this
,
ScResId
(
FL_AXIS
)
),
maFlValues
(
this
,
ScResId
(
FL_VALUES
)
),
maFtMin
(
this
,
ScResId
(
FT_MINIMUM
)
),
maFtMax
(
this
,
ScResId
(
FT_MAXIMUM
)
),
maFtPositive
(
this
,
ScResId
(
FT_POSITIVE
)
),
maFtNegative
(
this
,
ScResId
(
FT_NEGATIVE
)
),
maFtPosition
(
this
,
ScResId
(
FT_POSITION
)
),
maFtAxisColor
(
this
,
ScResId
(
FT_COLOR_AXIS
)
),
maLbPos
(
this
,
ScResId
(
LB_POS
)
),
maLbNeg
(
this
,
ScResId
(
LB_NEG
)
),
maLbAxisCol
(
this
,
ScResId
(
LB_COL_AXIS
)
),
maLbTypeMin
(
this
,
ScResId
(
LB_TYPE
)
),
maLbTypeMax
(
this
,
ScResId
(
LB_TYPE
)
),
maLbAxisPos
(
this
,
ScResId
(
LB_AXIS_POSITION
)
),
maEdMin
(
this
,
ScResId
(
ED_MIN
)
),
maEdMax
(
this
,
ScResId
(
ED_MAX
)
),
maStrWarnSameValue
(
SC_RESSTR
(
STR_WARN_SAME_VALUE
)
),
mpNumberFormatter
(
pDoc
->
GetFormatTable
()
),
mpDoc
(
pDoc
),
maPos
(
rPos
)
{
get
(
mpBtnOk
,
"ok"
);
get
(
mpBtnCancel
,
"cancel"
);
get
(
mpLbPos
,
"positive_colour"
);
get
(
mpLbNeg
,
"negative_colour"
);
get
(
mpLbTypeMin
,
"min"
);
get
(
mpLbTypeMax
,
"max"
);
get
(
mpLbAxisPos
,
"axis_pos"
);
get
(
mpLbAxisCol
,
"axis_colour"
);
get
(
mpEdMin
,
"min_value"
);
get
(
mpEdMax
,
"max_value"
);
maStrWarnSameValue
=
get
<
FixedText
>
(
"str_same_value"
)
->
GetText
();
Init
();
FreeResource
();
m
pLbPos
->
SelectEntry
(
rData
.
maPositiveColor
);
m
aLbPos
.
SelectEntry
(
rData
.
maPositiveColor
);
if
(
rData
.
mpNegativeColor
)
m
pLbNeg
->
SelectEntry
(
*
rData
.
mpNegativeColor
);
m
aLbNeg
.
SelectEntry
(
*
rData
.
mpNegativeColor
);
switch
(
rData
.
meAxisPosition
)
{
case
databar
:
:
NONE
:
m
pLbAxisPos
->
SelectEntryPos
(
2
);
m
aLbAxisPos
.
SelectEntryPos
(
2
);
break
;
case
databar
:
:
AUTOMATIC
:
m
pLbAxisPos
->
SelectEntryPos
(
0
);
m
aLbAxisPos
.
SelectEntryPos
(
0
);
break
;
case
databar
:
:
MIDDLE
:
m
pLbAxisPos
->
SelectEntryPos
(
1
);
m
aLbAxisPos
.
SelectEntryPos
(
1
);
break
;
}
::
SetType
(
rData
.
mpLowerLimit
.
get
(),
*
mp
LbTypeMin
);
::
SetType
(
rData
.
mpUpperLimit
.
get
(),
*
mp
LbTypeMax
);
SetValue
(
rData
.
mpLowerLimit
.
get
(),
*
mp
EdMin
);
SetValue
(
rData
.
mpUpperLimit
.
get
(),
*
mp
EdMax
);
m
pLbAxisCol
->
SelectEntry
(
rData
.
maAxisColor
);
::
SetType
(
rData
.
mpLowerLimit
.
get
(),
ma
LbTypeMin
);
::
SetType
(
rData
.
mpUpperLimit
.
get
(),
ma
LbTypeMax
);
SetValue
(
rData
.
mpLowerLimit
.
get
(),
ma
EdMin
);
SetValue
(
rData
.
mpUpperLimit
.
get
(),
ma
EdMax
);
m
aLbAxisCol
.
SelectEntry
(
rData
.
maAxisColor
);
TypeSelectHdl
(
NULL
);
}
...
...
@@ -122,43 +130,43 @@ void ScDataBarSettingsDlg::Init()
if
(
pColorTable
.
is
()
)
{
// filling the line color box
m
pLbPos
->
SetUpdateMode
(
false
);
m
pLbNeg
->
SetUpdateMode
(
false
);
m
pLbAxisCol
->
SetUpdateMode
(
false
);
m
aLbPos
.
SetUpdateMode
(
false
);
m
aLbNeg
.
SetUpdateMode
(
false
);
m
aLbAxisCol
.
SetUpdateMode
(
false
);
for
(
long
i
=
0
;
i
<
pColorTable
->
Count
();
++
i
)
{
XColorEntry
*
pEntry
=
pColorTable
->
GetColor
(
i
);
m
pLbPos
->
InsertEntry
(
pEntry
->
GetColor
(),
pEntry
->
GetName
()
);
m
pLbNeg
->
InsertEntry
(
pEntry
->
GetColor
(),
pEntry
->
GetName
()
);
m
pLbAxisCol
->
InsertEntry
(
pEntry
->
GetColor
(),
pEntry
->
GetName
()
);
m
aLbPos
.
InsertEntry
(
pEntry
->
GetColor
(),
pEntry
->
GetName
()
);
m
aLbNeg
.
InsertEntry
(
pEntry
->
GetColor
(),
pEntry
->
GetName
()
);
m
aLbAxisCol
.
InsertEntry
(
pEntry
->
GetColor
(),
pEntry
->
GetName
()
);
if
(
pEntry
->
GetColor
()
==
Color
(
COL_LIGHTRED
))
m
pLbNeg
->
SelectEntryPos
(
i
);
m
aLbNeg
.
SelectEntryPos
(
i
);
if
(
pEntry
->
GetColor
()
==
Color
(
COL_BLACK
))
m
pLbAxisCol
->
SelectEntryPos
(
i
);
m
aLbAxisCol
.
SelectEntryPos
(
i
);
if
(
pEntry
->
GetColor
()
==
Color
(
COL_LIGHTBLUE
))
m
pLbPos
->
SelectEntryPos
(
i
);
m
aLbPos
.
SelectEntryPos
(
i
);
}
m
pLbPos
->
SetUpdateMode
(
sal_True
);
m
pLbNeg
->
SetUpdateMode
(
sal_True
);
m
pLbAxisCol
->
SetUpdateMode
(
sal_True
);
m
aLbPos
.
SetUpdateMode
(
sal_True
);
m
aLbNeg
.
SetUpdateMode
(
sal_True
);
m
aLbAxisCol
.
SetUpdateMode
(
sal_True
);
}
m
pBtnOk
->
SetClickHdl
(
LINK
(
this
,
ScDataBarSettingsDlg
,
OkBtnHdl
)
);
m
aBtnOk
.
SetClickHdl
(
LINK
(
this
,
ScDataBarSettingsDlg
,
OkBtnHdl
)
);
/*Point aPoint(mp
LbTypeMax.GetPosPixel().X(), maFtMax.GetPosPixel().Y());
m
pLbTypeMax.SetPosPixel(aPoint);*/
Point
aPoint
(
ma
LbTypeMax
.
GetPosPixel
().
X
(),
maFtMax
.
GetPosPixel
().
Y
());
m
aLbTypeMax
.
SetPosPixel
(
aPoint
);
m
pLbTypeMin
->
SetSelectHdl
(
LINK
(
this
,
ScDataBarSettingsDlg
,
TypeSelectHdl
)
);
m
pLbTypeMax
->
SetSelectHdl
(
LINK
(
this
,
ScDataBarSettingsDlg
,
TypeSelectHdl
)
);
m
aLbTypeMin
.
SetSelectHdl
(
LINK
(
this
,
ScDataBarSettingsDlg
,
TypeSelectHdl
)
);
m
aLbTypeMax
.
SetSelectHdl
(
LINK
(
this
,
ScDataBarSettingsDlg
,
TypeSelectHdl
)
);
}
namespace
{
void
GetAxesPosition
(
ScDataBarFormatData
*
pData
,
const
ListBox
*
rLbox
)
void
GetAxesPosition
(
ScDataBarFormatData
*
pData
,
const
ListBox
&
rLbox
)
{
switch
(
rLbox
->
GetSelectEntryPos
())
switch
(
rLbox
.
GetSelectEntryPos
())
{
case
0
:
pData
->
meAxisPosition
=
databar
::
AUTOMATIC
;
...
...
@@ -177,16 +185,16 @@ void GetAxesPosition(ScDataBarFormatData* pData, const ListBox* rLbox)
ScDataBarFormatData
*
ScDataBarSettingsDlg
::
GetData
()
{
ScDataBarFormatData
*
pData
=
new
ScDataBarFormatData
();
pData
->
maPositiveColor
=
m
pLbPos
->
GetSelectEntryColor
();
pData
->
mpNegativeColor
.
reset
(
new
Color
(
m
pLbNeg
->
GetSelectEntryColor
()));
pData
->
maPositiveColor
=
m
aLbPos
.
GetSelectEntryColor
();
pData
->
mpNegativeColor
.
reset
(
new
Color
(
m
aLbNeg
.
GetSelectEntryColor
()));
pData
->
mbGradient
=
true
;
//FIXME
pData
->
mpUpperLimit
.
reset
(
new
ScColorScaleEntry
());
pData
->
mpLowerLimit
.
reset
(
new
ScColorScaleEntry
());
pData
->
maAxisColor
=
m
pLbAxisCol
->
GetSelectEntryColor
();
pData
->
maAxisColor
=
m
aLbAxisCol
.
GetSelectEntryColor
();
::
GetType
(
*
mpLbTypeMin
,
*
mp
EdMin
,
pData
->
mpLowerLimit
.
get
(),
mpNumberFormatter
,
mpDoc
,
maPos
);
::
GetType
(
*
mpLbTypeMax
,
*
mp
EdMax
,
pData
->
mpUpperLimit
.
get
(),
mpNumberFormatter
,
mpDoc
,
maPos
);
GetAxesPosition
(
pData
,
m
p
LbAxisPos
);
::
GetType
(
maLbTypeMin
,
ma
EdMin
,
pData
->
mpLowerLimit
.
get
(),
mpNumberFormatter
,
mpDoc
,
maPos
);
::
GetType
(
maLbTypeMax
,
ma
EdMax
,
pData
->
mpUpperLimit
.
get
(),
mpNumberFormatter
,
mpDoc
,
maPos
);
GetAxesPosition
(
pData
,
m
a
LbAxisPos
);
return
pData
;
}
...
...
@@ -195,20 +203,20 @@ IMPL_LINK_NOARG( ScDataBarSettingsDlg, OkBtnHdl )
{
//check that min < max
bool
bWarn
=
false
;
sal_Int32
nSelectMin
=
m
pLbTypeMin
->
GetSelectEntryPos
();
sal_Int32
nSelectMin
=
m
aLbTypeMin
.
GetSelectEntryPos
();
if
(
nSelectMin
==
COLORSCALE_MAX
)
bWarn
=
true
;
sal_Int32
nSelectMax
=
m
pLbTypeMax
->
GetSelectEntryPos
();
sal_Int32
nSelectMax
=
m
aLbTypeMax
.
GetSelectEntryPos
();
if
(
nSelectMax
==
COLORSCALE_MIN
)
bWarn
=
true
;
if
(
!
bWarn
&&
m
pLbTypeMin
->
GetSelectEntryPos
()
==
mpLbTypeMax
->
GetSelectEntryPos
())
if
(
!
bWarn
&&
m
aLbTypeMin
.
GetSelectEntryPos
()
==
maLbTypeMax
.
GetSelectEntryPos
())
{
if
(
nSelectMax
!=
COLORSCALE_FORMULA
&&
nSelectMax
!=
COLORSCALE_AUTO
)
{
OUString
aMinString
=
m
pEdMin
->
GetText
();
OUString
aMaxString
=
m
pEdMax
->
GetText
();
OUString
aMinString
=
m
aEdMin
.
GetText
();
OUString
aMaxString
=
m
aEdMax
.
GetText
();
double
nMinValue
=
0
;
sal_uInt32
nIndex
=
0
;
mpNumberFormatter
->
IsNumberFormat
(
aMinString
,
nIndex
,
nMinValue
);
...
...
@@ -235,33 +243,33 @@ IMPL_LINK_NOARG( ScDataBarSettingsDlg, OkBtnHdl )
IMPL_LINK_NOARG
(
ScDataBarSettingsDlg
,
TypeSelectHdl
)
{
sal_Int32
nSelectMin
=
m
pLbTypeMin
->
GetSelectEntryPos
();
sal_Int32
nSelectMin
=
m
aLbTypeMin
.
GetSelectEntryPos
();
if
(
nSelectMin
<=
COLORSCALE_MAX
)
m
pEdMin
->
Disable
();
m
aEdMin
.
Disable
();
else
{
m
pEdMin
->
Enable
();
if
(
m
pEdMin
->
GetText
().
isEmpty
())
m
aEdMin
.
Enable
();
if
(
m
aEdMin
.
GetText
().
isEmpty
())
{
if
(
nSelectMin
==
COLORSCALE_PERCENTILE
||
nSelectMin
==
COLORSCALE_PERCENT
)
m
pEdMin
->
SetText
(
OUString
::
number
(
50
));
m
aEdMin
.
SetText
(
OUString
::
number
(
50
));
else
m
pEdMin
->
SetText
(
OUString
::
number
(
0
));
m
aEdMin
.
SetText
(
OUString
::
number
(
0
));
}
}
sal_Int32
nSelectMax
=
m
pLbTypeMax
->
GetSelectEntryPos
();
sal_Int32
nSelectMax
=
m
aLbTypeMax
.
GetSelectEntryPos
();
if
(
nSelectMax
<=
COLORSCALE_MAX
)
m
pEdMax
->
Disable
();
m
aEdMax
.
Disable
();
else
{
m
pEdMax
->
Enable
();
if
(
m
pEdMax
->
GetText
().
isEmpty
())
m
aEdMax
.
Enable
();
if
(
m
aEdMax
.
GetText
().
isEmpty
())
{
if
(
nSelectMax
==
COLORSCALE_PERCENTILE
||
nSelectMax
==
COLORSCALE_PERCENT
)
m
pEdMax
->
SetText
(
OUString
::
number
(
50
));
m
aEdMax
.
SetText
(
OUString
::
number
(
50
));
else
m
pEdMax
->
SetText
(
OUString
::
number
(
0
));
m
aEdMax
.
SetText
(
OUString
::
number
(
0
));
}
}
return
0
;
...
...
sc/source/ui/inc/colorformat.hrc
0 → 100644
Dosyayı görüntüle @
b669e312
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "sc.hrc"
#define BTN_OK 1
#define BTN_CANCEL 2
#define FL_BAR_COLORS 10
#define FL_AXIS 11
#define FL_VALUES 12
#define FT_MINIMUM 13
#define FT_MAXIMUM 14
#define FT_POSITIVE 15
#define FT_NEGATIVE 16
#define FT_POSITION 17
#define FT_COLOR_AXIS 18
#define LB_POS 19
#define LB_NEG 20
#define LB_COL_AXIS 21
#define LB_TYPE 22
#define LB_AXIS_POSITION 23
#define ED_MIN 24
#define ED_MAX 25
#define STR_WARN_SAME_VALUE 26
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/inc/colorformat.hxx
Dosyayı görüntüle @
b669e312
...
...
@@ -7,6 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef SC_COLORFORMAT_HXX
#define SC_COLORFORMAT_HXX
#include <vcl/button.hxx>
#include <vcl/dialog.hxx>
#include <vcl/fixed.hxx>
...
...
@@ -20,19 +23,29 @@ class ScDocument;
class
ScDataBarSettingsDlg
:
public
ModalDialog
{
private
:
OKButton
*
mpBtnOk
;
CancelButton
*
mpBtnCancel
;
OKButton
maBtnOk
;
CancelButton
maBtnCancel
;
FixedLine
maFlBarColors
;
FixedLine
maFlAxes
;
FixedLine
maFlValues
;
FixedText
maFtMin
;
FixedText
maFtMax
;
FixedText
maFtPositive
;
FixedText
maFtNegative
;
FixedText
maFtPosition
;
FixedText
maFtAxisColor
;
ColorListBox
*
mp
LbPos
;
ColorListBox
*
mp
LbNeg
;
ColorListBox
*
mp
LbAxisCol
;
ColorListBox
ma
LbPos
;
ColorListBox
ma
LbNeg
;
ColorListBox
ma
LbAxisCol
;
ListBox
*
mp
LbTypeMin
;
ListBox
*
mp
LbTypeMax
;
ListBox
*
mp
LbAxisPos
;
ListBox
ma
LbTypeMin
;
ListBox
ma
LbTypeMax
;
ListBox
ma
LbAxisPos
;
Edit
*
mp
EdMin
;
Edit
*
mp
EdMax
;
Edit
ma
EdMin
;
Edit
ma
EdMax
;
OUString
maStrWarnSameValue
;
SvNumberFormatter
*
mpNumberFormatter
;
...
...
@@ -51,4 +64,6 @@ public:
ScDataBarFormatData
*
GetData
();
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/src/colorformat.src
0 → 100644
Dosyayı görüntüle @
b669e312
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "colorformat.hrc"
ModalDialog RID_SCDLG_DATABAR
{
OutputSize = TRUE;
Hide = TRUE;
Size = MAP_APPFONT ( 200, 200 );
Text [ en-US ] = "Data Bar";
Moveable = TRUE;
Closeable = TRUE;
OkButton BTN_OK
{
Pos = MAP_APPFONT ( 120, 180 );
Size = MAP_APPFONT ( 30, 14 );
TabStop = TRUE;
};
CancelButton BTN_CANCEL
{
Pos = MAP_APPFONT ( 160, 180 );
Size = MAP_APPFONT ( 30, 14 );
TabStop = TRUE;
};
FixedLine FL_VALUES
{
Pos = MAP_APPFONT( 5, 5 );
Size = MAP_APPFONT( 190, 10 );
Text [ en-US ] = "Entry Values";
};
FixedLine FL_BAR_COLORS
{
Pos = MAP_APPFONT( 5, 60 );
Size = MAP_APPFONT( 190, 10 );
Text [ en-US ] = "Bar Colors";
};
FixedLine FL_AXIS
{
Pos = MAP_APPFONT( 5, 120 );
Size = MAP_APPFONT( 190, 10 );
Text [ en-US ] = "Axis";
};
FixedText FT_MINIMUM
{
Pos = MAP_APPFONT( 10, 20 );
Size = MAP_APPFONT( 50, 14 );
Text [ en-US ] = "Minimum:";
};
FixedText FT_MAXIMUM
{
Pos = MAP_APPFONT( 10, 40 );
Size = MAP_APPFONT( 50, 14 );
Text [ en-US ] = "Maximum:";
};
FixedText FT_POSITIVE
{
Pos = MAP_APPFONT( 10, 75 );
Size = MAP_APPFONT( 50, 14 );
Text [ en-US ] = "Positive:";
};
FixedText FT_NEGATIVE
{
Pos = MAP_APPFONT( 10, 95 );
Size = MAP_APPFONT( 50, 14 );
Text [ en-US ] = "Negative:";
};
FixedText FT_POSITION
{
Pos = MAP_APPFONT( 10, 135 );
Size = MAP_APPFONT( 110, 14 );
Text [ en-US ] = "Position of vertical axis";
};
FixedText FT_COLOR_AXIS
{
Pos = MAP_APPFONT( 10, 155 );
Size = MAP_APPFONT( 110, 14 );
Text [ en-US ] = "Color of vertical axis";
};
ListBox LB_POS
{
Pos = MAP_APPFONT( 80, 75 );
Size = MAP_APPFONT( 60, 50 );
Border = TRUE;
DropDown = TRUE;
DDExtraWidth = TRUE;
};
ListBox LB_NEG
{
Pos = MAP_APPFONT( 80, 95 );
Size = MAP_APPFONT( 60, 50 );
Border = TRUE;
DropDown = TRUE;
DDExtraWidth = TRUE;
};
ListBox LB_COL_AXIS
{
Pos = MAP_APPFONT( 120, 155 );
Size = MAP_APPFONT( 60, 50 );
Border = TRUE;
DropDown = TRUE;
DDExtraWidth = TRUE;
};
ListBox LB_TYPE
{
Pos = MAP_APPFONT( 80, 20 );
Size = MAP_APPFONT( 50, 50 );
Border = TRUE;
DropDown = TRUE;
StringList [ en-US ] =
{
"Automatic";
"Minimum";
"Maximum";
"Percentile";
"Value";
"Percent";
"Formula";
};
};
ListBox LB_AXIS_POSITION
{
Pos = MAP_APPFONT( 120, 135 );
Size = MAP_APPFONT( 50, 50 );
Border = TRUE;
DropDown = TRUE;
StringList [ en-US ] =
{
"Automatic";
"Middle";
"None";
};
};
Edit ED_MIN
{
Pos = MAP_APPFONT( 140, 21 );
Size = MAP_APPFONT( 40, 12 );
TabStop = TRUE;
Border = TRUE;
};
Edit ED_MAX
{
Pos = MAP_APPFONT( 140, 41 );
Size = MAP_APPFONT( 40, 12 );
TabStop = TRUE;
Border = TRUE;
};
String STR_WARN_SAME_VALUE
{
Text [ en-US ] = "Min value must be smaller than max value!";
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/uiconfig/scalc/ui/databaroptions.ui
deleted
100644 → 0
Dosyayı görüntüle @
94efa177
This diff is collapsed.
Click to expand it.
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