diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2005-12-14 16:07:07 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2005-12-14 16:07:07 +0000 |
commit | 88b98d36d81eec30de534bf24e286cb9aedb9d4f (patch) | |
tree | 649b4b5c87f5d40b4b6d3e3c979becfebd9655b2 /sd/source/ui/inc/ViewShell.hxx | |
parent | 6a5dbb2151d89077656bef0a8e3c306473325efe (diff) |
INTEGRATION: CWS impressfunctions (1.16.28); FILE MERGED
2005/11/28 17:50:31 cl 1.16.28.2: RESYNC: (1.16-1.17); FILE MERGED
2005/10/28 10:56:31 cl 1.16.28.1: #125341# reworked FuPoor classes to use refcounting
Diffstat (limited to 'sd/source/ui/inc/ViewShell.hxx')
-rw-r--r-- | sd/source/ui/inc/ViewShell.hxx | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/sd/source/ui/inc/ViewShell.hxx b/sd/source/ui/inc/ViewShell.hxx index a0309927331e..b40c169bf990 100644 --- a/sd/source/ui/inc/ViewShell.hxx +++ b/sd/source/ui/inc/ViewShell.hxx @@ -4,9 +4,9 @@ * * $RCSfile: ViewShell.hxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: rt $ $Date: 2005-10-19 12:25:04 $ + * last change: $Author: rt $ $Date: 2005-12-14 17:07:07 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -188,7 +188,6 @@ public: virtual void Exit (void); void Cancel(); - void CancelSearching(); /** Return the window that is the parent of all controls of this view shell. This may or may not be the window of the frame. @@ -317,10 +316,15 @@ public: */ virtual SdPage* getCurrentPage() const = 0; - FuPoor* GetOldFunction() const { return pFuOld; } - FuPoor* GetActualFunction() const { return pFuActual; } - void SetCurrentFunction (FuPoor* pFunction); - void SetOldFunction (FuPoor* pFunction); + FunctionReference GetOldFunction() const { return mxOldFunction; } + bool HasOldFunction() const { return mxOldFunction.is(); } + FunctionReference GetCurrentFunction() const { return mxCurrentFunction; } + bool HasCurrentFunction( USHORT nSID ) { return mxCurrentFunction.is() && (mxCurrentFunction->GetSlotID() == nSID ); } + bool HasCurrentFunction() { return mxCurrentFunction.is(); } + + void SetCurrentFunction(const FunctionReference& xFunction); + void SetOldFunction(const FunctionReference& xFunction); + void DeactivateCurrentFunction( bool bPermanent = false ); Slideshow* GetSlideShow() const { return mpSlideShow; } void SetSlideShow(Slideshow* pSlideShow ); @@ -521,6 +525,10 @@ public: BOOL IsPageFlipMode(void) const; protected: + /** must be called in the beginning of each subclass d'tor. + disposes and clears both current and old function. */ + void DisposeFunctions(); + friend class ViewShellBase; /** Window inside the rulers and scroll bars that shows a view of the @@ -550,9 +558,8 @@ protected: ::sd::View* mpView; FrameView* pFrameView; - FuPoor* pFuActual; - FuPoor* pFuOld; - FuSearch* pFuSearch; + FunctionReference mxCurrentFunction; + FunctionReference mxOldFunction; Slideshow* mpSlideShow; ZoomList* pZoomList; |