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
68 ListboxItemAdded
, // pData = itempos
69 ListboxItemRemoved
, // pData = itempos, -1=All
90 MenuSubmenuDeactivate
,
103 StatusbarAllItemsRemoved
,
104 StatusbarDrawItem
, // pData = itemid
105 StatusbarHideItem
, // pData = itemid
106 StatusbarItemAdded
, // pData = itemid
107 StatusbarItemRemoved
, // pData = itemid
108 StatusbarNameChanged
, // pData = itemid
109 StatusbarShowItem
, // pData = itemid
110 TabbarPageActivated
, // pData = pageid
111 TabbarPageDeactivated
, // pData = pageid
112 TabbarPageInserted
, // pData = pageid
113 TabbarPageMoved
, // pData = Pair( pagepos_old, pagepos_new )
114 TabbarPageRemoved
, // pData = pageid
115 TabbarPageSelected
, // pData = pageid
116 TabbarPageTextChanged
, // pData = pageid
117 TableCellNameChanged
, // pData = struct(Entry, Column, oldText)
119 TabpageActivate
, // pData = pageid
120 TabpageDeactivate
, // pData = pageid
121 TabpageInserted
, // pData = pageid
122 TabpagePageTextChanged
, // pData = pageid
123 TabpageRemoved
, // pData = pageid
126 ToolboxAllItemsChanged
,
127 ToolboxButtonStateChanged
, // pData = itempos
131 ToolboxFormatChanged
, // request new layout
133 ToolboxHighlightOff
, // pData = itempos
134 ToolboxItemAdded
, // pData = itempos
135 ToolboxItemDisabled
, // pData = itempos
136 ToolboxItemEnabled
, // pData = itempos
137 ToolboxItemRemoved
, // pData = itempos
138 ToolboxItemTextChanged
, // pData = itempos
140 ToolboxItemWindowChanged
,
143 WindowChildDestroyed
, // pData = vcl::Window*
145 WindowCommand
, // pData = CommandEvent*
146 WindowDataChanged
, // pData = DataChangedEvent*
147 WindowDeactivate
, // pData = vcl::Window* = pPrevActiveWindow
151 WindowEndDocking
, // pData = EndDockingData
152 WindowEndPopupMode
, // pData = EndPopupModeData
153 WindowFrameTitleChanged
,// pData = OUString* = oldTitle
156 WindowKeyInput
, // pData = KeyEvent*
157 WindowKeyUp
, // pData = KeyEvent*
159 WindowMenubarAdded
, // pData = pMenuBar
160 WindowMenubarRemoved
, // pData = pMenuBar
162 WindowMouseButtonDown
, // pData = MouseEvent*
163 WindowMouseButtonUp
, // pData = MouseEvent*
164 WindowMouseMove
, // pData = MouseEvent*
167 WindowPaint
, // pData = Rectangle*
168 WindowPrepareToggleFloating
, // pData = bool
171 WindowStartDocking
, // pData = DockingData
172 WindowToggleFloating
,
176 class VCL_DLLPUBLIC VclSimpleEvent
181 VclSimpleEvent(VclSimpleEvent
const &) = delete;
182 VclSimpleEvent
& operator =(VclSimpleEvent
const &) = delete;
185 VclSimpleEvent( VclEventId n
) { nId
= n
; }
186 virtual ~VclSimpleEvent() {}
188 VclEventId
GetId() const { return nId
; }
191 class VCL_DLLPUBLIC VclWindowEvent final
: public VclSimpleEvent
194 VclPtr
<vcl::Window
> pWindow
;
198 VclWindowEvent( vcl::Window
* pWin
, VclEventId n
, void* pDat
);
199 virtual ~VclWindowEvent() override
;
201 vcl::Window
* GetWindow() const { return pWindow
; }
202 void* GetData() const { return pData
; }
205 class VCL_DLLPUBLIC VclMenuEvent final
: public VclSimpleEvent
209 sal_uInt16
const mnPos
;
211 VclMenuEvent(VclMenuEvent
const &) = delete;
212 VclMenuEvent
& operator =(VclMenuEvent
const &) = delete;
215 VclMenuEvent( Menu
* pM
, VclEventId n
, sal_uInt16 nPos
);
216 virtual ~VclMenuEvent() override
;
218 Menu
* GetMenu() const;
219 sal_uInt16
GetItemPos() const { return mnPos
; }
222 class VCL_DLLPUBLIC VclAccessibleEvent final
: public VclSimpleEvent
225 VclAccessibleEvent( VclEventId n
, const css::uno::Reference
< css::accessibility::XAccessible
>& rxAccessible
);
226 virtual ~VclAccessibleEvent() override
;
227 const css::uno::Reference
< css::accessibility::XAccessible
>& GetAccessible() const { return mxAccessible
;}
230 css::uno::Reference
< css::accessibility::XAccessible
> mxAccessible
;
233 #endif // INCLUDED_VCL_VCLEVENT_HXX
235 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */