nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / uibase / inc / OutlineContentVisibilityWin.hxx
blob13f29fd0f2eb18535cfc7f2de7f0e25061d57fca
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 INCLUDED_SW_SOURCE_UIBASE_INC_OUTLINECONTENTVISIBILITYWIN_HXX
10 #define INCLUDED_SW_SOURCE_UIBASE_INC_OUTLINECONTENTVISIBILITYWIN_HXX
12 #include "edtwin.hxx"
13 #include "FrameControl.hxx"
15 class SwOutlineContentVisibilityWin : public PushButton, public ISwFrameControl
17 private:
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.
21 Timer m_aDelayTimer;
22 bool m_bDestroyed;
23 size_t m_nOutlinePos;
25 void ToggleOutlineContentVisibility(const bool bSubs);
27 public:
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; }
41 void Set();
43 private:
44 DECL_LINK(DelayHandler, Timer*, void);
47 #endif
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */