summaryrefslogtreecommitdiff
path: root/sd/source/ui/inc/ViewShellBase.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-03-21 16:28:51 +0000
committerOliver Bolte <obo@openoffice.org>2006-03-21 16:28:51 +0000
commit1e49c003786efd9c41148023980d78635602745f (patch)
tree617eae1833b2e676acb47e93a657936001fe2e64 /sd/source/ui/inc/ViewShellBase.hxx
parent5d03bedf2fe97dd1cbe0ece8b0be213145cb28dc (diff)
INTEGRATION: CWS viewswitch (1.14.62); FILE MERGED
2006/02/02 09:54:23 af 1.14.62.3: #i61191# Moved ViewTabBar, ArrangeGUIElements(), and Resize() to ViewShellBaseImplementation. 2005/11/29 14:35:32 af 1.14.62.2: #i57552# Removed UpdateController(). Added GetController(). 2005/11/17 14:11:09 af 1.14.62.1: #i57551# Added access to ToolBarManager and FormShellManager.
Diffstat (limited to 'sd/source/ui/inc/ViewShellBase.hxx')
-rw-r--r--sd/source/ui/inc/ViewShellBase.hxx57
1 files changed, 22 insertions, 35 deletions
diff --git a/sd/source/ui/inc/ViewShellBase.hxx b/sd/source/ui/inc/ViewShellBase.hxx
index 88c6e6ed4156..091b6f2541ad 100644
--- a/sd/source/ui/inc/ViewShellBase.hxx
+++ b/sd/source/ui/inc/ViewShellBase.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ViewShellBase.hxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: hr $ $Date: 2005-09-23 14:59:28 $
+ * last change: $Author: obo $ $Date: 2006-03-21 17:28:51 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -59,10 +59,12 @@ class EventMultiplexer;
namespace sd {
+class DrawController;
class DrawDocShell;
class FormShellManager;
class PaneManager;
class PrintManager;
+class ToolBarManager;
class UpdateLockManager;
class ViewShell;
class ViewShellManager;
@@ -138,12 +140,6 @@ public:
*/
virtual void GetState (SfxItemSet& rSet);
- /** Make sure that the given controller is known and used by the frame.
- @param pController
- The new controller. Usually that of the main view shell.
- */
- void UpdateController (SfxBaseController* pController);
-
SvBorder GetBorder (bool bOuterResize);
virtual void InnerResizePixel (const Point& rOrigin, const Size& rSize);
virtual void OuterResizePixel (const Point& rOrigin, const Size& rSize);
@@ -213,12 +209,6 @@ public:
virtual SdrView* GetDrawView (void) const;
virtual void AdjustPosSizePixel (const Point &rOfs, const Size &rSize);
- /** Arrange GUI elements of the pane which shows the given view shell.
- @return
- The returned border contains the controls placed by the method.
- */
- SvBorder ArrangeGUIElements (const Point& rOrigin, const Size& rSize);
-
/** When <TRUE/> is given, then the mouse shape is set to hour glass (or
whatever the busy shape looks like on the system.)
*/
@@ -262,17 +252,30 @@ public:
*/
tools::EventMultiplexer& GetEventMultiplexer (void);
- /* returns the complete area of the current view relative to the frame window */
- inline const Rectangle& getClientRectangle() const;
+ /** returns the complete area of the current view relative to the frame
+ window
+ */
+ const Rectangle& getClientRectangle() const;
UpdateLockManager& GetUpdateLockManager (void) const;
+ ToolBarManager& GetToolBarManager (void) const;
+
+ FormShellManager& GetFormShellManager (void) const;
+
+ DrawController& GetDrawController (void) const;
+
protected:
osl::Mutex maMutex;
- /** The view tab bar is the control for switching between different
- views in one pane.
+
+ /** Factory method for creating the ViewTabBar member that allows
+ derived classes to have no ViewTabBar.
+ @return
+ When the ViewTabBar is supported then a new instance of that
+ class is returned. Otherwise it returns <NULL/>.
*/
- ::std::auto_ptr<ViewTabBar> mpViewTabBar;
+ virtual ViewTabBar* CreateViewTabBar (void);
+
virtual void SFX_NOTIFY(SfxBroadcaster& rBC,
const TypeId& rBCType,
const SfxHint& rHint,
@@ -293,18 +296,8 @@ private:
::std::auto_ptr<tools::EventMultiplexer> mpEventMultiplexer;
- // contains the complete area of the current view relative to the frame window
- Rectangle maClientArea;
-
::std::auto_ptr<UpdateLockManager> mpUpdateLockManager;
- /** Common code of OuterResizePixel() and InnerResizePixel().
- */
- void ResizePixel (
- const Point& rOrigin,
- const Size& rSize,
- bool bOuterResize);
-
/** Determine from the properties of the document shell the initial type
of the view shell in the center pane. We use this method to avoid
starting with the wrong type. When ReadUserDataSequence() is called
@@ -319,12 +312,6 @@ private:
DECL_LINK(WindowEventHandler,VclWindowEvent*);
};
-
-inline const Rectangle& ViewShellBase::getClientRectangle() const
-{
- return maClientArea;
-}
-
} // end of namespace sd
#endif