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

weld OfaSmartTagOptionsTabPage

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