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:
[legend]
Collaboration diagram for SvxPixelCtl:
[legend]

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
 
long GetWidth () const
 
long GetHeight () const
 
long ShowPosition (const Point &pt)
 
long PointToIndex (const Point &pt) const
 
Point IndexToPoint (long nIndex) const
 
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 bool MouseMove (const MouseEvent &)
 
virtual bool MouseButtonUp (const MouseEvent &)
 
virtual void StyleUpdated ()
 
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 Member Functions

static sal_uInt16 GetLineCount ()
 
static 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

SvxTabPagem_pPage
 
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 145 of file dlgctrl.hxx.

Constructor & Destructor Documentation

SvxPixelCtl::SvxPixelCtl ( SvxPixelCtl const &  )
privatedelete
SvxPixelCtl::SvxPixelCtl ( SvxPixelCtl &&  )
privatedelete
SvxPixelCtl::SvxPixelCtl ( SvxTabPage pPage)

Definition at line 637 of file dlgctrl.cxx.

References maPixelData.

SvxPixelCtl::~SvxPixelCtl ( )
overridevirtual

Definition at line 658 of file dlgctrl.cxx.

Member Function Documentation

void SvxPixelCtl::ChangePixel ( sal_uInt16  nPixel)
private

Definition at line 664 of file dlgctrl.cxx.

References maPixelData.

Referenced by KeyInput(), and ShowPosition().

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

Reimplemented from weld::CustomWidgetController.

Definition at line 584 of file dlgctrl.cxx.

References m_xAccess.

a11yrelationset SvxPixelCtl::get_accessible_relation_set ( ) const
inline
css::uno::Reference<css::accessibility::XAccessible> SvxPixelCtl::getAccessibleParent ( ) const
inline
sal_uInt8 SvxPixelCtl::GetBitmapPixel ( const sal_uInt16  nPixelNumber) const
std::array<sal_uInt8,64> const& SvxPixelCtl::GetBitmapPixelPtr ( ) const
inline

Definition at line 189 of file dlgctrl.hxx.

void SvxPixelCtl::GetFocus ( )
overridevirtual
long SvxPixelCtl::GetFocusPosIndex ( ) const
tools::Rectangle SvxPixelCtl::GetFocusRect ( )
overridevirtual
long SvxPixelCtl::GetHeight ( ) const
inline

Definition at line 200 of file dlgctrl.hxx.

References Size::getHeight().

Referenced by SvxPixelCtlAccessible::CreateChild().

static sal_uInt16 SvxPixelCtl::GetLineCount ( )
inlinestatic
static long SvxPixelCtl::GetSquares ( )
inlinestatic

Definition at line 198 of file dlgctrl.hxx.

Referenced by SvxPixelCtlAccessible::getAccessibleChildCount().

long SvxPixelCtl::GetWidth ( ) const
inline

Definition at line 199 of file dlgctrl.hxx.

References Size::getWidth().

Referenced by SvxPixelCtlAccessible::CreateChild().

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

Definition at line 761 of file dlgctrl.cxx.

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

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

Point SvxPixelCtl::IndexToPoint ( long  nIndex) const
bool SvxPixelCtl::KeyInput ( const KeyEvent rKEvt)
overridevirtual
void SvxPixelCtl::LoseFocus ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 870 of file dlgctrl.cxx.

References weld::CustomWidgetController::Invalidate().

bool SvxPixelCtl::MouseButtonDown ( const MouseEvent rMEvt)
overridevirtual
SvxPixelCtl& SvxPixelCtl::operator= ( SvxPixelCtl const &  )
privatedelete
SvxPixelCtl& SvxPixelCtl::operator= ( SvxPixelCtl &&  )
privatedelete
void SvxPixelCtl::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overridevirtual
long SvxPixelCtl::PointToIndex ( const Point pt) const
void SvxPixelCtl::Reset ( void  )

Definition at line 896 of file dlgctrl.cxx.

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

void SvxPixelCtl::Resize ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 645 of file dlgctrl.cxx.

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

void SvxPixelCtl::SetBackgroundColor ( const Color rCol)
inline

Definition at line 184 of file dlgctrl.hxx.

void SvxPixelCtl::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual
void SvxPixelCtl::SetPaintable ( bool  bTmp)
inline

Definition at line 191 of file dlgctrl.hxx.

void SvxPixelCtl::SetPixelColor ( const Color rCol)
inline

Definition at line 183 of file dlgctrl.hxx.

void SvxPixelCtl::SetXBitmap ( const BitmapEx rBitmapEx)
long SvxPixelCtl::ShowPosition ( const Point pt)

Member Data Documentation

Color SvxPixelCtl::aBackgroundColor
private

Definition at line 154 of file dlgctrl.hxx.

Referenced by Paint(), and SetXBitmap().

Point SvxPixelCtl::aFocusPosition
private

Definition at line 159 of file dlgctrl.hxx.

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

Color SvxPixelCtl::aPixelColor
private

Definition at line 153 of file dlgctrl.hxx.

Referenced by Paint(), and SetXBitmap().

Size SvxPixelCtl::aRectSize
private
bool SvxPixelCtl::bPaintable
private

Definition at line 157 of file dlgctrl.hxx.

Referenced by Paint().

SvxTabPage* SvxPixelCtl::m_pPage
private

Definition at line 151 of file dlgctrl.hxx.

Referenced by ShowPosition().

rtl::Reference<SvxPixelCtlAccessible> SvxPixelCtl::m_xAccess
private

Definition at line 160 of file dlgctrl.hxx.

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

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

Definition at line 156 of file dlgctrl.hxx.

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

sal_uInt16 constexpr SvxPixelCtl::nLines = 8
staticprivate
sal_uInt16 constexpr SvxPixelCtl::nSquares = nLines * nLines
staticprivate

Definition at line 149 of file dlgctrl.hxx.

Referenced by IndexToPoint(), and SetXBitmap().


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