diff options
Diffstat (limited to 'include/svx/dlgctrl.hxx')
-rw-r--r-- | include/svx/dlgctrl.hxx | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx index 829400f5d30d..882da385e5d0 100644 --- a/include/svx/dlgctrl.hxx +++ b/include/svx/dlgctrl.hxx @@ -63,6 +63,7 @@ typedef sal_uInt16 CTL_STATE; #define CS_NOVERT 2 // no vertikal input information is used class SvxRectCtlAccessibleContext; +class SvxPixelCtlAccessible; class SVX_DLLPUBLIC SvxRectCtl : public Control { @@ -175,7 +176,9 @@ protected: Size aRectSize; sal_uInt16* pPixel; sal_Bool bPaintable; - + //Add member identifying position + Point aFocusPosition; + Rectangle implCalFocusRect( const Point& aPosition ); void ChangePixel( sal_uInt16 nPixel ); public: @@ -203,6 +206,23 @@ public: void SetPaintable( sal_Bool bTmp ) { bPaintable = bTmp; } void Reset(); + SvxPixelCtlAccessible* m_pAccess; + ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > m_xAccess; + virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible(); + long GetSquares() const { return nSquares ; } + long GetWidth() const { return aRectSize.getWidth() ; } + long GetHeight() const { return aRectSize.getHeight() ; } + + //Device Pixel . + long ShowPosition( const Point &pt); + + long PointToIndex(const Point &pt) const; + Point IndexToPoint(long nIndex) const ; + long GetFoucsPosIndex() const ; + //Keyboard function for key input and focus handling function + virtual void KeyInput( const KeyEvent& rKEvt ); + virtual void GetFocus(); + virtual void LoseFocus(); }; /************************************************************************/ |