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

InfoBox MSG_WRONG_TABLENAME and MSG_ERR_TABLE_MERGE to String

Change-Id: I36fc0ed4f67c0af467a8dc593950a9c53a5ec53b
üst d18c5771
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
*/ */
#include "table.hrc" #include "table.hrc"
InfoBox MSG_ERR_TABLE_MERGE String STR_ERR_TABLE_MERGE
{ {
Message [ en-US ] = "Selected table cells are too complex to merge." ; Text [ en-US ] = "Selected table cells are too complex to merge." ;
}; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <hintids.hxx> #include <hintids.hxx>
#include <comphelper/string.hxx> #include <comphelper/string.hxx>
#include <vcl/layout.hxx>
#include <vcl/msgbox.hxx> #include <vcl/msgbox.hxx>
#include <svl/stritem.hxx> #include <svl/stritem.hxx>
#include <svl/intitem.hxx> #include <svl/intitem.hxx>
...@@ -601,7 +602,7 @@ int SwFormatTablePage::DeactivatePage( SfxItemSet* _pSet ) ...@@ -601,7 +602,7 @@ int SwFormatTablePage::DeactivatePage( SfxItemSet* _pSet )
OUString sTblName = m_pNameED->GetText(); OUString sTblName = m_pNameED->GetText();
if(sTblName.indexOf(' ') != -1) if(sTblName.indexOf(' ') != -1)
{ {
InfoBox(this, SW_RES(MSG_WRONG_TABLENAME)).Execute(); MessageDialog(this, SW_RES(STR_WRONG_TABLENAME), VCL_MESSAGE_INFO).Execute();
m_pNameED->GrabFocus(); m_pNameED->GrabFocus();
return KEEP_PAGE; return KEEP_PAGE;
} }
......
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
#include "table.hrc" #include "table.hrc"
InfoBox MSG_WRONG_TABLENAME String STR_WRONG_TABLENAME
{ {
Message [ en-US ] = "The name of the table must not contain spaces." ; Text [ en-US ] = "The name of the table must not contain spaces." ;
}; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,11 +21,11 @@ ...@@ -21,11 +21,11 @@
#define DLG_ROW_HEIGHT (RC_TABLE_BEGIN + 4) #define DLG_ROW_HEIGHT (RC_TABLE_BEGIN + 4)
#define MSG_ERR_TABLE_MERGE (RC_TABLE_BEGIN + 7) #define STR_ERR_TABLE_MERGE (RC_TABLE_BEGIN + 7)
#define MSG_WRONG_TABLENAME (RC_TABLE_BEGIN + 13) #define STR_WRONG_TABLENAME (RC_TABLE_BEGIN + 13)
#define TABLE_ACT_END MSG_WRONG_TABLENAME #define TABLE_ACT_END STR_WRONG_TABLENAME
#if TABLE_ACT_END > RC_TABLE_END #if TABLE_ACT_END > RC_TABLE_END
#error Resource-Id Ueberlauf in #file, #line #error Resource-Id Ueberlauf in #file, #line
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <svx/svxdlg.hxx> #include <svx/svxdlg.hxx>
#include <svl/zformat.hxx> #include <svl/zformat.hxx>
#include <sfx2/bindings.hxx> #include <sfx2/bindings.hxx>
#include <vcl/layout.hxx>
#include <vcl/msgbox.hxx> #include <vcl/msgbox.hxx>
#include <sfx2/request.hxx> #include <sfx2/request.hxx>
#include <sfx2/dispatch.hxx> #include <sfx2/dispatch.hxx>
...@@ -734,8 +735,8 @@ void SwTableShell::Execute(SfxRequest &rReq) ...@@ -734,8 +735,8 @@ void SwTableShell::Execute(SfxRequest &rReq)
break; break;
case TBLMERGE_TOOCOMPLEX: case TBLMERGE_TOOCOMPLEX:
{ {
InfoBox aInfoBox( GetView().GetWindow(), MessageDialog aInfoBox( GetView().GetWindow(),
SW_RES( MSG_ERR_TABLE_MERGE ) ); SW_RES( STR_ERR_TABLE_MERGE ), VCL_MESSAGE_INFO );
aInfoBox.Execute(); aInfoBox.Execute();
break; break;
} }
......
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