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;
53 SAL_DLLPRIVATE
void ImplDrawAlignedImage(
OutputDevice* pDev, Point& rPos,
Size& rSize,
58 SAL_DLLPRIVATE
void ImplSetSymbolAlign(
SymbolAlign eAlign );
60 SAL_DLLPRIVATE
tools::Long ImplGetSeparatorX()
const;
61 SAL_DLLPRIVATE
void ImplSetSeparatorX(
tools::Long nX );
68 const Point& rPos,
const Size& rSize,
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 OString &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 OString &rKey,
const OUString &rValue)
override;
174 mbIsAction = bIsAction;
188 SAL_DLLPRIVATE
void ImplInitPushButtonData();
206 using Window::ImplInit;
246 virtual void Click()
override;
262 virtual void Click()
override;
285 virtual void Click()
override;
296 SAL_DLLPRIVATE
void ImplInitCheckBoxData();
300 const Point& rPos,
const Size& rSize,
304 SAL_DLLPRIVATE
Size ImplGetCheckImageSize()
const;
311 using Window::ImplInit;
323 SAL_DLLPRIVATE
void ImplCheck();
333 virtual void Resize()
override;
355 void EnableTriState(
bool bTriState =
true );
365 virtual bool set_property(
const OString &rKey,
const OUString &rValue)
override;
379 std::shared_ptr< std::vector< VclPtr< RadioButton > > >
m_xGroup;
388 SAL_DLLPRIVATE
void ImplInitRadioButtonData();
393 const Point& rPos,
const Size& rSize,
397 SAL_DLLPRIVATE
void ImplUncheckAllOther();
398 SAL_DLLPRIVATE
Size ImplGetRadioImageSize()
const;
405 using Window::ImplInit;
429 virtual void dispose()
override;
437 virtual void Resize()
override;
451 void SetModeRadioImage(
const Image& rImage );
453 void SetState(
bool bCheck );
454 void Check(
bool bCheck =
true );
477 std::vector<VclPtr<RadioButton> > GetRadioButtonGroup(
bool bIncludeThis =
true)
const;
479 virtual bool set_property(
const OString &rKey,
const OUString &rValue)
override;
498 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 bool set_property(const OString &rKey, const OUString &rValue)
virtual void ImplAdjustNWFSizes()
virtual void KeyUp(const KeyEvent &rKEvt)
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