summaryrefslogtreecommitdiff
path: root/sfx2/source/view
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-09-04 09:39:24 +0000
committerMathias Bauer <mba@openoffice.org>2001-09-04 09:39:24 +0000
commit4080445a28383a456b0ad93f99dba71b57708da6 (patch)
treeff62deb58ea78c76e9e402f600a04f054ff1a7e5 /sfx2/source/view
parent98531022281be47643823fa589001f22b68f5afc (diff)
#91674#: remove border in presentation; #90009#: no UI for help view
Diffstat (limited to 'sfx2/source/view')
-rw-r--r--sfx2/source/view/topfrm.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/sfx2/source/view/topfrm.cxx b/sfx2/source/view/topfrm.cxx
index 72a94aa55741..a1f70b69149a 100644
--- a/sfx2/source/view/topfrm.cxx
+++ b/sfx2/source/view/topfrm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: topfrm.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: mba $ $Date: 2001-08-31 15:52:31 $
+ * last change: $Author: mba $ $Date: 2001-09-04 10:39:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -421,6 +421,9 @@ SfxTopFrame::~SfxTopFrame()
void SfxTopFrame::SetPresentationMode( BOOL bSet )
{
+ if ( GetCurrentViewFrame() )
+ GetCurrentViewFrame()->GetWindow().SetBorderStyle( bSet ? WINDOW_BORDER_NOBORDER : WINDOW_BORDER_NORMAL );
+
SetMenuBarOn_Impl( !bSet );
if ( GetWorkWindow_Impl() )
GetWorkWindow_Impl()->SetDockingAllowed( !bSet );
@@ -657,6 +660,13 @@ sal_Bool SfxTopFrame::InsertDocument( SfxObjectShell* pDoc )
if ( !pImp->bHidden )
{
+#if SUPD>=640
+ const SfxFilter* pFilter = pDoc->GetMedium()->GetFilter();
+ if ( pFilter && pFilter->GetFilterName().CompareToAscii("writer_web_HTML_help") == COMPARE_EQUAL )
+ pFrame->GetDispatcher()->HideUI( TRUE );
+ else
+ pFrame->GetDispatcher()->HideUI( FALSE );
+#endif
pFrame->Show();
GetWindow().Show();
pFrame->MakeActive_Impl( TRUE );