diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-08-18 03:07:25 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-08-18 03:07:25 +0200 |
commit | 94cbfebdc62c3862e502c28dbd65de02fcab5730 (patch) | |
tree | 26b8def5e068205867c5c48546e9bf1d7bd92930 | |
parent | 5116b8f6bd0d154b9af8ba0ebdba066a02d14a0b (diff) |
InfoBox MSG_ILLEGAL_PAGENUM to String
Change-Id: Idef182a43e7aa631aeea92870e3c51a7c2b8b7c5
-rw-r--r-- | sw/inc/chrdlg.hrc | 2 | ||||
-rw-r--r-- | sw/source/ui/chrdlg/break.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/chrdlg/chrdlg.src | 7 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sw/inc/chrdlg.hrc b/sw/inc/chrdlg.hrc index 1435c8914332..279b2a798902 100644 --- a/sw/inc/chrdlg.hrc +++ b/sw/inc/chrdlg.hrc @@ -22,7 +22,7 @@ #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_PAGEFMT_HEADER (RC_CHRDLG_BEGIN + 4) diff --git a/sw/source/ui/chrdlg/break.cxx b/sw/source/ui/chrdlg/break.cxx index cb9b0f55094b..8f3caa04904f 100644 --- a/sw/source/ui/chrdlg/break.cxx +++ b/sw/source/ui/chrdlg/break.cxx @@ -19,6 +19,7 @@ #include <sfx2/request.hxx> #include <svl/stritem.hxx> +#include <vcl/layout.hxx> #include <vcl/msgbox.hxx> #include <cmdid.h> @@ -114,7 +115,7 @@ IMPL_LINK_NOARG(SwBreakDlg, OkHdl) default:; //prevent warning } if(!bOk) { - InfoBox(this, SW_RES(MSG_ILLEGAL_PAGENUM)).Execute(); + MessageDialog(this, SW_RES(STR_ILLEGAL_PAGENUM), VCL_MESSAGE_INFO).Execute(); m_pPageNumEdit->GrabFocus(); return 0; } diff --git a/sw/source/ui/chrdlg/chrdlg.src b/sw/source/ui/chrdlg/chrdlg.src index c39f4d02b900..6f19fc40350b 100644 --- a/sw/source/ui/chrdlg/chrdlg.src +++ b/sw/source/ui/chrdlg/chrdlg.src @@ -18,6 +18,7 @@ */ #include "chrdlg.hrc" + String STR_TEXTCOLL_HEADER { Text [ en-US ] = "(Paragraph Style: " ; @@ -26,11 +27,9 @@ String STR_PAGEFMT_HEADER { Text [ en-US ] = "(Page Style: " ; }; -InfoBox MSG_ILLEGAL_PAGENUM +String STR_ILLEGAL_PAGENUM { - BUTTONS = WB_OK ; - 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." ; + 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." ; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |