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