LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SvxPixelCtl Class Referencefinal

#include <dlgctrl.hxx>

Inheritance diagram for SvxPixelCtl:
Collaboration diagram for SvxPixelCtl:

Public Member Functions

 SvxPixelCtl (SvxTabPage *pPage)
virtual ~SvxPixelCtl () override
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
virtual void Resize () override
virtual tools::Rectangle GetFocusRect () override
void SetXBitmap (const BitmapEx &rBitmapEx)
void SetPixelColor (const Color &rCol)
void SetBackgroundColor (const Color &rCol)
sal_uInt8 GetBitmapPixel (const sal_uInt16 nPixelNumber) const
std::array< sal_uInt8, 64 > const & GetBitmapPixelPtr () const
void SetPaintable (bool bTmp)
void Reset ()
css::uno::Reference< css::accessibility::XAccessible > getAccessibleParent () const
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
a11yrelationset get_accessible_relation_set () const
tools::Long GetWidth () const
tools::Long GetHeight () const
tools::Long ShowPosition (const Point &pt)
tools::Long PointToIndex (const Point &pt) const
Point IndexToPoint (tools::Long nIndex) const
tools::Long GetFocusPosIndex () const
virtual bool KeyInput (const KeyEvent &rKEvt) override
virtual void GetFocus () override
virtual void LoseFocus () override
- 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 Member Functions

static sal_uInt16 GetLineCount ()
static tools::Long GetSquares ()
- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()

Private Member Functions

tools::Rectangle implCalFocusRect (const Point &aPosition)
void ChangePixel (sal_uInt16 nPixel)
 SvxPixelCtl (SvxPixelCtl const &)=delete
 SvxPixelCtl (SvxPixelCtl &&)=delete
SvxPixelCtloperator= (SvxPixelCtl const &)=delete
SvxPixelCtloperator= (SvxPixelCtl &&)=delete

Private Attributes

Color aPixelColor
Color aBackgroundColor
Size aRectSize
std::array< sal_uInt8, nSquaresmaPixelData
bool bPaintable
Point aFocusPosition
rtl::Reference< SvxPixelCtlAccessiblem_xAccess

Static Private Attributes

static sal_uInt16 constexpr nLines = 8
static sal_uInt16 constexpr nSquares = nLines * nLines

Detailed Description

Definition at line 142 of file dlgctrl.hxx.

Constructor & Destructor Documentation

◆ SvxPixelCtl() [1/3]

SvxPixelCtl::SvxPixelCtl ( SvxPixelCtl const &  )

◆ SvxPixelCtl() [2/3]

SvxPixelCtl::SvxPixelCtl ( SvxPixelCtl &&  )

◆ SvxPixelCtl() [3/3]

SvxPixelCtl::SvxPixelCtl ( SvxTabPage pPage)

Definition at line 638 of file dlgctrl.cxx.

References maPixelData.

◆ ~SvxPixelCtl()

SvxPixelCtl::~SvxPixelCtl ( )

Definition at line 659 of file dlgctrl.cxx.

Member Function Documentation

◆ ChangePixel()

void SvxPixelCtl::ChangePixel ( sal_uInt16  nPixel)

Definition at line 665 of file dlgctrl.cxx.

References maPixelData, and nPixel.

Referenced by KeyInput(), and ShowPosition().

◆ CreateAccessible()

css::uno::Reference< css::accessibility::XAccessible > SvxPixelCtl::CreateAccessible ( )

Reimplemented from weld::CustomWidgetController.

Definition at line 583 of file dlgctrl.cxx.

References m_xAccess.

◆ get_accessible_relation_set()

a11yrelationset SvxPixelCtl::get_accessible_relation_set ( ) const

Definition at line 193 of file dlgctrl.hxx.

Referenced by SvxPixelCtlAccessible::getAccessibleRelationSet().

◆ getAccessibleParent()

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

Definition at line 191 of file dlgctrl.hxx.

Referenced by SvxPixelCtlAccessible::getAccessibleParent().

◆ GetBitmapPixel()

sal_uInt8 SvxPixelCtl::GetBitmapPixel ( const sal_uInt16  nPixelNumber) const

◆ GetBitmapPixelPtr()

std::array< sal_uInt8, 64 > const & SvxPixelCtl::GetBitmapPixelPtr ( ) const

Definition at line 186 of file dlgctrl.hxx.

◆ GetFocus()

void SvxPixelCtl::GetFocus ( )

◆ GetFocusPosIndex()

tools::Long SvxPixelCtl::GetFocusPosIndex ( ) const

◆ GetFocusRect()

tools::Rectangle SvxPixelCtl::GetFocusRect ( )

◆ GetHeight()

tools::Long SvxPixelCtl::GetHeight ( ) const

Definition at line 197 of file dlgctrl.hxx.

References Size::getHeight().

Referenced by SvxPixelCtlAccessible::CreateChild().

◆ GetLineCount()

static sal_uInt16 SvxPixelCtl::GetLineCount ( )

