LibreOffice Module svx (master) 1
Public Member Functions | Static Public Attributes | Protected Member Functions | 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)
 
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 css::uno::Reference< css::accessibility::XAccessible > CreateAccessible ()
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0
 
virtual void Resize ()
 
virtual bool MouseButtonDown (const MouseEvent &)
 
virtual bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &)
 
virtual void GetFocus ()
 
virtual void LoseFocus ()
 
virtual void StyleUpdated ()
 
virtual bool Command (const CommandEvent &)
 
virtual bool KeyInput (const KeyEvent &)
 
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)
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void SetCursor (void *pData)
 
void GrabFocus ()
 
bool HasFocus () const
 
bool HasChildFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
void Enable () const
 
void Disable () const
 
bool IsActive () const
 
int GetTextHeight () const
 
int GetTextWidth (const OUString &rText) const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () const
 
Point GetPointerPosPixel () const
 
void EnableRTL (bool bEnable)
 
bool IsRTLEnabled () const
 
void ReleaseMouse ()
 
void SetPointer (PointerStyle ePointerStyle)
 
void SetHelpId (const OUString &rHelpId)
 
void SetAccessibleName (const OUString &rName)
 
void SetInputContext (const InputContext &rInputContext)
 
void SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth)
 
virtual int GetSurroundingText (OUString &)
 
virtual bool DeleteSurroundingText (const Selection &)
 
css::uno::Reference< css::datatransfer::dnd::XDropTarget > GetDropTarget ()
 
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const
 
void SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants)
 
virtual bool StartDrag ()
 
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
 

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
 
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
 

Additional Inherited Members

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

Detailed Description

Definition at line 73 of file dlgctrl.hxx.

Constructor & Destructor Documentation

◆ SvxRectCtl() [1/2]

SvxRectCtl::SvxRectCtl ( const SvxRectCtl )
privatedelete

◆ SvxRectCtl() [2/2]

SvxRectCtl::SvxRectCtl ( SvxTabPage pPage)

Definition at line 65 of file dlgctrl.cxx.

References Map100thMM, MM, nBorderWidth, NONE, and Width.

◆ ~SvxRectCtl()

SvxRectCtl::~SvxRectCtl ( )
overridevirtual

Definition at line 91 of file dlgctrl.cxx.

References pAccContext, and pBitmap.

Member Function Documentation

◆ CalculateFocusRectangle() [1/2]

tools::Rectangle SvxRectCtl::CalculateFocusRectangle ( ) const

◆ CalculateFocusRectangle() [2/2]

tools::Rectangle SvxRectCtl::CalculateFocusRectangle ( RectPoint  eRectPoint) const

◆ CreateAccessible()

Reference< XAccessible > SvxRectCtl::CreateAccessible ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 561 of file dlgctrl.cxx.

References pAccContext.

◆ DoCompletelyDisable()

void SvxRectCtl::DoCompletelyDisable ( bool  bNew)

Definition at line 575 of file dlgctrl.cxx.

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

◆ get_accessible_relation_set()

a11yrelationset SvxRectCtl::get_accessible_relation_set ( ) const
inline

Definition at line 130 of file dlgctrl.hxx.

Referenced by SvxRectCtlAccessibleContext::getAccessibleRelationSet().

◆ getAccessibleParent()

css::uno::Reference< css::accessibility::XAccessible > SvxRectCtl::getAccessibleParent ( ) const
inline

Definition at line 128 of file dlgctrl.hxx.

Referenced by SvxRectCtlAccessibleContext::getAccessibleParent().

◆ GetActualRP()

RectPoint SvxRectCtl::GetActualRP ( ) const
inline

Definition at line 118 of file dlgctrl.hxx.

Referenced by CalculateFocusRectangle(), and GetFocus().

◆ GetApproxLogPtFromPixPt()

Point SvxRectCtl::GetApproxLogPtFromPixPt ( const Point rRoughPixelPoint) const
protected

◆ GetApproxRPFromPixPt()

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

◆ GetFocus()

void SvxRectCtl::GetFocus ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 418 of file dlgctrl.cxx.

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

◆ GetFocusRect()

tools::Rectangle SvxRectCtl::GetFocusRect ( )
overridevirtual

◆ GetPointFromRP()

const Point & SvxRectCtl::GetPointFromRP ( RectPoint  _eRP) const
protected

Definition at line 380 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().

◆ GetRectBitmap()

BitmapEx & SvxRectCtl::GetRectBitmap ( )
private

Definition at line 57 of file dlgctrl.cxx.

References InitRectBitmap(), and pBitmap.

Referenced by Paint().

