diff options
-rw-r--r-- | sfx2/inc/sfx2/sfx.hrc | 1 | ||||
-rw-r--r-- | sfx2/source/doc/QuerySaveDocument.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/doc/doc.src | 8 |
3 files changed, 8 insertions, 2 deletions
diff --git a/sfx2/inc/sfx2/sfx.hrc b/sfx2/inc/sfx2/sfx.hrc index 0d44061795b0..c215a18aae91 100644 --- a/sfx2/inc/sfx2/sfx.hrc +++ b/sfx2/inc/sfx2/sfx.hrc @@ -162,6 +162,7 @@ #define STR_KB (RID_SFX_START+112) #define STR_MB (RID_SFX_START+113) #define STR_GB (RID_SFX_START+114) +#define STR_QUERY_SAVE_DOCUMENT_TITLE (RID_SFX_START+115) #define STR_STANDARD_SHORTCUT (RID_SFX_START+117) #define STR_REPAIREDDOCUMENT (RID_SFX_START+118) diff --git a/sfx2/source/doc/QuerySaveDocument.cxx b/sfx2/source/doc/QuerySaveDocument.cxx index 2510e9ab03d4..49448eb5fe9e 100644 --- a/sfx2/source/doc/QuerySaveDocument.cxx +++ b/sfx2/source/doc/QuerySaveDocument.cxx @@ -36,6 +36,7 @@ short ExecuteQuerySaveDocument(Window* _pParent,const String& _rTitle) aText.SearchAndReplace( DEFINE_CONST_UNICODE( "$(DOC)" ), _rTitle ); QueryBox aQBox( _pParent, WB_YES_NO_CANCEL | WB_DEF_YES, aText ); + aQBox.SetText(SfxResId(STR_QUERY_SAVE_DOCUMENT_TITLE).toString()); // Window title aQBox.SetButtonText( BUTTONID_NO, SfxResId(STR_NOSAVEANDCLOSE).toString() ); aQBox.SetButtonText( BUTTONID_YES, SfxResId(STR_SAVEDOC).toString() ); return aQBox.Execute(); diff --git a/sfx2/source/doc/doc.src b/sfx2/source/doc/doc.src index 3b5293dcbbf3..640283d2f69a 100644 --- a/sfx2/source/doc/doc.src +++ b/sfx2/source/doc/doc.src @@ -46,9 +46,13 @@ QueryBox MSG_REGION_NOTEMPTY DefButton = WB_DEF_NO ; Message [ en-US ] = "The category is not empty.\nDelete anyway?" ; }; +String STR_QUERY_SAVE_DOCUMENT_TITLE +{ + Text [ en-US ] = "Save document" ; +}; String STR_QUERY_SAVE_DOCUMENT { - Text [ en-US ] = "The document \"$(DOC)\" has been modified.\nDo you want to save your changes?" ; + Text [ en-US ] = "Save changes to document \"$(DOC)\" before closing?" ; }; Bitmap BMP_STYLES_CLOSED { File = "newex.bmp" ; }; Bitmap BMP_STYLES_OPENED { File = "newex.bmp" ; }; @@ -307,7 +311,7 @@ String STR_DOCTYPENAME_MESSAGE String STR_NOSAVEANDCLOSE { - Text [ en-US ] = "~Discard" ; + Text [ en-US ] = "Close ~without saving" ; }; String STR_PACKNGO_NOACCESS |