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>
36 ApplicationDataChanged
, // pData = DataChangedEvent*
41 ComboboxItemAdded
, // pData = itempos
42 ComboboxItemRemoved
, // pData = itempos, -1=All
60 ListboxItemAdded
, // pData = itempos
61 ListboxItemRemoved
, // pData = itempos, -1=All
66 MenuAccessibleNameChanged
,
84 MenuSubmenuDeactivate
,
97 StatusbarAllItemsRemoved
,
98 StatusbarDrawItem
, // pData = itemid
99 StatusbarHideItem
, // pData = itemid
100 StatusbarItemAdded
, // pData = itemid
101 StatusbarItemRemoved
, // pData = itemid
102 StatusbarNameChanged
, // pData = itemid
103 StatusbarShowItem
, // pData = itemid
104 TabbarPageActivated
, // pData = pageid
105 TabbarPageDeactivated
, // pData = pageid
106 TabbarPageInserted
, // pData = pageid
107 TabbarPageMoved
, // pData = Pair( pagepos_old, pagepos_new )
108 TabbarPageRemoved
, // pData = pageid
109 TabbarPageSelected
, // pData = pageid
110 TabbarPageTextChanged
, // pData = pageid
112 TabpageActivate
, // pData = pageid
113 TabpageDeactivate
, // pData = pageid
114 TabpageInserted
, // pData = pageid
115 TabpagePageTextChanged
, // pData = pageid
116 TabpageRemoved
, // pData = pageid
119 ToolboxAllItemsChanged
,
123 ToolboxFormatChanged
, // request new layout
125 ToolboxHighlightOff
, // pData = itempos
126 ToolboxItemAdded
, // pData = itempos
127 ToolboxItemDisabled
, // pData = itempos
128 ToolboxItemEnabled
, // pData = itempos
129 ToolboxItemRemoved
, // pData = itempos
130 ToolboxItemTextChanged
, // pData = itempos
132 ToolboxItemWindowChanged
,
135 WindowChildDestroyed
, // pData = vcl::Window*
137 WindowCommand
, // pData = CommandEvent*
138 WindowDataChanged
, // pData = DataChangedEvent*
139 WindowDeactivate
, // pData = vcl::Window* = pPrevActiveWindow
143 WindowEndDocking
, // pData = EndDockingData
144 WindowEndPopupMode
, // pData = EndPopupModeData
145 WindowFrameTitleChanged
,// pData = OUString* = oldTitle
148 WindowKeyInput
, // pData = KeyEvent*
149 WindowKeyUp
, // pData = KeyEvent*
151 WindowMenubarAdded
, // pData = pMenuBar
152 WindowMenubarRemoved
, // pData = pMenuBar
154 WindowMouseButtonDown
, // pData = MouseEvent*
155 WindowMouseButtonUp
, // pData = MouseEvent*
156 WindowMouseMove
, // pData = MouseEvent*
159 WindowPaint
, // pData = Rectangle*
160 WindowPrepareToggleFloating
, // pData = bool
163 WindowStartDocking
, // pData = DockingData
164 WindowToggleFloating
,
168 class VCL_DLLPUBLIC VclSimpleEvent
173 VclSimpleEvent(VclSimpleEvent
const &) = delete;
174 VclSimpleEvent
& operator =(VclSimpleEvent
const &) = delete;
177 VclSimpleEvent( VclEventId n
) { nId
= n
; }
178 virtual ~VclSimpleEvent() {}
180 VclEventId
GetId() const { return nId
; }
183 class VCL_DLLPUBLIC VclWindowEvent final
: public VclSimpleEvent
186 VclPtr
<vcl::Window
> pWindow
;
190 VclWindowEvent( vcl::Window
* pWin
, VclEventId n
, void* pDat
);
191 virtual ~VclWindowEvent() override
;
193 vcl::Window
* GetWindow() const { return pWindow
; }
194 void* GetData() const { return pData
; }
197 class VCL_DLLPUBLIC VclMenuEvent final
: public VclSimpleEvent
203 VclMenuEvent(VclMenuEvent
const &) = delete;
204 VclMenuEvent
& operator =(VclMenuEvent
const &) = delete;
207 VclMenuEvent( Menu
* pM
, VclEventId n
, sal_uInt16 nPos
);
208 virtual ~VclMenuEvent() override
;
210 Menu
* GetMenu() const;
211 sal_uInt16
GetItemPos() const { return mnPos
; }
214 #endif // INCLUDED_VCL_VCLEVENT_HXX
216 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */