20#ifndef INCLUDED_SVX_DIALCONTROL_HXX
21#define INCLUDED_SVX_DIALCONTROL_HXX
39 void SetSize(
const Size& rSize);
41 void DrawBackground(
const Size& rSize,
bool bEnabled );
42 void DrawBackground();
43 void DrawElements(
const OUString& rText,
Degree100 nAngle );
44 Color GetBackgroundColor()
const override;
48 const Color& GetScaleLineColor()
const;
49 const Color& GetButtonLineColor()
const;
50 const Color& GetButtonFillColor(
bool bMain )
const;
82 virtual void StyleUpdated()
override;
90 virtual void Resize()
override;
97 bool HasRotation()
const;
113 bool IsValueModified()
const;
115 const OUString&
GetText()
const {
return mpImpl->maText; }
116 void SetText(
const OUString& rText) { mpImpl->maText = rText; }
150 void SetSize(
const Size& rWinSize );
152 std::unique_ptr< DialControl_Impl >
mpImpl;
154 void HandleMouseEvent(
const Point& rPos,
bool bInitial );
155 void HandleEscapeEvent();
157 void SetRotation(
Degree100 nAngle,
bool bBroadcast );
161 void InvalidateControl();
This control allows to input a rotation angle, visualized by a dial.
const OUString & GetText() const
std::unique_ptr< DialControl_Impl > mpImpl
void SetText(const OUString &rText)
void set_visible(bool bVisible)
DECL_DLLPRIVATE_LINK(LinkedFieldModifyHdl, weld::MetricSpinButton &, void)
Color GetTextColor(Color const &rColor, DrawModeFlags nDrawMode, StyleSettings const &rStyleSettings)
weld::MetricSpinButton * mpLinkField
ScopedVclPtr< DialControlBmp > mxBmpEnabled
ScopedVclPtr< DialControlBmp > mxBmpBuffered
sal_Int32 mnLinkedFieldValueMultiplyer
Link< DialControl &, void > maModifyHdl
ScopedVclPtr< DialControlBmp > mxBmpDisabled