LibreOffice Module svx (master)  1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
svx::SvxDialControl Class Referencefinal

#include <dialcontrol.hxx>

Inheritance diagram for svx::SvxDialControl:
[legend]
Collaboration diagram for svx::SvxDialControl:
[legend]

Classes

struct  DialControl_Impl
 

Public Member Functions

virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void StyleUpdated () override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
 
virtual bool KeyInput (const KeyEvent &rKEvt) override
 
virtual void LoseFocus () override
 
virtual void Resize () override
 
sal_Int32 GetRotation () const
 Returns the current rotation angle in 1/100 degrees. More...
 
void SetRotation (sal_Int32 nAngle)
 Sets the rotation to the passed value (in 1/100 degrees). More...
 
bool HasRotation () const
 Returns true, if the control is not in "don't care" state. More...
 
void SetNoRotation ()
 Sets the control to "don't care" state. More...
 
void SetLinkedField (weld::SpinButton *pField, sal_Int32 nDecimalPlaces=0)
 Links the passed numeric edit field to the control (bi-directional). More...
 
void SaveValue ()
 Save value for later comparison. More...
 
bool IsValueModified () const
 Compare value with the saved value. More...
 
const OUString & GetText () const
 
void SetText (const OUString &rText)
 
- Public Member Functions inherited from weld::CustomWidgetController
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible ()
 
virtual void GetFocus ()
 
virtual bool Command (const CommandEvent &)
 
virtual tools::Rectangle GetFocusRect ()
 
virtual FactoryFunction GetUITestFactory () const
 
virtual OUString RequestHelp (tools::Rectangle &)
 
virtual OUString GetHelpText () const
 
Size const & GetOutputSizePixel () const
 
void SetOutputSizePixel (const Size &rSize)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void GrabFocus ()
 
bool HasFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
bool IsActive () const
 
int GetTextHeight () const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void set_size_request (int nWidth, int nHeight)
 
void queue_resize ()
 
 CustomWidgetController ()
 
virtual ~CustomWidgetController ()
 
 CustomWidgetController (CustomWidgetController const &)=default
 
 CustomWidgetController (CustomWidgetController &&)=default
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (CustomWidgetController &&)=default
 

Private Member Functions

void HandleMouseEvent (const Point &rPos, bool bInitial)
 
void HandleEscapeEvent ()
 
void Init (const Size &rWinSize, const vcl::Font &rWinFont)
 
void Init (const Size &rWinSize)
 
void InvalidateControl ()
 
 DECL_LINK (LinkedFieldModifyHdl, weld::SpinButton &, void)
 
void LinkedFieldModifyHdl ()
 

Private Attributes

std::unique_ptr< DialControl_ImplmpImpl
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 

Detailed Description

Definition at line 142 of file dialcontrol.hxx.

Member Function Documentation

svx::SvxDialControl::DECL_LINK ( LinkedFieldModifyHdl  ,
weld::SpinButton ,
void   
)
private
sal_Int32 svx::SvxDialControl::GetRotation ( ) const

Returns the current rotation angle in 1/100 degrees.

Definition at line 595 of file dialcontrol.cxx.

References mpImpl.

Referenced by SetRotation().

const OUString& svx::SvxDialControl::GetText ( ) const
inline

Definition at line 182 of file dialcontrol.hxx.

Referenced by InvalidateControl().

void svx::SvxDialControl::HandleEscapeEvent ( )
private
void svx::SvxDialControl::HandleMouseEvent ( const Point rPos,
bool  bInitial 
)
private

Definition at line 685 of file dialcontrol.cxx.

References mpImpl, basegfx::rad2deg(), SetRotation(), Point::X(), and Point::Y().

Referenced by MouseButtonDown(), and MouseMove().

bool svx::SvxDialControl::HasRotation ( ) const

Returns true, if the control is not in "don't care" state.

Definition at line 579 of file dialcontrol.cxx.

References mpImpl.

void svx::SvxDialControl::Init ( const Size rWinSize,
const vcl::Font rWinFont 
)
private
void svx::SvxDialControl::Init ( const Size rWinSize)
private
void svx::SvxDialControl::InvalidateControl ( )
private
bool svx::SvxDialControl::IsValueModified ( ) const

Compare value with the saved value.

Definition at line 636 of file dialcontrol.cxx.

References mpImpl.

bool svx::SvxDialControl::KeyInput ( const KeyEvent rKEvt)
overridevirtual
void svx::SvxDialControl::LinkedFieldModifyHdl ( )
private

Definition at line 625 of file dialcontrol.cxx.

References mpImpl, and SetRotation().

Referenced by svx::IMPL_LINK_NOARG(), and SetLinkedField().

void svx::SvxDialControl::LoseFocus ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 573 of file dialcontrol.cxx.

References HandleEscapeEvent().

bool svx::SvxDialControl::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual
bool svx::SvxDialControl::MouseButtonUp ( const MouseEvent rMEvt)
overridevirtual
bool svx::SvxDialControl::MouseMove ( const MouseEvent rMEvt)
overridevirtual
void svx::SvxDialControl::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overridevirtual

Implements weld::CustomWidgetController.

Definition at line 519 of file dialcontrol.cxx.

References OutputDevice::DrawBitmapEx(), and mpImpl.

void svx::SvxDialControl::Resize ( )
overridevirtual
void svx::SvxDialControl::SaveValue ( )

Save value for later comparison.

Definition at line 631 of file dialcontrol.cxx.

References mpImpl.

void svx::SvxDialControl::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual
void svx::SvxDialControl::SetLinkedField ( weld::SpinButton pField,
sal_Int32  nDecimalPlaces = 0 
)

Links the passed numeric edit field to the control (bi-directional).

nDecimalPlaces: field value is unsign given decimal places default is 0 which means field values are in degrees, 2 means 100th of degree

Definition at line 600 of file dialcontrol.cxx.

References weld::SpinButton::connect_value_changed(), LINK, LinkedFieldModifyHdl(), and mpImpl.

void svx::SvxDialControl::SetNoRotation ( )

Sets the control to "don't care" state.

Definition at line 584 of file dialcontrol.cxx.

References InvalidateControl(), and mpImpl.

void svx::SvxDialControl::SetRotation ( sal_Int32  nAngle)

Sets the rotation to the passed value (in 1/100 degrees).

Definition at line 668 of file dialcontrol.cxx.

References GetRotation(), InvalidateControl(), and mpImpl.

Referenced by HandleEscapeEvent(), HandleMouseEvent(), and LinkedFieldModifyHdl().

void svx::SvxDialControl::SetText ( const OUString &  rText)
inline

Definition at line 183 of file dialcontrol.hxx.

void svx::SvxDialControl::StyleUpdated ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 525 of file dialcontrol.cxx.

References Init(), InvalidateControl(), and mpImpl.

Member Data Documentation

std::unique_ptr< DialControl_Impl > svx::SvxDialControl::mpImpl
private

The documentation for this class was generated from the following files: