2004-01-20 04:39:18 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 14:47:54 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2004-01-20 04:39:18 -06:00
|
|
|
*
|
2008-04-10 14:47:54 -05:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2004-01-20 04:39:18 -06:00
|
|
|
*
|
2008-04-10 14:47:54 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-01-20 04:39:18 -06:00
|
|
|
*
|
2008-04-10 14:47:54 -05:00
|
|
|
* $RCSfile: PresentationViewShell.hxx,v $
|
2008-07-01 07:35:53 -05:00
|
|
|
* $Revision: 1.10 $
|
2004-01-20 04:39:18 -06:00
|
|
|
*
|
2008-04-10 14:47:54 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2004-01-20 04:39:18 -06:00
|
|
|
*
|
2008-04-10 14:47:54 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2004-01-20 04:39:18 -06:00
|
|
|
*
|
2008-04-10 14:47:54 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2004-01-20 04:39:18 -06:00
|
|
|
*
|
2008-04-10 14:47:54 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2004-01-20 04:39:18 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef SD_PRESENTATION_VIEW_SHELL_HXX
|
|
|
|
#define SD_PRESENTATION_VIEW_SHELL_HXX
|
|
|
|
|
|
|
|
#ifndef SD_DRAW_VIEW_SHELL
|
|
|
|
#include "DrawViewShell.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace sd {
|
|
|
|
|
|
|
|
/** This view shell is responsible for showing the presentation of an
|
|
|
|
Impress document.
|
|
|
|
*/
|
2008-04-03 07:55:08 -05:00
|
|
|
class PresentationViewShell : public DrawViewShell
|
2004-01-20 04:39:18 -06:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
TYPEINFO();
|
|
|
|
|
|
|
|
SFX_DECL_VIEWFACTORY(PresViewShell);
|
2006-12-12 10:36:56 -06:00
|
|
|
SFX_DECL_INTERFACE( SD_IF_SDPRESVIEWSHELL )
|
2004-01-20 04:39:18 -06:00
|
|
|
|
2008-04-03 07:55:08 -05:00
|
|
|
PresentationViewShell( SfxViewFrame* pFrame, ViewShellBase& rViewShellBase, ::Window* pParentWindow, FrameView* pFrameView = NULL);
|
2007-04-03 10:06:01 -05:00
|
|
|
virtual ~PresentationViewShell (void);
|
|
|
|
|
2004-07-13 07:59:05 -05:00
|
|
|
/** This method is used by a simple class that passes some
|
|
|
|
arguments from the creator of the new view shell to the new view
|
|
|
|
shell object by waiting for its asynchronous creation.
|
|
|
|
@param pFrameView
|
|
|
|
The frame view that is typically used by the creating object and
|
|
|
|
that shall be shared by the created view shell.
|
|
|
|
*/
|
2008-04-03 07:55:08 -05:00
|
|
|
void FinishInitialization( FrameView* pFrameView );
|
2004-01-20 04:39:18 -06:00
|
|
|
|
2008-07-01 07:35:53 -05:00
|
|
|
virtual void Resize (void);
|
|
|
|
|
2005-02-07 09:13:48 -06:00
|
|
|
protected:
|
|
|
|
virtual SvxRuler* CreateHRuler(::sd::Window* pWin, BOOL bIsFirst);
|
|
|
|
virtual SvxRuler* CreateVRuler(::sd::Window* pWin);
|
|
|
|
|
2004-01-20 04:39:18 -06:00
|
|
|
private:
|
|
|
|
Rectangle maOldVisArea;
|
|
|
|
|
2004-07-13 07:59:05 -05:00
|
|
|
virtual void Activate (BOOL bIsMDIActivate);
|
|
|
|
virtual void Paint (const Rectangle& rRect, ::sd::Window* pWin);
|
2004-01-20 04:39:18 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end of namespace sd
|
|
|
|
|
|
|
|
#endif
|