LibreOffice Module sw (master)  1
UnfloatTableButton.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 
10 #ifndef INCLUDED_SW_SOURCE_UIBASE_DOCVW_UNFLOATTABLEBUTTON_HXX
11 #define INCLUDED_SW_SOURCE_UIBASE_DOCVW_UNFLOATTABLEBUTTON_HXX
12 
13 #include "edtwin.hxx"
14 #include "FrameControl.hxx"
15 
26 {
27  OUString m_sLabel;
28 
29 public:
30  UnfloatTableButton(SwEditWin* pEditWin, const SwFrame* pFrame);
31  virtual ~UnfloatTableButton() override;
32 
33  void SetOffset(Point aTopRightPixel);
34 
35  virtual void MouseButtonDown(const MouseEvent& rMEvt) override;
36  virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
37 
38  virtual void ShowAll(bool bShow) override;
39  virtual bool Contains(const Point& rDocPt) const override;
40 
41  virtual void SetReadonly(bool bReadonly) override;
42 };
43 
44 #endif
45 
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
void SetOffset(Point aTopRightPixel)
Base class of the Writer layout elements.
Definition: frame.hxx:295
virtual void SetReadonly(bool bReadonly) override
virtual bool Contains(const Point &rDocPt) const override
Returns true if the point is inside the control.
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition: edtwin.hxx:58
UnfloatTableButton(SwEditWin *pEditWin, const SwFrame *pFrame)
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
Class sharing some MenuButton code.
virtual ~UnfloatTableButton() override
Class for unfloat table button.
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
virtual void ShowAll(bool bShow) override