diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-25 14:10:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-25 16:45:27 +0100 |
commit | 9a11491731541232d8e184b0b25442cdb790cf9f (patch) | |
tree | 76093ad7ac2257b33d73201affb0a0008951152a /svx/source | |
parent | 65597c9907a895a773fd9f9c991870416bd33335 (diff) |
convert RID_QRY_SAVEMODIFIED with custom buttons to .ui
Change-Id: I782ca0f7e60f92e65e1a93bb8d1d38eded941cbb
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/form/fmshell.cxx | 5 | ||||
-rw-r--r-- | svx/source/form/fmstring.src | 6 |
2 files changed, 3 insertions, 8 deletions
diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx index 08c06341a83c..80fc7441674e 100644 --- a/svx/source/form/fmshell.cxx +++ b/svx/source/form/fmshell.cxx @@ -37,8 +37,8 @@ #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/awt/XTabControllerModel.hpp> #include <sfx2/viewfrm.hxx> +#include <vcl/layout.hxx> #include <vcl/wrkwin.hxx> -#include <vcl/msgbox.hxx> #include <svl/whiter.hxx> #include <sfx2/app.hxx> #include <svl/intitem.hxx> @@ -272,7 +272,8 @@ bool FmFormShell::PrepareClose(bool bUI) if ( bModified && bUI ) { - QueryBox aQry(NULL, SVX_RES(RID_QRY_SAVEMODIFIED)); + MessageDialog aQry(NULL, "SaveModifiedDialog", + "svx/ui/savemodifieddialog.ui"); switch (aQry.Execute()) { case RET_NO: diff --git a/svx/source/form/fmstring.src b/svx/source/form/fmstring.src index e9dcdd36a18a..bf0fdd0fc832 100644 --- a/svx/source/form/fmstring.src +++ b/svx/source/form/fmstring.src @@ -301,12 +301,6 @@ String RID_STR_AUTOFIELD Text [ en-US ] = "<AutoField>"; }; -QueryBox RID_QRY_SAVEMODIFIED -{ - Buttons = WB_YES_NO_CANCEL ; - DefButton = WB_DEF_YES ; - Message [ en-US ] = "The content of the current form has been modified.\nDo you want to save your changes?"; -}; Resource RID_RSC_SQL_INTERNATIONAL { String 1 |