xref: /AOO41X/main/sw/inc/mdiexp.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir #ifndef _MDIEXP_HXX
28*cdf0e10cSrcweir #define _MDIEXP_HXX
29*cdf0e10cSrcweir 
30*cdf0e10cSrcweir #include <tools/solar.h>
31*cdf0e10cSrcweir #include <tblenum.hxx>
32*cdf0e10cSrcweir #include <layout/layout.hxx>
33*cdf0e10cSrcweir #include <swdllapi.h>
34*cdf0e10cSrcweir 
35*cdf0e10cSrcweir class UniString;
36*cdf0e10cSrcweir class SwRect;
37*cdf0e10cSrcweir class Size;
38*cdf0e10cSrcweir class Dialog;
39*cdf0e10cSrcweir class ViewShell;
40*cdf0e10cSrcweir class SwDoc;
41*cdf0e10cSrcweir class SwDocShell;
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir extern void ScrollMDI(ViewShell* pVwSh, const SwRect &, sal_uInt16 nRangeX, sal_uInt16 nRangeY);
44*cdf0e10cSrcweir extern sal_Bool IsScrollMDI(ViewShell* pVwSh, const SwRect &);
45*cdf0e10cSrcweir extern void SizeNotify(ViewShell* pVwSh, const Size &);
46*cdf0e10cSrcweir 
47*cdf0e10cSrcweir //Update der Statusleiste, waehrend einer Action.
48*cdf0e10cSrcweir extern void PageNumNotify( ViewShell* pVwSh,
49*cdf0e10cSrcweir 							sal_uInt16 nPhyNum,
50*cdf0e10cSrcweir 							sal_uInt16 nVirtNum,
51*cdf0e10cSrcweir 						   const UniString& rPg );
52*cdf0e10cSrcweir 
53*cdf0e10cSrcweir enum FlyMode { FLY_DRAG_START, FLY_DRAG, FLY_DRAG_END };
54*cdf0e10cSrcweir extern void FrameNotify( ViewShell* pVwSh, FlyMode eMode = FLY_DRAG );
55*cdf0e10cSrcweir 
56*cdf0e10cSrcweir SW_DLLPUBLIC void StartProgress	   ( sal_uInt16 nMessId, long nStartVal, long nEndVal, SwDocShell *pDocSh = 0 );
57*cdf0e10cSrcweir SW_DLLPUBLIC void EndProgress  	   ( SwDocShell *pDocSh = 0 );
58*cdf0e10cSrcweir SW_DLLPUBLIC void SetProgressState  ( long nPosition, SwDocShell *pDocShell );
59*cdf0e10cSrcweir void SetProgressText   ( sal_uInt16 nMessId, SwDocShell *pDocShell );
60*cdf0e10cSrcweir void RescheduleProgress( SwDocShell *pDocShell );
61*cdf0e10cSrcweir 
62*cdf0e10cSrcweir void EnableCmdInterface(sal_Bool bEnable = sal_True);
63*cdf0e10cSrcweir 
64*cdf0e10cSrcweir LAYOUT_NS Dialog* GetSearchDialog();
65*cdf0e10cSrcweir 
66*cdf0e10cSrcweir void RepaintPagePreview( ViewShell* pVwSh, const SwRect& rRect );
67*cdf0e10cSrcweir 
68*cdf0e10cSrcweir // ndgrf.cxx
69*cdf0e10cSrcweir // alle QuickDraw-Bitmaps des speziellen Docs loeschen
70*cdf0e10cSrcweir void DelAllGrfCacheEntries( SwDoc* pDoc );
71*cdf0e10cSrcweir 
72*cdf0e10cSrcweir // ChgMode fuer Tabellen aus der Konfiguration lesen
73*cdf0e10cSrcweir TblChgMode GetTblChgDefaultMode();
74*cdf0e10cSrcweir 
75*cdf0e10cSrcweir sal_Bool JumpToSwMark( ViewShell* pVwSh, const UniString& rMark );
76*cdf0e10cSrcweir 
77*cdf0e10cSrcweir 
78*cdf0e10cSrcweir #endif
79