[Libreoffice-commits] core.git: sw/AllLangResTarget_sw.mk sw/inc sw/source sw/uiconfig sw/UIConfig_swriter.mk

Caolán McNamara caolanm at redhat.com
Mon Apr 29 01:05:04 PDT 2013


 sw/AllLangResTarget_sw.mk                     |    1 
 sw/UIConfig_swriter.mk                        |    1 
 sw/inc/helpid.h                               |    1 
 sw/inc/swabstdlg.hxx                          |    5 
 sw/source/ui/dialog/swdlgfact.cxx             |   21 ---
 sw/source/ui/dialog/swdlgfact.hxx             |    5 
 sw/source/ui/fldui/DropDownFieldDialog.cxx    |   60 +++-----
 sw/source/ui/fldui/DropDownFieldDialog.hrc    |   31 ----
 sw/source/ui/fldui/DropDownFieldDialog.src    |   87 ------------
 sw/source/ui/inc/DropDownFieldDialog.hxx      |   12 -
 sw/source/ui/wrtsh/wrtsh2.cxx                 |    2 
 sw/uiconfig/swriter/ui/dropdownfielddialog.ui |  180 ++++++++++++++++++++++++++
 12 files changed, 219 insertions(+), 187 deletions(-)

New commits:
commit 9069a4a4775b89291eddb5cdc1d81263a7e772f5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Apr 28 10:42:49 2013 +0100

    convert drop down field dialog to .ui
    
    Change-Id: If629068fee488abbad9704b8300e59ea4c5c8605

