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 INCLUDED_SW_SOURCE_UIBASE_INC_OUTLINECONTENTVISIBILITYWIN_HXX
10 #define INCLUDED_SW_SOURCE_UIBASE_INC_OUTLINECONTENTVISIBILITYWIN_HXX
13 #include "FrameControl.hxx"
15 class SwOutlineContentVisibilityWin
: public PushButton
, public ISwFrameControl
18 VclPtr
<SwEditWin
> m_pEditWin
;
19 const SwFrame
* m_pFrame
;
20 int m_nDelayAppearing
; ///< Before we show the control, wait a few timer ticks to avoid appearing with every mouse over.
25 void ToggleOutlineContentVisibility(const bool bSubs
);
28 SwOutlineContentVisibilityWin(SwEditWin
* pEditWin
, const SwFrame
* pFrame
);
29 virtual ~SwOutlineContentVisibilityWin() override
{ disposeOnce(); }
30 virtual void dispose() override
;
32 virtual void KeyInput(const KeyEvent
& rKEvt
) override
;
33 virtual void MouseButtonDown(const MouseEvent
& rMEvt
) override
;
34 virtual void MouseMove(const MouseEvent
& rMEvt
) override
;
35 virtual void ShowAll(bool bShow
) override
;
36 virtual bool Contains(const Point
& rDocPt
) const override
;
37 virtual void SetReadonly(bool /*bReadonly*/) override
{}
38 virtual const SwFrame
* GetFrame() override
{ return m_pFrame
; }
39 virtual SwEditWin
* GetEditWin() override
{ return m_pEditWin
; }
44 DECL_LINK(DelayHandler
, Timer
*, void);
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */