LibreOffice Module sw (master) 1
contentcontrolaliasbutton.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#pragma once
11
12#include "FrameControl.hxx"
13
14class SwEditWin;
16
20{
21 std::unique_ptr<weld::Button> m_xPushButton;
22 OUString m_sLabel;
23 bool m_bReadOnly = false;
24
25public:
26 SwContentControlAliasButton(SwEditWin* pEditWin, SwContentControl* pContentControl);
28
29 bool Contains(const Point& rDocPt) const override;
30 void SetReadonly(bool bReadonly) override;
31 void ShowAll(bool bShow) override;
32 void dispose() override;
33
34 void SetContentControl(SwContentControl* pContentControl);
35 void SetOffset(Point aTopLeftPixel);
36
37private:
38 DECL_LINK(ClickHdl, weld::Button&, void);
39 void PaintButton();
40};
41
42/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
In case the content control has an alias/title, this widget shows it above the top left corner of the...
DECL_LINK(ClickHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xPushButton
void SetOffset(Point aTopLeftPixel)
SwContentControlAliasButton(SwEditWin *pEditWin, SwContentControl *pContentControl)
void SetReadonly(bool bReadonly) override
void SetContentControl(SwContentControl *pContentControl)
bool Contains(const Point &rDocPt) const override
Stores the properties of a content control.
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.