[Libreoffice-commits] core.git: sc/AllLangResTarget_sc.mk sc/inc sc/source sc/uiconfig sc/UIConfig_scalc.mk

Caolán McNamara caolanm at redhat.com
Mon Dec 30 08:12:23 PST 2013


 sc/AllLangResTarget_sc.mk                   |    1 
 sc/UIConfig_scalc.mk                        |    1 
 sc/inc/helpids.h                            |    3 
 sc/inc/sc.hrc                               |    2 
 sc/source/ui/inc/solveroptions.hxx          |   12 -
 sc/source/ui/miscdlgs/solveroptions.cxx     |   73 ++++------
 sc/source/ui/src/solveroptions.src          |   92 ------------
 sc/uiconfig/scalc/ui/solveroptionsdialog.ui |  200 ++++++++++++++++++++++++++++
 8 files changed, 237 insertions(+), 147 deletions(-)

New commits:
commit 9f5df4cda93eb470fb79fc4b8014d9a6dde2284b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Dec 30 16:03:09 2013 +0000

    convert solver options dialog to .ui
    
    Change-Id: I319210233dd1b71f6e717c7322b953de8f093150

diff --git a/sc/AllLangResTarget_sc.mk b/sc/AllLangResTarget_sc.mk
index 9bf3000..96be8cb 100644
--- a/sc/AllLangResTarget_sc.mk
+++ b/sc/AllLangResTarget_sc.mk
@@ -43,7 +43,6 @@ $(eval $(call gb_SrsTarget_add_files,sc/res,\
     sc/source/ui/src/hdrcont.src \
     sc/source/ui/src/scerrors.src \
     sc/source/ui/src/simpref.src \
-    sc/source/ui/src/solveroptions.src \
     sc/source/ui/src/miscdlgs.src \
     sc/source/ui/src/scstring.src \
     sc/source/ui/src/filter.src \
diff --git a/sc/UIConfig_scalc.mk b/sc/UIConfig_scalc.mk
index 2473b25..e5dff59 100644
--- a/sc/UIConfig_scalc.mk
+++ b/sc/UIConfig_scalc.mk
@@ -137,6 +137,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\
 	sc/uiconfig/scalc/ui/sidebarnumberformat \
 	sc/uiconfig/scalc/ui/sidebarcellappearance \
 	sc/uiconfig/scalc/ui/solverdlg \
+	sc/uiconfig/scalc/ui/solveroptionsdialog \
 	sc/uiconfig/scalc/ui/solverprogressdialog \
 	sc/uiconfig/scalc/ui/solversuccessdialog \
 	sc/uiconfig/scalc/ui/sortcriteriapage \
diff --git a/sc/inc/helpids.h b/sc/inc/helpids.h
index e13c082..67c6156 100644
--- a/sc/inc/helpids.h
+++ b/sc/inc/helpids.h
@@ -160,9 +160,6 @@
 #define HID_SC_DPDATEGROUP_LB                                   "SC_HID_SC_DPDATEGROUP_LB"
 #define HID_SC_DPSHOWDETAIL                                     "SC_HID_SC_DPSHOWDETAIL"
 
-#define HID_SC_SOLVEROPTIONS                                    "SC_HID_SC_SOLVEROPTIONS"
-#define HID_SC_SOLVEROPTIONS_LB                                 "SC_HID_SC_SOLVEROPTIONS_LB"
-
 #define HID_SCDLG_CONFLICTS                                     "SC_HID_SCDLG_CONFLICTS"
 
 #define HID_SC_HF_HL_DEFINED                                    "SC_HID_SC_HF_HL_DEFINED"
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index 7230fee..b592b51 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -1093,8 +1093,6 @@
 #define RID_SCDLG_DPDATEGROUP           (SC_DIALOGS_START + 136)
 #define RID_SCDLG_DPSHOWDETAIL          (SC_DIALOGS_START + 137)
 
-#define RID_SCDLG_SOLVEROPTIONS         (SC_DIALOGS_START + 139)
-
 #define RID_SCDLG_CONFLICTS             (SC_DIALOGS_START + 145)
 #define RID_SCDLG_SHAREDOCUMENT         (SC_DIALOGS_START + 146)
 #define RID_SCDLG_TABPROTECTION         (SC_DIALOGS_START + 148)
diff --git a/sc/source/ui/inc/solveroptions.hxx b/sc/source/ui/inc/solveroptions.hxx
index 5ce5ec7..74925d7 100644
--- a/sc/source/ui/inc/solveroptions.hxx
+++ b/sc/source/ui/inc/solveroptions.hxx
@@ -37,15 +37,9 @@ namespace com { namespace sun { namespace star {
 
 class ScSolverOptionsDialog : public ModalDialog
 {
-    FixedText       maFtEngine;
-    ListBox         maLbEngine;
-    FixedText       maFtSettings;
-    SvxCheckListBox maLbSettings;
-    PushButton      maBtnEdit;
-    FixedLine       maFlButtons;
-    HelpButton      maBtnHelp;
-    OKButton        maBtnOk;
-    CancelButton    maBtnCancel;
+    ListBox* m_pLbEngine;
+    SvxCheckListBox* m_pLbSettings;
+    PushButton* m_pBtnEdit;
 
     SvLBoxButtonData* mpCheckButtonData;
     com::sun::star::uno::Sequence<OUString> maImplNames;
diff --git a/sc/source/ui/miscdlgs/solveroptions.cxx b/sc/source/ui/miscdlgs/solveroptions.cxx
index 256f334..94e53b3 100644
--- a/sc/source/ui/miscdlgs/solveroptions.cxx
+++ b/sc/source/ui/miscdlgs/solveroptions.cxx
@@ -113,32 +113,27 @@ ScSolverOptionsDialog::ScSolverOptionsDialog( Window* pParent,
                         const uno::Sequence<OUString>& rDescriptions,
                         const OUString& rEngine,
                         const uno::Sequence<beans::PropertyValue>& rProperties )
-    : ModalDialog( pParent, ScResId( RID_SCDLG_SOLVEROPTIONS ) ),
-    maFtEngine      ( this, ScResId( FT_ENGINE ) ),
-    maLbEngine      ( this, ScResId( LB_ENGINE ) ),
-    maFtSettings    ( this, ScResId( FT_SETTINGS ) ),
-    maLbSettings    ( this, ScResId( LB_SETTINGS ) ),
-    maBtnEdit       ( this, ScResId( BTN_EDIT ) ),
-    maFlButtons     ( this, ScResId( FL_BUTTONS ) ),
-    maBtnHelp       ( this, ScResId( BTN_HELP ) ),
-    maBtnOk         ( this, ScResId( BTN_OK ) ),
-    maBtnCancel     ( this, ScResId( BTN_CANCEL ) ),
-    mpCheckButtonData( NULL ),
-    maImplNames( rImplNames ),
-    maDescriptions( rDescriptions ),
-    maEngine( rEngine ),
-    maProperties( rProperties )
+    : ModalDialog(pParent, "SolverOptionsDialog",
+        "modules/scalc/ui/solveroptionsdialog.ui")
+    , mpCheckButtonData(NULL)
+    , maImplNames(rImplNames)
+    , maDescriptions(rDescriptions)
+    , maEngine(rEngine)
+    , maProperties(rProperties)
 {
-    maLbEngine.SetSelectHdl( LINK( this, ScSolverOptionsDialog, EngineSelectHdl ) );
+    get(m_pLbEngine, "engine");
+    get(m_pLbSettings, "settings");
+    get(m_pBtnEdit, "edit");
 
-    maBtnEdit.SetClickHdl( LINK( this, ScSolverOptionsDialog, ButtonHdl ) );
+    m_pLbEngine->SetSelectHdl( LINK( this, ScSolverOptionsDialog, EngineSelectHdl ) );
 
-    maLbSettings.SetStyle( maLbSettings.GetStyle()|WB_CLIPCHILDREN|WB_FORCE_MAKEVISIBLE );
-    maLbSettings.SetHelpId( HID_SC_SOLVEROPTIONS_LB );
-    maLbSettings.SetHighlightRange();
+    m_pBtnEdit->SetClickHdl( LINK( this, ScSolverOptionsDialog, ButtonHdl ) );
 
-    maLbSettings.SetSelectHdl( LINK( this, ScSolverOptionsDialog, SettingsSelHdl ) );
-    maLbSettings.SetDoubleClickHdl( LINK( this, ScSolverOptionsDialog, SettingsDoubleClickHdl ) );
+    m_pLbSettings->SetStyle( m_pLbSettings->GetStyle()|WB_CLIPCHILDREN|WB_FORCE_MAKEVISIBLE );
+    m_pLbSettings->SetHighlightRange();
+
+    m_pLbSettings->SetSelectHdl( LINK( this, ScSolverOptionsDialog, SettingsSelHdl ) );
+    m_pLbSettings->SetDoubleClickHdl( LINK( this, ScSolverOptionsDialog, SettingsDoubleClickHdl ) );
 
     sal_Int32 nSelect = -1;
     sal_Int32 nImplCount = maImplNames.getLength();
@@ -146,7 +141,7 @@ ScSolverOptionsDialog::ScSolverOptionsDialog( Window* pParent,
     {
         OUString aImplName( maImplNames[nImpl] );
         OUString aDescription( maDescriptions[nImpl] );   // user-visible descriptions in list box
-        maLbEngine.InsertEntry( aDescription );
+        m_pLbEngine->InsertEntry( aDescription );
         if ( aImplName == maEngine )
             nSelect = nImpl;
     }
@@ -162,13 +157,11 @@ ScSolverOptionsDialog::ScSolverOptionsDialog( Window* pParent,
         maProperties.realloc(0);        // don't use options from different engine
     }
     if ( nSelect >= 0 )                 // select in list box
-        maLbEngine.SelectEntryPos( static_cast<sal_uInt16>(nSelect) );
+        m_pLbEngine->SelectEntryPos( static_cast<sal_uInt16>(nSelect) );
 
     if ( !maProperties.getLength() )
         ReadFromComponent();            // fill maProperties from component (using maEngine)
     FillListBox();                      // using maProperties
-
-    FreeResource();
 }
 
 ScSolverOptionsDialog::~ScSolverOptionsDialog()
@@ -186,7 +179,7 @@ const uno::Sequence<beans::PropertyValue>& ScSolverOptionsDialog::GetProperties(
     // update maProperties from list box content
     // order of entries in list box and maProperties is the same
     sal_Int32 nEntryCount = maProperties.getLength();
-    SvTreeList* pModel = maLbSettings.GetModel();
+    SvTreeList* pModel = m_pLbSettings->GetModel();
     if ( nEntryCount == (sal_Int32)pModel->GetEntryCount() )
     {
         for (sal_Int32 nEntryPos=0; nEntryPos<nEntryCount; ++nEntryPos)
@@ -211,7 +204,7 @@ const uno::Sequence<beans::PropertyValue>& ScSolverOptionsDialog::GetProperties(
             }
             if ( !bHasData )
                 ScUnoHelpFunctions::SetBoolInAny( rValue,
-                                    maLbSettings.GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED );
+                                    m_pLbSettings->GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED );
         }
     }
     else
@@ -252,14 +245,14 @@ void ScSolverOptionsDialog::FillListBox()
 
     // fill the list box
 
-    maLbSettings.SetUpdateMode(false);
-    maLbSettings.Clear();
+    m_pLbSettings->SetUpdateMode(false);
+    m_pLbSettings->Clear();
 
     OUString sEmpty;
     if (!mpCheckButtonData)
-        mpCheckButtonData = new SvLBoxButtonData( &maLbSettings );
+        mpCheckButtonData = new SvLBoxButtonData(m_pLbSettings);
 
-    SvTreeList* pModel = maLbSettings.GetModel();
+    SvTreeList* pModel = m_pLbSettings->GetModel();
     SvTreeListEntry* pEntry = NULL;
 
     for (sal_Int32 nPos=0; nPos<nCount; nPos++)
@@ -305,7 +298,7 @@ void ScSolverOptionsDialog::FillListBox()
         pModel->Insert( pEntry );
     }
 
-    maLbSettings.SetUpdateMode(sal_True);
+    m_pLbSettings->SetUpdateMode(sal_True);
 }
 
 void ScSolverOptionsDialog::ReadFromComponent()
@@ -315,7 +308,7 @@ void ScSolverOptionsDialog::ReadFromComponent()
 
 void ScSolverOptionsDialog::EditOption()
 {
-    SvTreeListEntry* pEntry = maLbSettings.GetCurEntry();
+    SvTreeListEntry* pEntry = m_pLbSettings->GetCurEntry();
     if (pEntry)
     {
         sal_uInt16 nItemCount = pEntry->ItemCount();
@@ -333,7 +326,7 @@ void ScSolverOptionsDialog::EditOption()
                     if ( aValDialog.Execute() == RET_OK )
                     {
                         pStringItem->SetDoubleValue( aValDialog.GetValue() );
-                        maLbSettings.InvalidateEntry( pEntry );
+                        m_pLbSettings->InvalidateEntry( pEntry );
                     }
                 }
                 else
@@ -344,7 +337,7 @@ void ScSolverOptionsDialog::EditOption()
                     if ( aIntDialog.Execute() == RET_OK )
                     {
                         pStringItem->SetIntValue( aIntDialog.GetValue() );
-                        maLbSettings.InvalidateEntry( pEntry );
+                        m_pLbSettings->InvalidateEntry( pEntry );
                     }
                 }
             }
@@ -354,7 +347,7 @@ void ScSolverOptionsDialog::EditOption()
 
 IMPL_LINK( ScSolverOptionsDialog, ButtonHdl, PushButton*, pBtn )
 {
-    if ( pBtn == &maBtnEdit )
+    if (pBtn == m_pBtnEdit)
         EditOption();
 
     return 0;
@@ -368,7 +361,7 @@ IMPL_LINK_NOARG(ScSolverOptionsDialog, SettingsDoubleClickHdl)
 
 IMPL_LINK_NOARG(ScSolverOptionsDialog, EngineSelectHdl)
 {
-    sal_uInt16 nSelectPos = maLbEngine.GetSelectEntryPos();
+    sal_uInt16 nSelectPos = m_pLbEngine->GetSelectEntryPos();
     if ( nSelectPos < maImplNames.getLength() )
     {
         OUString aNewEngine( maImplNames[nSelectPos] );
@@ -386,7 +379,7 @@ IMPL_LINK_NOARG(ScSolverOptionsDialog, SettingsSelHdl)
 {
     sal_Bool bCheckbox = false;
 
-    SvTreeListEntry* pEntry = maLbSettings.GetCurEntry();
+    SvTreeListEntry* pEntry = m_pLbSettings->GetCurEntry();
     if (pEntry)
     {
         SvLBoxItem* pItem = pEntry->GetFirstItem(SV_ITEM_ID_LBOXBUTTON);
@@ -394,7 +387,7 @@ IMPL_LINK_NOARG(ScSolverOptionsDialog, SettingsSelHdl)
             bCheckbox = true;
     }
 
-    maBtnEdit.Enable( !bCheckbox );
+    m_pBtnEdit->Enable( !bCheckbox );
 
     return 0;
 }
diff --git a/sc/source/ui/src/solveroptions.src b/sc/source/ui/src/solveroptions.src
deleted file mode 100644
index ae825a4..0000000
--- a/sc/source/ui/src/solveroptions.src
+++ /dev/null
@@ -1,92 +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 "solveroptions.hrc"
-
-ModalDialog RID_SCDLG_SOLVEROPTIONS
-{
-    OutputSize = TRUE ;
-    HelpId = HID_SC_SOLVEROPTIONS ;
-    SVLook = TRUE ;
-    Size = MAP_APPFONT ( 218 , 156 ) ;
-    Moveable = TRUE ;
-    FixedText FT_ENGINE
-    {
-        Pos = MAP_APPFONT ( 6 , 8 ) ;
-        Size = MAP_APPFONT ( 59 , 8 ) ;
-        Text [ en-US ] = "Solver engine" ;
-    };
-    ListBox LB_ENGINE
-    {
-        HelpID = "sc:ListBox:RID_SCDLG_SOLVEROPTIONS:LB_ENGINE";
-        Border = TRUE ;
-        Pos = MAP_APPFONT ( 67 , 6 ) ;
-        Size = MAP_APPFONT ( 145 , 90 ) ;
-        TabStop = TRUE ;
-        DropDown = TRUE ;
-    };
-    FixedText FT_SETTINGS
-    {
-        Pos = MAP_APPFONT ( 6 , 24 ) ;
-        Size = MAP_APPFONT ( 156 , 8 ) ;
-        Text [ en-US ] = "Settings:" ;
-    };
-    Control LB_SETTINGS
-    {
-        Border = TRUE ;
-        Pos = MAP_APPFONT ( 6 , 35 ) ;
-        Size = MAP_APPFONT ( 206 , 67 ) ;
-        TabStop = TRUE ;
-    };
-    PushButton BTN_EDIT
-    {
-        HelpID = "sc:PushButton:RID_SCDLG_SOLVEROPTIONS:BTN_EDIT";
-        Pos = MAP_APPFONT ( 6 , 108 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        TabStop = TRUE ;
-        Text [ en-US ] = "Edit..." ;
-    };
-    FixedLine FL_BUTTONS
-    {
-        Pos = MAP_APPFONT ( 0 , 125 ) ;
-        Size = MAP_APPFONT ( 218 , 8 ) ;
-    };
-    HelpButton BTN_HELP
-    {
-        Pos = MAP_APPFONT ( 6 , 136 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        TabStop = TRUE ;
-    };
-    OKButton BTN_OK
-    {
-        Pos = MAP_APPFONT ( 106 , 136 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        TabStop = TRUE ;
-        DefButton = TRUE ;
-    };
-    CancelButton BTN_CANCEL
-    {
-        Pos = MAP_APPFONT ( 162 , 136 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        TabStop = TRUE ;
-    };
-    Text [ en-US ] = "Options" ;
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/uiconfig/scalc/ui/solveroptionsdialog.ui b/sc/uiconfig/scalc/ui/solveroptionsdialog.ui
new file mode 100644
index 0000000..a92d422
--- /dev/null
+++ b/sc/uiconfig/scalc/ui/solveroptionsdialog.ui
@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <!-- interface-requires LibreOffice 1.0 -->
+  <object class="GtkDialog" id="SolverOptionsDialog">
+    <property name="can_focus">False</property>
+    <property name="border_width">6</property>
+    <property name="title" translatable="yes">Options</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="orientation">vertical</property>
+        <property name="spacing">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">12</property>
+            <child>
+              <object class="GtkGrid" id="grid2">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="column_spacing">12</property>
+                <child>
+                  <object class="GtkLabel" id="label2">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="xalign">0</property>
+                    <property name="label" translatable="yes">Solver engine</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">engine</property>
+                  </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>
+                <child>
+                  <object class="GtkComboBoxText" id="engine">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="entry_text_column">0</property>
+                    <property name="id_column">1</property>
+                  </object>
+                  <packing>
+                    <property name="left_attach">1</property>
+                    <property name="top_attach">0</property>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
+                  </packing>
+                </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>
+            <child>
+              <object class="GtkGrid" id="grid3">
+                <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="GtkLabel" id="label1">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="xalign">0</property>
+                    <property name="label" translatable="yes">Settings:</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">settings:border</property>
+                  </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>
+                <child>
+                  <object class="svxcorelo-SvxCheckListBox" id="settings:border">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="hexpand">True</property>
+                    <property name="vexpand">True</property>
+                    <child internal-child="selection">
+                      <object class="GtkTreeSelection" id="Check List Box-selection1"/>
+                    </child>
+                  </object>
+                  <packing>
+                    <property name="left_attach">0</property>
+                    <property name="top_attach">1</property>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkButton" id="edit">
+                    <property name="label" translatable="yes">Edit...</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="halign">start</property>
+                    <property name="use_underline">True</property>
+                  </object>
+                  <packing>
+                    <property name="left_attach">0</property>
+                    <property name="top_attach">2</property>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
+                  </packing>
+                </child>
+              </object>
+              <packing>
+                <property name="left_attach">0</property>
+                <property name="top_attach">1</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+        <child internal-child="action_area">
+          <object class="GtkButtonBox" id="dialog-action_area1">
+            <property name="can_focus">False</property>
+            <property name="layout_style">end</property>
+            <child>
+              <object class="GtkButton" id="ok">
+                <property name="label">gtk-ok</property>
+                <property name="visible">True</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="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">2</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="pack_type">end</property>
+            <property name="position">2</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">help</action-widget>
+    </action-widgets>
+  </object>
+</interface>


More information about the Libreoffice-commits mailing list