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; class XFrame; }
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, const css::uno::Reference<css::frame::XFrame>& rFrame);
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 OUString &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 OUString &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
184 bool isToggleButton() { return mbIsToggleButton; }
185 void setToggleButton(bool bIsToggleButton) { mbIsToggleButton = bIsToggleButton; }
186
187protected:
190
191 SAL_DLLPRIVATE void ImplInitPushButtonData();
192 SAL_DLLPRIVATE static WinBits ImplInitStyle( const vcl::Window* pPrevWindow, WinBits nStyle );
193 SAL_DLLPRIVATE void ImplInitSettings( bool bBackground );
194 SAL_DLLPRIVATE void ImplDrawPushButtonContent(OutputDevice* pDev, SystemTextColorFlags nSystemTextColorFlags,
195 const tools::Rectangle& rRect, bool bMenuBtnSep,
196 DrawButtonFlags nButtonFlags);
197 SAL_DLLPRIVATE void ImplDrawPushButton(vcl::RenderContext& rRenderContext);
199 SAL_DLLPRIVATE DrawTextFlags ImplGetTextStyle( SystemTextColorFlags nSystemTextColorFlags ) const;
200 SAL_DLLPRIVATE bool IsSymbol() const { return ( (meSymbol != SymbolType::DONTKNOW) && (meSymbol != SymbolType::IMAGE) ); }
201
202 PushButton( const PushButton & ) = delete;
204 = delete;
205
206 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
207
209 using Window::ImplInit;
210
211 explicit PushButton( WindowType nType );
212
213 virtual void FillLayoutData() const override;
214 virtual const vcl::Font&
215 GetCanonicalFont( const StyleSettings& _rStyle ) const override;
216 virtual const Color&
217 GetCanonicalTextColor( const StyleSettings& _rStyle ) const override;
218
219private:
224 bool mbIsToggleButton = false;
225};
226
227inline void PushButton::Check( bool bCheck )
228{
230}
231
232inline bool PushButton::IsChecked() const
233{
234 return (GetState() == TRISTATE_TRUE);
235}
236
238{
239private:
241
242 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
243
244 OKButton (const OKButton &) = delete;
245 OKButton & operator= (const OKButton &) = delete;
246
247public:
248 explicit OKButton( vcl::Window* pParent, WinBits nStyle = WB_DEFBUTTON );
249
250 virtual void Click() override;
251};
252
254{
255protected:
257private:
258 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
259
260 CancelButton (const CancelButton &) = delete;
262
263public:
264 explicit CancelButton( vcl::Window* pParent, WinBits nStyle = 0 );
265
266 virtual void Click() override;
267};
268
269class CloseButton final : public CancelButton
270{
271public:
272 explicit CloseButton(vcl::Window* pParent);
273};
274
276{
277private:
279 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
280
281 HelpButton( const HelpButton & ) = delete;
282 HelpButton & operator= ( const HelpButton & ) = delete;
283
284 virtual void StateChanged( StateChangedType nStateChange ) override;
285
286public:
287 explicit HelpButton( vcl::Window* pParent, WinBits nStyle = 0 );
288
289 virtual void Click() override;
290};
291
293{
294private:
300 SAL_DLLPRIVATE void ImplInitCheckBoxData();
301 SAL_DLLPRIVATE static WinBits ImplInitStyle( const vcl::Window* pPrevWindow, WinBits nStyle );
302 SAL_DLLPRIVATE void ImplInitSettings( bool bBackground );
303 SAL_DLLPRIVATE void ImplDraw( OutputDevice* pDev, SystemTextColorFlags nSystemTextColorFlags,
304 const Point& rPos, const Size& rSize,
305 const Size& rImageSize, tools::Rectangle& rStateRect,
306 tools::Rectangle& rMouseRect );
307 SAL_DLLPRIVATE void ImplDrawCheckBox(vcl::RenderContext& rRenderContext );
308 SAL_DLLPRIVATE Size ImplGetCheckImageSize() const;
309
310 CheckBox(const CheckBox &) = delete;
311 CheckBox& operator= (const CheckBox &) = delete;
312
313protected:
315 using Window::ImplInit;
316 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
317 virtual void FillLayoutData() const override;
318 virtual const vcl::Font& GetCanonicalFont( const StyleSettings& _rStyle ) const override;
319 virtual const Color& GetCanonicalTextColor( const StyleSettings& _rStyle ) const override;
320 void ImplAdjustNWFSizes() override;
321
322 virtual void ImplDrawCheckBoxState(vcl::RenderContext& rRenderContext);
323 SAL_DLLPRIVATE const tools::Rectangle& GetStateRect() const { return maStateRect; }
324 SAL_DLLPRIVATE const tools::Rectangle& GetMouseRect() const { return maMouseRect; }
325
326public:
327 SAL_DLLPRIVATE void ImplCheck();
328public:
329 explicit CheckBox( vcl::Window* pParent, WinBits nStyle = 0 );
330
331 virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
332 virtual void Tracking( const TrackingEvent& rTEvt ) override;
333 virtual void KeyInput( const KeyEvent& rKEvt ) override;
334 virtual void KeyUp( const KeyEvent& rKEvt ) override;
335 virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
336 virtual void Draw( OutputDevice* pDev, const Point& rPos, SystemTextColorFlags nFlags ) override;
337 virtual void Resize() override;
338 virtual void GetFocus() override;
339 virtual void LoseFocus() override;
340 virtual void StateChanged( StateChangedType nType ) override;
341 virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
342 virtual bool PreNotify( NotifyEvent& rNEvt ) override;
343
344 void Toggle();
345
346 void SetState( TriState eState );
347 TriState GetState() const { return meState; }
348
349 void Check( bool bCheck = true )
350 {
351 SetState( bCheck ? TRISTATE_TRUE : TRISTATE_FALSE );
352 }
353
354 bool IsChecked() const
355 {
356 return (GetState() == TRISTATE_TRUE);
357 }
358
359 void EnableTriState( bool bTriState = true );
360 bool IsTriStateEnabled() const { return mbTriState; }
361
362 static Image GetCheckImage( const AllSettings& rSettings, DrawButtonFlags nFlags );
363
364 Size CalcMinimumSize( tools::Long nMaxWidth = 0 ) const;
365 virtual Size GetOptimalSize() const override;
366
367 void SetToggleHdl( const Link<CheckBox&,void>& rLink ) { maToggleHdl = rLink; }
368
369 virtual bool set_property(const OUString &rKey, const OUString &rValue) override;
370 virtual void ShowFocus(const tools::Rectangle& rRect) override;
371
374
375 virtual FactoryFunction GetUITestFactory() const override;
376};
377
379{
380private:
381 friend class VclBuilder;
382
383 std::shared_ptr< std::vector< VclPtr< RadioButton > > > m_xGroup;
392 SAL_DLLPRIVATE void ImplInitRadioButtonData();
393 SAL_DLLPRIVATE WinBits ImplInitStyle( const vcl::Window* pPrevWindow, WinBits nStyle ) const;
394 SAL_DLLPRIVATE void ImplInitSettings( bool bBackground );
395 SAL_DLLPRIVATE void ImplDrawRadioButtonState(vcl::RenderContext& rRenderContext);
396 SAL_DLLPRIVATE void ImplDraw( OutputDevice* pDev, SystemTextColorFlags nSystemTextColorFlags,
397 const Point& rPos, const Size& rSize,
398 const Size& rImageSize, tools::Rectangle& rStateRect,
399 tools::Rectangle& rMouseRect );
400 SAL_DLLPRIVATE void ImplDrawRadioButton(vcl::RenderContext& rRenderContext );
401 SAL_DLLPRIVATE void ImplUncheckAllOther();
402 SAL_DLLPRIVATE Size ImplGetRadioImageSize() const;
403
404 RadioButton(const RadioButton &) = delete;
406
407protected:
409 using Window::ImplInit;
410 SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
411
412public:
413 SAL_DLLPRIVATE void ImplCallClick( bool bGrabFocus = false, GetFocusFlags nFocusFlags = GetFocusFlags::NONE );
414
415protected:
416 virtual void FillLayoutData() const override;
417 virtual const vcl::Font&
418 GetCanonicalFont( const StyleSettings& _rStyle ) const override;
419 virtual const Color&
420 GetCanonicalTextColor( const StyleSettings& _rStyle ) const override;
421 void ImplAdjustNWFSizes() override;
422
423public:
424 /*
425 bUsesExplicitGroup of true means that group() is used to set what radiobuttons are part of a group
426 while false means that contiguous radiobuttons are considered part of a group where WB_GROUP designates
427 the start of the group and all contiguous radiobuttons without WB_GROUP set form the rest of the group.
428
429 true is fairly straightforward, false leads to trick situations and is the legacy case
430 */
431 explicit RadioButton(vcl::Window* pParent, bool bUsesExplicitGroup, WinBits nWinStyle);
432 virtual ~RadioButton() override;
433 virtual void dispose() override;
434
435 virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
436 virtual void Tracking( const TrackingEvent& rTEvt ) override;
437 virtual void KeyInput( const KeyEvent& rKEvt ) override;
438 virtual void KeyUp( const KeyEvent& rKEvt ) override;
439 virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
440 virtual void Draw( OutputDevice* pDev, const Point& rPos, SystemTextColorFlags nFlags ) override;
441 virtual void Resize() override;
442 virtual void GetFocus() override;
443 virtual void LoseFocus() override;
444 virtual void StateChanged( StateChangedType nType ) override;
445 virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
446 virtual bool PreNotify( NotifyEvent& rNEvt ) override;
447
448 void Toggle();
449
450 bool IsStateChanged() const { return mbStateChanged; }
451
452 void EnableRadioCheck( bool bRadioCheck ) { mbRadioCheck = bRadioCheck; }
453 bool IsRadioCheckEnabled() const { return mbRadioCheck; }
454
455 void SetModeRadioImage( const Image& rImage );
456
457 void SetState( bool bCheck );
458 void Check( bool bCheck = true );
459 bool IsChecked() const { return mbChecked; }
460
461 static Image GetRadioImage( const AllSettings& rSettings, DrawButtonFlags nFlags );
462
463 Size CalcMinimumSize( tools::Long nMaxWidth = 0 ) const;
464 virtual Size GetOptimalSize() const override;
465
466 void SetToggleHdl( const Link<RadioButton&,void>& rLink ) { maToggleHdl = rLink; }
467
481 std::vector<VclPtr<RadioButton> > GetRadioButtonGroup(bool bIncludeThis = true) const;
482
483 virtual bool set_property(const OUString &rKey, const OUString &rValue) override;
484
485 /*
486 * Group this RadioButton with another
487 */
488 void group(RadioButton &rOther);
489 virtual void ShowFocus(const tools::Rectangle& rRect) override;
490
493
494 virtual FactoryFunction GetUITestFactory() const override;
495};
496
498{
499private:
501
502 SAL_DLLPRIVATE void ImplInitStyle();
503
504 ImageButton( const ImageButton & ) = delete;
505 ImageButton & operator= ( const ImageButton & ) = delete;
506
507public:
508 ImageButton( vcl::Window* pParent, WinBits nStyle = 0 );
509};
510
511/* 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:295
bool mbTriState
Definition: button.hxx:298
void SetToggleHdl(const Link< CheckBox &, void > &rLink)
Definition: button.hxx:367
SAL_DLLPRIVATE const tools::Rectangle & GetStateRect() const
Definition: button.hxx:323
bool IsTriStateEnabled() const
Definition: button.hxx:360
void Check(bool bCheck=true)
Definition: button.hxx:349
Link< CheckBox &, void > maToggleHdl
Definition: button.hxx:299
tools::Rectangle maMouseRect
Definition: button.hxx:296
TriState meState
Definition: button.hxx:297
TriState GetState() const
Definition: button.hxx:347
bool IsChecked() const
Definition: button.hxx:354
SAL_DLLPRIVATE const tools::Rectangle & GetMouseRect() const
Definition: button.hxx:324
CloseButton(vcl::Window *pParent)
Definition: button.cxx:1880
Definition: ctrl.hxx:80
Control & operator=(const Control &)=delete
virtual void FillLayoutData() const
Definition: ctrl.cxx:83
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:77
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:61
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:170
PushButton & operator=(const PushButton &)=delete
PushButtonDropdownStyle mnDDStyle
Definition: button.hxx:188
SAL_DLLPRIVATE bool IsSymbol() const
Definition: button.hxx:200
bool mbIsAction
Definition: button.hxx:223
SymbolType meSymbol
Definition: button.hxx:220
SAL_DLLPRIVATE void ImplInit(vcl::Window *pParent, WinBits nStyle)
Definition: button.cxx:678
bool mbIsActive
Definition: button.hxx:189
bool IsPressed() const
Definition: button.hxx:162
void Check(bool bCheck=true)
Definition: button.hxx:227
static SAL_DLLPRIVATE WinBits ImplInitStyle(const vcl::Window *pPrevWindow, WinBits nStyle)
Definition: button.cxx:689
void setToggleButton(bool bIsToggleButton)
Definition: button.hxx:185
PushButton(const PushButton &)=delete
bool mbPressed
Definition: button.hxx:222
void SetState(TriState eState)
Definition: button.cxx:1653
void setAction(bool bIsAction)
Definition: button.hxx:172
TriState GetState() const
Definition: button.hxx:155
bool IsChecked() const
Definition: button.hxx:232
bool isAction() const
Definition: button.hxx:177
bool isToggleButton()
Definition: button.hxx:184
TriState meState
Definition: button.hxx:221
SymbolType GetSymbol() const
Definition: button.hxx:149
bool IsChecked() const
Definition: button.hxx:459
void EnableRadioCheck(bool bRadioCheck)
Definition: button.hxx:452
bool mbRadioCheck
Definition: button.hxx:388
Image maImage
Definition: button.hxx:386
bool IsStateChanged() const
Definition: button.hxx:450
RadioButton(const RadioButton &)=delete
tools::Rectangle maMouseRect
Definition: button.hxx:385
Link< RadioButton &, void > maToggleHdl
Definition: button.hxx:391
void SetToggleHdl(const Link< RadioButton &, void > &rLink)
Definition: button.hxx:466
std::shared_ptr< std::vector< VclPtr< RadioButton > > > m_xGroup
Definition: button.hxx:383
bool mbChecked
Definition: button.hxx:387
bool mbStateChanged
Definition: button.hxx:389
bool IsRadioCheckEnabled() const
Definition: button.hxx:453
tools::Rectangle maStateRect
Definition: button.hxx:384
bool mbUsesExplicitGroup
Definition: button.hxx:390
Creates a hierarchy of vcl::Windows (widgets) from a .ui file for dialogs, sidebar,...
Definition: builder.hxx:69
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:1841
virtual void Tracking(const TrackingEvent &rTEvt)
Definition: window.cxx:1932
virtual void MouseButtonDown(const MouseEvent &rMEvt)
Definition: mouse.cxx:420
virtual void KeyInput(const KeyEvent &rKEvt)
Definition: window.cxx:1805
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:53
virtual void DumpAsPropertyTree(tools::JsonWriter &)
Dumps itself and potentially its children to a property tree, to be written easily to JSON.
Definition: window.cxx:3356
virtual void Draw(::OutputDevice *pDev, const Point &rPos, SystemTextColorFlags nFlags)
Definition: window.cxx:1829
virtual void DataChanged(const DataChangedEvent &rDCEvt)
Definition: event.cxx:36
virtual void LoseFocus()
Definition: window.cxx:1855
virtual void ImplAdjustNWFSizes()
Definition: window3.cxx:28
virtual void KeyUp(const KeyEvent &rKEvt)
Definition: window.cxx:1822
virtual bool set_property(const OUString &rKey, const OUString &rValue)
Definition: window2.cxx:1478
SAL_DLLPRIVATE void ImplInit(vcl::Window *pParent, WinBits nStyle, SystemParentData *pSystemParentData)
Definition: window.cxx:941
virtual FactoryFunction GetUITestFactory() const
Definition: window.cxx:3941
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:44
void GetState(const SdrMarkView *pSdrView, SfxItemSet &rSet)
long Long
QPRO_FUNC_TYPE nType
SymbolType
Definition: vclenum.hxx:74
GetFocusFlags
Definition: window.hxx:313
StateChangedType
Definition: window.hxx:291
sal_Int64 WinBits
Definition: wintypes.hxx:109
WindowType
Definition: wintypes.hxx:27
ImageAlign
Definition: wintypes.hxx:234
SymbolAlign
Definition: wintypes.hxx:239
WinBits const WB_DEFBUTTON
Definition: wintypes.hxx:181