diff --git a/sw/AllLangResTarget_sw.mk b/sw/AllLangResTarget_sw.mk
index 8a53f1a..7c0b1b0 100644
--- a/sw/AllLangResTarget_sw.mk
+++ b/sw/AllLangResTarget_sw.mk
@@ -108,7 +108,6 @@ $(eval $(call gb_SrsTarget_add_files,sw/res,\
     sw/source/ui/envelp/labfmt.src \
     sw/source/ui/envelp/labprt.src \
     sw/source/ui/envelp/mailmrge.src \
-    sw/source/ui/fldui/DropDownFieldDialog.src \
     sw/source/ui/fldui/flddb.src \
     sw/source/ui/fldui/flddinf.src \
     sw/source/ui/fldui/flddok.src \
diff --git a/sw/UIConfig_swriter.mk b/sw/UIConfig_swriter.mk
index bfee0da..6a1c63c 100644
--- a/sw/UIConfig_swriter.mk
+++ b/sw/UIConfig_swriter.mk
@@ -72,6 +72,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
 	sw/uiconfig/swriter/ui/columnpage \
 	sw/uiconfig/swriter/ui/columnwidth \
 	sw/uiconfig/swriter/ui/converttexttable \
+	sw/uiconfig/swriter/ui/dropdownfielddialog \
 	sw/uiconfig/swriter/ui/endnotepage \
 	sw/uiconfig/swriter/ui/editcategories \
 	sw/uiconfig/swriter/ui/editsectiondialog \
diff --git a/sw/inc/helpid.h b/sw/inc/helpid.h
index 4fca677..fc5a1ca 100644
--- a/sw/inc/helpid.h
+++ b/sw/inc/helpid.h
@@ -421,7 +421,6 @@
 #define HID_MODULE_TOOLBOX                                      "SW_HID_MODULE_TOOLBOX"
 #define HID_SECTION_INDENTS_PAGE                                "SW_HID_SECTION_INDENTS_PAGE"
 
-#define HID_FLD_DROPDOWN                                        "SW_HID_FLD_DROPDOWN"
 #define HID_MM_DOCSELECTPAGE                                    "SW_HID_MM_DOCSELECTPAGE"
 #define HID_MM_OUTPUTTYPEPAGE                                   "SW_HID_MM_OUTPUTTYPEPAGE"
 #define HID_MM_ADDRESSBLOCKPAGE                                 "SW_HID_MM_ADDRESSBLOCKPAGE"
diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx
index 8a4c45e..df02c3b 100644
--- a/sw/inc/swabstdlg.hxx
+++ b/sw/inc/swabstdlg.hxx
@@ -350,8 +350,9 @@ public:
         const SwDBData& rData,  int nResId) = 0;
     virtual SfxAbstractTabDialog * CreateSwFootNoteOptionDlg( Window *pParent, SwWrtShell &rSh,int nResId) = 0;//add for  SwFootNoteOptionDlg
 
-    virtual AbstractDropDownFieldDialog * CreateDropDownFieldDialog ( Window *pParent, SwWrtShell &rSh, //add for DropDownFieldDialog
-                                SwField* pField,int nResId, sal_Bool bNextButton = sal_False ) = 0;
+    //add for DropDownFieldDialog
+    virtual AbstractDropDownFieldDialog * CreateDropDownFieldDialog(Window *pParent, SwWrtShell &rSh,
+        SwField* pField, sal_Bool bNextButton = sal_False) = 0;
     virtual SfxAbstractTabDialog* CreateSwEnvDlg ( Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, sal_Bool bInsert,int nResId ) = 0; //add for SwEnvDlg
 
 
diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx
index 3fc1ef0..dffb169 100644
--- a/sw/source/ui/dialog/swdlgfact.cxx
+++ b/sw/source/ui/dialog/swdlgfact.cxx
@@ -777,23 +777,12 @@ SfxAbstractTabDialog *  SwAbstractDialogFactory_Impl::CreateSwFootNoteOptionDlg(
     return 0;
 }
 
-AbstractDropDownFieldDialog *  SwAbstractDialogFactory_Impl::CreateDropDownFieldDialog ( Window *pParent, SwWrtShell &rSh, //add for DropDownFieldDialog
-                                SwField* pField,int nResId, sal_Bool bNextButton )
+//add for DropDownFieldDialog
+AbstractDropDownFieldDialog *  SwAbstractDialogFactory_Impl::CreateDropDownFieldDialog(Window *pParent,
+    SwWrtShell &rSh, SwField* pField, sal_Bool bNextButton)
 {
-    sw::DropDownFieldDialog* pDlg=NULL;
-    switch ( nResId )
-    {
-        case DLG_FLD_DROPDOWN :
-            pDlg = new sw::DropDownFieldDialog( pParent, rSh, pField, bNextButton );
-            break;
-
-        default:
-            break;
-    }
-
-    if ( pDlg )
-        return new AbstractDropDownFieldDialog_Impl( pDlg );
-    return 0;
+    sw::DropDownFieldDialog* pDlg = new sw::DropDownFieldDialog(pParent, rSh, pField, bNextButton);
+    return new AbstractDropDownFieldDialog_Impl( pDlg );
 }
 
 SfxAbstractTabDialog* SwAbstractDialogFactory_Impl::CreateSwEnvDlg ( Window* pParent, const SfxItemSet& rSet,
diff --git a/sw/source/ui/dialog/swdlgfact.hxx b/sw/source/ui/dialog/swdlgfact.hxx
index cf74c83..791a6ac 100644
--- a/sw/source/ui/dialog/swdlgfact.hxx
+++ b/sw/source/ui/dialog/swdlgfact.hxx
@@ -454,8 +454,9 @@ public:
         const SwDBData& rData,  int nResId);
     virtual SfxAbstractTabDialog * CreateSwFootNoteOptionDlg( Window *pParent, SwWrtShell &rSh,int nResId);//add for  SwFootNoteOptionDlg
 
-    virtual AbstractDropDownFieldDialog * CreateDropDownFieldDialog ( Window *pParent, SwWrtShell &rSh, //add for DropDownFieldDialog
-                                SwField* pField,int nResId, sal_Bool bNextButton = sal_False );
+    //add for DropDownFieldDialog
+    virtual AbstractDropDownFieldDialog * CreateDropDownFieldDialog (Window *pParent, SwWrtShell &rSh,
+        SwField* pField, sal_Bool bNextButton = sal_False);
     virtual SfxAbstractTabDialog* CreateSwEnvDlg ( Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, sal_Bool bInsert,int nResId ); //add for SwEnvDlg
     virtual AbstractSwLabDlg* CreateSwLabDlg ( Window* pParent, const SfxItemSet& rSet, //add for SwLabDlg
                                                      SwNewDBMgr* pNewDBMgr, sal_Bool bLabel,int nResId  );
diff --git a/sw/source/ui/fldui/DropDownFieldDialog.cxx b/sw/source/ui/fldui/DropDownFieldDialog.cxx
index d6834dd..fdebcbb 100644
--- a/sw/source/ui/fldui/DropDownFieldDialog.cxx
+++ b/sw/source/ui/fldui/DropDownFieldDialog.cxx
@@ -24,7 +24,6 @@
 #include <DropDownFieldDialog.hxx>
 #include <flddropdown.hxx>
 #include <fldui.hrc>
-#include <DropDownFieldDialog.hrc>
 
 using namespace ::com::sun::star;
 
@@ -32,36 +31,26 @@ using namespace ::com::sun::star;
 /*--------------------------------------------------------------------
     Description: edit insert-field
  --------------------------------------------------------------------*/
-sw::DropDownFieldDialog::DropDownFieldDialog( Window *pParent, SwWrtShell &rS,
-                              SwField* pField, sal_Bool bNextButton ) :
-
-    SvxStandardDialog(pParent,  SW_RES(DLG_FLD_DROPDOWN)),
-    aItemsFL(       this, SW_RES( FL_ITEMS       )),
-    aListItemsLB(   this, SW_RES( LB_LISTITEMS   )),
-
-    aOKPB(          this, SW_RES( PB_OK          )),
-    aCancelPB(      this, SW_RES( PB_CANCEL      )),
-    aNextPB(        this, SW_RES( PB_NEXT        )),
-    aHelpPB(        this, SW_RES( PB_HELP        )),
-
-    aEditPB(        this, SW_RES( PB_EDIT        )),
-
-    rSh( rS ),
-    pDropField(0)
+sw::DropDownFieldDialog::DropDownFieldDialog(Window *pParent, SwWrtShell &rS,
+                              SwField* pField, sal_Bool bNextButton)
+    : SvxStandardDialog(pParent, "DropdownFieldDialog",
+        "modules/swriter/ui/dropdownfielddialog.ui")
+    , rSh( rS )
+    , pDropField(0)
 {
+    get(m_pListItemsLB, "list");
+    m_pListItemsLB->SetDropDownLineCount(12);
+    m_pListItemsLB->set_width_request(m_pListItemsLB->approximate_char_width()*32);
+    get(m_pOKPB, "ok");
+    get(m_pNextPB, "next");
+    get(m_pEditPB, "edit");
+
     Link aButtonLk = LINK(this, DropDownFieldDialog, ButtonHdl);
-    aEditPB.SetClickHdl(aButtonLk);
+    m_pEditPB->SetClickHdl(aButtonLk);
     if( bNextButton )
     {
-        aNextPB.Show();
-        aNextPB.SetClickHdl(aButtonLk);
-    }
-    else
-    {
-        long nDiff = aCancelPB.GetPosPixel().Y() - aOKPB.GetPosPixel().Y();
-        Point aPos = aHelpPB.GetPosPixel();
-        aPos.Y() -= nDiff;
-        aHelpPB.SetPosPixel(aPos);
+        m_pNextPB->Show();
+        m_pNextPB->SetClickHdl(aButtonLk);
     }
     if( RES_DROPDOWN == pField->GetTyp()->Which() )
     {
@@ -73,26 +62,21 @@ sw::DropDownFieldDialog::DropDownFieldDialog( Window *pParent, SwWrtShell &rS,
         uno::Sequence< OUString > aItems = pDropField->GetItemSequence();
         const OUString* pArray = aItems.getConstArray();
         for(sal_Int32 i = 0; i < aItems.getLength(); i++)
-            aListItemsLB.InsertEntry(pArray[i]);
-        aListItemsLB.SelectEntry(pDropField->GetSelectedItem());
+            m_pListItemsLB->InsertEntry(pArray[i]);
+        m_pListItemsLB->SelectEntry(pDropField->GetSelectedItem());
     }
 
     sal_Bool bEnable = !rSh.IsCrsrReadonly();
-    aOKPB.Enable( bEnable );
+    m_pOKPB->Enable( bEnable );
 
-    aListItemsLB.GrabFocus();
-    FreeResource();
-}
-
-sw::DropDownFieldDialog::~DropDownFieldDialog()
-{
+    m_pListItemsLB->GrabFocus();
 }
 
 void sw::DropDownFieldDialog::Apply()
 {
     if(pDropField)
     {
-        OUString sSelect = aListItemsLB.GetSelectEntry();
+        OUString sSelect = m_pListItemsLB->GetSelectEntry();
         if(pDropField->GetPar1() != sSelect)
         {
             rSh.StartAllAction();
@@ -111,7 +95,7 @@ void sw::DropDownFieldDialog::Apply()
 
 IMPL_LINK(sw::DropDownFieldDialog, ButtonHdl, PushButton*, pButton)
 {
-    EndDialog(&aNextPB == pButton ? RET_OK : RET_YES );
+    EndDialog(m_pNextPB == pButton ? RET_OK : RET_YES );
     return 0;
 }
 
diff --git a/sw/source/ui/fldui/DropDownFieldDialog.hrc b/sw/source/ui/fldui/DropDownFieldDialog.hrc
deleted file mode 100644
index 7f7e62c..0000000
--- a/sw/source/ui/fldui/DropDownFieldDialog.hrc
+++ /dev/null
@@ -1,31 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _SW_DROPDOWNFIELDDIALOG_HRC
-#define _SW_DROPDOWNFIELDDIALOG_HRC
-#define FL_ITEMS            1
-#define LB_LISTITEMS        2
-#define PB_OK               3
-#define PB_CANCEL           4
-#define PB_NEXT             5
-#define PB_HELP             6
-#define PB_EDIT             7
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/fldui/DropDownFieldDialog.src b/sw/source/ui/fldui/DropDownFieldDialog.src
deleted file mode 100644
index 4e796d9..0000000
--- a/sw/source/ui/fldui/DropDownFieldDialog.src
+++ /dev/null
@@ -1,87 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "fldui.hrc"
-#include "DropDownFieldDialog.hrc"
-#include "helpid.h"
-ModalDialog DLG_FLD_DROPDOWN
-{
-    HelpID = HID_FLD_DROPDOWN ;
-    OutputSize = TRUE ;
-    Hide = TRUE ;
-    SVLook = TRUE ;
-    Size = MAP_APPFONT ( 194 , 119 ) ;
-    Text [ en-US ] = "Choose Item: " ;
-    Moveable = TRUE ;
-    FixedLine FL_ITEMS
-    {
-        Pos = MAP_APPFONT ( 6 , 3 ) ;
-        Size = MAP_APPFONT ( 127 , 8 ) ;
-        Text [ en-US ] = "Edit" ;
-    };
-    ListBox LB_LISTITEMS
-    {
-        HelpID = "sw:ListBox:DLG_FLD_DROPDOWN:LB_LISTITEMS";
-        Border = TRUE ;
-        Pos = MAP_APPFONT ( 12 , 14 ) ;
-        Size = MAP_APPFONT ( 115 , 99 ) ;
-        TabStop = TRUE ;
-        Sort = FALSE ;
-        AutoHScroll = TRUE ;
-    };
-    OKButton PB_OK
-    {
-        Pos = MAP_APPFONT ( 139 , 6 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        TabStop = TRUE ;
-        DefButton = TRUE ;
-    };
-    CancelButton PB_CANCEL
-    {
-        Pos = MAP_APPFONT ( 139 , 23 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        TabStop = TRUE ;
-    };
-    PushButton PB_NEXT
-    {
-        HelpID = "sw:PushButton:DLG_FLD_DROPDOWN:PB_NEXT";
-        Pos = MAP_APPFONT ( 139 , 40 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        TabStop = TRUE ;
-        Hide = TRUE ;
-        Text [ en-US ] = "~Next" ;
-    };
-    HelpButton PB_HELP
-    {
-        Pos = MAP_APPFONT ( 139 , 60 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        TabStop = TRUE ;
-    };
-    PushButton PB_EDIT
-    {
-        HelpID = "sw:PushButton:DLG_FLD_DROPDOWN:PB_EDIT";
-        Pos = MAP_APPFONT ( 139 , 99 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        TabStop = TRUE ;
-        Text [ en-US ] = "~Edit" ;
-    };
-
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/inc/DropDownFieldDialog.hxx b/sw/source/ui/inc/DropDownFieldDialog.hxx
index abcb5fa..cbc7177 100644
--- a/sw/source/ui/inc/DropDownFieldDialog.hxx
+++ b/sw/source/ui/inc/DropDownFieldDialog.hxx
@@ -35,15 +35,12 @@ namespace sw
 {
 class DropDownFieldDialog : public SvxStandardDialog
 {
-    FixedLine           aItemsFL;
-    ListBox             aListItemsLB;
+    ListBox*            m_pListItemsLB;
 
-    OKButton            aOKPB;
-    CancelButton        aCancelPB;
-    PushButton          aNextPB;
-    HelpButton          aHelpPB;
+    OKButton*           m_pOKPB;
+    PushButton*         m_pNextPB;
 
-    PushButton          aEditPB;
+    PushButton*         m_pEditPB;
 
     SwWrtShell          &rSh;
     SwDropDownField*    pDropField;
@@ -53,7 +50,6 @@ class DropDownFieldDialog : public SvxStandardDialog
 public:
     DropDownFieldDialog(   Window *pParent, SwWrtShell &rSh,
                                 SwField* pField, sal_Bool bNextButton = sal_False );
-    ~DropDownFieldDialog();
 };
 } //namespace sw
 
diff --git a/sw/source/ui/wrtsh/wrtsh2.cxx b/sw/source/ui/wrtsh/wrtsh2.cxx
index 0b63e13..00c9d2d 100644
--- a/sw/source/ui/wrtsh/wrtsh2.cxx
+++ b/sw/source/ui/wrtsh/wrtsh2.cxx
@@ -160,7 +160,7 @@ sal_Bool SwWrtShell::StartDropDownFldDlg(SwField* pFld, sal_Bool bNextButton, OS
     SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
     OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
 
-    AbstractDropDownFieldDialog* pDlg = pFact->CreateDropDownFieldDialog( NULL, *this, pFld, DLG_FLD_DROPDOWN ,bNextButton );
+    AbstractDropDownFieldDialog* pDlg = pFact->CreateDropDownFieldDialog(NULL, *this, pFld, bNextButton);
     OSL_ENSURE(pDlg, "Dialogdiet fail!");
     if(pWindowState && !pWindowState->isEmpty())
         pDlg->SetWindowState(*pWindowState);
diff --git a/sw/uiconfig/swriter/ui/dropdownfielddialog.ui b/sw/uiconfig/swriter/ui/dropdownfielddialog.ui
new file mode 100644
index 0000000..91dad6c
--- /dev/null
+++ b/sw/uiconfig/swriter/ui/dropdownfielddialog.ui
@@ -0,0 +1,180 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkDialog" id="DropdownFieldDialog">
+    <property name="can_focus">False</property>
+    <property name="border_width">6</property>
+    <property name="title" translatable="yes">Choose Item: </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">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>
+            <child>
+              <object class="GtkButton" id="ok">
+                <property name="label">gtk-ok</property>
+                <property name="visible">True</property>
+                <property name="sensitive">False</property>
+                <property name="can_focus">True</property>
+                <property name="can_default">True</property>
+                <property name="has_default">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_stock">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">0</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton" id="cancel">
+                <property name="label">gtk-cancel</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_stock">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton" id="next">
+                <property name="label">gtk-media-next</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="no_show_all">True</property>
+                <property name="use_stock">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton" id="help">
+                <property name="label">gtk-help</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_stock">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">3</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton" id="edit">
+                <property name="label">gtk-edit</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_stock">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">4</property>
+                <property name="secondary">True</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="pack_type">end</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkFrame" id="frame1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">True</property>
+            <property name="vexpand">True</property>
+            <property name="label_xalign">0</property>
+            <property name="shadow_type">none</property>
+            <child>
+              <object class="GtkAlignment" id="alignment1">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">True</property>
+                <property name="vexpand">True</property>
+                <property name="top_padding">6</property>
+                <property name="left_padding">12</property>
+                <child>
+                  <object class="GtkGrid" id="grid1">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="hexpand">True</property>
+                    <property name="vexpand">True</property>
+                    <property name="row_spacing">6</property>
+                    <child>
+                      <object class="GtkScrolledWindow" id="scrolledwindow1">
+                        <property name="visible">True</property>
+                        <property name="can_focus">True</property>
+                        <property name="hexpand">True</property>
+                        <property name="vexpand">True</property>
+                        <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="hexpand">True</property>
+                            <property name="vexpand">True</property>
+                            <child internal-child="selection">
+                              <object class="GtkTreeSelection" id="treeview-selection1"/>
+                            </child>
+                          </object>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="left_attach">0</property>
+                        <property name="top_attach">0</property>
+                        <property name="width">1</property>
+                        <property name="height">1</property>
+                      </packing>
+                    </child>
+                  </object>
+                </child>
+              </object>
+            </child>
+            <child type="label">
+              <object class="GtkLabel" id="label1">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="label" translatable="yes">Edit</property>
+                <attributes>
+                  <attribute name="weight" value="bold"/>
+                </attributes>
+              </object>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+    <action-widgets>
+      <action-widget response="0">ok</action-widget>
+      <action-widget response="0">cancel</action-widget>
+      <action-widget response="0">next</action-widget>
+      <action-widget response="0">help</action-widget>
+      <action-widget response="0">edit</action-widget>
+    </action-widgets>
+  </object>
+</interface>


More information about the Libreoffice-commits mailing list