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 std::unique_ptr<weld::Button> m_xPushButton;
28 OUString m_sLabel;
29
30public:
31 UnfloatTableButton(SwEditWin* pEditWin, const SwFrame* pFrame);
32 virtual void dispose() override;
33 virtual ~UnfloatTableButton() override;
34
35 void SetOffset(Point aTopRightPixel);
36
37 virtual void MouseButtonDown(const MouseEvent& rMEvt) override;
38
39 virtual void ShowAll(bool bShow) override;
40 virtual bool Contains(const Point& rDocPt) const override;
41
42 virtual void SetReadonly(bool bReadonly) override;
43
44private:
45 void PaintButton();
46};
47
48#endif
49
50/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition: edtwin.hxx:61
Class sharing some MenuButton code.
Base class of the Writer layout elements.
Definition: frame.hxx:315
Class for unfloat table button.
virtual bool Contains(const Point &rDocPt) const override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
virtual void ShowAll(bool bShow) override
virtual void SetReadonly(bool bReadonly) override
std::unique_ptr< weld::Button > m_xPushButton
virtual ~UnfloatTableButton() override
UnfloatTableButton(SwEditWin *pEditWin, const SwFrame *pFrame)
virtual void dispose() override
void SetOffset(Point aTopRightPixel)