merge the formfield patch from ooo-build
[ooovba.git] / sw / inc / mdiexp.hxx
blob29c1e3467c6e9b7d7c0a12373c960f350f0fea89
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: mdiexp.hxx,v $
10 * $Revision: 1.7 $
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 ************************************************************************/
30 #ifndef _MDIEXP_HXX
31 #define _MDIEXP_HXX
33 #include <tools/solar.h>
34 #include <tblenum.hxx>
35 #include <layout/layout.hxx>
36 #include <swdllapi.h>
38 class UniString;
39 class SwRect;
40 class Size;
41 class Dialog;
42 class ViewShell;
43 class SwDoc;
44 class SwDocShell;
46 extern void ScrollMDI(ViewShell* pVwSh, const SwRect &, USHORT nRangeX, USHORT nRangeY);
47 extern BOOL IsScrollMDI(ViewShell* pVwSh, const SwRect &);
48 extern void SizeNotify(ViewShell* pVwSh, const Size &);
50 //Update der Statusleiste, waehrend einer Action.
51 extern void PageNumNotify( ViewShell* pVwSh,
52 USHORT nPhyNum,
53 USHORT nVirtNum,
54 const UniString& rPg );
56 enum FlyMode { FLY_DRAG_START, FLY_DRAG, FLY_DRAG_END };
57 extern void FrameNotify( ViewShell* pVwSh, FlyMode eMode = FLY_DRAG );
59 SW_DLLPUBLIC void StartProgress ( USHORT nMessId, long nStartVal, long nEndVal, SwDocShell *pDocSh = 0 );
60 SW_DLLPUBLIC void EndProgress ( SwDocShell *pDocSh = 0 );
61 SW_DLLPUBLIC void SetProgressState ( long nPosition, SwDocShell *pDocShell );
62 void SetProgressText ( USHORT nMessId, SwDocShell *pDocShell );
63 void RescheduleProgress( SwDocShell *pDocShell );
65 void EnableCmdInterface(BOOL bEnable = TRUE);
67 LAYOUT_NS Dialog* GetSearchDialog();
69 void RepaintPagePreview( ViewShell* pVwSh, const SwRect& rRect );
71 // ndgrf.cxx
72 // alle QuickDraw-Bitmaps des speziellen Docs loeschen
73 void DelAllGrfCacheEntries( SwDoc* pDoc );
75 // ChgMode fuer Tabellen aus der Konfiguration lesen
76 TblChgMode GetTblChgDefaultMode();
78 BOOL JumpToSwMark( ViewShell* pVwSh, const UniString& rMark );
81 #endif