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

Olivier Hallot olivier.hallot at edx.srv.br
Fri Aug 9 12:58:13 PDT 2013


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

New commits:
commit a51c5437baf317fb253ddc84cdd11c9428da77b2
Author: Olivier Hallot <olivier.hallot at edx.srv.br>
Date:   Thu Aug 8 22:50:37 2013 -0300

    Use new save list error dialog
    
    This patch cannot be tested unless bug fdo#67929 is fixed.
    
    Change-Id: I7183d809e460fcdd48a4af38ce5b1eb9567c7928
    Reviewed-on: https://gerrit.libreoffice.org/5322
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/UIConfig_cui.mk b/cui/UIConfig_cui.mk
index 485edae..1d2023e 100644
--- a/cui/UIConfig_cui.mk
+++ b/cui/UIConfig_cui.mk
@@ -95,6 +95,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
 	cui/uiconfig/ui/querydeletelinestyledialog \
 	cui/uiconfig/ui/queryduplicatedialog \
 	cui/uiconfig/ui/querynoloadedfiledialog \
+	cui/uiconfig/ui/querynosavefiledialog \
 	cui/uiconfig/ui/querysavelistdialog \
 	cui/uiconfig/ui/scriptorganizer \
 	cui/uiconfig/ui/securityoptionsdialog \
diff --git a/cui/source/tabpages/tplneend.cxx b/cui/source/tabpages/tplneend.cxx
index 2abcbe5..b571eeb 100644
--- a/cui/source/tabpages/tplneend.cxx
+++ b/cui/source/tabpages/tplneend.cxx
@@ -635,7 +635,9 @@ IMPL_LINK_NOARG(SvxLineEndDefTabPage, ClickSaveHdl_Impl)
         }
         else
         {
-            ErrorBox( GetParentDialog(), WinBits( WB_OK ), OUString( CUI_RES( RID_SVXSTR_WRITE_DATA_ERROR ) ) ).Execute();
+            MessageDialog( GetParentDialog()
+                          ,"NoSaveFileDialog"
+                          ,"cui/ui/querynosavefiledialog.ui").Execute();
         }
     }
     return( 0L );
diff --git a/cui/uiconfig/ui/querynosavefiledialog.ui b/cui/uiconfig/ui/querynosavefiledialog.ui
new file mode 100644
index 0000000..09dbe88
--- /dev/null
+++ b/cui/uiconfig/ui/querynosavefiledialog.ui
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.6 -->
+  <object class="GtkMessageDialog" id="NoSaveFileDialog">
+    <property name="can_focus">False</property>
+    <property name="border_width">12</property>
+    <property name="title" translatable="yes">No loaded file</property>
+    <property name="type_hint">dialog</property>
+    <property name="skip_taskbar_hint">True</property>
+    <property name="message_type">error</property>
+    <property name="buttons">ok</property>
+    <property name="text" translatable="yes">The file could not be saved!</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">24</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>


More information about the Libreoffice-commits mailing list