Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sw / mdiexp.hxx
blobf5413ac9ab7dbb5ecaa49bdc439f081171e86704
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: mdiexp.hxx,v $
10 * $Revision: 1.5 $
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 #ifndef _SOLAR_H
34 #include <tools/solar.h>
35 #endif
36 class UniString;
37 class Size;
38 class Dialog;
40 namespace binfilter {
43 class SwRect;
44 class ViewShell;
45 class SwDoc;
46 class SwDocShell;
47 class SfxObjectShell;
48 class SfxFrame;
50 extern void ScrollMDI(ViewShell* pVwSh, const SwRect &, USHORT nRangeX, USHORT nRangeY);
51 extern BOOL IsScrollMDI(ViewShell* pVwSh, const SwRect &);
52 extern void SizeNotify(ViewShell* pVwSh, const Size &);
54 //Update der Statusleiste, waehrend einer Action.
55 extern void PageNumNotify( ViewShell* pVwSh,
56 USHORT nPhyNum,
57 USHORT nVirtNum,
58 const UniString& rPg );
60 enum FlyMode { FLY_DRAG_START, FLY_DRAG, FLY_DRAG_END };
61 extern void FrameNotify( ViewShell* pVwSh, FlyMode eMode = FLY_DRAG );
63 void StartProgress ( USHORT nMessId, long nStartVal, long nEndVal, SwDocShell *pDocSh = 0 );
64 void EndProgress ( SwDocShell *pDocSh = 0 );
65 void SetProgressState ( long nPosition, SwDocShell *pDocShell );
66 void RescheduleProgress( SwDocShell *pDocShell );
68 void EnableCmdInterface(BOOL bEnable = TRUE);
70 Dialog* GetSearchDialog();
72 void RepaintPagePreview( ViewShell* pVwSh, const SwRect& rRect );
74 // ndgrf.cxx
75 // alle QuickDraw-Bitmaps des speziellen Docs loeschen
76 void DelAllGrfCacheEntries( SwDoc* pDoc );
78 extern void JavaScriptScrollMDI( SfxFrame* pFrame, INT32 nX, INT32 nY );
80 // ChgMode fuer Tabellen aus der Konfiguration lesen
81 USHORT GetTblChgDefaultMode();
83 BOOL JumpToSwMark( ViewShell* pVwSh, const UniString& rMark );
86 } //namespace binfilter
87 #endif