Kaydet (Commit) a53061de authored tarafından Caolán McNamara's avatar Caolán McNamara

archetype for ErrorBox + resource -> MessageDialog + string conversion

in this case the .src has WB_OK for "ok button only" which is the
default for MessageDialog so no arguments apart from the string and
the parent dialog (null in this case) are needed

Change-Id: I63ddafddfcc448e3502b19d657dcad040a56c845
üst 1eb84514
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
#define STR_VIEWVERSIONCOMMENT ( RC_DIALOG_BEGIN + 71 ) #define STR_VIEWVERSIONCOMMENT ( RC_DIALOG_BEGIN + 71 )
#define MSG_ERROR_WRONG_CONFIRM ( RC_DIALOG_BEGIN + 76 ) #define STR_ERROR_WRONG_CONFIRM ( RC_DIALOG_BEGIN + 76 )
#define STR_APPLY ( RC_DIALOG_BEGIN + 87 ) #define STR_APPLY ( RC_DIALOG_BEGIN + 87 )
......
...@@ -108,11 +108,9 @@ String SID_SIDEBAR ...@@ -108,11 +108,9 @@ String SID_SIDEBAR
Text [ en-US ] = "Sidebar"; Text [ en-US ] = "Sidebar";
}; };
ErrorBox MSG_ERROR_WRONG_CONFIRM String STR_ERROR_WRONG_CONFIRM
{ {
BUTTONS = WB_OK ; Text [ en-US ] = "Faulty password confirmation";
DEFBUTTON = WB_DEF_OK ;
Message [ en-US ] = "Faulty password confirmation";
}; };
String STR_PDF_EXPORT_SEND String STR_PDF_EXPORT_SEND
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
// Include --------------------------------------------------------------- // Include ---------------------------------------------------------------
#include <vcl/msgbox.hxx> #include <vcl/layout.hxx>
#include <sfx2/passwd.hxx> #include <sfx2/passwd.hxx>
#include "sfxtypes.hxx" #include "sfxtypes.hxx"
...@@ -71,7 +71,7 @@ IMPL_LINK_NOARG(SfxPasswordDialog, OKHdl) ...@@ -71,7 +71,7 @@ IMPL_LINK_NOARG(SfxPasswordDialog, OKHdl)
bConfirmFailed = true; bConfirmFailed = true;
if ( bConfirmFailed ) if ( bConfirmFailed )
{ {
ErrorBox aBox( this, SfxResId( MSG_ERROR_WRONG_CONFIRM ) ); MessageDialog aBox(this, SfxResId(STR_ERROR_WRONG_CONFIRM));
aBox.Execute(); aBox.Execute();
mpConfirm1ED->SetText( OUString() ); mpConfirm1ED->SetText( OUString() );
mpConfirm1ED->GrabFocus(); mpConfirm1ED->GrabFocus();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment