LibreOffice Module vcl (master) 1
button.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#pragma once
21
22#if !defined(VCL_DLLIMPLEMENTATION) && !defined(TOOLKIT_DLLIMPLEMENTATION) && !defined(VCL_INTERNALS)
23#error "don't use this in new code"
24#endif
25
26#include <vcl/dllapi.h>
27#include <vcl/image.hxx>
28#include <vcl/ctrl.hxx>
29#include <vcl/vclenum.hxx>
30#include <memory>
31#include <vector>
32
33namespace com::sun::star::frame { struct FeatureStateEvent; }
34template <class T> class VclPtr;
35
36class Color;
38enum class DrawButtonFlags;
39
41{
42private:
43 std::unique_ptr<ImplCommonButtonData> mpButtonData;
45
47 OUString maCommand;
48
49 Button (const Button &) = delete;
50 Button & operator= (const Button &) = delete;
51public:
52 SAL_DLLPRIVATE DrawTextFlags ImplGetTextStyle( WinBits nWinStyle, SystemTextColorFlags nSystemTextColorFlags ) const;
53 SAL_DLLPRIVATE void ImplDrawAlignedImage(OutputDevice* pDev, Point& rPos, Size& rSize,
54 sal_Int32 nImageSep,
55 DrawTextFlags nTextStyle, tools::Rectangle *pSymbolRect=nullptr, bool bAddImageSep = false );
56 SAL_DLLPRIVATE void ImplSetFocusRect( const tools::Rectangle &rFocusRect );
57 SAL_DLLPRIVATE const tools::Rectangle& ImplGetFocusRect() const;
58 SAL_DLLPRIVATE void ImplSetSymbolAlign( SymbolAlign eAlign );
60 SAL_DLLPRIVATE tools::Long ImplGetSeparatorX() const;
61 SAL_DLLPRIVATE void ImplSetSeparatorX( tools::Long nX );
62
63protected:
64 explicit Button( WindowType nType );
65
66 // for drawing RadioButton or CheckButton that has Text and/or Image
67 SAL_DLLPRIVATE void ImplDrawRadioCheck(OutputDevice* pDev, WinBits nWinStyle, SystemTextColorFlags nSystemTextColorFlags,
68 const Point& rPos, const Size& rSize,
69 const Size& rImageSize, tools::Rectangle& rStateRect,
70 tools::Rectangle& rMouseRect);
71 SAL_DLLPRIVATE tools::Long ImplGetImageToTextDistance() const;
72
73public:
74 virtual ~Button() override;
75 virtual void dispose() override;
76
77 virtual void Click();
78
79 void SetClickHdl( const Link<Button*,void>& rLink ) { maClickHdl = rLink; }
80 const Link<Button*,void>& GetClickHdl() const { return maClickHdl; }
81
83 void SetCommandHandler(const OUString& aCommand);
84 OUString const & GetCommand() const { return maCommand; }
85
86 void SetModeImage( const Image& rImage );
87 Image const & GetModeImage( ) const;
88 bool HasImage() const;
89 void SetImageAlign( ImageAlign eAlign );
90 ImageAlign GetImageAlign() const;
91 DrawButtonFlags GetButtonState() const;
92 DrawButtonFlags& GetButtonState();
93
96 void SetCustomButtonImage( const Image& rImage );
97 Image const & GetCustomButtonImage() const;
98
99 bool IsSmallSymbol() const;
100 void SetSmallSymbol();
101 virtual bool set_property(const OString &rKey, const OUString &rValue) override;
102
104 virtual void statusChanged(const css::frame::FeatureStateEvent& rEvent);
105
106 virtual FactoryFunction GetUITestFactory() const override;
107
108 virtual void DumpAsPropertyTree(tools::JsonWriter&) override;
109
110protected:
111
113 DECL_DLLPRIVATE_STATIC_LINK(Button, dispatchCommandHandler, Button*, void);
114};
115
117{
118 NONE = 0x0000,
119 MenuButton = 0x0002, //visual down arrow
120 SplitMenuButton = 0x0003, //visual down arrow and separator line
121};
122
124{
125public:
126 SAL_DLLPRIVATE void ImplSetDefButton( bool bSet );
127 SAL_DLLPRIVATE void ImplDrawPushButtonFrame(vcl::RenderContext& rRenderContext, tools::Rectangle& rRect, DrawButtonFlags nStyle);
128 SAL_DLLPRIVATE static bool ImplHitTestPushButton(vcl::Window const * pDev, const Point& rPos);
129 SAL_DLLPRIVATE bool ImplIsDefButton() const;
130
131 explicit PushButton( vcl::Window* pParent, WinBits nStyle = 0 );
132
133 virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
134 virtual void Tracking( const TrackingEvent& rTEvt ) override;
135 virtual void KeyInput( const KeyEvent& rKEvt ) override;
136 virtual void KeyUp( const KeyEvent& rKEvt ) override;
137 virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
138 virtual void Draw( OutputDevice* pDev, const Point& rPos, SystemTextColorFlags nFlags ) override;
139 virtual void Resize() override;
140 virtual void GetFocus() override;
141 virtual void LoseFocus() override;
142 virtual void StateChanged( StateChangedType nType ) override;
143 virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
144 virtual bool PreNotify( NotifyEvent& rNEvt ) override;
145
146 void Toggle();
147
148 void SetSymbol( SymbolType eSymbol );
149 SymbolType GetSymbol() const { return meSymbol; }
150 void SetSymbolAlign( SymbolAlign eAlign );
151
152 void SetDropDown( PushButtonDropdownStyle nStyle );
153
154 void SetState( TriState eState );
155 TriState GetState() const { return meState; }
156 virtual void statusChanged(const css::frame::FeatureStateEvent& rEvent) override;
157
158 void Check( bool bCheck = true );
159 bool IsChecked() const;
160
161 void SetPressed( bool bPressed );
162 bool IsPressed() const { return mbPressed; }
163
164 void EndSelection();
165
166 Size CalcMinimumSize() const;
167 virtual Size GetOptimalSize() const override;
168
169 virtual bool set_property(const OString &rKey, const OUString &rValue) override;
170 virtual void ShowFocus(const tools::Rectangle& rRect) override;
171
172 void setAction(bool bIsAction)
173 {
174 mbIsAction = bIsAction;
175 }
176
177 bool isAction() const
178 {
179 return mbIsAction;
180 }
181
183
184protected:
187
188 SAL_DLLPRIVATE void ImplInitPushButtonData();
189 SAL_DLLPRIVATE static WinBits ImplInitStyle( const vcl::Window* pPrevWindow, WinBits nStyle );
190 SAL_DLLPRIVATE void ImplInitSettings( bool bBackground );
191 SAL_DLLPRIVATE void ImplDrawPushButtonContent(OutputDevice* pDev, SystemTextColorFlags nSystemTextColorFlags,
192 const tools::Rectangle& rRect, bool bMenuBtnSep,
193 DrawButtonFlags nButtonFlags);
194 SAL_DLLPRIVATE void ImplDrawPushButton(vcl::RenderContext& rRenderContext);
196 SAL_DLLPRIVATE DrawTextFlags ImplGetTextStyle( SystemTextColorFlags nSystemTextColorFlags ) const;
197 SAL_DLLPRIVATE bool IsSymbol() const { return ( (meSymbol != SymbolType::DONTKNOW) && (meSymbol != SymbolType::IMAGE) ); }
198
199 PushButton( const PushButton & ) = delete;
201 = delete;
202
203 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
204
206 using Window::ImplInit;
207
208 explicit PushButton( WindowType nType );
209
210 virtual void FillLayoutData() const override;
211 virtual const vcl::Font&
212 GetCanonicalFont( const StyleSettings& _rStyle ) const override;
213 virtual const Color&
214 GetCanonicalTextColor( const StyleSettings& _rStyle ) const override;
215
216private:
221};
222
223inline void PushButton::Check( bool bCheck )
224{
226}
227
228inline bool PushButton::IsChecked() const
229{
230 return (GetState() == TRISTATE_TRUE);
231}
232
234{
235private:
237
238 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
239
240 OKButton (const OKButton &) = delete;
241 OKButton & operator= (const OKButton &) = delete;
242
243public:
244 explicit OKButton( vcl::Window* pParent, WinBits nStyle = WB_DEFBUTTON );
245
246 virtual void Click() override;
247};
248
250{
251protected:
253private:
254 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
255
256 CancelButton (const CancelButton &) = delete;
258
259public:
260 explicit CancelButton( vcl::Window* pParent, WinBits nStyle = 0 );
261
262 virtual void Click() override;
263};
264
265class CloseButton final : public CancelButton
266{
267public:
268 explicit CloseButton(vcl::Window* pParent);
269};
270
272{
273private:
275 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
276
277 HelpButton( const HelpButton & ) = delete;
278 HelpButton & operator= ( const HelpButton & ) = delete;
279
280 virtual void StateChanged( StateChangedType nStateChange ) override;
281
282public:
283 explicit HelpButton( vcl::Window* pParent, WinBits nStyle = 0 );
284
285 virtual void Click() override;
286};
287
289{
290private:
296 SAL_DLLPRIVATE void ImplInitCheckBoxData();
297 SAL_DLLPRIVATE static WinBits ImplInitStyle( const vcl::Window* pPrevWindow, WinBits nStyle );
298 SAL_DLLPRIVATE void ImplInitSettings( bool bBackground );
299 SAL_DLLPRIVATE void ImplDraw( OutputDevice* pDev, SystemTextColorFlags nSystemTextColorFlags,
300 const Point& rPos, const Size& rSize,
301 const Size& rImageSize, tools::Rectangle& rStateRect,
302 tools::Rectangle& rMouseRect );
303 SAL_DLLPRIVATE void ImplDrawCheckBox(vcl::RenderContext& rRenderContext );
304 SAL_DLLPRIVATE Size ImplGetCheckImageSize() const;
305
306 CheckBox(const CheckBox &) = delete;
307 CheckBox& operator= (const CheckBox &) = delete;
308
309protected:
311 using Window::ImplInit;
312 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
313 virtual void FillLayoutData() const override;
314 virtual const vcl::Font& GetCanonicalFont( const StyleSettings& _rStyle ) const override;
315 virtual const Color& GetCanonicalTextColor( const StyleSettings& _rStyle ) const override;
316 void ImplAdjustNWFSizes() override;
317
318 virtual void ImplDrawCheckBoxState(vcl::RenderContext& rRenderContext);
319 SAL_DLLPRIVATE const tools::Rectangle& GetStateRect() const { return maStateRect; }
320 SAL_DLLPRIVATE const tools::Rectangle& GetMouseRect() const { return maMouseRect; }
321
322public:
323 SAL_DLLPRIVATE void ImplCheck();
324public:
325 explicit CheckBox( vcl::Window* pParent, WinBits nStyle = 0 );
326
327 virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
328 virtual void Tracking( const TrackingEvent& rTEvt ) override;
329 virtual void KeyInput( const KeyEvent& rKEvt ) override;
330 virtual void KeyUp( const KeyEvent& rKEvt ) override;
331 virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
332 virtual void Draw( OutputDevice* pDev, const Point& rPos, SystemTextColorFlags nFlags ) override;
333 virtual void Resize() override;
334 virtual void GetFocus() override;
335 virtual void LoseFocus() override;
336 virtual void StateChanged( StateChangedType nType ) override;
337 virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
338 virtual bool PreNotify( NotifyEvent& rNEvt ) override;
339
340 void Toggle();
341
342 void SetState( TriState eState );
343 TriState GetState() const { return meState; }
344
345 void Check( bool bCheck = true )
346 {
347 SetState( bCheck ? TRISTATE_TRUE : TRISTATE_FALSE );
348 }
349
350 bool IsChecked() const
351 {
352 return (GetState() == TRISTATE_TRUE);
353 }
354
355 void EnableTriState( bool bTriState = true );
356 bool IsTriStateEnabled() const { return mbTriState; }
357
358 static Image GetCheckImage( const AllSettings& rSettings, DrawButtonFlags nFlags );
359
360 Size CalcMinimumSize( tools::Long nMaxWidth = 0 ) const;
361 virtual Size GetOptimalSize() const override;
362
363 void SetToggleHdl( const Link<CheckBox&,void>& rLink ) { maToggleHdl = rLink; }
364
365 virtual bool set_property(const OString &rKey, const OUString &rValue) override;
366 virtual void ShowFocus(const tools::Rectangle& rRect) override;
367
370
371 virtual FactoryFunction GetUITestFactory() const override;
372};
373
375{
376private:
377 friend class VclBuilder;
378
379 std::shared_ptr< std::vector< VclPtr< RadioButton > > > m_xGroup;
388 SAL_DLLPRIVATE void ImplInitRadioButtonData();
389 SAL_DLLPRIVATE WinBits ImplInitStyle( const vcl::Window* pPrevWindow, WinBits nStyle ) const;
390 SAL_DLLPRIVATE void ImplInitSettings( bool bBackground );
391 SAL_DLLPRIVATE void ImplDrawRadioButtonState(vcl::RenderContext& rRenderContext);
392 SAL_DLLPRIVATE void ImplDraw( OutputDevice* pDev, SystemTextColorFlags nSystemTextColorFlags,
393 const Point& rPos, const Size& rSize,
394 const Size& rImageSize, tools::Rectangle& rStateRect,
395 tools::Rectangle& rMouseRect );
396 SAL_DLLPRIVATE void ImplDrawRadioButton(vcl::RenderContext& rRenderContext );
397 SAL_DLLPRIVATE void ImplUncheckAllOther();
398 SAL_DLLPRIVATE Size ImplGetRadioImageSize() const;
399
400 RadioButton(const RadioButton &) = delete;
402
403protected:
405 using Window::ImplInit;
406 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
407
408public:
409 SAL_DLLPRIVATE void ImplCallClick( bool bGrabFocus = false, GetFocusFlags nFocusFlags = GetFocusFlags::NONE );
410
411protected:
412 virtual void FillLayoutData() const override;
413 virtual const vcl::Font&
414 GetCanonicalFont( const StyleSettings& _rStyle ) const override;
415 virtual const Color&
416 GetCanonicalTextColor( const StyleSettings& _rStyle ) const override;
417 void ImplAdjustNWFSizes() override;
418
419public:
420 /*
421 bUsesExplicitGroup of true means that group() is used to set what radiobuttons are part of a group
422 while false means that contiguous radiobuttons are considered part of a group where WB_GROUP designates
423 the start of the group and all contiguous radiobuttons without WB_GROUP set form the rest of the group.
424
425 true is fairly straightforward, false leads to trick situations and is the legacy case
426 */
427 explicit RadioButton(vcl::Window* pParent, bool bUsesExplicitGroup, WinBits nWinStyle);
428 virtual ~RadioButton() override;
429 virtual void dispose() override;
430
431 virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
432 virtual void Tracking( const TrackingEvent& rTEvt ) override;
433 virtual void KeyInput( const KeyEvent& rKEvt ) override;
434 virtual void KeyUp( const KeyEvent& rKEvt ) override;
435 virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
436 virtual void Draw( OutputDevice* pDev, const Point& rPos, SystemTextColorFlags nFlags ) override;
437 virtual void Resize() override;
438 virtual void GetFocus() override;
439 virtual void LoseFocus() override;
440 virtual void StateChanged( StateChangedType nType ) override;
441 virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
442 virtual bool PreNotify( NotifyEvent& rNEvt ) override;
443
444 void Toggle();
445
446 bool IsStateChanged() const { return mbStateChanged; }
447
448 void EnableRadioCheck( bool bRadioCheck ) { mbRadioCheck = bRadioCheck; }
449 bool IsRadioCheckEnabled() const { return mbRadioCheck; }
450
451 void SetModeRadioImage( const Image& rImage );
452
453 void SetState( bool bCheck );
454 void Check( bool bCheck = true );
455 bool IsChecked() const { return mbChecked; }
456
457 static Image GetRadioImage( const AllSettings& rSettings, DrawButtonFlags nFlags );
458
459 Size CalcMinimumSize( tools::Long nMaxWidth = 0 ) const;
460 virtual Size GetOptimalSize() const override;
461
462 void SetToggleHdl( const Link<RadioButton&,void>& rLink ) { maToggleHdl = rLink; }
463
477 std::vector<VclPtr<RadioButton> > GetRadioButtonGroup(bool bIncludeThis = true) const;
478
479 virtual bool set_property(const OString &rKey, const OUString &rValue) override;
480
481 /*
482 * Group this RadioButton with another
483 */
484 void group(RadioButton &rOther);
485 virtual void ShowFocus(const tools::Rectangle& rRect) override;
486
489
490 virtual FactoryFunction GetUITestFactory() const override;
491};
492
494{
495private:
497
498 SAL_DLLPRIVATE void ImplInitStyle();
499
500 ImageButton( const ImageButton & ) = delete;
501 ImageButton & operator= ( const ImageButton & ) = delete;
502
503public:
504 ImageButton( vcl::Window* pParent, WinBits nStyle = 0 );
505};
506
507/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DrawTextFlags
SystemTextColorFlags
PushButtonDropdownStyle
Definition: button.hxx:117
std::unique_ptr< ImplCommonButtonData > mpButtonData
Definition: button.hxx:43
Link< Button *, void > maClickHdl
Definition: button.hxx:44
Button(const Button &)=delete
DECL_DLLPRIVATE_STATIC_LINK(Button, dispatchCommandHandler, Button *, void)
Handler for click, in case we want the button to handle uno commands (.uno:Something).
void SetClickHdl(const Link< Button *, void > &rLink)
Definition: button.hxx:79
OUString maCommand
Command URL (like .uno:Save) in case the button should handle it.
Definition: button.hxx:47
SAL_DLLPRIVATE DrawTextFlags ImplGetTextStyle(WinBits nWinStyle, SystemTextColorFlags nSystemTextColorFlags) const
Definition: button.cxx:191
const Link< Button *, void > & GetClickHdl() const
Definition: button.hxx:80
OUString const & GetCommand() const
Definition: button.hxx:84
CancelButton(const CancelButton &)=delete
CheckBox(const CheckBox &)=delete
tools::Rectangle maStateRect
Definition: button.hxx:291
bool mbTriState
Definition: button.hxx:294
void SetToggleHdl(const Link< CheckBox &, void > &rLink)
Definition: button.hxx:363
SAL_DLLPRIVATE const tools::Rectangle & GetStateRect() const
Definition: button.hxx:319
bool IsTriStateEnabled() const
Definition: button.hxx:356
void Check(bool bCheck=true)
Definition: button.hxx:345
Link< CheckBox &, void > maToggleHdl
Definition: button.hxx:295
tools::Rectangle maMouseRect
Definition: button.hxx:292
TriState meState
Definition: button.hxx:293
TriState GetState() const
Definition: button.hxx:343
bool IsChecked() const
Definition: button.hxx:350
SAL_DLLPRIVATE const tools::Rectangle & GetMouseRect() const
Definition: button.hxx:320
CloseButton(vcl::Window *pParent)
Definition: button.cxx:1861
Definition: ctrl.hxx:82
Control & operator=(const Control &)=delete
virtual void FillLayoutData() const
Definition: ctrl.cxx:80
virtual const Color & GetCanonicalTextColor(const StyleSettings &_rStyle) const
Definition: ctrl.cxx:408
virtual void StateChanged(StateChangedType nStateChange) override
Definition: ctrl.cxx:256
virtual void Resize() override
Definition: ctrl.cxx:74
virtual Size GetOptimalSize() const override
Definition: ctrl.cxx:369
void ImplInitSettings()
Definition: ctrl.cxx:423
virtual const vcl::Font & GetCanonicalFont(const StyleSettings &_rStyle) const
Definition: ctrl.cxx:403
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
Definition: ctrl.cxx:58
HelpButton(const HelpButton &)=delete
ImageButton(const ImageButton &)=delete
Definition: image.hxx:40
OKButton(const OKButton &)=delete
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:176
PushButton & operator=(const PushButton &)=delete
PushButtonDropdownStyle mnDDStyle
Definition: button.hxx:185
SAL_DLLPRIVATE bool IsSymbol() const
Definition: button.hxx:197
bool mbIsAction
Definition: button.hxx:220
SymbolType meSymbol
Definition: button.hxx:217
SAL_DLLPRIVATE void ImplInit(vcl::Window *pParent, WinBits nStyle)
Definition: button.cxx:676
bool mbIsActive
Definition: button.hxx:186
bool IsPressed() const
Definition: button.hxx:162
void Check(bool bCheck=true)
Definition: button.hxx:223
static SAL_DLLPRIVATE WinBits ImplInitStyle(const vcl::Window *pPrevWindow, WinBits nStyle)
Definition: button.cxx:687
PushButton(const PushButton &)=delete
bool mbPressed
Definition: button.hxx:219
void SetState(TriState eState)
Definition: button.cxx:1634
void setAction(bool bIsAction)
Definition: button.hxx:172
TriState GetState() const
Definition: button.hxx:155
bool IsChecked() const
Definition: button.hxx:228
bool isAction() const
Definition: button.hxx:177
TriState meState
Definition: button.hxx:218
SymbolType GetSymbol() const
Definition: button.hxx:149
bool IsChecked() const
Definition: button.hxx:455
void EnableRadioCheck(bool bRadioCheck)
Definition: button.hxx:448
bool mbRadioCheck
Definition: button.hxx:384
Image maImage
Definition: button.hxx:382
bool IsStateChanged() const
Definition: button.hxx:446
RadioButton(const RadioButton &)=delete
tools::Rectangle maMouseRect
Definition: button.hxx:381
Link< RadioButton &, void > maToggleHdl
Definition: button.hxx:387
void SetToggleHdl(const Link< RadioButton &, void > &rLink)
Definition: button.hxx:462
std::shared_ptr< std::vector< VclPtr< RadioButton > > > m_xGroup
Definition: button.hxx:379
bool mbChecked
Definition: button.hxx:383
bool mbStateChanged
Definition: button.hxx:385
bool IsRadioCheckEnabled() const
Definition: button.hxx:449
tools::Rectangle maStateRect
Definition: button.hxx:380
bool mbUsesExplicitGroup
Definition: button.hxx:386
Creates a hierarchy of vcl::Windows (widgets) from a .ui file for dialogs, sidebar,...
Definition: builder.hxx:68
A thin wrapper around rtl::Reference to implement the acquire and dispose semantics we want for refer...
Definition: vclptr.hxx:58
virtual void GetFocus()
Definition: window.cxx:1843
virtual void Tracking(const TrackingEvent &rTEvt)
Definition: window.cxx:1934
virtual void MouseButtonDown(const MouseEvent &rMEvt)
Definition: mouse.cxx:420
virtual void KeyInput(const KeyEvent &rKEvt)
Definition: window.cxx:1807
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
Definition: paint.cxx:1020
virtual bool PreNotify(NotifyEvent &rNEvt)
Definition: event.cxx:52
virtual void ShowFocus(const tools::Rectangle &rRect)
Definition: window2.cxx:52
virtual void DumpAsPropertyTree(tools::JsonWriter &)
Dumps itself and potentially its children to a property tree, to be written easily to JSON.
Definition: window.cxx:3363
virtual void Draw(::OutputDevice *pDev, const Point &rPos, SystemTextColorFlags nFlags)
Definition: window.cxx:1831
virtual void DataChanged(const DataChangedEvent &rDCEvt)
Definition: event.cxx:36
virtual bool set_property(const OString &rKey, const OUString &rValue)
Definition: window2.cxx:1475
virtual void LoseFocus()
Definition: window.cxx:1857
virtual void ImplAdjustNWFSizes()
Definition: window3.cxx:28
virtual void KeyUp(const KeyEvent &rKEvt)
Definition: window.cxx:1824
SAL_DLLPRIVATE void ImplInit(vcl::Window *pParent, WinBits nStyle, SystemParentData *pSystemParentData)
Definition: window.cxx:940
virtual FactoryFunction GetUITestFactory() const
Definition: window.cxx:3940
DrawButtonFlags
Definition: decoview.hxx:54
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
TriState
TRISTATE_FALSE
TRISTATE_TRUE
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
NONE
group
@ eSymbol
Definition: ppdparser.hxx:42
void GetState(const SdrMarkView *pSdrView, SfxItemSet &rSet)
long Long
QPRO_FUNC_TYPE nType
SymbolType
Definition: vclenum.hxx:74
GetFocusFlags
Definition: window.hxx:312
StateChangedType
Definition: window.hxx:290
sal_Int64 WinBits
WindowType
ImageAlign
SymbolAlign