LibreOffice Module svx (master)  1
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SvxRectCtl Class Reference

#include <dlgctrl.hxx>

Inheritance diagram for SvxRectCtl:
[legend]
Collaboration diagram for SvxRectCtl:
[legend]

Public Member Functions

 SvxRectCtl (SvxTabPage *pPage, RectPoint eRpt=RectPoint::MM, sal_uInt16 nBorder=200)
 
void SetControlSettings (RectPoint eRpt, sal_uInt16 nBorder)
 
virtual ~SvxRectCtl () override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &) override
 
virtual void Resize () override
 
virtual bool MouseButtonDown (const MouseEvent &) override
 
virtual bool KeyInput (const KeyEvent &) override
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual tools::Rectangle GetFocusRect () override
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual void StyleUpdated () override
 
void Reset ()
 
RectPoint GetActualRP () const
 
void SetActualRP (RectPoint eNewRP)
 
void SetState (CTL_STATE nState)
 
tools::Rectangle CalculateFocusRectangle () const
 
tools::Rectangle CalculateFocusRectangle (RectPoint eRectPoint) const
 
css::uno::Reference< css::accessibility::XAccessible > getAccessibleParent () const
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 
a11yrelationset get_accessible_relation_set () const
 
RectPoint GetApproxRPFromPixPt (const css::awt::Point &rPixelPoint) const
 
bool IsCompletelyDisabled () const
 
void DoCompletelyDisable (bool bNew)
 
- Public Member Functions inherited from weld::CustomWidgetController
virtual bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &)
 
virtual bool Command (const CommandEvent &)
 
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
 

Static Public Attributes

static const sal_uInt8 NO_CHILDREN = 9
 

Protected Member Functions

RectPoint GetRPFromPoint (Point, bool bRTL=false) const
 
const PointGetPointFromRP (RectPoint) const
 
Point SetActualRPWithoutInvalidate (RectPoint eNewRP)
 
Point GetApproxLogPtFromPixPt (const Point &rRoughPixelPoint) const
 

Protected Attributes

rtl::Reference< SvxRectCtlAccessibleContextpAccContext
 
sal_uInt16 nBorderWidth
 
Point aPtLT
 
Point aPtMT
 
Point aPtRT
 
Point aPtLM
 
Point aPtMM
 
Point aPtRM
 
Point aPtLB
 
Point aPtMB
 
Point aPtRB
 
Point aPtNew
 
RectPoint eRP
 
RectPoint eDefRP
 
std::unique_ptr< BitmapExpBitmap
 
CTL_STATE m_nState
 
bool mbCompleteDisable: 1
 

Private Member Functions

SVX_DLLPRIVATE void InitRectBitmap ()
 
SVX_DLLPRIVATE BitmapExGetRectBitmap ()
 
SVX_DLLPRIVATE void Resize_Impl (const Size &rSize)
 
 SvxRectCtl (const SvxRectCtl &)=delete
 
SvxRectCtloperator= (const SvxRectCtl &)=delete
 

Static Private Member Functions

static SVX_DLLPRIVATE void InitSettings (vcl::RenderContext &rRenderContext)
 

Private Attributes

SvxTabPagem_pPage
 

Additional Inherited Members

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

Detailed Description

Definition at line 74 of file dlgctrl.hxx.

Constructor & Destructor Documentation

SvxRectCtl::SvxRectCtl ( const SvxRectCtl )
privatedelete
SvxRectCtl::SvxRectCtl ( SvxTabPage pPage,
RectPoint  eRpt = RectPoint::MM,
sal_uInt16  nBorder = 200 
)

Definition at line 74 of file dlgctrl.cxx.

References Map100thMM, and Width.

SvxRectCtl::~SvxRectCtl ( )
overridevirtual

Definition at line 100 of file dlgctrl.cxx.

References pAccContext, and pBitmap.

Member Function Documentation

