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

ErrorBox ERR_INVALID_BACKUP_LOCATION to String

Change-Id: Ied9fcfacc6d2751883d7c4d21582427690ba0f20
üst c931bed5
...@@ -24,13 +24,8 @@ ...@@ -24,13 +24,8 @@
//= bases //= bases
#define RID_DBMM_DIALOG_START RID_DBACCESS_START + 0
#define RID_DBMM_STRING_START RID_DBACCESS_START + 0 #define RID_DBMM_STRING_START RID_DBACCESS_START + 0
//= error boxes
#define ERR_INVALID_BACKUP_LOCATION RID_DBMM_DIALOG_START + 0
//= strings //= strings
#define STR_FORM ( RID_DBMM_STRING_START + 0 ) #define STR_FORM ( RID_DBMM_STRING_START + 0 )
...@@ -58,6 +53,7 @@ ...@@ -58,6 +53,7 @@
#define STR_STATE_MIGRATE ( RID_DBMM_STRING_START + 22 ) #define STR_STATE_MIGRATE ( RID_DBMM_STRING_START + 22 )
#define STR_STATE_SUMMARY ( RID_DBMM_STRING_START + 23 ) #define STR_STATE_SUMMARY ( RID_DBMM_STRING_START + 23 )
#define STR_TITLE_MACRO_MIGRATION ( RID_DBMM_STRING_START + 24 ) #define STR_TITLE_MACRO_MIGRATION ( RID_DBMM_STRING_START + 24 )
#define STR_INVALID_BACKUP_LOCATION ( RID_DBMM_STRING_START + 25 )
#endif // DBACCESS_DBMM_GLOBAL_HRC #endif // DBACCESS_DBMM_GLOBAL_HRC
......
...@@ -131,10 +131,9 @@ String STR_EXCEPTION ...@@ -131,10 +131,9 @@ String STR_EXCEPTION
Text [ en-US ] = "caught exception:"; Text [ en-US ] = "caught exception:";
}; };
ErrorBox ERR_INVALID_BACKUP_LOCATION String STR_INVALID_BACKUP_LOCATION
{ {
Buttons = WB_OK; Text [ en-US ] = "You need to choose a backup location other than the document location itself.";
Message [ en-US ] = "You need to choose a backup location other than the document location itself.";
}; };
String STR_INVALID_NUMBER_ARGS String STR_INVALID_NUMBER_ARGS
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include <svl/filenotation.hxx> #include <svl/filenotation.hxx>
#include <tools/diagnose_ex.h> #include <tools/diagnose_ex.h>
#include <ucbhelper/content.hxx> #include <ucbhelper/content.hxx>
#include <vcl/msgbox.hxx> #include <vcl/layout.hxx>
#include <list> #include <list>
...@@ -406,7 +406,7 @@ namespace dbmm ...@@ -406,7 +406,7 @@ namespace dbmm
// check that the backup location isn't the same as the document itself // check that the backup location isn't the same as the document itself
if ( lcl_equalURLs_nothrow( m_pData->aContext, sBackupLocation, m_pData->xDocumentModel->getURL() ) ) if ( lcl_equalURLs_nothrow( m_pData->aContext, sBackupLocation, m_pData->xDocumentModel->getURL() ) )
{ {
ErrorBox aErrorBox( const_cast< MacroMigrationDialog* >( this ), MacroMigrationResId( ERR_INVALID_BACKUP_LOCATION ) ); MessageDialog aErrorBox( const_cast< MacroMigrationDialog* >( this ), MacroMigrationResId( STR_INVALID_BACKUP_LOCATION ) );
aErrorBox.Execute(); aErrorBox.Execute();
rBackupPage.grabLocationFocus(); rBackupPage.grabLocationFocus();
return false; return false;
......
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