summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/viewshel.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-08-04 08:01:43 +0000
committerRüdiger Timm <rt@openoffice.org>2004-08-04 08:01:43 +0000
commitae5cc0318459eaafa5f6fa2c501ef4e2c35ea820 (patch)
treed6c186364882d3dc978a14632e8683bfde5f2443 /sd/source/ui/view/viewshel.cxx
parent170bfbb7c268f6c879b20bca221c8b4d4f1525bb (diff)
INTEGRATION: CWS impress18ea (1.31.10); FILE MERGED
2004/07/28 15:07:56 af 1.31.10.1: #i31419# Added SetIsMainViewShell() and ShowUIControls() methods.
Diffstat (limited to 'sd/source/ui/view/viewshel.cxx')
-rw-r--r--sd/source/ui/view/viewshel.cxx52
1 files changed, 50 insertions, 2 deletions
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index cf4cffe8fd87..7f362c9f8df9 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewshel.cxx,v $
*
- * $Revision: 1.31 $
+ * $Revision: 1.32 $
*
- * last change: $Author: rt $ $Date: 2004-07-15 08:58:29 $
+ * last change: $Author: rt $ $Date: 2004-08-04 09:01:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1667,6 +1667,25 @@ bool ViewShell::IsMainViewShell (void) const
+void ViewShell::SetIsMainViewShell (bool bIsMainViewShell)
+{
+ if (bIsMainViewShell != mpImpl->mbIsMainViewShell)
+ {
+ mpImpl->mbIsMainViewShell = bIsMainViewShell;
+ if (bIsMainViewShell)
+ {
+ GetDocSh()->Connect (this);
+ }
+ else
+ {
+ GetDocSh()->Disconnect (this);
+ }
+ }
+}
+
+
+
+
ObjectBarManager& ViewShell::GetObjectBarManager (void) const
{
return *mpObjectBarManager.get();
@@ -1719,6 +1738,35 @@ ZoomList* ViewShell::GetZoomList (void)
return pZoomList;
}
+
+
+
+void ViewShell::ShowUIControls (bool bVisible)
+{
+ mpImpl->mbIsShowingUIControls = bVisible;
+
+ if (mbHasRulers)
+ {
+ if (mpHorizontalRuler.get() != NULL)
+ mpHorizontalRuler->Show( bVisible );
+
+ if (mpVerticalRuler.get() != NULL)
+ mpVerticalRuler->Show( bVisible );
+ }
+
+ if (mpVerticalScrollBar.get() != NULL)
+ mpVerticalScrollBar->Show( bVisible );
+
+ if (mpHorizontalScrollBar.get() != NULL)
+ mpHorizontalScrollBar->Show( bVisible );
+
+ if (mpContentWindow.get() != NULL)
+ mpContentWindow->Show( bVisible );
+}
+
+
+
+
} // end of namespace sd