2000-09-18 16:07:07 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-09 04:28:04 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2005-09-09 04:28:04 +00:00
|
|
|
* $RCSfile: drawview.hxx,v $
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2006-08-01 08:21:45 +00:00
|
|
|
* $Revision: 1.9 $
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2006-08-01 08:21:45 +00:00
|
|
|
* last change: $Author: ihi $ $Date: 2006-08-01 09:21:45 $
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2005-09-09 04:28:04 +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
|
|
|
*
|
|
|
|
*
|
2005-09-09 04:28:04 +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
|
|
|
*
|
2005-09-09 04:28:04 +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
|
|
|
*
|
2005-09-09 04:28:04 +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
|
|
|
*
|
2005-09-09 04:28:04 +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
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2004-01-20 10:50:30 +00:00
|
|
|
#ifndef SD_DRAW_VIEW_HXX
|
|
|
|
#define SD_DRAW_VIEW_HXX
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2004-01-20 10:50:30 +00:00
|
|
|
#ifndef SD_VIEW_HXX
|
|
|
|
#include "View.hxx"
|
|
|
|
#endif
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
2004-01-20 10:50:30 +00:00
|
|
|
namespace sd {
|
|
|
|
|
|
|
|
class DrawDocShell;
|
|
|
|
class DrawViewShell;
|
2000-09-18 16:07:07 +00:00
|
|
|
class FuSlideShow;
|
2004-11-26 19:16:25 +00:00
|
|
|
class Slideshow;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
#define SDDRAWVIEW_MAGIC 0x456789BA
|
|
|
|
|
|
|
|
/*************************************************************************
|
|
|
|
|*
|
2004-01-20 10:50:30 +00:00
|
|
|
|* Ableitung von ::sd::View; enthaelt auch einen Zeiger auf das Dokument
|
2000-09-18 16:07:07 +00:00
|
|
|
|*
|
|
|
|
\************************************************************************/
|
|
|
|
|
2004-07-12 14:11:39 +00:00
|
|
|
class DrawView : public ::sd::View
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2004-01-20 10:50:30 +00:00
|
|
|
public:
|
2000-09-18 16:07:07 +00:00
|
|
|
TYPEINFO();
|
|
|
|
|
2004-01-20 10:50:30 +00:00
|
|
|
DrawView (
|
|
|
|
DrawDocShell* pDocSh,
|
|
|
|
OutputDevice* pOutDev,
|
|
|
|
DrawViewShell* pShell);
|
|
|
|
virtual ~DrawView (void);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
virtual void MarkListHasChanged();
|
2004-07-12 14:11:39 +00:00
|
|
|
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;
|
|
|
|
|
2004-07-13 13:12:20 +00:00
|
|
|
virtual void MakeVisible(const Rectangle& rRect, ::Window& rWin);
|
2000-09-18 16:07:07 +00:00
|
|
|
virtual void HidePage(SdrPageView* pPV);
|
|
|
|
|
|
|
|
void PresPaint(const Region& rRegion);
|
|
|
|
|
2004-11-26 19:16:25 +00:00
|
|
|
Slideshow* GetSlideShow() { return mpSlideShow; }
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
virtual SdrObject* GetMaxToBtmObj(SdrObject* pObj) const;
|
|
|
|
|
2006-01-10 13:32:12 +00:00
|
|
|
virtual void DeleteMarked(); // from SdrView
|
|
|
|
|
2004-01-20 10:50:30 +00:00
|
|
|
protected:
|
|
|
|
virtual void ModelHasChanged();
|
|
|
|
|
|
|
|
private:
|
2004-07-12 14:11:39 +00:00
|
|
|
friend class DrawViewRedirector;
|
|
|
|
|
2004-01-20 10:50:30 +00:00
|
|
|
DrawDocShell* pDocShell;
|
|
|
|
DrawViewShell* pDrawViewShell;
|
|
|
|
VirtualDevice* pVDev;
|
|
|
|
|
|
|
|
USHORT nPOCHSmph; // zum blockieren des PageOrderChangedHint
|
2004-11-26 19:16:25 +00:00
|
|
|
Slideshow* mpSlideShow;
|
2004-01-20 10:50:30 +00:00
|
|
|
};
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2004-01-20 10:50:30 +00:00
|
|
|
} // end of namespace sd
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2004-01-20 10:50:30 +00:00
|
|
|
#endif
|