2000-09-18 16:07:07 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 20:05:09 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:05:09 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:05:09 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:05:09 +00:00
|
|
|
* $RCSfile: drawview.hxx,v $
|
|
|
|
* $Revision: 1.14 $
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:05:09 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:05:09 +00: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.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:05:09 +00: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).
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:05:09 +00: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.
|
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
|
|
|
#include "View.hxx"
|
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;
|
2008-04-03 13:01:00 +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();
|
2006-12-12 16:43:15 +00:00
|
|
|
void CompleteRedraw(OutputDevice* pOutDev, const Region& rReg, USHORT nPaintMode = 0, ::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);
|
2006-11-14 13:33:34 +00:00
|
|
|
virtual void HideSdrPage(); // SdrPageView* pPV);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
void PresPaint(const Region& rRegion);
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2006-12-12 16:43:15 +00:00
|
|
|
DrawDocShell* mpDocShell;
|
|
|
|
DrawViewShell* mpDrawViewShell;
|
|
|
|
VirtualDevice* mpVDev;
|
2004-01-20 10:50:30 +00:00
|
|
|
|
2006-12-12 16:43:15 +00:00
|
|
|
USHORT mnPOCHSmph; // zum blockieren des PageOrderChangedHint
|
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
|