◆ GetRPFromPoint()

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

Definition at line 474 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().

◆ InitRectBitmap()

void SvxRectCtl::InitRectBitmap ( )
private

◆ InitSettings()

void SvxRectCtl::InitSettings ( vcl::RenderContext rRenderContext)
staticprivate

◆ IsCompletelyDisabled()

bool SvxRectCtl::IsCompletelyDisabled ( ) const
inline

Definition at line 134 of file dlgctrl.hxx.

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

◆ KeyInput()

bool SvxRectCtl::KeyInput ( const KeyEvent rKeyEvt)
overridevirtual

◆ LoseFocus()

void SvxRectCtl::LoseFocus ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 431 of file dlgctrl.cxx.

References weld::CustomWidgetController::Invalidate().

◆ MouseButtonDown()

bool SvxRectCtl::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual

◆ operator=()

SvxRectCtl & SvxRectCtl::operator= ( const SvxRectCtl )
privatedelete

◆ Paint()

void SvxRectCtl::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle  
)
overridevirtual

◆ Reset()

void SvxRectCtl::Reset ( void  )

Definition at line 492 of file dlgctrl.cxx.

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

Referenced by Resize_Impl().

◆ Resize()

void SvxRectCtl::Resize ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 99 of file dlgctrl.cxx.

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

Referenced by SetControlSettings().

◆ Resize_Impl()

void SvxRectCtl::Resize_Impl ( const Size rSize)
private

Definition at line 104 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().

◆ SetActualRP()

void SvxRectCtl::SetActualRP ( RectPoint  eNewRP)

◆ SetActualRPWithoutInvalidate()

Point SvxRectCtl::SetActualRPWithoutInvalidate ( RectPoint  eNewRP)
protected

◆ SetControlSettings()

void SvxRectCtl::SetControlSettings ( RectPoint  eRpt,
sal_uInt16  nBorder 
)

◆ SetDrawingArea()

void SvxRectCtl::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

◆ SetState()

void SvxRectCtl::SetState ( CTL_STATE  nState)

◆ StyleUpdated()

void SvxRectCtl::StyleUpdated ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 169 of file dlgctrl.cxx.

References pBitmap.

Referenced by Resize_Impl().

Member Data Documentation

◆ aPtLB

Point SvxRectCtl::aPtLB
private

Definition at line 81 of file dlgctrl.hxx.

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

◆ aPtLM

Point SvxRectCtl::aPtLM
private

Definition at line 80 of file dlgctrl.hxx.

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

◆ aPtLT

Point SvxRectCtl::aPtLT
private

◆ aPtMB

Point SvxRectCtl::aPtMB
private

Definition at line 81 of file dlgctrl.hxx.

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

◆ aPtMM

Point SvxRectCtl::aPtMM
private

◆ aPtMT

Point SvxRectCtl::aPtMT
private

Definition at line 79 of file dlgctrl.hxx.

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

◆ aPtNew

Point SvxRectCtl::aPtNew
private

◆ aPtRB

Point SvxRectCtl::aPtRB
private

◆ aPtRM

Point SvxRectCtl::aPtRM
private

Definition at line 80 of file dlgctrl.hxx.

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

◆ aPtRT

Point SvxRectCtl::aPtRT
private

Definition at line 79 of file dlgctrl.hxx.

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

◆ eDefRP

RectPoint SvxRectCtl::eDefRP
private

Definition at line 83 of file dlgctrl.hxx.

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

◆ eRP

RectPoint SvxRectCtl::eRP
private

Definition at line 83 of file dlgctrl.hxx.

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

◆ m_nState

CTL_STATE SvxRectCtl::m_nState
private

◆ m_pPage

SvxTabPage* SvxRectCtl::m_pPage
private

Definition at line 76 of file dlgctrl.hxx.

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

◆ mbCompleteDisable

bool SvxRectCtl::mbCompleteDisable
private

Definition at line 86 of file dlgctrl.hxx.

Referenced by DoCompletelyDisable().

◆ nBorderWidth

sal_uInt16 SvxRectCtl::nBorderWidth
private

Definition at line 78 of file dlgctrl.hxx.

Referenced by Resize_Impl(), and SetControlSettings().

◆ NO_CHILDREN

const sal_uInt8 SvxRectCtl::NO_CHILDREN = 9
static

Definition at line 123 of file dlgctrl.hxx.

Referenced by SvxRectCtlAccessibleContext::getAccessibleChildCount().

◆ pAccContext

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

Definition at line 77 of file dlgctrl.hxx.

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

◆ pBitmap

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

Definition at line 84 of file dlgctrl.hxx.

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


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