LibreOffice Module vcl (master)
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
vcl
vclevent.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
20
#ifndef INCLUDED_VCL_VCLEVENT_HXX
21
#define INCLUDED_VCL_VCLEVENT_HXX
22
23
#include <
vcl/dllapi.h
>
24
#include <
vcl/vclptr.hxx
>
25
26
class
Menu
;
27
28
namespace
com::sun::star::accessibility
{
29
class
XAccessible;
30
}
31
32
namespace
vcl
33
{
34
class
Window
;
35
}
36
37
enum class
VclEventId
38
{
39
NONE
,
40
ApplicationDataChanged
,
// pData = DataChangedEvent*
41
ButtonClick
,
42
CheckboxToggle
,
43
ComboboxDeselect
,
44
ComboboxDoubleClick
,
45
ComboboxItemAdded
,
// pData = itempos
46
ComboboxItemRemoved
,
// pData = itempos, -1=All
47
ComboboxSelect
,
48
ComboboxSetText
,
49
ControlGetFocus
,
50
ControlLoseFocus
,
51
DropdownClose
,
52
DropdownOpen
,
53
DropdownPreOpen
,
54
DropdownSelect
,
55
EditCaretChanged
,
56
EditModify
,
57
EditSelectionChanged
,
58
ExtTextInput
,
59
EndExtTextInput
,
60
ItemCollapsed
,
61
ItemExpanded
,
62
ListboxDoubleClick
,
63
ListboxFocus
,
64
ListboxItemAdded
,
// pData = itempos
65
ListboxItemRemoved
,
// pData = itempos, -1=All
66
ListboxScrolled
,
67
ListboxSelect
,
68
ListboxTreeFocus
,
69
ListboxTreeSelect
,
70
MenuAccessibleNameChanged
,
71
MenuActivate
,
72
MenuDeactivate
,
73
MenuDehighlight
,
74
MenuDisable
,
75
MenuEnable
,
76
MenuHide
,
77
MenuHighlight
,
78
MenuInsertItem
,
79
MenuItemChecked
,
80
MenuItemTextChanged
,
81
MenuItemUnchecked
,
82
MenuRemoveItem
,
83
MenuSelect
,
84
MenuShow
,
85
MenuSubmenuActivate
,
86
MenuSubmenuChanged
,
87
MenuSubmenuDeactivate
,
88
ObjectDying
,
89
PushbuttonToggle
,
90
RadiobuttonToggle
,
91
RoadmapItemSelected
,
92
ScrollbarEndScroll
,
93
ScrollbarScroll
,
94
SpinbuttonDown
,
95
SpinbuttonUp
,
96
SpinfieldDown
,
97
SpinfieldFirst
,
98
SpinfieldLast
,
99
SpinfieldUp
,
100
StatusbarAllItemsRemoved
,
101
StatusbarDrawItem
,
// pData = itemid
102
StatusbarHideItem
,
// pData = itemid
103
StatusbarItemAdded
,
// pData = itemid
104
StatusbarItemRemoved
,
// pData = itemid
105
StatusbarNameChanged
,
// pData = itemid
106
StatusbarShowItem
,
// pData = itemid
107
TabbarPageActivated
,
// pData = pageid
108
TabbarPageDeactivated
,
// pData = pageid
109
TabbarPageInserted
,
// pData = pageid
110
TabbarPageMoved
,
// pData = Pair( pagepos_old, pagepos_new )
111
TabbarPageRemoved
,
// pData = pageid
112
TabbarPageSelected
,
// pData = pageid
113
TabbarPageTextChanged
,
// pData = pageid
114
TableRowSelect
,
115
TabpageActivate
,
// pData = pageid
116
TabpageDeactivate
,
// pData = pageid
117
TabpageInserted
,
// pData = pageid
118
TabpagePageTextChanged
,
// pData = pageid
119
TabpageRemoved
,
// pData = pageid
120
TabpageRemovedAll
,
121
ToolboxActivate
,
122
ToolboxAllItemsChanged
,
123
ToolboxButtonStateChanged
,
// pData = itempos
124
ToolboxClick
,
125
ToolboxDeactivate
,
126
ToolboxDoubleClick
,
127
ToolboxFormatChanged
,
// request new layout
128
ToolboxHighlight
,
129
ToolboxHighlightOff
,
// pData = itempos
130
ToolboxItemAdded
,
// pData = itempos
131
ToolboxItemDisabled
,
// pData = itempos
132
ToolboxItemEnabled
,
// pData = itempos
133
ToolboxItemRemoved
,
// pData = itempos
134
ToolboxItemTextChanged
,
// pData = itempos
135
ToolboxItemUpdated
,
136
ToolboxItemWindowChanged
,
137
ToolboxSelect
,
138
WindowActivate
,
139
WindowChildDestroyed
,
// pData = vcl::Window*
140
WindowClose
,
141
WindowCommand
,
// pData = CommandEvent*
142
WindowDataChanged
,
// pData = DataChangedEvent*
143
WindowDeactivate
,
// pData = vcl::Window* = pPrevActiveWindow
144
WindowDisabled
,
145
WindowDocking
,
146
WindowEnabled
,
147
WindowEndDocking
,
// pData = EndDockingData
148
WindowEndPopupMode
,
// pData = EndPopupModeData
149
WindowFrameTitleChanged
,
// pData = OUString* = oldTitle
150
WindowGetFocus
,
151
WindowHide
,
152
WindowKeyInput
,
// pData = KeyEvent*
153
WindowKeyUp
,
// pData = KeyEvent*
154
WindowLoseFocus
,
155
WindowMenubarAdded
,
// pData = pMenuBar
156
WindowMenubarRemoved
,
// pData = pMenuBar
157
WindowMinimize
,
158
WindowMouseButtonDown
,
// pData = MouseEvent*
159
WindowMouseButtonUp
,
// pData = MouseEvent*
160
WindowMouseMove
,
// pData = MouseEvent*
161
WindowMove
,
162
WindowNormalize
,
163
WindowPaint
,
// pData = Rectangle*
164
WindowPrepareToggleFloating
,
// pData = bool
165
WindowResize
,
166
WindowShow
,
167
WindowStartDocking
,
// pData = DockingData
168
WindowToggleFloating
,
169
WindowGestureEvent
,
170
};
171
172
class
VCL_DLLPUBLIC
VclSimpleEvent
173
{
174
private
:
175
VclEventId
nId
;
176
177
VclSimpleEvent
(
VclSimpleEvent
const
&) =
delete
;
178
VclSimpleEvent
& operator =(
VclSimpleEvent
const
&) =
delete
;
179
180
public
:
181
VclSimpleEvent
(
VclEventId
n ) { nId = n; }
182
virtual
~VclSimpleEvent
() {}
183
184
VclEventId
GetId
()
const
{
return
nId; }
185
};
186
187
class
VCL_DLLPUBLIC
VclWindowEvent
final :
public
VclSimpleEvent
188
{
189
private
:
190
VclPtr<vcl::Window>
pWindow
;
191
void
*
pData
;
192
193
public
:
194
VclWindowEvent
(
vcl::Window
* pWin,
VclEventId
n,
void
* pDat );
195
virtual
~
VclWindowEvent
()
override
;
196
197
vcl::Window
*
GetWindow
()
const
{
return
pWindow; }
198
void
*
GetData
()
const
{
return
pData; }
199
};
200
201
class
VCL_DLLPUBLIC
VclMenuEvent
final :
public
VclSimpleEvent
202
{
203
private
:
204
VclPtr<Menu>
pMenu
;
205
sal_uInt16
mnPos
;
206
207
VclMenuEvent
(
VclMenuEvent
const
&) =
delete
;
208
VclMenuEvent
&
operator =
(
VclMenuEvent
const
&) =
delete
;
209
210
public
:
211
VclMenuEvent
(
Menu
* pM,
VclEventId
n, sal_uInt16 nPos );
212
virtual
~
VclMenuEvent
()
override
;
213
214
Menu
* GetMenu()
const
;
215
sal_uInt16
GetItemPos
()
const
{
return
mnPos; }
216
};
217
218
#endif // INCLUDED_VCL_VCLEVENT_HXX
219
220
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
VclEventId::WindowMinimize
VclEventId::PushbuttonToggle
VclEventId::WindowCommand
VclSimpleEvent::~VclSimpleEvent
virtual ~VclSimpleEvent()
Definition:
vclevent.hxx:182
VclSimpleEvent
Definition:
vclevent.hxx:172
VclEventId::SpinfieldDown
VclEventId::WindowChildDestroyed
VclWindowEvent::pData
void * pData
Definition:
vclevent.hxx:191
VclEventId::MenuItemChecked
VclEventId::WindowDisabled
VclMenuEvent
Definition:
vclevent.hxx:201
VclEventId::ListboxSelect
VclEventId::WindowGestureEvent
VclSimpleEvent::GetId
VclEventId GetId() const
Definition:
vclevent.hxx:184
SalEvent::MenuHighlight
VclPtr< vcl::Window >
VclEventId::TabbarPageActivated
VCL_DLLPUBLIC
#define VCL_DLLPUBLIC
Definition:
dllapi.h:29
VclEventId::TabpageInserted
vcl
VclEventId::TabpageRemovedAll
VclEventId::WindowMouseButtonUp
VclEventId::ComboboxSetText
VclEventId::ControlLoseFocus
VclEventId::StatusbarNameChanged
VclEventId::WindowKeyInput
SalEvent::MenuDeactivate
VclEventId::EditModify
VclEventId::ListboxFocus
SalEvent::ExtTextInput
VclEventId::EndExtTextInput
VclEventId::WindowKeyUp
VclWindowEvent
Definition:
vclevent.hxx:187
VclEventId::WindowHide
VclEventId::ToolboxItemWindowChanged
VclEventId::EditSelectionChanged
VclEventId::WindowToggleFloating
VclEventId::DropdownClose
VclEventId::WindowShow
VclEventId::CheckboxToggle
VclEventId::ToolboxFormatChanged
VclEventId::TabbarPageTextChanged
VclEventId::MenuSelect
VclEventId::SpinfieldLast
VclEventId::DropdownPreOpen
VclEventId::ToolboxDeactivate
VclEventId::DropdownSelect
VclEventId::StatusbarItemAdded
VclEventId::MenuSubmenuActivate
VclEventId::MenuDisable
VclMenuEvent::GetItemPos
sal_uInt16 GetItemPos() const
Definition:
vclevent.hxx:215
VclEventId::MenuDehighlight
VclEventId::ScrollbarScroll
VclEventId
VclEventId
Definition:
vclevent.hxx:37
VclEventId::MenuShow
VclEventId::ComboboxSelect
VclEventId::WindowPaint
VclEventId::EditCaretChanged
VclEventId::ItemExpanded
VclEventId::ComboboxItemRemoved
VclEventId::ToolboxHighlightOff
VclMenuEvent::pMenu
VclPtr< Menu > pMenu
Definition:
vclevent.hxx:204
VclSimpleEvent::VclSimpleEvent
VclSimpleEvent(VclEventId n)
Definition:
vclevent.hxx:181
vcl::Window
Definition:
window.hxx:453
VclEventId::TableRowSelect
VclWindowEvent::GetData
void * GetData() const
Definition:
vclevent.hxx:198
VclSimpleEvent::operator=
VclSimpleEvent & operator=(VclSimpleEvent const &)=delete
VclEventId::ToolboxAllItemsChanged
VclEventId::RadiobuttonToggle
VclEventId::MenuSubmenuChanged
VclEventId::ListboxTreeFocus
VclEventId::WindowLoseFocus
VclEventId::ListboxTreeSelect
VclEventId::WindowMouseButtonDown
VclEventId::WindowMouseMove
VclEventId::ToolboxActivate
EViewType::Window
VclEventId::ToolboxItemRemoved
VclEventId::WindowMenubarRemoved
VclEventId::ToolboxItemTextChanged
VclEventId::TabpageActivate
VclEventId::SpinbuttonDown
VclEventId::TabbarPageDeactivated
VclEventId::ButtonClick
VclEventId::WindowClose
VclEventId::StatusbarDrawItem
dllapi.h
VclMenuEvent::mnPos
sal_uInt16 mnPos
Definition:
vclevent.hxx:205
VclEventId::MenuItemTextChanged
VclEventId::ToolboxHighlight
SalEvent::MenuActivate
VclEventId::RoadmapItemSelected
VclEventId::WindowEnabled
DragFullOptions::WindowMove
VclEventId::WindowDocking
VclEventId::WindowNormalize
VclEventId::MenuAccessibleNameChanged
VclEventId::ToolboxItemUpdated
VclEventId::TabbarPageRemoved
VclSimpleEvent::nId
VclEventId nId
Definition:
vclevent.hxx:175
VclWindowEvent::pWindow
VclPtr< vcl::Window > pWindow
Definition:
vclevent.hxx:190
VclEventId::ObjectDying
VclEventId::MenuHide
VclEventId::SpinfieldFirst
VclEventId::SpinbuttonUp
VclEventId::TabpageDeactivate
VclEventId::MenuRemoveItem
VclEventId::TabbarPageInserted
VclEventId::ToolboxClick
VclEventId::MenuEnable
VclEventId::ToolboxItemDisabled
Menu
Definition:
menu.hxx:123
VclEventId::ControlGetFocus
VclEventId::MenuItemUnchecked
VclEventId::ApplicationDataChanged
VclEventId::MenuSubmenuDeactivate
VclEventId::WindowEndDocking
VclEventId::StatusbarHideItem
VclEventId::WindowFrameTitleChanged
VclEventId::TabpageRemoved
VclEventId::WindowDataChanged
VclEventId::SpinfieldUp
VclEventId::ScrollbarEndScroll
VclEventId::TabbarPageMoved
VclEventId::TabpagePageTextChanged
VclEventId::MenuInsertItem
VclEventId::ListboxDoubleClick
VclEventId::StatusbarItemRemoved
VclEventId::WindowMenubarAdded
VclEventId::WindowStartDocking
VclEventId::StatusbarShowItem
VclEventId::ToolboxSelect
com::sun::star::accessibility
vclptr.hxx
VclEventId::WindowEndPopupMode
VclEventId::StatusbarAllItemsRemoved
VclEventId::ToolboxItemEnabled
VclEventId::WindowGetFocus
VclEventId::WindowResize
VclEventId::ItemCollapsed
VclEventId::ComboboxDoubleClick
VclEventId::ToolboxButtonStateChanged
VclEventId::WindowDeactivate
VclEventId::WindowPrepareToggleFloating
VclEventId::ComboboxItemAdded
VclEventId::TabbarPageSelected
VclEventId::ToolboxItemAdded
VclEventId::NONE
VclEventId::ComboboxDeselect
VclEventId::ListboxItemRemoved
VclWindowEvent::GetWindow
vcl::Window * GetWindow() const
Definition:
vclevent.hxx:197
VclEventId::DropdownOpen
VclEventId::WindowActivate
VclEventId::ToolboxDoubleClick
VclEventId::ListboxScrolled
VclEventId::ListboxItemAdded
Generated on Thu Apr 15 2021 20:46:44 for LibreOffice Module vcl (master) by
1.8.10