Kaydet (Commit) 94cbfebd authored tarafından Thomas Arnhold's avatar Thomas Arnhold

InfoBox MSG_ILLEGAL_PAGENUM to String

Change-Id: Idef182a43e7aa631aeea92870e3c51a7c2b8b7c5
üst 5116b8f6
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "rcid.hrc" #include "rcid.hrc"
#define MSG_ILLEGAL_PAGENUM (RC_CHRDLG_BEGIN + 1) #define STR_ILLEGAL_PAGENUM (RC_CHRDLG_BEGIN + 1)
#define STR_TEXTCOLL_HEADER (RC_CHRDLG_BEGIN + 2) #define STR_TEXTCOLL_HEADER (RC_CHRDLG_BEGIN + 2)
#define STR_PAGEFMT_HEADER (RC_CHRDLG_BEGIN + 4) #define STR_PAGEFMT_HEADER (RC_CHRDLG_BEGIN + 4)
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <sfx2/request.hxx> #include <sfx2/request.hxx>
#include <svl/stritem.hxx> #include <svl/stritem.hxx>
#include <vcl/layout.hxx>
#include <vcl/msgbox.hxx> #include <vcl/msgbox.hxx>
#include <cmdid.h> #include <cmdid.h>
...@@ -114,7 +115,7 @@ IMPL_LINK_NOARG(SwBreakDlg, OkHdl) ...@@ -114,7 +115,7 @@ IMPL_LINK_NOARG(SwBreakDlg, OkHdl)
default:; //prevent warning default:; //prevent warning
} }
if(!bOk) { if(!bOk) {
InfoBox(this, SW_RES(MSG_ILLEGAL_PAGENUM)).Execute(); MessageDialog(this, SW_RES(STR_ILLEGAL_PAGENUM), VCL_MESSAGE_INFO).Execute();
m_pPageNumEdit->GrabFocus(); m_pPageNumEdit->GrabFocus();
return 0; return 0;
} }
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
#include "chrdlg.hrc" #include "chrdlg.hrc"
String STR_TEXTCOLL_HEADER String STR_TEXTCOLL_HEADER
{ {
Text [ en-US ] = "(Paragraph Style: " ; Text [ en-US ] = "(Paragraph Style: " ;
...@@ -26,11 +27,9 @@ String STR_PAGEFMT_HEADER ...@@ -26,11 +27,9 @@ String STR_PAGEFMT_HEADER
{ {
Text [ en-US ] = "(Page Style: " ; Text [ en-US ] = "(Page Style: " ;
}; };
InfoBox MSG_ILLEGAL_PAGENUM String STR_ILLEGAL_PAGENUM
{ {
BUTTONS = WB_OK ; Text [ en-US ] = "Page numbers cannot be applied to the current page. Even numbers can be used on left pages, odd numbers on right pages." ;
DEFBUTTON = WB_DEF_OK ;
Message [ en-US ] = "Page numbers cannot be applied to the current page. Even numbers can be used on left pages, odd numbers on right pages." ;
}; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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