bump product version to 7.6.3.2-android
[LibreOffice.git] / include / vcl / vclevent.hxx
bloba0a11c6a0870627217e8a241f337ecd53c357a77
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_VCL_VCLEVENT_HXX
21 #define INCLUDED_VCL_VCLEVENT_HXX
23 #include <vcl/dllapi.h>
24 #include <vcl/vclptr.hxx>
26 class Menu;
28 namespace com::sun::star::accessibility {
29 class XAccessible;
32 namespace vcl
34 class Window;
37 enum class VclEventId
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,
172 class VCL_DLLPUBLIC VclSimpleEvent
174 private:
175 VclEventId nId;
177 VclSimpleEvent(VclSimpleEvent const &) = delete;
178 VclSimpleEvent& operator =(VclSimpleEvent const &) = delete;
180 public:
181 VclSimpleEvent( VclEventId n ) { nId = n; }
182 virtual ~VclSimpleEvent() {}
184 VclEventId GetId() const { return nId; }
187 class VCL_DLLPUBLIC VclWindowEvent final : public VclSimpleEvent
189 private:
190 VclPtr<vcl::Window> pWindow;
191 void* pData;
193 public:
194 VclWindowEvent( vcl::Window* pWin, VclEventId n, void* pDat );
195 virtual ~VclWindowEvent() override;
197 vcl::Window* GetWindow() const { return pWindow; }
198 void* GetData() const { return pData; }
201 class VCL_DLLPUBLIC VclMenuEvent final : public VclSimpleEvent
203 private:
204 VclPtr<Menu> pMenu;
205 sal_uInt16 mnPos;
207 VclMenuEvent(VclMenuEvent const &) = delete;
208 VclMenuEvent& operator =(VclMenuEvent const &) = delete;
210 public:
211 VclMenuEvent( Menu* pM, VclEventId n, sal_uInt16 nPos );
212 virtual ~VclMenuEvent() override;
214 Menu* GetMenu() const;
215 sal_uInt16 GetItemPos() const { return mnPos; }
218 #endif // INCLUDED_VCL_VCLEVENT_HXX
220 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */