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 $
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 ************************************************************************/
33 #include <tools/solar.h>
34 #include <tblenum.hxx>
35 #include <layout/layout.hxx>
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
,
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
);
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
);