◆ GetSquares()

static tools::Long SvxPixelCtl::GetSquares ( )

Definition at line 195 of file dlgctrl.hxx.

Referenced by SvxPixelCtlAccessible::getAccessibleChildCount().

◆ GetWidth()

tools::Long SvxPixelCtl::GetWidth ( ) const

Definition at line 196 of file dlgctrl.hxx.

References Size::getWidth().

Referenced by SvxPixelCtlAccessible::CreateChild().

◆ implCalFocusRect()

tools::Rectangle SvxPixelCtl::implCalFocusRect ( const Point aPosition)

Definition at line 766 of file dlgctrl.cxx.

References aRectSize, Size::Height(), i, nLines, Size::Width(), Point::X(), and Point::Y().

Referenced by GetFocus(), GetFocusRect(), and KeyInput().

◆ IndexToPoint()

Point SvxPixelCtl::IndexToPoint ( tools::Long  nIndex) const

◆ KeyInput()

bool SvxPixelCtl::KeyInput ( const KeyEvent rKEvt)

◆ LoseFocus()

void SvxPixelCtl::LoseFocus ( )

Reimplemented from weld::CustomWidgetController.

Definition at line 881 of file dlgctrl.cxx.

References weld::CustomWidgetController::Invalidate().

◆ MouseButtonDown()

bool SvxPixelCtl::MouseButtonDown ( const MouseEvent rMEvt)

◆ operator=() [1/2]

SvxPixelCtl & SvxPixelCtl::operator= ( SvxPixelCtl &&  )

References MouseButtonDown, Paint, and Resize.

◆ operator=() [2/2]

SvxPixelCtl & SvxPixelCtl::operator= ( SvxPixelCtl const &  )

◆ Paint()

void SvxPixelCtl::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 

◆ PointToIndex()

tools::Long SvxPixelCtl::PointToIndex ( const Point pt) const

◆ Reset()

void SvxPixelCtl::Reset ( void  )

Definition at line 907 of file dlgctrl.cxx.

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

◆ Resize()

void SvxPixelCtl::Resize ( )

Reimplemented from weld::CustomWidgetController.

Definition at line 646 of file dlgctrl.cxx.

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

◆ SetBackgroundColor()

void SvxPixelCtl::SetBackgroundColor ( const Color rCol)

Definition at line 181 of file dlgctrl.hxx.

◆ SetDrawingArea()

void SvxPixelCtl::SetDrawingArea ( weld::DrawingArea pDrawingArea)

◆ SetPaintable()

void SvxPixelCtl::SetPaintable ( bool  bTmp)

Definition at line 188 of file dlgctrl.hxx.

◆ SetPixelColor()

void SvxPixelCtl::SetPixelColor ( const Color rCol)

Definition at line 180 of file dlgctrl.hxx.

◆ SetXBitmap()

void SvxPixelCtl::SetXBitmap ( const BitmapEx rBitmapEx)

◆ ShowPosition()

tools::Long SvxPixelCtl::ShowPosition ( const Point pt)

Member Data Documentation

◆ aBackgroundColor

Color SvxPixelCtl::aBackgroundColor

Definition at line 151 of file dlgctrl.hxx.

Referenced by Paint(), and SetXBitmap().

◆ aFocusPosition

Point SvxPixelCtl::aFocusPosition

Definition at line 156 of file dlgctrl.hxx.

Referenced by GetFocus(), GetFocusPosIndex(), GetFocusRect(), KeyInput(), and ShowPosition().

◆ aPixelColor

Color SvxPixelCtl::aPixelColor

Definition at line 150 of file dlgctrl.hxx.

Referenced by Paint(), and SetXBitmap().

◆ aRectSize

Size SvxPixelCtl::aRectSize

◆ bPaintable

bool SvxPixelCtl::bPaintable

Definition at line 154 of file dlgctrl.hxx.

Referenced by Paint().

◆ m_pPage

SvxTabPage* SvxPixelCtl::m_pPage

Definition at line 148 of file dlgctrl.hxx.

Referenced by ShowPosition().

◆ m_xAccess

rtl::Reference<SvxPixelCtlAccessible> SvxPixelCtl::m_xAccess

Definition at line 157 of file dlgctrl.hxx.

Referenced by CreateAccessible(), GetFocus(), KeyInput(), and MouseButtonDown().

◆ maPixelData

std::array<sal_uInt8,nSquares> SvxPixelCtl::maPixelData

Definition at line 153 of file dlgctrl.hxx.

Referenced by ChangePixel(), GetBitmapPixel(), Paint(), Reset(), SetXBitmap(), and SvxPixelCtl().

◆ nLines

sal_uInt16 constexpr SvxPixelCtl::nLines = 8

◆ nSquares

sal_uInt16 constexpr SvxPixelCtl::nSquares = nLines * nLines

Definition at line 146 of file dlgctrl.hxx.

Referenced by IndexToPoint(), and SetXBitmap().

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