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

weld OfaSmartTagOptionsTabPage

Change-Id: I34b6c654e65fa827e8efc8fd6ba97dc73d15df17
Reviewed-on: https://gerrit.libreoffice.org/64472
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 1bfebbf2
......@@ -421,9 +421,9 @@ class OfaSmartTagOptionsTabPage : public SfxTabPage
private:
// controls
VclPtr<CheckBox> m_pMainCB;
VclPtr<SvxCheckListBox> m_pSmartTagTypesLB;
VclPtr<PushButton> m_pPropertiesPB;
std::unique_ptr<weld::CheckButton> m_xMainCB;
std::unique_ptr<weld::TreeView> m_xSmartTagTypesLB;
std::unique_ptr<weld::Button> m_xPropertiesPB;
/** Inserts items into m_aSmartTagTypesLB
......@@ -441,27 +441,26 @@ private:
Enables/disables all controls in the tab page (except from the
check box.
*/
DECL_LINK(CheckHdl, CheckBox&, void);
DECL_LINK(CheckHdl, weld::ToggleButton&, void);
/** Handler for the push button
Calls the displayPropertyPage function of the smart tag recognizer
associated with the currently selected smart tag type.
*/
DECL_LINK(ClickHdl, Button*, void);
DECL_LINK(ClickHdl, weld::Button&, void);
/** Handler for the list box
Enables/disables the properties push button if selection in the
smart tag types list box changes.
*/
DECL_LINK(SelectHdl, SvTreeListBox*, void);
DECL_LINK(SelectHdl, weld::TreeView&, void);
public:
/// construction via Create()
OfaSmartTagOptionsTabPage( vcl::Window* pParent, const SfxItemSet& rSet );
OfaSmartTagOptionsTabPage(TabPageParent pParent, const SfxItemSet& rSet);
virtual ~OfaSmartTagOptionsTabPage() override;
virtual void dispose() override;
static VclPtr<SfxTabPage> Create( TabPageParent pParent, const SfxItemSet* rAttrSet);
......
......@@ -2,7 +2,16 @@
<!-- Generated with glade 3.16.1 -->
<interface domain="cui">
<requires lib="gtk+" version="3.18"/>
<requires lib="LibreOffice" version="1.0"/>
<object class="GtkTreeStore" id="liststore2">
<columns>
<!-- column-name check1 -->
<column type="gboolean"/>
<!-- column-name text -->
<column type="gchararray"/>
<!-- column-name id -->
<column type="gchararray"/>
</columns>
</object>
<object class="GtkGrid" id="SmartTagOptionsPage">
<property name="visible">True</property>
<property name="can_focus">False</property>
......@@ -73,13 +82,52 @@
</packing>
</child>
<child>
<object class="svxcorelo-SvxCheckListBox" id="list:border">
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can_focus">False</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="list">
<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">0</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="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">0</attribute>
</attributes>
</child>
</object>
</child>
</object>
</child>
</object>
<packing>
......
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