Kaydet (Commit) 1627f397 authored tarafından Katarina Behrens's avatar Katarina Behrens

tdf#89199: UI option to show data bar only (no values)

Change-Id: I13cbde947d6252c1157ec79a5f2190df24cca978
üst 1d4c7274
......@@ -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);
......
......@@ -40,6 +40,8 @@ private:
Edit* mpLenMin;
Edit* mpLenMax;
CheckBox *mpCbOnlyBar;
OUString maStrWarnSameValue;
SvNumberFormatter* mpNumberFormatter;
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment