[Libreoffice-commits] core.git: cui/source cui/uiconfig cui/UIConfig_cui.mk

Caolán McNamara caolanm at redhat.com
Thu Oct 31 18:00:36 CET 2013


 cui/UIConfig_cui.mk          |    1 
 cui/source/customize/cfg.cxx |  106 ++++++++-----------------
 cui/source/customize/cfg.hrc |    4 
 cui/source/customize/cfg.src |   83 -------------------
 cui/source/inc/cfg.hxx       |   17 +---
 cui/source/inc/helpid.hrc    |    2 
 cui/uiconfig/ui/movemenu.ui  |  182 +++++++++++++++++++++++++++++++++++++------
 7 files changed, 201 insertions(+), 194 deletions(-)

New commits:
commit c1e2b7fee37b9f3fb54caea8046de5356e199b37
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Oct 31 16:59:49 2013 +0000

    convert new/move menu to .ui
    
    Change-Id: I77e46382cae6da03c3a972c9838afb3f8698c9a3

diff --git a/cui/UIConfig_cui.mk b/cui/UIConfig_cui.mk
index 3090851..830689b 100644
--- a/cui/UIConfig_cui.mk
+++ b/cui/UIConfig_cui.mk
@@ -54,6 +54,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
 	cui/uiconfig/ui/linestyletabpage \
 	cui/uiconfig/ui/macroselectordialog \
 	cui/uiconfig/ui/messbox \
+	cui/uiconfig/ui/movemenu \
 	cui/uiconfig/ui/namedialog \
 	cui/uiconfig/ui/newtabledialog \
 	cui/uiconfig/ui/newtoolbardialog \
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 8605ade..eefab7d 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1611,8 +1611,6 @@ SvxConfigPage::SvxConfigPage(
     aDescriptionField.SetAutoScroll( sal_True );
     aDescriptionField.EnableCursor( sal_False );
 
-    aMoveUpButton.SetAccessibleName(CUI_RES(BUTTON_STR_UP));
-    aMoveDownButton.SetAccessibleName(CUI_RES(BUTTON_STR_DOWN));
     aMoveUpButton.SetAccessibleRelationMemberOf(&aContentsSeparator);
     aMoveDownButton.SetAccessibleRelationMemberOf(&aContentsSeparator);
     aNewTopLevelButton.SetAccessibleRelationMemberOf(&aTopLevelSeparator);
@@ -2741,20 +2739,15 @@ SaveInData* SvxMenuConfigPage::CreateSaveInData(
 SvxMainMenuOrganizerDialog::SvxMainMenuOrganizerDialog(
     Window* pParent, SvxEntries* entries,
     SvxConfigEntry* selection, bool bCreateMenu )
-    :
-    ModalDialog( pParent, CUI_RES( MD_MENU_ORGANISER ) ),
-    aMenuNameText( this, CUI_RES( TXT_MENU_NAME ) ),
-    aMenuNameEdit( this, CUI_RES( EDIT_MENU_NAME ) ),
-    aMenuListText( this, CUI_RES( TXT_MENU ) ),
-    aMenuListBox( this, CUI_RES( BOX_MAIN_MENUS ) ),
-    aMoveUpButton( this, CUI_RES( BTN_MENU_UP ) ),
-    aMoveDownButton( this, CUI_RES( BTN_MENU_DOWN ) ),
-    aOKButton( this, CUI_RES( BTN_MENU_ADD ) ),
-    aCloseButton( this, CUI_RES( BTN_MENU_CLOSE ) ),
-    aHelpButton( this, CUI_RES( BTN_MENU_HELP ) ),
-    bModified( sal_False )
+    : ModalDialog(pParent, "MoveMenuDialog", "cui/ui/movemenu.ui")
+    , bModified(false)
 {
-    FreeResource();
+    get(m_pMenuBox, "namebox");
+    get(m_pMenuNameEdit, "menuname");
+    get(m_pMoveUpButton, "up");
+    get(m_pMoveDownButton, "down");
+    get(m_pMenuListBox, "menulist");
+    m_pMenuListBox->set_height_request(m_pMenuListBox->GetTextHeight() * 12);
 
     // Copy the entries list passed in
     if ( entries != NULL )
@@ -2769,13 +2762,13 @@ SvxMainMenuOrganizerDialog::SvxMainMenuOrganizerDialog(
         {
             pEntry = *iter;
             pLBEntry =
-                aMenuListBox.InsertEntry( stripHotKey( pEntry->GetName() ) );
+                m_pMenuListBox->InsertEntry( stripHotKey( pEntry->GetName() ) );
             pLBEntry->SetUserData( pEntry );
             pEntries->push_back( pEntry );
 
             if ( pEntry == selection )
             {
-                aMenuListBox.Select( pLBEntry );
+                m_pMenuListBox->Select( pLBEntry );
             }
             ++iter;
         }
@@ -2795,63 +2788,32 @@ SvxMainMenuOrganizerDialog::SvxMainMenuOrganizerDialog(
         pNewEntryData->SetMain( sal_True );
 
         pNewMenuEntry =
-            aMenuListBox.InsertEntry( stripHotKey( pNewEntryData->GetName() ) );
-        aMenuListBox.Select( pNewMenuEntry );
+            m_pMenuListBox->InsertEntry( stripHotKey( pNewEntryData->GetName() ) );
+        m_pMenuListBox->Select( pNewMenuEntry );
 
         pNewMenuEntry->SetUserData( pNewEntryData );
 
         pEntries->push_back( pNewEntryData );
 
-        aMenuNameEdit.SetText( newname );
-        aMenuNameEdit.SetModifyHdl(
+        m_pMenuNameEdit->SetText( newname );
+        m_pMenuNameEdit->SetModifyHdl(
             LINK( this, SvxMainMenuOrganizerDialog, ModifyHdl ) );
     }
     else
     {
-        Point p, newp;
-        Size s, news;
-
-        // get offset to bottom of name textfield from top of dialog
-        p = aMenuNameEdit.GetPosPixel();
-        s = aMenuNameEdit.GetSizePixel();
-        long offset = p.Y() + s.Height();
-
-        // reposition menu list and label
-        aMenuListText.SetPosPixel( aMenuNameText.GetPosPixel() );
-        aMenuListBox.SetPosPixel( aMenuNameEdit.GetPosPixel() );
-
-        // reposition up and down buttons
-        p = aMoveUpButton.GetPosPixel();
-        newp = Point( p.X(), p.Y() - offset );
-        aMoveUpButton.SetPosPixel( newp );
-
-        p = aMoveDownButton.GetPosPixel();
-        newp = Point( p.X(), p.Y() - offset );
-        aMoveDownButton.SetPosPixel( newp );
-
-        // change size of dialog
-        s = GetSizePixel();
-        news = Size( s.Width(), s.Height() - offset );
-        SetSizePixel( news );
-
         // hide name label and textfield
-        aMenuNameText.Hide();
-        aMenuNameEdit.Hide();
-
+        m_pMenuBox->Hide();
         // change the title
         SetText( CUI_RES( RID_SVXSTR_MOVE_MENU ) );
     }
 
-    aMenuListBox.SetSelectHdl(
+    m_pMenuListBox->SetSelectHdl(
         LINK( this, SvxMainMenuOrganizerDialog, SelectHdl ) );
 
-    aMoveUpButton.SetClickHdl (
+    m_pMoveUpButton->SetClickHdl (
         LINK( this, SvxMainMenuOrganizerDialog, MoveHdl) );
-    aMoveDownButton.SetClickHdl (
+    m_pMoveDownButton->SetClickHdl (
         LINK( this, SvxMainMenuOrganizerDialog, MoveHdl) );
-
-    aMoveUpButton.SetAccessibleName(CUI_RES(BUTTON_STR_UP));
-    aMoveDownButton.SetAccessibleName(CUI_RES(BUTTON_STR_DOWN));
 }
 
 IMPL_LINK(SvxMainMenuOrganizerDialog, ModifyHdl, Edit*, pEdit)
@@ -2859,7 +2821,7 @@ IMPL_LINK(SvxMainMenuOrganizerDialog, ModifyHdl, Edit*, pEdit)
     (void)pEdit;
 
     // if the Edit control is empty do not change the name
-    if ( aMenuNameEdit.GetText() == "" )
+    if (m_pMenuNameEdit->GetText().isEmpty())
     {
         return 0;
     }
@@ -2867,9 +2829,9 @@ IMPL_LINK(SvxMainMenuOrganizerDialog, ModifyHdl, Edit*, pEdit)
     SvxConfigEntry* pNewEntryData =
         (SvxConfigEntry*) pNewMenuEntry->GetUserData();
 
-    pNewEntryData->SetName( aMenuNameEdit.GetText() );
+    pNewEntryData->SetName(m_pMenuNameEdit->GetText());
 
-    aMenuListBox.SetEntryText( pNewMenuEntry, pNewEntryData->GetName() );
+    m_pMenuListBox->SetEntryText( pNewMenuEntry, pNewEntryData->GetName() );
 
     return 0;
 }
@@ -2888,17 +2850,17 @@ IMPL_LINK( SvxMainMenuOrganizerDialog, SelectHdl, Control*, pCtrl )
 void SvxMainMenuOrganizerDialog::UpdateButtonStates()
 {
     // Disable Up and Down buttons depending on current selection
-    SvTreeListEntry* selection = aMenuListBox.GetCurEntry();
-    SvTreeListEntry* first = aMenuListBox.First();
-    SvTreeListEntry* last = aMenuListBox.Last();
+    SvTreeListEntry* selection = m_pMenuListBox->GetCurEntry();
+    SvTreeListEntry* first = m_pMenuListBox->First();
+    SvTreeListEntry* last = m_pMenuListBox->Last();
 
-    aMoveUpButton.Enable( selection != first );
-    aMoveDownButton.Enable( selection != last );
+    m_pMoveUpButton->Enable( selection != first );
+    m_pMoveDownButton->Enable( selection != last );
 }
 
 IMPL_LINK( SvxMainMenuOrganizerDialog, MoveHdl, Button *, pButton )
 {
-    SvTreeListEntry *pSourceEntry = aMenuListBox.FirstSelected();
+    SvTreeListEntry *pSourceEntry = m_pMenuListBox->FirstSelected();
     SvTreeListEntry *pTargetEntry = NULL;
 
     if ( !pSourceEntry )
@@ -2906,15 +2868,15 @@ IMPL_LINK( SvxMainMenuOrganizerDialog, MoveHdl, Button *, pButton )
         return 0;
     }
 
-    if ( pButton == &aMoveDownButton )
+    if (pButton == m_pMoveDownButton)
     {
-        pTargetEntry = aMenuListBox.NextSibling( pSourceEntry );
+        pTargetEntry = m_pMenuListBox->NextSibling( pSourceEntry );
     }
-    else if ( pButton == &aMoveUpButton )
+    else if (pButton == m_pMoveUpButton)
     {
         // Move Up is just a Move Down with the source and target reversed
         pTargetEntry = pSourceEntry;
-        pSourceEntry = aMenuListBox.PrevSibling( pTargetEntry );
+        pSourceEntry = m_pMenuListBox->PrevSibling( pTargetEntry );
     }
 
     if ( pSourceEntry != NULL && pTargetEntry != NULL )
@@ -2936,8 +2898,8 @@ IMPL_LINK( SvxMainMenuOrganizerDialog, MoveHdl, Button *, pButton )
         if ( iter1 != end && iter2 != end )
         {
             std::swap( *iter1, *iter2 );
-            aMenuListBox.GetModel()->Move( pSourceEntry, pTargetEntry );
-            aMenuListBox.MakeVisible( pSourceEntry );
+            m_pMenuListBox->GetModel()->Move( pSourceEntry, pTargetEntry );
+            m_pMenuListBox->MakeVisible( pSourceEntry );
 
             bModified = sal_True;
         }
@@ -2958,7 +2920,7 @@ SvxEntries* SvxMainMenuOrganizerDialog::GetEntries()
 
 SvxConfigEntry* SvxMainMenuOrganizerDialog::GetSelectedEntry()
 {
-    return (SvxConfigEntry*)aMenuListBox.FirstSelected()->GetUserData();
+    return (SvxConfigEntry*)m_pMenuListBox->FirstSelected()->GetUserData();
 }
 
 const OUString&
diff --git a/cui/source/customize/cfg.hrc b/cui/source/customize/cfg.hrc
index 07ea819..593cbe5 100644
--- a/cui/source/customize/cfg.hrc
+++ b/cui/source/customize/cfg.hrc
@@ -62,7 +62,6 @@
 #define QBX_CONFIRM_RESTORE_DEFAULT (66 + CFG_OFFSET)
 #define QBX_CONFIRM_DELETE_TOOLBAR (67 + CFG_OFFSET)
 
-#define MD_MENU_ORGANISER (79 + CFG_OFFSET)
 #define TXT_MENU (80 + CFG_OFFSET)
 #define BOX_MAIN_MENUS (81 + CFG_OFFSET)
 #define BTN_MENU_UP (82 + CFG_OFFSET)
@@ -93,7 +92,4 @@
 #define MD_BTN_OK (122 + CFG_OFFSET)
 #define FI_INFO (123 + CFG_OFFSET)
 
-#define BUTTON_STR_UP   (130 + CFG_OFFSET)
-#define BUTTON_STR_DOWN (131 + CFG_OFFSET)
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/customize/cfg.src b/cui/source/customize/cfg.src
index bfcab62..6ba7277 100644
--- a/cui/source/customize/cfg.src
+++ b/cui/source/customize/cfg.src
@@ -410,80 +410,6 @@ String RID_SVXSTR_MENU_ADDCOMMANDS_DESCRIPTION
     Text [ en-US ] = "To add a command to a menu, select the category and then the command. You can also drag the command to the Commands list of the Menus tab page in the Customize dialog.";
 };
 
-ModalDialog MD_MENU_ORGANISER
-{
-    OutputSize = TRUE ;
-    Size = MAP_APPFONT ( 172 , 154 ) ;
-    Text [ en-US ] = "New Menu" ;
-    SvLook = TRUE ;
-    Moveable = TRUE ;
-    HelpId = HID_SVX_CONFIG_MENU_ORGANIZER;
-    FixedText TXT_MENU_NAME
-    {
-        Pos = MAP_APPFONT ( 6 , 8 ) ;
-        Size = MAP_APPFONT ( 93 , 8 ) ;
-        Group = TRUE ;
-        Left = TRUE ;
-        Text [ en-US ] = "Menu name" ;
-    };
-    Edit EDIT_MENU_NAME
-    {
-        HelpID = "cui:Edit:MD_MENU_ORGANISER:EDIT_MENU_NAME";
-        Border = TRUE ;
-        Pos = MAP_APPFONT ( 6 , 19 ) ;
-        Size = MAP_APPFONT ( 93 , 12 ) ;
-        TabStop = TRUE ;
-    };
-    FixedText TXT_MENU
-    {
-        Pos = MAP_APPFONT ( 6 , 37 ) ;
-        Size = MAP_APPFONT ( 93 , 8 ) ;
-        Group = TRUE ;
-        Left = TRUE ;
-        Text [ en-US ] = "Menu position" ;
-    };
-    Control BOX_MAIN_MENUS
-    {
-        HelpId = HID_SVX_CONFIG_MENU_LISTBOX ;
-        Border = TRUE ;
-        Pos = MAP_APPFONT ( 6 , 48 ) ;
-        Size = MAP_APPFONT ( 93 , 100 ) ;
-        TabStop = TRUE ;
-    };
-    ImageButton BTN_MENU_UP
-    {
-        HelpID = "cui:ImageButton:MD_MENU_ORGANISER:BTN_MENU_UP";
-        Pos = MAP_APPFONT ( 102 , 80 ) ;
-        Size = MAP_APPFONT ( 14 , 14 ) ;
-        TabStop = TRUE ;
-        Symbol = IMAGEBUTTON_ARROW_UP ;
-    };
-    ImageButton BTN_MENU_DOWN
-    {
-        HelpID = "cui:ImageButton:MD_MENU_ORGANISER:BTN_MENU_DOWN";
-        Pos = MAP_APPFONT ( 102 , 97 ) ;
-        Size = MAP_APPFONT ( 14 , 14 ) ;
-        TabStop = TRUE ;
-        Symbol = IMAGEBUTTON_ARROW_DOWN ;
-    };
-    OKButton BTN_MENU_ADD
-    {
-        DefButton = TRUE;
-        Pos = MAP_APPFONT ( 119 , 6 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-    };
-    CancelButton BTN_MENU_CLOSE
-    {
-        Pos = MAP_APPFONT ( 119 , 23 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-    };
-    HelpButton BTN_MENU_HELP
-    {
-        Pos = MAP_APPFONT ( 119 , 40 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-    };
-};
-
 #ifndef IMAGE_STDBTN_COLOR
 #define IMAGE_STDBTN_COLOR Color { Red = 0xFFFF; Green = 0x0000; Blue = 0xFFFF; }
 #endif
@@ -732,13 +658,4 @@ String RID_SVXSTR_RENAME_TOOLBAR
     Text [ en-US ] = "Rename Toolbar";
 };
 
-String BUTTON_STR_UP
-{
-    Text [ en-US ] = "Up";
-};
-String BUTTON_STR_DOWN
-{
-    Text [ en-US ] = "Down";
-};
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx
index 89ed587..d4027f1 100644
--- a/cui/source/inc/cfg.hxx
+++ b/cui/source/inc/cfg.hxx
@@ -19,9 +19,10 @@
 #ifndef INCLUDED_CUI_SOURCE_INC_CFG_HXX
 #define INCLUDED_CUI_SOURCE_INC_CFG_HXX
 
-#include <vcl/lstbox.hxx>
 #include <vcl/fixed.hxx>
 #include <vcl/group.hxx>
+#include <vcl/layout.hxx>
+#include <vcl/lstbox.hxx>
 #include <vcl/menubtn.hxx>
 #include <vcl/toolbox.hxx>
 #include <svtools/treelistbox.hxx>
@@ -510,15 +511,11 @@ public:
 
 class SvxMainMenuOrganizerDialog : public ModalDialog
 {
-    FixedText       aMenuNameText;
-    Edit            aMenuNameEdit;
-    FixedText       aMenuListText;
-    SvTreeListBox   aMenuListBox;
-    ImageButton     aMoveUpButton;
-    ImageButton     aMoveDownButton;
-    OKButton        aOKButton;
-    CancelButton    aCloseButton;
-    HelpButton      aHelpButton;
+    VclContainer*   m_pMenuBox;
+    Edit*           m_pMenuNameEdit;
+    SvTreeListBox*  m_pMenuListBox;
+    PushButton*     m_pMoveUpButton;
+    PushButton*     m_pMoveDownButton;
 
     SvxEntries*     pEntries;
     SvTreeListEntry*    pNewMenuEntry;
diff --git a/cui/source/inc/helpid.hrc b/cui/source/inc/helpid.hrc
index 4685beb..d7b1c06 100644
--- a/cui/source/inc/helpid.hrc
+++ b/cui/source/inc/helpid.hrc
@@ -154,7 +154,6 @@
 #define HID_HANGULDLG_SUGGESTIONS "CUI_HID_HANGULDLG_SUGGESTIONS"
 #define HID_HANGULDLG_SUGGESTIONS_GRID "CUI_HID_HANGULDLG_SUGGESTIONS_GRID"
 #define HID_HANGULDLG_SUGGESTIONS_LIST "CUI_HID_HANGULDLG_SUGGESTIONS_LIST"
-#define HID_SVX_CONFIG_MENU_ORGANIZER "CUI_HID_SVX_CONFIG_MENU_ORGANIZER"
 #define HID_SVX_CONFIG_ICON_SELECTOR "CUI_HID_SVX_CONFIG_ICON_SELECTOR"
 #define HID_SVX_CONFIG_NAME_SUBMENU "CUI_HID_SVX_CONFIG_NAME_SUBMENU"
 #define HID_SVX_CONFIG_RENAME_MENU "CUI_HID_SVX_CONFIG_RENAME_MENU"
@@ -164,7 +163,6 @@
 #define HID_SVX_NEW_TOOLBAR "CUI_HID_SVX_NEW_TOOLBAR"
 #define HID_SVX_MODIFY_TOOLBAR "CUI_HID_SVX_MODIFY_TOOLBAR"
 #define HID_SVX_NEW_TOOLBAR_ITEM "CUI_HID_SVX_NEW_TOOLBAR_ITEM"
-#define HID_SVX_CONFIG_MENU_LISTBOX "CUI_HID_SVX_CONFIG_MENU_LISTBOX"
 #define HID_SVX_MODIFY_TOOLBAR_ITEM "CUI_HID_SVX_MODIFY_TOOLBAR_ITEM"
 #define HID_SVX_SAVE_IN "CUI_HID_SVX_SAVE_IN"
 #define HID_OPTIONS_MULTIPATH_LIST "CUI_HID_OPTIONS_MULTIPATH_LIST"
diff --git a/cui/uiconfig/ui/movemenu.ui b/cui/uiconfig/ui/movemenu.ui
index 4632602..cdada84 100644
--- a/cui/uiconfig/ui/movemenu.ui
+++ b/cui/uiconfig/ui/movemenu.ui
@@ -1,20 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
+  <!-- interface-requires LibreOffice 1.0 -->
   <!-- interface-requires gtk+ 3.0 -->
-  <object class="GtkAction" id="action1"/>
-  <object class="GtkDialog" id="Move Menu">
+  <object class="GtkDialog" id="MoveMenuDialog">
     <property name="can_focus">False</property>
-    <property name="border_width">5</property>
+    <property name="border_width">6</property>
+    <property name="title" translatable="yes">Move Menu</property>
     <property name="type_hint">dialog</property>
     <child internal-child="vbox">
       <object class="GtkBox" id="dialog-vbox1">
         <property name="can_focus">False</property>
-        <property name="spacing">2</property>
+        <property name="orientation">vertical</property>
+        <property name="spacing">12</property>
         <child internal-child="action_area">
           <object class="GtkButtonBox" id="dialog-action_area1">
             <property name="can_focus">False</property>
-            <property name="orientation">vertical</property>
-            <property name="layout_style">start</property>
+            <property name="layout_style">end</property>
             <child>
               <object class="GtkButton" id="ok">
                 <property name="label">gtk-ok</property>
@@ -69,14 +70,96 @@
           <object class="GtkBox" id="box1">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
+            <property name="hexpand">True</property>
+            <property name="vexpand">True</property>
             <property name="orientation">vertical</property>
-            <property name="spacing">6</property>
+            <property name="spacing">12</property>
             <child>
-              <object class="GtkLabel" id="label1">
+              <object class="GtkBox" id="namebox">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
-                <property name="label" translatable="yes">Menu _position</property>
-                <property name="use_underline">True</property>
+                <property name="hexpand">True</property>
+                <property name="orientation">vertical</property>
+                <property name="spacing">6</property>
+                <child>
+                  <object class="GtkLabel" id="menunameft">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="xalign">0</property>
+                    <property name="label" translatable="yes">Menu name</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">menuname</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">0</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkBox" id="box6">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="hexpand">True</property>
+                    <property name="spacing">12</property>
+                    <child>
+                      <object class="GtkEntry" id="menuname">
+                        <property name="visible">True</property>
+                        <property name="can_focus">True</property>
+                        <property name="hexpand">True</property>
+                        <property name="invisible_char">•</property>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">0</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkBox" id="box7">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="valign">center</property>
+                        <property name="orientation">vertical</property>
+                        <property name="spacing">6</property>
+                        <child>
+                          <object class="GtkImage" id="up1">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="stock">gtk-go-up</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">0</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkImage" id="down1">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="stock">gtk-go-down</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">1</property>
+                          </packing>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">1</property>
+                      </packing>
+                    </child>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">1</property>
+                  </packing>
+                </child>
               </object>
               <packing>
                 <property name="expand">False</property>
@@ -88,14 +171,17 @@
               <object class="GtkBox" id="box2">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
+                <property name="hexpand">True</property>
+                <property name="vexpand">True</property>
+                <property name="orientation">vertical</property>
+                <property name="spacing">6</property>
                 <child>
-                  <object class="GtkScrolledWindow" id="scrolledwindow1">
+                  <object class="GtkLabel" id="label1">
                     <property name="visible">True</property>
-                    <property name="can_focus">True</property>
-                    <property name="shadow_type">in</property>
-                    <child>
-                      <placeholder/>
-                    </child>
+                    <property name="can_focus">False</property>
+                    <property name="xalign">0</property>
+                    <property name="label" translatable="yes">Menu _position</property>
+                    <property name="use_underline">True</property>
                   </object>
                   <packing>
                     <property name="expand">False</property>
@@ -107,13 +193,15 @@
                   <object class="GtkBox" id="box3">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="orientation">vertical</property>
-                    <property name="spacing">4</property>
+                    <property name="hexpand">True</property>
+                    <property name="vexpand">True</property>
+                    <property name="spacing">12</property>
                     <child>
-                      <object class="GtkImage" id="up">
+                      <object class="svtlo-SvTreeListBox" id="menulist">
                         <property name="visible">True</property>
-                        <property name="can_focus">False</property>
-                        <property name="stock">gtk-go-up</property>
+                        <property name="can_focus">True</property>
+                        <property name="hexpand">True</property>
+                        <property name="vexpand">True</property>
                       </object>
                       <packing>
                         <property name="expand">False</property>
@@ -122,10 +210,48 @@
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkImage" id="down">
+                      <object class="GtkBox" id="box4">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="stock">gtk-go-down</property>
+                        <property name="valign">center</property>
+                        <property name="orientation">vertical</property>
+                        <property name="spacing">6</property>
+                        <child>
+                          <object class="GtkButton" id="up">
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="receives_default">True</property>
+                            <property name="image">image1</property>
+                            <child internal-child="accessible">
+                              <object class="AtkObject" id="up-atkobject">
+                                <property name="AtkObject::accessible-name" translatable="yes">Up</property>
+                              </object>
+                            </child>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">0</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkButton" id="down">
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="receives_default">True</property>
+                            <property name="image">image2</property>
+                            <child internal-child="accessible">
+                              <object class="AtkObject" id="down-atkobject">
+                                <property name="AtkObject::accessible-name" translatable="yes">Down</property>
+                              </object>
+                            </child>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">1</property>
+                          </packing>
+                        </child>
                       </object>
                       <packing>
                         <property name="expand">False</property>
@@ -162,4 +288,14 @@
       <action-widget response="0">help</action-widget>
     </action-widgets>
   </object>
+  <object class="GtkImage" id="image1">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="stock">gtk-go-up</property>
+  </object>
+  <object class="GtkImage" id="image2">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="stock">gtk-go-down</property>
+  </object>
 </interface>


More information about the Libreoffice-commits mailing list