summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/condformat/colorformat.cxx3
-rw-r--r--sc/source/ui/inc/colorformat.hxx2
-rw-r--r--sc/uiconfig/scalc/ui/databaroptions.ui21
3 files changed, 24 insertions, 2 deletions
diff --git a/sc/source/ui/condformat/colorformat.cxx b/sc/source/ui/condformat/colorformat.cxx
index 0376889f7aa0..26c204030610 100644
--- a/sc/source/ui/condformat/colorformat.cxx
+++ b/sc/source/ui/condformat/colorformat.cxx
@@ -87,6 +87,7 @@ ScDataBarSettingsDlg::ScDataBarSettingsDlg(vcl::Window* pWindow, const ScDataBar
get( mpEdMax, "max_value" );
get( mpLenMin, "min_length" );
get( mpLenMax, "max_length" );
+ get( mpCbOnlyBar, "only_bar");
maStrWarnSameValue = get<FixedText>("str_same_value")->GetText();
@@ -116,6 +117,7 @@ ScDataBarSettingsDlg::ScDataBarSettingsDlg(vcl::Window* pWindow, const ScDataBar
mpLenMin->SetText(convertNumberToString(rData.mnMinLength, mpDoc));
mpLenMax->SetText(convertNumberToString(rData.mnMaxLength, mpDoc));
mpLbAxisCol->SelectEntry(rData.maAxisColor);
+ mpCbOnlyBar->Check(rData.mbOnlyBar);
TypeSelectHdl(NULL);
PosSelectHdl(NULL);
@@ -208,6 +210,7 @@ ScDataBarFormatData* ScDataBarSettingsDlg::GetData()
pData->mpUpperLimit.reset(new ScColorScaleEntry());
pData->mpLowerLimit.reset(new ScColorScaleEntry());
pData->maAxisColor = mpLbAxisCol->GetSelectEntryColor();
+ pData->mbOnlyBar = mpCbOnlyBar->IsChecked();
::GetType(*mpLbTypeMin, *mpEdMin, pData->mpLowerLimit.get(), mpNumberFormatter, mpDoc, maPos);
::GetType(*mpLbTypeMax, *mpEdMax, pData->mpUpperLimit.get(), mpNumberFormatter, mpDoc, maPos);
diff --git a/sc/source/ui/inc/colorformat.hxx b/sc/source/ui/inc/colorformat.hxx
index 672ce74318dd..a3003755ca4b 100644
--- a/sc/source/ui/inc/colorformat.hxx
+++ b/sc/source/ui/inc/colorformat.hxx
@@ -40,6 +40,8 @@ private:
Edit* mpLenMin;
Edit* mpLenMax;
+ CheckBox *mpCbOnlyBar;
+
OUString maStrWarnSameValue;
SvNumberFormatter* mpNumberFormatter;
diff --git a/sc/uiconfig/scalc/ui/databaroptions.ui b/sc/uiconfig/scalc/ui/databaroptions.ui
index 84503e5856f2..f47455954898 100644
--- a/sc/uiconfig/scalc/ui/databaroptions.ui
+++ b/sc/uiconfig/scalc/ui/databaroptions.ui
@@ -465,7 +465,7 @@
</packing>
</child>
<child>
- <object class="GtkEntry" id="max_length">
+ <object class="GtkEntry" id="max_length">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">●</property>
@@ -495,6 +495,23 @@
<property name="fill">True</property>
<property name="position">3</property>
</packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="only_bar">
+ <property name="label" translatable="yes">Show Bar Only</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="xalign">0</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ <child>
<object class="GtkLabel" id="str_same_value">
<property name="can_focus">False</property>
<property name="label" translatable="yes">Min value must be smaller than max value!</property>
@@ -503,7 +520,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="position">4</property>
+ <property name="position">5</property>
</packing>
</child>
</object>