1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #include <com/sun/star/uno/Reference.hxx>
30 namespace com
{ namespace sun
{ namespace star
{
31 namespace accessibility
{
44 ApplicationDataChanged
, // pData = DataChangedEvent*
49 ComboboxItemAdded
, // pData = itempos
50 ComboboxItemRemoved
, // pData = itempos, -1=All
66 ListboxItemAdded
, // pData = itempos
67 ListboxItemRemoved
, // pData = itempos, -1=All
89 MenuSubmenuDeactivate
,
102 StatusbarAllItemsRemoved
,
104 StatusbarDoubleClick
,
105 StatusbarDrawItem
, // pData = itemid
106 StatusbarHideItem
, // pData = itemid
107 StatusbarItemAdded
, // pData = itemid
108 StatusbarItemRemoved
, // pData = itemid
109 StatusbarNameChanged
, // pData = itemid
110 StatusbarShowItem
, // pData = itemid
111 TabbarPageActivated
, // pData = pageid
112 TabbarPageDeactivated
, // pData = pageid
113 TabbarPageInserted
, // pData = pageid
114 TabbarPageMoved
, // pData = Pair( pagepos_old, pagepos_new )
115 TabbarPageRemoved
, // pData = pageid
116 TabbarPageSelected
, // pData = pageid
117 TabbarPageTextChanged
, // pData = pageid
118 TableCellNameChanged
, // pData = struct(Entry, Column, oldText)
120 TabpageActivate
, // pData = pageid
121 TabpageDeactivate
, // pData = pageid
122 TabpageInserted
, // pData = pageid
123 TabpagePageTextChanged
, // pData = pageid
124 TabpageRemoved
, // pData = pageid
127 ToolboxAllItemsChanged
,
128 ToolboxButtonStateChanged
, // pData = itempos
132 ToolboxFormatChanged
, // request new layout
134 ToolboxHighlightOff
, // pData = itempos
135 ToolboxItemAdded
, // pData = itempos
136 ToolboxItemDisabled
, // pData = itempos
137 ToolboxItemEnabled
, // pData = itempos
138 ToolboxItemRemoved
, // pData = itempos
139 ToolboxItemTextChanged
, // pData = itempos
141 ToolboxItemWindowChanged
,
144 WindowChildCreated
, // pData = vcl::Window*
145 WindowChildDestroyed
, // pData = vcl::Window*
147 WindowCommand
, // pData = CommandEvent*
148 WindowDataChanged
, // pData = DataChangedEvent*
149 WindowDeactivate
, // pData = vcl::Window* = pPrevActiveWindow
153 WindowEndDocking
, // pData = EndDockingData
154 WindowEndPopupMode
, // pData = EndPopupModeData
155 WindowFrameTitleChanged
,// pData = OUString* = oldTitle
158 WindowKeyInput
, // pData = KeyEvent*
159 WindowKeyUp
, // pData = KeyEvent*
161 WindowMenubarAdded
, // pData = pMenuBar
162 WindowMenubarRemoved
, // pData = pMenuBar
164 WindowMouseButtonDown
, // pData = MouseEvent*
165 WindowMouseButtonUp
, // pData = MouseEvent*
166 WindowMouseMove
, // pData = MouseEvent*
169 WindowPaint
, // pData = Rectangle*
170 WindowPrepareToggleFloating
, // pData = bool
173 WindowStartDocking
, // pData = DockingData
174 WindowToggleFloating
,
177 class VCL_DLLPUBLIC VclSimpleEvent
182 VclSimpleEvent(VclSimpleEvent
&) = delete;
183 void operator =(VclSimpleEvent
) = delete;
186 VclSimpleEvent( VclEventId n
) { nId
= n
; }
187 virtual ~VclSimpleEvent() {}
189 VclEventId
GetId() const { return nId
; }
192 class VCL_DLLPUBLIC VclWindowEvent
: public VclSimpleEvent
195 VclPtr
<vcl::Window
> pWindow
;
199 VclWindowEvent( vcl::Window
* pWin
, VclEventId n
, void* pDat
);
200 virtual ~VclWindowEvent() override
;
202 vcl::Window
* GetWindow() const { return pWindow
; }
203 void* GetData() const { return pData
; }
206 class VCL_DLLPUBLIC VclMenuEvent
: public VclSimpleEvent
212 VclMenuEvent(VclMenuEvent
&) = delete;
213 void operator =(VclMenuEvent
) = delete;
216 VclMenuEvent( Menu
* pM
, VclEventId n
, sal_uInt16 nPos
);
217 virtual ~VclMenuEvent() override
;
219 Menu
* GetMenu() const;
220 sal_uInt16
GetItemPos() const { return mnPos
; }
223 class VCL_DLLPUBLIC VclAccessibleEvent
: public VclSimpleEvent
226 VclAccessibleEvent( VclEventId n
, const css::uno::Reference
< css::accessibility::XAccessible
>& rxAccessible
);
227 virtual ~VclAccessibleEvent() override
;
228 const css::uno::Reference
< css::accessibility::XAccessible
>& GetAccessible() const { return mxAccessible
;}
231 css::uno::Reference
< css::accessibility::XAccessible
> mxAccessible
;
234 #endif // INCLUDED_VCL_VCLEVENT_HXX
236 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */