summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/uno/dbinteraction.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-17 13:54:05 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-17 13:54:05 +0000
commitf9fee5680c3cba6737d64a21908182f25e6776aa (patch)
treeceb6ab510a19018fe8e5925ad879cdc737c24188 /dbaccess/source/ui/uno/dbinteraction.cxx
parentINTEGRATION: CWS dba18 (1.15.16); FILE MERGED (diff)
downloadcore-f9fee5680c3cba6737d64a21908182f25e6776aa.tar.gz
core-f9fee5680c3cba6737d64a21908182f25e6776aa.zip
INTEGRATION: CWS dba18 (1.10.38); FILE MERGED
2004/10/15 08:18:41 oj 1.10.38.1: #i33621# query save document dialog
Diffstat (limited to 'dbaccess/source/ui/uno/dbinteraction.cxx')
-rw-r--r--dbaccess/source/ui/uno/dbinteraction.cxx17
1 files changed, 6 insertions, 11 deletions
diff --git a/dbaccess/source/ui/uno/dbinteraction.cxx b/dbaccess/source/ui/uno/dbinteraction.cxx
index 7e50a37f73f7..b42b51dbecb7 100644
--- a/dbaccess/source/ui/uno/dbinteraction.cxx
+++ b/dbaccess/source/ui/uno/dbinteraction.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dbinteraction.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: hr $ $Date: 2004-08-02 16:23:14 $
+ * last change: $Author: obo $ $Date: 2004-11-17 14:54:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -101,6 +101,9 @@
#ifndef _SVTOOLS_LOGINDLG_HXX_
#include <svtools/logindlg.hxx>
#endif
+#ifndef SFX_QUERYSAVEDOCUMENT_HXX
+#include <sfx2/QuerySaveDocument.hxx>
+#endif
#ifndef _DBU_UNO_HRC_
#include "dbu_uno.hrc"
#endif
@@ -420,15 +423,7 @@ namespace dbaui
if ( -1 != nApprovePos )
{
// fragen, ob gespeichert werden soll
- String aText( ModuleRes( STR_QUERY_SAVE_DOCUMENT ) );
- aText.SearchAndReplace( String::CreateFromAscii("$(DOC)"),
- _rDocuRequest.Name );
-
- QueryBox aQBox( NULL, WB_YES_NO_CANCEL | WB_DEF_YES, aText );
- aQBox.SetButtonText( BUTTONID_NO, ModuleRes( STR_NOSAVEANDCLOSE ) );
- aQBox.SetButtonText( BUTTONID_YES, ModuleRes( STR_SAVEDOC ) );
-
- nRet = aQBox.Execute();
+ nRet = ExecuteQuerySaveDocument(NULL,_rDocuRequest.Name);
}
if ( RET_CANCEL == nRet )