1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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
25 PopupMenu
* m_pPopupMenu
;
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
);
53 DECL_LINK( FadeHandler
, void * );
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */