Kaydet (Commit) dfdd717c authored tarafından Caolán McNamara's avatar Caolán McNamara

weld ScDPSubtotalOptDlg

Change-Id: I986346fa26f397fee6f0a2d9d724a1bdfb2e4220
Reviewed-on: https://gerrit.libreoffice.org/67872
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst bc99e56a
This diff is collapsed.
......@@ -131,14 +131,13 @@ private:
bool mbEnableLayout; /// true = Enable Layout mode controls.
};
class ScDPSubtotalOptDlg : public ModalDialog
class ScDPSubtotalOptDlg : public weld::GenericDialogController
{
public:
explicit ScDPSubtotalOptDlg( vcl::Window* pParent, ScDPObject& rDPObj,
explicit ScDPSubtotalOptDlg(weld::Window* pParent, ScDPObject& rDPObj,
const ScDPLabelData& rLabelData, const ScDPNameVec& rDataFields,
bool bEnableLayout );
virtual ~ScDPSubtotalOptDlg() override;
virtual void dispose() override;
void FillLabelData( ScDPLabelData& rLabelData ) const;
private:
......@@ -148,35 +147,32 @@ private:
ScDPName GetFieldName(const OUString& rLayoutName) const;
/** Searches for a listbox entry, starts search at specified position. */
sal_Int32 FindListBoxEntry( const ListBox& rLBox, const OUString& rEntry, sal_Int32 nStartPos ) const;
sal_Int32 FindListBoxEntry( const weld::ComboBox& rLBox, const OUString& rEntry, sal_Int32 nStartPos ) const;
DECL_LINK( RadioClickHdl, Button*, void );
DECL_LINK( CheckHdl, Button*, void );
DECL_LINK( SelectHdl, ListBox&, void );
DECL_LINK( RadioClickHdl, weld::Button&, void );
DECL_LINK( CheckHdl, weld::Button&, void );
DECL_LINK( SelectHdl, weld::ComboBox&, void );
private:
VclPtr<ListBox> m_pLbSortBy;
VclPtr<RadioButton> m_pRbSortAsc;
VclPtr<RadioButton> m_pRbSortDesc;
VclPtr<RadioButton> m_pRbSortMan;
VclPtr<VclContainer> m_pLayoutFrame;
VclPtr<ListBox> m_pLbLayout;
VclPtr<CheckBox> m_pCbLayoutEmpty;
VclPtr<CheckBox> m_pCbRepeatItemLabels;
VclPtr<CheckBox> m_pCbShow;
VclPtr<NumericField> m_pNfShow;
VclPtr<FixedText> m_pFtShow;
VclPtr<FixedText> m_pFtShowFrom;
VclPtr<ListBox> m_pLbShowFrom;
VclPtr<FixedText> m_pFtShowUsing;
VclPtr<ListBox> m_pLbShowUsing;
VclPtr<VclContainer> m_pHideFrame;
VclPtr<SvxCheckListBox> m_pLbHide;
VclPtr<FixedText> m_pFtHierarchy;
VclPtr<ListBox> m_pLbHierarchy;
std::unique_ptr<ScDPListBoxWrapper> m_xLbLayoutWrp; /// Wrapper for direct usage of API constants.
std::unique_ptr<ScDPListBoxWrapper> m_xLbShowFromWrp; /// Wrapper for direct usage of API constants.
std::unique_ptr<weld::ComboBox> m_xLbSortBy;
std::unique_ptr<weld::RadioButton> m_xRbSortAsc;
std::unique_ptr<weld::RadioButton> m_xRbSortDesc;
std::unique_ptr<weld::RadioButton> m_xRbSortMan;
std::unique_ptr<weld::Widget> m_xLayoutFrame;
std::unique_ptr<weld::ComboBox> m_xLbLayout;
std::unique_ptr<weld::CheckButton> m_xCbLayoutEmpty;
std::unique_ptr<weld::CheckButton> m_xCbRepeatItemLabels;
std::unique_ptr<weld::CheckButton> m_xCbShow;
std::unique_ptr<weld::SpinButton> m_xNfShow;
std::unique_ptr<weld::Label> m_xFtShow;
std::unique_ptr<weld::Label> m_xFtShowFrom;
std::unique_ptr<weld::ComboBox> m_xLbShowFrom;
std::unique_ptr<weld::Label> m_xFtShowUsing;
std::unique_ptr<weld::ComboBox> m_xLbShowUsing;
std::unique_ptr<weld::Widget> m_xHideFrame;
std::unique_ptr<weld::TreeView> m_xLbHide;
std::unique_ptr<weld::Label> m_xFtHierarchy;
std::unique_ptr<weld::ComboBox> m_xLbHierarchy;
ScDPObject& mrDPObj; /// The DataPilot object (for member names).
ScDPLabelData maLabelData; /// Cache for members data.
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<!-- Generated with glade 3.22.1 -->
<interface domain="sc">
<requires lib="gtk+" version="3.18"/>
<object class="GtkTreeStore" id="liststore2">
<columns>
<!-- column-name check1 -->
<column type="gboolean"/>
<!-- column-name text -->
<column type="gchararray"/>
<!-- column-name id -->
<column type="gchararray"/>
<!-- column-name checkvis1 -->
<column type="gboolean"/>
</columns>
</object>
<object class="GtkAdjustment" id="adjustment1">
<property name="lower">1</property>
<property name="upper">999</property>
......@@ -14,7 +26,13 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" context="datafieldoptionsdialog|DataFieldOptionsDialog">Data Field Options</property>
<property name="resizable">False</property>
<property name="modal">True</property>
<property name="default_width">0</property>
<property name="default_height">0</property>
<property name="type_hint">dialog</property>
<child>
<placeholder/>
</child>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property>
......@@ -115,7 +133,6 @@
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">descending</property>
</object>
<packing>
<property name="left_attach">1</property>
......@@ -131,7 +148,7 @@
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<property name="group">manual</property>
<property name="group">ascending</property>
</object>
<packing>
<property name="left_attach">1</property>
......@@ -244,10 +261,10 @@
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="datafieldoptionsdialog|label3">_Layout:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">layout</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -330,10 +347,10 @@
<object class="GtkLabel" id="showfromft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="datafieldoptionsdialog|showfromft">_From:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">from</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -344,10 +361,10 @@
<object class="GtkLabel" id="usingft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="datafieldoptionsdialog|usingft">_Using field:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">using</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -363,10 +380,10 @@
<object class="GtkLabel" id="showft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="datafieldoptionsdialog|showft">items</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">layout</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">1</property>
......@@ -454,13 +471,53 @@
<property name="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="svxcorelo-SvxCheckListBox" id="hideitems:border">
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child internal-child="selection">
<object class="GtkTreeSelection" id="Check List Box-selection1"/>
<property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="hideitems">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="model">liststore2</property>
<property name="headers_visible">False</property>
<property name="search_column">1</property>
<property name="show_expanders">False</property>
<child internal-child="selection">
<object class="GtkTreeSelection" id="Macro Library List-selection2"/>
</child>
<child>
<object class="GtkTreeViewColumn" id="treeviewcolumn4">
<property name="resizable">True</property>
<property name="spacing">6</property>
<property name="alignment">0.5</property>
<child>
<object class="GtkCellRendererToggle" id="cellrenderer5"/>
<attributes>
<attribute name="visible">3</attribute>
<attribute name="active">0</attribute>
</attributes>
</child>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="treeviewcolumn5">
<property name="resizable">True</property>
<property name="spacing">6</property>
<child>
<object class="GtkCellRendererText" id="cellrenderer4"/>
<attributes>
<attribute name="text">1</attribute>
</attributes>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
......@@ -501,10 +558,10 @@
<object class="GtkLabel" id="hierarchyft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="datafieldoptionsdialog|hierarchyft">Hierarch_y:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">hierarchy</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
......
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