cui/UIConfig_cui.mk                    |    1 
 cui/source/tabpages/tplneend.cxx       |    4 ++-
 cui/uiconfig/ui/querysavelistdialog.ui |   34 +++++++++++++++++++++++++++++++++
 3 files changed, 38 insertions(+), 1 deletion(-)

New commits:
commit 34f0db2cfe6806503a3d1df239d12a69dbe0f83d
Author: Olivier Hallot <olivier.hal...@edx.srv.br>
Date:   Tue Aug 6 23:51:09 2013 -0300

    Convert save list dialog to widget UI
    
    Change-Id: I36f38accc88f9247b43e0a87fd7f4b1b86505171
    Reviewed-on: https://gerrit.libreoffice.org/5300
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/cui/UIConfig_cui.mk b/cui/UIConfig_cui.mk
index 2218837..76cd91f 100644
--- a/cui/UIConfig_cui.mk
+++ b/cui/UIConfig_cui.mk
@@ -93,6 +93,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
        cui/uiconfig/ui/querydeletedictionarydialog \
        cui/uiconfig/ui/querydeletelineenddialog \
        cui/uiconfig/ui/queryduplicatedialog \
+       cui/uiconfig/ui/querysavelistdialog \
        cui/uiconfig/ui/scriptorganizer \
        cui/uiconfig/ui/securityoptionsdialog \
        cui/uiconfig/ui/select_persona_dialog \
diff --git a/cui/source/tabpages/tplneend.cxx b/cui/source/tabpages/tplneend.cxx
index 6972b4b..6e5b817 100644
--- a/cui/source/tabpages/tplneend.cxx
+++ b/cui/source/tabpages/tplneend.cxx
@@ -538,7 +538,9 @@ IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickLoadHdl_Impl)
 
     if ( *pnLineEndListState & CT_MODIFIED )
     {
-        nReturn = WarningBox( GetParentDialog(), WinBits( WB_YES_NO_CANCEL ), 
OUString( ResId( RID_SVXSTR_WARN_TABLE_OVERWRITE, rMgr ) ) ).Execute();
+        nReturn = MessageDialog( GetParentDialog()
+                                ,"AskSaveList"
+                                ,"cui/ui/querysavelistdialog.ui").Execute();
 
         if ( nReturn == RET_YES )
             pLineEndList->Save();
diff --git a/cui/uiconfig/ui/querysavelistdialog.ui 
b/cui/uiconfig/ui/querysavelistdialog.ui
new file mode 100644
index 0000000..3d4c81e
--- /dev/null
+++ b/cui/uiconfig/ui/querysavelistdialog.ui
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.6 -->
+  <object class="GtkMessageDialog" id="AskSaveList">
+    <property name="can_focus">False</property>
+    <property name="border_width">6</property>
+    <property name="title" translatable="yes">Save list?</property>
+    <property name="type_hint">dialog</property>
+    <property name="skip_taskbar_hint">True</property>
+    <property name="message_type">warning</property>
+    <property name="buttons">ok-cancel</property>
+    <property name="text" translatable="yes">The list was modified without 
saving.</property>
+    <property name="secondary_text" translatable="yes">Would you like to save 
the list now?</property>
+    <child internal-child="vbox">
+      <object class="GtkBox" id="messagedialog-vbox">
+        <property name="can_focus">False</property>
+        <property name="orientation">vertical</property>
+        <property name="spacing">2</property>
+        <child internal-child="action_area">
+          <object class="GtkButtonBox" id="messagedialog-action_area">
+            <property name="can_focus">False</property>
+            <property name="layout_style">end</property>
+          </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>
+      </object>
+    </child>
+  </object>
+</interface>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to