diff options
author | Olivier Hallot <olivier.hallot@edx.srv.br> | 2013-08-08 22:50:37 -0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-09 19:57:51 +0000 |
commit | a51c5437baf317fb253ddc84cdd11c9428da77b2 (patch) | |
tree | c34ee7f917a7e41ba821eeddb02cb469b16f8fba /cui | |
parent | 8354ea874e2dea4740e31c00d6bea314b8c5a8e8 (diff) |
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@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/UIConfig_cui.mk | 1 | ||||
-rw-r--r-- | cui/source/tabpages/tplneend.cxx | 4 | ||||
-rw-r--r-- | cui/uiconfig/ui/querynosavefiledialog.ui | 33 |
3 files changed, 37 insertions, 1 deletions
diff --git a/cui/UIConfig_cui.mk b/cui/UIConfig_cui.mk index 485edaebd08d..1d2023e8bb47 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 2abcbe529062..b571eeb8f9bd 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 000000000000..09dbe8827888 --- /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> |