tools::Rectangle SvxRectCtl::CalculateFocusRectangle ( ) const
tools::Rectangle SvxRectCtl::CalculateFocusRectangle ( RectPoint  eRectPoint) const
Reference< XAccessible > SvxRectCtl::CreateAccessible ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 564 of file dlgctrl.cxx.

References pAccContext.

void SvxRectCtl::DoCompletelyDisable ( bool  bNew)

Definition at line 576 of file dlgctrl.cxx.

References weld::CustomWidgetController::Invalidate(), and mbCompleteDisable.

a11yrelationset SvxRectCtl::get_accessible_relation_set ( ) const
inline
css::uno::Reference<css::accessibility::XAccessible> SvxRectCtl::getAccessibleParent ( ) const
inline
RectPoint SvxRectCtl::GetActualRP ( ) const
inline

Definition at line 121 of file dlgctrl.hxx.

Referenced by CalculateFocusRectangle(), and GetFocus().

Point SvxRectCtl::GetApproxLogPtFromPixPt ( const Point rRoughPixelPoint) const
protected
RectPoint SvxRectCtl::GetApproxRPFromPixPt ( const css::awt::Point &  rPixelPoint) const

Definition at line 570 of file dlgctrl.cxx.

References GetApproxLogPtFromPixPt(), and GetRPFromPoint().

void SvxRectCtl::GetFocus ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 425 of file dlgctrl.cxx.

References GetActualRP(), weld::CustomWidgetController::Invalidate(), and pAccContext.

tools::Rectangle SvxRectCtl::GetFocusRect ( )
overridevirtual
const Point & SvxRectCtl::GetPointFromRP ( RectPoint  _eRP) const
protected

Definition at line 387 of file dlgctrl.cxx.

References aPtLB, aPtLM, aPtLT, aPtMB, aPtMM, aPtMT, aPtRB, aPtRM, aPtRT, LB, LM, LT, MB, MM, MT, RB, RM, and RT.

Referenced by Reset(), SetActualRPWithoutInvalidate(), and SetState().

BitmapEx & SvxRectCtl::GetRectBitmap ( )
private

Definition at line 66 of file dlgctrl.cxx.

References InitRectBitmap(), and pBitmap.

Referenced by Paint().

RectPoint SvxRectCtl::GetRPFromPoint ( Point  aPt,
bool  bRTL = false 
) const
protected

Definition at line 479 of file dlgctrl.cxx.

References aPtLB, aPtLM, aPtLT, aPtMB, aPtMT, aPtRB, aPtRM, aPtRT, LB, LM, LT, MB, MM, MT, RB, RM, and RT.

Referenced by GetApproxRPFromPixPt(), MouseButtonDown(), SetActualRPWithoutInvalidate(), and SetState().

void SvxRectCtl::InitRectBitmap ( )
private
void SvxRectCtl::InitSettings ( vcl::RenderContext rRenderContext)
staticprivate
bool SvxRectCtl::IsCompletelyDisabled ( ) const
inline

Definition at line 137 of file dlgctrl.hxx.

Referenced by KeyInput(), MouseButtonDown(), and Paint().

bool SvxRectCtl::KeyInput ( const KeyEvent rKeyEvt)
overridevirtual
void SvxRectCtl::LoseFocus ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 436 of file dlgctrl.cxx.

References weld::CustomWidgetController::Invalidate().

bool SvxRectCtl::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual
SvxRectCtl& SvxRectCtl::operator= ( const SvxRectCtl )
privatedelete
void SvxRectCtl::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle  
)
overridevirtual
void SvxRectCtl::Reset ( void  )

Definition at line 497 of file dlgctrl.cxx.

References aPtNew, eDefRP, eRP, GetPointFromRP(), and weld::CustomWidgetController::Invalidate().

Referenced by Resize_Impl().

void SvxRectCtl::Resize ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 106 of file dlgctrl.cxx.

