Files
libreoffice/sd/source/ui/inc/drawview.hxx

111 lines
3.3 KiB
C++
Raw Normal View History

2000-09-18 16:07:07 +00:00
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
2000-09-18 16:07:07 +00:00
*
* $RCSfile: drawview.hxx,v $
2000-09-18 16:07:07 +00:00
*
* $Revision: 1.10 $
2000-09-18 16:07:07 +00:00
*
* last change: $Author: ihi $ $Date: 2006-11-14 14:33:34 $
2000-09-18 16:07:07 +00:00
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
2000-09-18 16:07:07 +00:00
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
2000-09-18 16:07:07 +00:00
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
2000-09-18 16:07:07 +00:00
*
* This library 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 for more details.
2000-09-18 16:07:07 +00:00
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
2000-09-18 16:07:07 +00:00
*
************************************************************************/
#ifndef SD_DRAW_VIEW_HXX
#define SD_DRAW_VIEW_HXX
2000-09-18 16:07:07 +00:00
#ifndef SD_VIEW_HXX
#include "View.hxx"
#endif
2000-09-18 16:07:07 +00:00
namespace sd {
class DrawDocShell;
class DrawViewShell;
2000-09-18 16:07:07 +00:00
class FuSlideShow;
class Slideshow;
2000-09-18 16:07:07 +00:00
#define SDDRAWVIEW_MAGIC 0x456789BA
/*************************************************************************
|*
|* Ableitung von ::sd::View; enthaelt auch einen Zeiger auf das Dokument
2000-09-18 16:07:07 +00:00
|*
\************************************************************************/
class DrawView : public ::sd::View
2000-09-18 16:07:07 +00:00
{
public:
2000-09-18 16:07:07 +00:00
TYPEINFO();
DrawView (
DrawDocShell* pDocSh,
OutputDevice* pOutDev,
DrawViewShell* pShell);
virtual ~DrawView (void);
2000-09-18 16:07:07 +00:00
virtual void MarkListHasChanged();
void CompleteRedraw(OutputDevice* pOutDev, const Region& rReg, ::sdr::contact::ViewObjectContactRedirector* pRedirector = 0L);
2000-09-18 16:07:07 +00:00
virtual BOOL SetAttributes(const SfxItemSet& rSet, BOOL bReplaceAll = FALSE);
virtual void SFX_NOTIFY(SfxBroadcaster& rBC, const TypeId& rBCType,
const SfxHint& rHint, const TypeId& rHintType);
void BlockPageOrderChangedHint(BOOL bBlock);
BOOL SetStyleSheet(SfxStyleSheet* pStyleSheet, BOOL bDontRemoveHardAttr = FALSE);
virtual BOOL IsObjMarkable(SdrObject* pObj, SdrPageView* pPV) const;
virtual void MakeVisible(const Rectangle& rRect, ::Window& rWin);
virtual void HideSdrPage(); // SdrPageView* pPV);
2000-09-18 16:07:07 +00:00
void PresPaint(const Region& rRegion);
Slideshow* GetSlideShow() { return mpSlideShow; }
2000-09-18 16:07:07 +00:00
virtual SdrObject* GetMaxToBtmObj(SdrObject* pObj) const;
virtual void DeleteMarked(); // from SdrView
protected:
virtual void ModelHasChanged();
private:
friend class DrawViewRedirector;
DrawDocShell* pDocShell;
DrawViewShell* pDrawViewShell;
VirtualDevice* pVDev;
USHORT nPOCHSmph; // zum blockieren des PageOrderChangedHint
Slideshow* mpSlideShow;
};
2000-09-18 16:07:07 +00:00
} // end of namespace sd
2000-09-18 16:07:07 +00:00
#endif