[Libreoffice-commits] core.git: Branch 'private/bubli/textboxchaining' - cui/source cui/uiconfig

Katarina Behrens Katarina.Behrens at cib.de
Fri Dec 4 14:30:18 PST 2015


 cui/source/inc/textchaining.hxx        |    6 ++++++
 cui/source/tabpages/textchaining.cxx   |    7 ++++++-
 cui/uiconfig/ui/textchainingtabpage.ui |    8 ++++++--
 3 files changed, 18 insertions(+), 3 deletions(-)

New commits:
commit 0c84aea5c09c08c45a7e7a8ae07d73dd75608463
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date:   Fri Dec 4 19:58:13 2015 +0100

    Add widget variables, related get/dispose calls
    
    + mnemonic widgets
    
    Change-Id: I1cfc4c096ea65db8d1b650225106db477b19cf4a

diff --git a/cui/source/inc/textchaining.hxx b/cui/source/inc/textchaining.hxx
index 86e73a3..6f8f66c 100644
--- a/cui/source/inc/textchaining.hxx
+++ b/cui/source/inc/textchaining.hxx
@@ -3,6 +3,8 @@
 
 #include <sfx2/tabdlg.hxx>
 #include <svx/svdattr.hxx>
+#include <vcl/lstbox.hxx>
+#include <vcl/layout.hxx>
 
 class SdrView;
 
@@ -11,6 +13,10 @@ class SvxTextChainingPage : public SfxTabPage
 private:
     static const sal_uInt16     pRanges[];
 
+    VclPtr<VclGrid> mpBoxLinks;
+    VclPtr<ListBox> mpLBPrevLink;
+    VclPtr<ListBox> mpLBNextLink;
+
 public:
     SvxTextChainingPage( vcl::Window* pWindow, const SfxItemSet& rInAttrs );
     virtual ~SvxTextChainingPage();
diff --git a/cui/source/tabpages/textchaining.cxx b/cui/source/tabpages/textchaining.cxx
index c857178..cffa7eb 100644
--- a/cui/source/tabpages/textchaining.cxx
+++ b/cui/source/tabpages/textchaining.cxx
@@ -12,7 +12,9 @@ const sal_uInt16 SvxTextChainingPage::pRanges[] =
 SvxTextChainingPage::SvxTextChainingPage(vcl::Window* pWindow, const SfxItemSet& rInAttrs)
     : SfxTabPage(pWindow,"TextChainingPage","cui/ui/textchainingtabpage.ui", &rInAttrs)
 {
-    SfxItemPool* pPool = rInAttrs.GetPool();
+    get(mpBoxLinks, "box_textlink");
+    get(mpLBPrevLink,"previouslink");
+    get(mpLBNextLink, "nextlink");
 }
 
 SvxTextChainingPage::~SvxTextChainingPage()
@@ -22,6 +24,9 @@ SvxTextChainingPage::~SvxTextChainingPage()
 
 void SvxTextChainingPage::dispose()
 {
+    mpLBPrevLink.dispose();
+    mpLBNextLInk.dispose();
+    mpBoxLinks.dispose();
 }
 
 void SvxTextChainingPage::Reset( const SfxItemSet* rAttrs )
diff --git a/cui/uiconfig/ui/textchainingtabpage.ui b/cui/uiconfig/ui/textchainingtabpage.ui
index f5cb4f2..2cdb163 100644
--- a/cui/uiconfig/ui/textchainingtabpage.ui
+++ b/cui/uiconfig/ui/textchainingtabpage.ui
@@ -33,6 +33,8 @@
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                     <property name="label" translatable="yes">Previous link:</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">previouslink</property>
                   </object>
                   <packing>
                     <property name="left_attach">0</property>
@@ -44,6 +46,8 @@
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                     <property name="label" translatable="yes">Next link:</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">nextlink</property>
                   </object>
                   <packing>
                     <property name="left_attach">0</property>
@@ -51,7 +55,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkComboBox" id="combobox1">
+                  <object class="GtkComboBox" id="previouslink">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                   </object>
@@ -61,7 +65,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkComboBox" id="combobox2">
+                  <object class="GtkComboBox" id="nextlink">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                   </object>


More information about the Libreoffice-commits mailing list