diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-04-04 13:21:18 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-04-04 13:21:18 +0000 |
commit | 0a2eb9ea4165f14765585dc7ecccf86a9ed1fccf (patch) | |
tree | cbca46e11983fbfcdc79bdd06dff1b6892ee547f /sfx2 | |
parent | 85f32380d394580a631400f248ae8f84409d0501 (diff) |
INTEGRATION: CWS titles02 (1.78.2); FILE MERGED
2008/03/14 10:08:18 as 1.78.2.1: #116375# use new title API
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objxtor.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index 6c99c924bcbf..711f7d973c34 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -4,9 +4,9 @@ * * $RCSfile: objxtor.cxx,v $ * - * $Revision: 1.80 $ + * $Revision: 1.81 $ * - * last change: $Author: kz $ $Date: 2008-03-07 12:34:51 $ + * last change: $Author: kz $ $Date: 2008-04-04 14:21:18 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -46,6 +46,7 @@ #include <com/sun/star/util/XCloseListener.hpp> #include <com/sun/star/util/XModifyBroadcaster.hpp> #include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/frame/XTitle.hpp> #ifndef _VOS_MUTEX_HXX_ #include <vos/mutex.hxx> @@ -717,7 +718,9 @@ sal_uInt16 SfxObjectShell::PrepareClose { SfxHelp::OpenHelpAgent(pFirst->GetFrame(), HID_CLOSE_WARNING); } - nRet = ExecuteQuerySaveDocument(&pFrame->GetWindow(),GetTitle( SFX_TITLE_PICKLIST )); + const Reference< XTitle > xTitle(pImp->xModel, UNO_QUERY_THROW); + const ::rtl::OUString sTitle = xTitle->getTitle (); + nRet = ExecuteQuerySaveDocument(&pFrame->GetWindow(),sTitle); } /*HACK for plugin::destroy()*/ |