2010-10-27 12:53:26 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
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
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
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
|
|
|
* 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();
|
2008-08-19 23:16:05 +00:00
|
|
|
void CompleteRedraw(OutputDevice* pOutDev, const Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector = 0L);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2011-01-17 11:41:00 +01:00
|
|
|
virtual sal_Bool SetAttributes(const SfxItemSet& rSet, sal_Bool bReplaceAll = sal_False);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2008-09-30 06:36:06 +00:00
|
|
|
virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2011-01-17 11:41:00 +01:00
|
|
|
void BlockPageOrderChangedHint(sal_Bool bBlock);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2011-01-17 11:41:00 +01:00
|
|
|
sal_Bool SetStyleSheet(SfxStyleSheet* pStyleSheet, sal_Bool bDontRemoveHardAttr = sal_False);
|
|
|
|
virtual sal_Bool IsObjMarkable(SdrObject* pObj, SdrPageView* pPV) const;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
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);
|
|
|
|
|
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
|
|
|
|
2011-01-17 11:41:00 +01:00
|
|
|
sal_uInt16 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
|
2010-10-27 12:53:26 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|