22#if !defined(VCL_DLLIMPLEMENTATION) && !defined(TOOLKIT_DLLIMPLEMENTATION) && !defined(VCL_INTERNALS)
23#error "don't use this in new code"
34template <
class T>
class VclPtr;
58 SAL_DLLPRIVATE
void ImplSetSymbolAlign(
SymbolAlign eAlign );
60 SAL_DLLPRIVATE
tools::Long ImplGetSeparatorX()
const;
61 SAL_DLLPRIVATE
void ImplSetSeparatorX(
tools::Long nX );
71 SAL_DLLPRIVATE
tools::Long ImplGetImageToTextDistance()
const;
75 virtual void dispose()
override;
83 void SetCommandHandler(
const OUString& aCommand,
const css::uno::Reference<css::frame::XFrame>& rFrame);
84 OUString
const &
GetCommand()
const {
return maCommand; }
86 void SetModeImage(
const Image& rImage );
87 Image const & GetModeImage( )
const;
88 bool HasImage()
const;
96 void SetCustomButtonImage(
const Image& rImage );
97 Image const & GetCustomButtonImage()
const;
99 bool IsSmallSymbol()
const;
100 void SetSmallSymbol();
101 virtual bool set_property(
const OUString &rKey,
const OUString &rValue)
override;
104 virtual void statusChanged(
const css::frame::FeatureStateEvent& rEvent);
126 SAL_DLLPRIVATE
void ImplSetDefButton(
bool bSet );
128 SAL_DLLPRIVATE
static bool ImplHitTestPushButton(
vcl::Window const * pDev,
const Point& rPos);
129 SAL_DLLPRIVATE
bool ImplIsDefButton()
const;
139 virtual void Resize()
override;
156 virtual void statusChanged(
const css::frame::FeatureStateEvent& rEvent)
override;
158 void Check(
bool bCheck =
true );
159 bool IsChecked()
const;
161 void SetPressed(
bool bPressed );
166 Size CalcMinimumSize()
const;
169 virtual bool set_property(
const OUString &rKey,
const OUString &rValue)
override;
174 mbIsAction = bIsAction;
191 SAL_DLLPRIVATE
void ImplInitPushButtonData();
209 using Window::ImplInit;
224 bool mbIsToggleButton =
false;
250 virtual void Click()
override;
266 virtual void Click()
override;
289 virtual void Click()
override;
300 SAL_DLLPRIVATE
void ImplInitCheckBoxData();
308 SAL_DLLPRIVATE
Size ImplGetCheckImageSize()
const;
315 using Window::ImplInit;
327 SAL_DLLPRIVATE
void ImplCheck();
337 virtual void Resize()
override;
359 void EnableTriState(
bool bTriState =
true );
369 virtual bool set_property(
const OUString &rKey,
const OUString &rValue)
override;
383 std::shared_ptr< std::vector< VclPtr< RadioButton > > >
m_xGroup;
392 SAL_DLLPRIVATE
void ImplInitRadioButtonData();
401 SAL_DLLPRIVATE
void ImplUncheckAllOther();
402 SAL_DLLPRIVATE
Size ImplGetRadioImageSize()
const;
409 using Window::ImplInit;
433 virtual void dispose()
override;
441 virtual void Resize()
override;
455 void SetModeRadioImage(
const Image& rImage );
457 void SetState(
bool bCheck );
458 void Check(
bool bCheck =
true );
481 std::vector<VclPtr<RadioButton> > GetRadioButtonGroup(
bool bIncludeThis =
true)
const;
483 virtual bool set_property(
const OUString &rKey,
const OUString &rValue)
override;
502 SAL_DLLPRIVATE
void ImplInitStyle();
CheckBox(const CheckBox &)=delete
tools::Rectangle maStateRect
void SetToggleHdl(const Link< CheckBox &, void > &rLink)
SAL_DLLPRIVATE const tools::Rectangle & GetStateRect() const
bool IsTriStateEnabled() const
void Check(bool bCheck=true)
Link< CheckBox &, void > maToggleHdl
tools::Rectangle maMouseRect
TriState GetState() const
SAL_DLLPRIVATE const tools::Rectangle & GetMouseRect() const
Control & operator=(const Control &)=delete
virtual void FillLayoutData() const
virtual const Color & GetCanonicalTextColor(const StyleSettings &_rStyle) const
virtual void StateChanged(StateChangedType nStateChange) override
virtual void Resize() override
virtual Size GetOptimalSize() const override
virtual const vcl::Font & GetCanonicalFont(const StyleSettings &_rStyle) const
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Creates a hierarchy of vcl::Windows (widgets) from a .ui file for dialogs, sidebar,...
A thin wrapper around rtl::Reference to implement the acquire and dispose semantics we want for refer...
virtual void Tracking(const TrackingEvent &rTEvt)
virtual void MouseButtonDown(const MouseEvent &rMEvt)
virtual void KeyInput(const KeyEvent &rKEvt)
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
virtual bool PreNotify(NotifyEvent &rNEvt)
virtual void ShowFocus(const tools::Rectangle &rRect)
virtual void DumpAsPropertyTree(tools::JsonWriter &)
Dumps itself and potentially its children to a property tree, to be written easily to JSON.
virtual void Draw(::OutputDevice *pDev, const Point &rPos, SystemTextColorFlags nFlags)
virtual void DataChanged(const DataChangedEvent &rDCEvt)
virtual void ImplAdjustNWFSizes()
virtual void KeyUp(const KeyEvent &rKEvt)
virtual bool set_property(const OUString &rKey, const OUString &rValue)
SAL_DLLPRIVATE void ImplInit(vcl::Window *pParent, WinBits nStyle, SystemParentData *pSystemParentData)
virtual FactoryFunction GetUITestFactory() const
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
WinBits const WB_DEFBUTTON