LibreOffice Module sw (master)  1
OutlineContentVisibilityWin.hxx
Go to the documentation of this file.
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 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_OUTLINECONTENTVISIBILITYWIN_HXX
10 #define INCLUDED_SW_SOURCE_UIBASE_INC_OUTLINECONTENTVISIBILITYWIN_HXX
11 
12 #include "edtwin.hxx"
13 #include "FrameControl.hxx"
14 
16 {
17 private:
19  const SwFrame* m_pFrame;
23  size_t m_nOutlinePos;
24 
25  void ToggleOutlineContentVisibility(const bool bSubs);
26 
27 public:
28  SwOutlineContentVisibilityWin(SwEditWin* pEditWin, const SwFrame* pFrame);
29  virtual ~SwOutlineContentVisibilityWin() override { disposeOnce(); }
30  virtual void dispose() override;
31 
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; }
40 
41  void Set();
42 
43 private:
44  DECL_LINK(DelayHandler, Timer*, void);
45 };
46 
47 #endif
48 
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class of the Writer layout elements.
Definition: frame.hxx:298
virtual bool Contains(const Point &rDocPt) const override
Returns true if the point is inside the control.
virtual SwEditWin * GetEditWin() override
virtual const SwFrame * GetFrame() override
int m_nDelayAppearing
Before we show the control, wait a few timer ticks to avoid appearing with every mouse over...
DECL_LINK(DelayHandler, Timer *, void)
Abstract interface to be implemented by writer FrameControls.
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition: edtwin.hxx:58
virtual void SetReadonly(bool) override
void ToggleOutlineContentVisibility(const bool bSubs)
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
virtual void MouseMove(const MouseEvent &rMEvt) override
virtual void ShowAll(bool bShow) override
SwOutlineContentVisibilityWin(SwEditWin *pEditWin, const SwFrame *pFrame)
virtual void KeyInput(const KeyEvent &rKEvt) override