References weld::CustomWidgetController::GetOutputSizePixel(), and Resize_Impl().

Referenced by SetControlSettings().

void SvxRectCtl::Resize_Impl ( const Size rSize)
private

Definition at line 111 of file dlgctrl.cxx.

References aPtLB, aPtLM, aPtLT, aPtMB, aPtMM, aPtMT, aPtRB, aPtRM, aPtRT, Size::Height(), nBorderWidth, Reset(), StyleUpdated(), and Size::Width().

Referenced by Resize(), and SetDrawingArea().

void SvxRectCtl::SetActualRP ( RectPoint  eNewRP)
Point SvxRectCtl::SetActualRPWithoutInvalidate ( RectPoint  eNewRP)
protected
void SvxRectCtl::SetControlSettings ( RectPoint  eRpt,
sal_uInt16  nBorder 
)
void SvxRectCtl::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual
void SvxRectCtl::SetState ( CTL_STATE  nState)
void SvxRectCtl::StyleUpdated ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 176 of file dlgctrl.cxx.

References pBitmap.

Referenced by Resize_Impl().

Member Data Documentation

Point SvxRectCtl::aPtLB
protected

Definition at line 92 of file dlgctrl.hxx.

Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().

Point SvxRectCtl::aPtLM
protected

Definition at line 91 of file dlgctrl.hxx.

Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().

Point SvxRectCtl::aPtLT
protected
Point SvxRectCtl::aPtMB
protected

Definition at line 92 of file dlgctrl.hxx.

Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().

Point SvxRectCtl::aPtMM
protected
Point SvxRectCtl::aPtMT
protected

Definition at line 90 of file dlgctrl.hxx.

Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().

Point SvxRectCtl::aPtNew
protected
Point SvxRectCtl::aPtRB
protected
Point SvxRectCtl::aPtRM
protected

Definition at line 91 of file dlgctrl.hxx.

Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().

Point SvxRectCtl::aPtRT
protected

Definition at line 90 of file dlgctrl.hxx.

Referenced by GetPointFromRP(), GetRPFromPoint(), Paint(), and Resize_Impl().

RectPoint SvxRectCtl::eDefRP
protected

Definition at line 94 of file dlgctrl.hxx.

Referenced by Reset(), SetActualRPWithoutInvalidate(), and SetControlSettings().

RectPoint SvxRectCtl::eRP
protected

Definition at line 94 of file dlgctrl.hxx.

Referenced by KeyInput(), MouseButtonDown(), Reset(), SetActualRPWithoutInvalidate(), and SetState().

CTL_STATE SvxRectCtl::m_nState
protected
SvxTabPage* SvxRectCtl::m_pPage
private

Definition at line 77 of file dlgctrl.hxx.

Referenced by KeyInput(), MouseButtonDown(), and SetState().

bool SvxRectCtl::mbCompleteDisable
protected

Definition at line 98 of file dlgctrl.hxx.

Referenced by DoCompletelyDisable().

sal_uInt16 SvxRectCtl::nBorderWidth
protected

Definition at line 89 of file dlgctrl.hxx.

Referenced by Resize_Impl(), and SetControlSettings().

const sal_uInt8 SvxRectCtl::NO_CHILDREN = 9
static

Definition at line 126 of file dlgctrl.hxx.

Referenced by SvxRectCtlAccessibleContext::getAccessibleChildCount().

rtl::Reference<SvxRectCtlAccessibleContext> SvxRectCtl::pAccContext
protected

Definition at line 88 of file dlgctrl.hxx.

Referenced by CreateAccessible(), GetFocus(), SetActualRP(), and ~SvxRectCtl().

std::unique_ptr<BitmapEx> SvxRectCtl::pBitmap
protected

Definition at line 95 of file dlgctrl.hxx.

Referenced by GetRectBitmap(), InitRectBitmap(), StyleUpdated(), and ~SvxRectCtl().


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