LibreOffice Module sw (master)  1
PageBreakWin.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_PAGEBREAKWIN_HXX
10 #define INCLUDED_SW_SOURCE_UIBASE_INC_PAGEBREAKWIN_HXX
11 
12 #include "edtwin.hxx"
13 #include "FrameControl.hxx"
14 #include <vcl/builder.hxx>
15 #include <vcl/timer.hxx>
16 #include <boost/optional.hpp>
17 
18 class Menu;
19 class SwPageFrame;
20 
27 {
36 
38 
39 public:
40  SwPageBreakWin( SwEditWin* pEditWin, const SwFrame *pFrame );
41  virtual ~SwPageBreakWin() override;
42  virtual void dispose() override;
43 
44  virtual void Paint( vcl::RenderContext& /*rRenderContext*/, const tools::Rectangle& rRect ) override;
45  virtual void Select( ) override;
46  virtual void MouseMove( const MouseEvent& rMEvt ) override;
47  virtual void Activate( ) override;
48 
50 
51  virtual void ShowAll( bool bShow ) override;
52  virtual bool Contains( const Point &rDocPt ) const override;
53 
54  void SetReadonly( bool bReadonly ) override;
55 
56  void Fade( bool bFadeIn );
57 
58 private:
60  DECL_LINK( HideHandler, Menu *, bool );
61  DECL_LINK( FadeHandler, Timer *, void );
62 };
63 
64 #endif
65 
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class of the Writer layout elements.
Definition: frame.hxx:295
VclPtr< PopupMenu > m_pPopupMenu
VclPtr< vcl::Window > m_pLine
DECL_LINK(HideHandler, Menu *, bool)
Hide the button (used when the popup menu is closed by clicking outside)
Class for the page break control window.
void SetReadonly(bool bReadonly) override
int m_nDelayAppearing
Before we show the control, let it transparent for a few timer ticks to avoid appearing with every mo...
virtual bool Contains(const Point &rDocPt) const override
Returns true if the point is inside the control.
virtual void MouseMove(const MouseEvent &rMEvt) override
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 dispose() override
Class sharing some MenuButton code.
A page of the document layout.
Definition: pagefrm.hxx:40
virtual void Paint(vcl::RenderContext &, const tools::Rectangle &rRect) override
virtual void Select() override
virtual void ShowAll(bool bShow) override
void Fade(bool bFadeIn)
virtual ~SwPageBreakWin() override
SwPageBreakWin(SwEditWin *pEditWin, const SwFrame *pFrame)
VclBuilder m_aBuilder
boost::optional< Point > m_xMousePt
virtual void Activate() override
void UpdatePosition(const boost::optional< Point > &xEvtPt=boost::optional< Point >())