xref: /trunk/main/sw/inc/mdiexp.hxx (revision 1d2dbeb0)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _MDIEXP_HXX
24 #define _MDIEXP_HXX
25 
26 #include <tools/solar.h>
27 #include <tblenum.hxx>
28 #include <layout/layout.hxx>
29 #include <swdllapi.h>
30 
31 class UniString;
32 class SwRect;
33 class Size;
34 class Dialog;
35 class ViewShell;
36 class SwDoc;
37 class SwDocShell;
38 
39 extern void ScrollMDI(ViewShell* pVwSh, const SwRect &, sal_uInt16 nRangeX, sal_uInt16 nRangeY);
40 extern sal_Bool IsScrollMDI(ViewShell* pVwSh, const SwRect &);
41 extern void SizeNotify(ViewShell* pVwSh, const Size &);
42 
43 //Update der Statusleiste, waehrend einer Action.
44 extern void PageNumNotify( ViewShell* pVwSh,
45 							sal_uInt16 nPhyNum,
46 							sal_uInt16 nVirtNum,
47 						   const UniString& rPg );
48 
49 enum FlyMode { FLY_DRAG_START, FLY_DRAG, FLY_DRAG_END };
50 extern void FrameNotify( ViewShell* pVwSh, FlyMode eMode = FLY_DRAG );
51 
52 SW_DLLPUBLIC void StartProgress	   ( sal_uInt16 nMessId, long nStartVal, long nEndVal, SwDocShell *pDocSh = 0 );
53 SW_DLLPUBLIC void EndProgress  	   ( SwDocShell *pDocSh = 0 );
54 SW_DLLPUBLIC void SetProgressState  ( long nPosition, SwDocShell *pDocShell );
55 void SetProgressText   ( sal_uInt16 nMessId, SwDocShell *pDocShell );
56 void RescheduleProgress( SwDocShell *pDocShell );
57 
58 void EnableCmdInterface(sal_Bool bEnable = sal_True);
59 
60 LAYOUT_NS Dialog* GetSearchDialog();
61 
62 void RepaintPagePreview( ViewShell* pVwSh, const SwRect& rRect );
63 
64 // ndgrf.cxx
65 // alle QuickDraw-Bitmaps des speziellen Docs loeschen
66 void DelAllGrfCacheEntries( SwDoc* pDoc );
67 
68 // ChgMode fuer Tabellen aus der Konfiguration lesen
69 TblChgMode GetTblChgDefaultMode();
70 
71 sal_Bool JumpToSwMark( ViewShell* pVwSh, const UniString& rMark );
72 
73 // IAccessible2 Implementation
74 extern void AccessibilityScrollMDI(ViewShell* pVwSh, const SwRect &, sal_uInt16 nRangeX, sal_uInt16 nRangeY, sal_Bool isLeftTop);
75 
76 #endif
77