LibreOffice Module sw (master)
1
sw
source
uibase
inc
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
14
class
SwEditWin
;
15
class
SwContentControl
;
16
19
class
SwContentControlAliasButton
final :
public
SwFrameMenuButtonBase
20
{
21
std::unique_ptr<weld::Button>
m_xPushButton
;
22
OUString
m_sLabel
;
23
bool
m_bReadOnly
=
false
;
24
25
public
:
26
SwContentControlAliasButton
(
SwEditWin
* pEditWin,
SwContentControl
* pContentControl);
27
~SwContentControlAliasButton
()
override
;
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
37
private
:
38
DECL_LINK
(ClickHdl,
weld::Button
&,
void
);
39
void
PaintButton
();
40
};
41
42
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FrameControl.hxx
Point
SwContentControlAliasButton
In case the content control has an alias/title, this widget shows it above the top left corner of the...
Definition:
contentcontrolaliasbutton.hxx:20
SwContentControlAliasButton::ShowAll
void ShowAll(bool bShow) override
Definition:
contentcontrolaliasbutton.cxx:136
SwContentControlAliasButton::DECL_LINK
DECL_LINK(ClickHdl, weld::Button &, void)
SwContentControlAliasButton::~SwContentControlAliasButton
~SwContentControlAliasButton() override
Definition:
contentcontrolaliasbutton.cxx:46
SwContentControlAliasButton::m_xPushButton
std::unique_ptr< weld::Button > m_xPushButton
Definition:
contentcontrolaliasbutton.hxx:21
SwContentControlAliasButton::m_bReadOnly
bool m_bReadOnly
Definition:
contentcontrolaliasbutton.hxx:23
SwContentControlAliasButton::SetOffset
void SetOffset(Point aTopLeftPixel)
Definition:
contentcontrolaliasbutton.cxx:55
SwContentControlAliasButton::SwContentControlAliasButton
SwContentControlAliasButton(SwEditWin *pEditWin, SwContentControl *pContentControl)
Definition:
contentcontrolaliasbutton.cxx:33
SwContentControlAliasButton::SetReadonly
void SetReadonly(bool bReadonly) override
Definition:
contentcontrolaliasbutton.cxx:144
SwContentControlAliasButton::SetContentControl
void SetContentControl(SwContentControl *pContentControl)
Definition:
contentcontrolaliasbutton.cxx:146
SwContentControlAliasButton::Contains
bool Contains(const Point &rDocPt) const override
Definition:
contentcontrolaliasbutton.cxx:138
SwContentControlAliasButton::m_sLabel
OUString m_sLabel
Definition:
contentcontrolaliasbutton.hxx:22
SwContentControlAliasButton::PaintButton
void PaintButton()
Definition:
contentcontrolaliasbutton.cxx:90
SwContentControlAliasButton::dispose
void dispose() override
Definition:
contentcontrolaliasbutton.cxx:48
SwContentControl
Stores the properties of a content control.
Definition:
formatcontentcontrol.hxx:111
SwEditWin
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition:
edtwin.hxx:61
SwFrameMenuButtonBase
Class sharing some MenuButton code.
Definition:
FrameControl.hxx:56
weld::Button
Generated on Sun Jul 30 2023 04:29:55 for LibreOffice Module sw (master) by
1.9.3