diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2008-11-19 13:34:57 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2008-11-19 13:34:57 +0000 |
commit | 6505290cca247b947b2a4e4dd40a2bfdd183c386 (patch) | |
tree | 16246185f7e242ee84119860d2d8407e065af869 | |
parent | 13c18a056995da1b61f7184899e8f6eeb63138db (diff) |
CWS-TOOLING: integrate CWS fwk94_DEV300
-rw-r--r-- | sw/source/ui/misc/glshell.cxx | 13 | ||||
-rw-r--r-- | sw/source/ui/misc/makefile.mk | 3 |
2 files changed, 14 insertions, 2 deletions
diff --git a/sw/source/ui/misc/glshell.cxx b/sw/source/ui/misc/glshell.cxx index 7aca8aa14172..4ad5311307c9 100644 --- a/sw/source/ui/misc/glshell.cxx +++ b/sw/source/ui/misc/glshell.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: glshell.cxx,v $ - * $Revision: 1.17 $ + * $Revision: 1.17.236.1 $ * * This file is part of OpenOffice.org. * @@ -31,6 +31,7 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_sw.hxx" +#include <com/sun/star/frame/XTitle.hpp> #include <tools/list.hxx> #include <svtools/eitem.hxx> @@ -78,6 +79,7 @@ #include <swslots.hxx> #endif +using namespace ::com::sun::star; SFX_IMPL_INTERFACE( SwGlosDocShell, SwDocShell, SW_RES(0) ) { @@ -340,6 +342,15 @@ SwDocShellRef SwGlossaries::EditGroupDoc( const String& rGroup, const String& rS } xDocSh->SetTitle( aDocTitle ); + try + { + // set the UI-title + uno::Reference< frame::XTitle > xTitle( xDocSh->GetModel(), uno::UNO_QUERY_THROW ); + xTitle->setTitle( aDocTitle ); + } + catch( uno::Exception& ) + {} + xDocSh->GetDoc()->DoUndo( bDoesUndo ); xDocSh->GetDoc()->ResetModified(); if ( bShow ) diff --git a/sw/source/ui/misc/makefile.mk b/sw/source/ui/misc/makefile.mk index 11ae97a58442..a0f2484f4880 100644 --- a/sw/source/ui/misc/makefile.mk +++ b/sw/source/ui/misc/makefile.mk @@ -8,7 +8,7 @@ # # $RCSfile: makefile.mk,v $ # -# $Revision: 1.14 $ +# $Revision: 1.14.236.1 $ # # This file is part of OpenOffice.org. # @@ -61,6 +61,7 @@ SRC1FILES=\ EXCEPTIONSFILES = \ $(SLO)$/glossary.obj \ $(SLO)$/glosdoc.obj \ + $(SLO)$/glshell.obj \ $(SLO)$/numberingtypelistbox.obj \ $(SLO)$/outline.obj \ $(SLO)$/redlndlg.obj |