merge the formfield patch from ooo-build
[ooovba.git] / sd / source / ui / inc / showview.hxx
blob5480709f3fe6b35ff5131623aae849f2ba63ec4e
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: showview.hxx,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SD_SHOW_VIEW_HXX
32 #define SD_SHOW_VIEW_HXX
34 #include <svx/fmview.hxx>
36 class SdDrawDocument;
38 namespace sd {
40 class ViewShell;
42 /*************************************************************************
44 |* Beschreibung ShowView ist die View fuer die Diashow
46 \************************************************************************/
48 class ShowView
49 : public FmFormView
51 public:
52 // wenn waehrend des Zeichnens Plugins 'connected'
53 // werden sollen, muss pWWin ein Zeiger auf das Fenster
54 // sein, das das Plugin benutzen soll
55 ShowView (
56 SdDrawDocument* pDoc,
57 OutputDevice* pOut,
58 ViewShell* pViewShell,
59 ::Window* pWin = NULL);
60 virtual ~ShowView (void);
62 SdDrawDocument& GetDoc() const { return *pDrDoc; }
64 void SetAllowInvalidate(BOOL bFlag);
65 BOOL IsInvalidateAllowed() const;
67 void SetAllowMasterPageCaching(BOOL bAllow)
68 { bAllowMasterPageCaching = bAllow; }
69 BOOL IsMasterPageCachingAllowed() const
70 { return(bAllowMasterPageCaching); }
72 virtual void CompleteRedraw(OutputDevice* pOutDev, const Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector = 0L);
73 virtual void InvalidateOneWin(::Window& rWin);
74 virtual void InvalidateOneWin(::Window& rWin, const Rectangle& rRect);
76 virtual void DoConnect(SdrOle2Obj* pOleObj);
78 private:
79 SdDrawDocument* pDrDoc;
80 ViewShell* mpViewSh;
81 Window* pWindowForPlugIns;
82 USHORT nAllowInvalidateSmph;
83 BOOL bAllowMasterPageCaching;
87 } // end of namespace sd
89 #endif