LibreOffice Module vcl (master)
1
vcl
inc
hyperlabel.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
* This file incorporates work covered by the following license notice:
10
*
11
* Licensed to the Apache Software Foundation (ASF) under one or more
12
* contributor license agreements. See the NOTICE file distributed
13
* with this work for additional information regarding copyright
14
* ownership. The ASF licenses this file to you under the Apache
15
* License, Version 2.0 (the "License"); you may not use this file
16
* except in compliance with the License. You may obtain a copy of
17
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
*/
19
#ifndef INCLUDED_VCL_HYPERLABEL_HXX
20
#define INCLUDED_VCL_HYPERLABEL_HXX
21
22
#include <memory>
23
24
#include <
vcl/toolkit/fixed.hxx
>
25
26
namespace
vcl
27
{
28
class
HyperLabel
final :
public
FixedText
29
{
30
Link<HyperLabel*,void>
maClickHdl
;
31
32
virtual
void
MouseMove
(
const
MouseEvent
& rMEvt )
override
;
33
virtual
void
MouseButtonDown
(
const
MouseEvent
& rMEvt )
override
;
34
virtual
void
GetFocus
()
override
;
35
virtual
void
LoseFocus
()
override
;
36
37
void
implInit
();
38
39
using
FixedText::CalcMinimumSize
;
40
41
public
:
42
HyperLabel
(
vcl::Window
* _pParent,
WinBits
_nWinStyle );
43
virtual
~HyperLabel
( )
override
;
44
45
virtual
void
DataChanged
(
const
DataChangedEvent
& rDCEvt )
override
;
46
virtual
void
ApplySettings
(
vcl::RenderContext
& rRenderContext)
override
;
47
48
void
SetID
( sal_Int16
ID
);
49
sal_Int16
GetID
()
const
;
50
51
void
SetIndex
( sal_Int32
Index
);
52
sal_Int32
GetIndex
()
const
;
53
54
void
SetLabel
(
const
OUString& _rText );
55
56
void
ToggleBackgroundColor
(
const
Color
& _rGBColor );
57
void
SetInteractive
(
bool
_bInteractive );
58
59
void
SetClickHdl
(
const
Link<HyperLabel*,void>
& rLink ) {
maClickHdl
= rLink; }
60
61
Size
const
&
CalcMinimumSize
(
tools::Long
nMaxWidth );
62
private
:
63
sal_Int16
ID
;
64
sal_Int32
Index
;
65
bool
bInteractive
;
66
Size
m_aMinSize
;
67
bool
m_bHyperMode
;
68
};
69
}
70
71
#endif
72
73
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Index
struct _ADOIndex Index
Color
DataChangedEvent
Definition:
event.hxx:351
FixedText
Definition:
fixed.hxx:32
FixedText::CalcMinimumSize
Size CalcMinimumSize(tools::Long nMaxWidth=0x7fffffff) const
Definition:
fixed.cxx:324
Link
MouseEvent
Definition:
event.hxx:107
OutputDevice
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition:
outdev.hxx:170
Size
vcl::HyperLabel
Definition:
hyperlabel.hxx:29
vcl::HyperLabel::GetID
sal_Int16 GetID() const
Definition:
hyperlabel.cxx:123
vcl::HyperLabel::GetIndex
sal_Int32 GetIndex() const
Definition:
hyperlabel.cxx:128
vcl::HyperLabel::SetIndex
void SetIndex(sal_Int32 Index)
Definition:
hyperlabel.cxx:138
vcl::HyperLabel::GetFocus
virtual void GetFocus() override
Definition:
hyperlabel.cxx:98
vcl::HyperLabel::maClickHdl
Link< HyperLabel *, void > maClickHdl
Definition:
hyperlabel.hxx:30
vcl::HyperLabel::ToggleBackgroundColor
void ToggleBackgroundColor(const Color &_rGBColor)
Definition:
hyperlabel.cxx:59
vcl::HyperLabel::Index
sal_Int32 Index
Definition:
hyperlabel.hxx:64
vcl::HyperLabel::ApplySettings
virtual void ApplySettings(vcl::RenderContext &rRenderContext) override
Definition:
hyperlabel.cxx:148
vcl::HyperLabel::SetLabel
void SetLabel(const OUString &_rText)
Definition:
hyperlabel.cxx:143
vcl::HyperLabel::HyperLabel
HyperLabel(vcl::Window *_pParent, WinBits _nWinStyle)
Definition:
hyperlabel.cxx:28
vcl::HyperLabel::MouseButtonDown
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
Definition:
hyperlabel.cxx:90
vcl::HyperLabel::m_aMinSize
Size m_aMinSize
Definition:
hyperlabel.hxx:66
vcl::HyperLabel::CalcMinimumSize
Size const & CalcMinimumSize(tools::Long nMaxWidth)
Definition:
hyperlabel.cxx:38
vcl::HyperLabel::bInteractive
bool bInteractive
Definition:
hyperlabel.hxx:65
vcl::HyperLabel::SetInteractive
void SetInteractive(bool _bInteractive)
Definition:
hyperlabel.cxx:118
vcl::HyperLabel::implInit
void implInit()
Definition:
hyperlabel.cxx:48
vcl::HyperLabel::m_bHyperMode
bool m_bHyperMode
Definition:
hyperlabel.hxx:67
vcl::HyperLabel::ID
sal_Int16 ID
Definition:
hyperlabel.hxx:63
vcl::HyperLabel::SetClickHdl
void SetClickHdl(const Link< HyperLabel *, void > &rLink)
Definition:
hyperlabel.hxx:59
vcl::HyperLabel::SetID
void SetID(sal_Int16 ID)
Definition:
hyperlabel.cxx:133
vcl::HyperLabel::DataChanged
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
Definition:
hyperlabel.cxx:159
vcl::HyperLabel::LoseFocus
virtual void LoseFocus() override
Definition:
hyperlabel.cxx:108
vcl::HyperLabel::MouseMove
virtual void MouseMove(const MouseEvent &rMEvt) override
Definition:
hyperlabel.cxx:64
vcl::HyperLabel::~HyperLabel
virtual ~HyperLabel() override
Definition:
hyperlabel.cxx:113
vcl::Window
Definition:
window.hxx:443
fixed.hxx
tools::Long
long Long
vcl
WinBits
sal_Int64 WinBits
Definition:
wintypes.hxx:109
Generated on Sun Jul 30 2023 04:34:57 for LibreOffice Module vcl (master) by
1.9.3