1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  *   Licensed to the Apache Software Foundation (ASF) under one or more
12  *   contributor license agreements. See the NOTICE file distributed
13  *   with this work for additional information regarding copyright
14  *   ownership. The ASF licenses this file to you under the Apache
15  *   License, Version 2.0 (the "License"); you may not use this file
16  *   except in compliance with the License. You may obtain a copy of
17  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_SW_INC_MDIEXP_HXX
20 #define INCLUDED_SW_INC_MDIEXP_HXX
21 
22 #include <rtl/ustring.hxx>
23 #include "tblenum.hxx"
24 #include "swdllapi.h"
25 
26 class SwRect;
27 class Size;
28 class SwViewShell;
29 class SwDocShell;
30 
31 extern void ScrollMDI(SwViewShell const * pVwSh, const SwRect &, sal_uInt16 nRangeX, sal_uInt16 nRangeY);
32 extern bool IsScrollMDI(SwViewShell const * pVwSh, const SwRect &);
33 extern void SizeNotify(SwViewShell const * pVwSh, const Size &);
34 
35 // Update of status bar during an action.
36 extern void PageNumNotify( SwViewShell const * pVwSh,
37                             sal_uInt16 nPhyNum,
38                             sal_uInt16 nVirtNum,
39                            const OUString& rPg );
40 
41 enum FlyMode { FLY_DRAG_START, FLY_DRAG, FLY_DRAG_END };
42 extern void FrameNotify( SwViewShell* pVwSh, FlyMode eMode = FLY_DRAG );
43 
44 SW_DLLPUBLIC void StartProgress(const char* pMessId, long nStartVal, long nEndVal, SwDocShell *pDocSh = nullptr);
45 SW_DLLPUBLIC void EndProgress      ( SwDocShell const *pDocSh );
46 SW_DLLPUBLIC void SetProgressState  ( long nPosition, SwDocShell const *pDocShell );
47 void RescheduleProgress( SwDocShell const *pDocShell );
48 
49 void RepaintPagePreview( SwViewShell const * pVwSh, const SwRect& rRect );
50 
51 // Read ChgMode for tables from configuration.
52 TableChgMode GetTableChgDefaultMode();
53 
54 bool JumpToSwMark( SwViewShell const * pVwSh, const OUString& rMark );
55 
56 #endif
57 
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
59