bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / ui / inc / HeaderFooterWin.hxx
blob4983630380cb3bffacfb4df4ea66b04711049d09
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 #ifndef _HEADERFOOTERWINDOW_HXX
10 #define _HEADERFOOTERWINDOW_HXX
12 #include <FrameControl.hxx>
14 #include <vcl/menubtn.hxx>
16 /** Class for the header and footer separator control window.
18 This control is showing the header / footer style name and provides
19 a few useful actions to the user.
21 class SwHeaderFooterWin : public MenuButton, public SwFrameControl
23 OUString m_sLabel;
24 bool m_bIsHeader;
25 PopupMenu* m_pPopupMenu;
26 Window* m_pLine;
27 bool m_bIsAppearing;
28 int m_nFadeRate;
29 Timer m_aFadeTimer;
31 public:
32 SwHeaderFooterWin( SwEditWin* pEditWin, const SwPageFrm* pPageFrm, bool bHeader );
33 ~SwHeaderFooterWin( );
35 void SetOffset( Point aOffset, long nXLineStart, long nXLineEnd );
37 virtual void Paint( const Rectangle& rRect );
38 virtual void MouseButtonDown( const MouseEvent& rMEvt );
39 virtual void Select( );
41 virtual void ShowAll( bool bShow );
42 virtual bool Contains( const Point &rDocPt ) const;
44 bool IsHeader() { return m_bIsHeader; };
45 bool IsEmptyHeaderFooter( );
46 const SwPageFrm* GetPageFrame( );
48 void ExecuteCommand(sal_uInt16 nSlot);
50 void SetReadonly( bool bReadonly );
52 private:
53 DECL_LINK( FadeHandler, void * );
56 #endif
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */