summaryrefslogtreecommitdiff
path: root/sfx2/source/doc
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 18:58:17 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 18:58:17 +0000
commite8f28d79cb3bf1b92a45ffdf23678a6b737ade48 (patch)
tree13252c51e15171db96fe85a47da30def242e29e4 /sfx2/source/doc
parent0d1170373634e6f3f2a0ff2780f43ace7e789fc9 (diff)
INTEGRATION: CWS dialogdiet (1.35.12); FILE MERGED
2004/01/07 16:12:15 mba 1.35.12.2: #i22340#: notify every possible title change 2004/01/07 15:28:12 mba 1.35.12.1: #i22340#: notify every possible title change
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r--sfx2/source/doc/objmisc.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx
index eb6d8323e158..127e65c0cb28 100644
--- a/sfx2/source/doc/objmisc.cxx
+++ b/sfx2/source/doc/objmisc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: objmisc.cxx,v $
*
- * $Revision: 1.35 $
+ * $Revision: 1.36 $
*
- * last change: $Author: kz $ $Date: 2003-11-18 16:48:46 $
+ * last change: $Author: hr $ $Date: 2004-02-03 19:58:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -279,6 +279,16 @@ void SfxObjectShell::FlushDocInfo()
String aDocInfoTitle = GetDocInfo().GetTitle();
if ( aDocInfoTitle.Len() )
SetTitle( aDocInfoTitle );
+ else
+ {
+ pImp->aTitle.Erase();
+ SetNamedVisibility_Impl();
+ if ( GetMedium() )
+ {
+ SfxShell::SetName( GetTitle(SFX_TITLE_APINAME) );
+ Broadcast( SfxSimpleHint(SFX_HINT_TITLECHANGED) );
+ }
+ }
}
//-------------------------------------------------------------------------