LibreOffice Module sc (master)  1
Public Member Functions | Protected Types | Private Member Functions | Private Attributes | List of all members
ScAccessibleCsvCell Class Reference

Accessible class representing a cell of the CSV grid control. More...

#include <AccessibleCsvControl.hxx>

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

Public Member Functions

 ScAccessibleCsvCell (ScCsvGrid &rGrid, const OUString &rCellText, sal_Int32 nRow, sal_Int32 nColumn)
 The index of the cell in the table. More...
 
virtual ~ScAccessibleCsvCell () override
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL grabFocus () override
 Sets the focus to the column of this cell. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () override
 
virtual OUString SAL_CALL getAccessibleDescription () override
 
virtual OUString SAL_CALL getAccessibleName () override
 
virtual sal_Int16 SAL_CALL getAccessibleRole () override
 
virtual sal_Int32 SAL_CALL getForeground () override
 
virtual sal_Int32 SAL_CALL getBackground () override
 
virtual sal_Int32 SAL_CALL getAccessibleChildCount () override
 Returns the child count. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int32 nIndex) override
 Returns the specified child. More...
 
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent () override
 Returns the index of this cell in the table. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
 Returns the relation to the ruler control. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet () override
 Returns the current set of states. More...
 
- Public Member Functions inherited from ScAccessibleCsvControl
 ScAccessibleCsvControl (ScCsvControl &rControl)
 Pointer to the VCL control. More...
 
virtual ~ScAccessibleCsvControl () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &aPoint) override
 
virtual void SendFocusEvent (bool bFocused)
 Sends a GetFocus or LoseFocus event to all listeners. More...
 
virtual void SendCaretEvent ()
 Sends a caret changed event to all listeners. More...
 
void SendVisibleEvent ()
 Sends a visible area changed event to all listeners. More...
 
void SendSelectionEvent ()
 Sends a selection changed event to all listeners. More...
 
virtual void SendTableUpdateEvent (sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn, bool bAllRows)
 Sends a table model changed event for changed cell contents to all listeners. More...
 
virtual void SendInsertColumnEvent (sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn)
 Sends a table model changed event for an inserted column to all listeners. More...
 
virtual void SendRemoveColumnEvent (sal_uInt32 nFirstColumn, sal_uInt32 nLastColumn)
 Sends a table model changed event for a removed column to all listeners. More...
 
- Public Member Functions inherited from comphelper::OAccessibleComponentHelper
virtual sal_Bool SAL_CALL containsPoint (const css::awt::Point &aPoint) override
 
virtual css::awt::Point SAL_CALL getLocation () override
 
virtual css::awt::Point SAL_CALL getLocationOnScreen () override
 
virtual css::awt::Size SAL_CALL getSize () override
 
virtual css::awt::Rectangle SAL_CALL getBounds () override
 
- Public Member Functions inherited from comphelper::OAccessibleContextHelper
virtual void SAL_CALL addAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 
virtual void SAL_CALL removeAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 
virtual OUString SAL_CALL getAccessibleId () override
 
virtual css::lang::Locale SAL_CALL getLocale () override
 
- Public Member Functions inherited from cppu::ImplHelper1< css::accessibility::XAccessible >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
- Public Member Functions inherited from accessibility::AccessibleStaticTextBase
 AccessibleStaticTextBase (::std::unique_ptr< SvxEditSource > &&pEditSource)
 
virtual ~AccessibleStaticTextBase ()
 
void SetEditSource (::std::unique_ptr< SvxEditSource > &&pEditSource)
 
void SetEventSource (const css::uno::Reference< css::accessibility::XAccessible > &rInterface)
 
void SetOffset (const Point &rPoint)
 
void Dispose ()
 
virtual sal_Int32 SAL_CALL getCaretPosition () override
 
virtual sal_Bool SAL_CALL setCaretPosition (sal_Int32 nIndex) override
 
virtual sal_Unicode SAL_CALL getCharacter (sal_Int32 nIndex) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes (sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
 
virtual css::awt::Rectangle SAL_CALL getCharacterBounds (sal_Int32 nIndex) override
 
virtual sal_Int32 SAL_CALL getCharacterCount () override
 
virtual sal_Int32 SAL_CALL getIndexAtPoint (const css::awt::Point &aPoint) override
 
virtual OUString SAL_CALL getSelectedText () override
 
virtual sal_Int32 SAL_CALL getSelectionStart () override
 
virtual sal_Int32 SAL_CALL getSelectionEnd () override
 
virtual sal_Bool SAL_CALL setSelection (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual OUString SAL_CALL getText () override
 
virtual OUString SAL_CALL getTextRange (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex (sal_Int32 nIndex, sal_Int16 aTextType) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex (sal_Int32 nIndex, sal_Int16 aTextType) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex (sal_Int32 nIndex, sal_Int16 aTextType) override
 
virtual sal_Bool SAL_CALL copyText (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual sal_Bool SAL_CALL scrollSubstringTo (sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getDefaultAttributes (const css::uno::Sequence< OUString > &RequestedAttributes) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRunAttributes (sal_Int32 Index, const css::uno::Sequence< OUString > &RequestedAttributes) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &aPoint)
 

Protected Types

typedef ::std::unique_ptr< SvxEditSourceSvxEditSourcePtr
 

Private Member Functions

ScCsvGridimplGetGrid () const
 Returns the VCL grid control. More...
 
Point implGetRealPos () const
 Returns the pixel position of the cell (rel. More...
 
sal_uInt32 implCalcPixelWidth (sal_uInt32 nChars) const
 Returns the width of the character count. More...
 
Size implGetRealSize () const
 Returns the pixel size of the cell, regardless of visibility. More...
 
virtual css::awt::Rectangle implGetBounds () override
 Returns the bounding box of the cell relative in the table. More...
 
::std::unique_ptr< SvxEditSourceimplCreateEditSource ()
 Creates the edit source the text helper needs. More...
 

Private Attributes

OUString maCellText
 
sal_Int32 mnLine
 The text contents of this cell. More...
 
sal_uInt32 mnColumn
 The grid line index (core index). More...
 
sal_Int32 mnIndex
 The grid column index (core index). More...
 

Additional Inherited Members

- Protected Member Functions inherited from ScAccessibleCsvControl
ScCsvControlimplGetControl () const
 Returns the VCL control. More...
 
::utl::AccessibleStateSetHelperimplCreateStateSet ()
 Creates a StateSetHelper and fills it with DEFUNC, OPAQUE, ENABLED, SHOWING and VISIBLE. More...
 
- Protected Member Functions inherited from comphelper::OAccessibleComponentHelper
 OAccessibleComponentHelper ()
 
- Protected Member Functions inherited from comphelper::OCommonAccessibleComponent
 OCommonAccessibleComponent ()
 
virtual ~OCommonAccessibleComponent () override
 
bool containsPoint (const css::awt::Point &aPoint)
 
css::awt::Point getLocation ()
 
css::awt::Point getLocationOnScreen ()
 
css::awt::Size getSize ()
 
css::awt::Rectangle getBounds ()
 
- Protected Member Functions inherited from comphelper::OAccessibleContextHelper
virtual ~OAccessibleContextHelper () override
 
 OAccessibleContextHelper ()
 
void lateInit (const css::uno::Reference< css::accessibility::XAccessible > &_rxAccessible)
 
css::uno::Reference< css::accessibility::XAccessible > getAccessibleCreator () const
 
void NotifyAccessibleEvent (const sal_Int16 _nEventId, const css::uno::Any &_rOldValue, const css::uno::Any &_rNewValue)
 
bool isAlive () const
 
void ensureAlive () const
 
void ensureDisposed ()
 
css::uno::Reference< css::accessibility::XAccessibleContext > implGetParentContext ()
 
::osl::Mutex & GetMutex ()
 
- Protected Member Functions inherited from comphelper::OAccessibleComponentHelper_Base
 ~OAccessibleComponentHelper_Base ()
 
- Protected Member Functions inherited from cppu::ImplHelper1< css::accessibility::XAccessible >
 ~ImplHelper1 ()
 
- Protected Member Functions inherited from accessibility::AccessibleStaticTextBase
tools::Rectangle GetParagraphBoundingBox () const
 

Detailed Description

Accessible class representing a cell of the CSV grid control.

Definition at line 433 of file AccessibleCsvControl.hxx.

Member Typedef Documentation

typedef ::std::unique_ptr< SvxEditSource > ScAccessibleCsvCell::SvxEditSourcePtr
protected

Definition at line 438 of file AccessibleCsvControl.hxx.

Constructor & Destructor Documentation

ScAccessibleCsvCell::ScAccessibleCsvCell ( ScCsvGrid rGrid,
const OUString &  rCellText,
sal_Int32  nRow,
sal_Int32  nColumn 
)
explicit

The index of the cell in the table.

Definition at line 1283 of file AccessibleCsvControl.cxx.

References implCreateEditSource(), mnIndex, and accessibility::AccessibleStaticTextBase::SetEditSource().

ScAccessibleCsvCell::~ScAccessibleCsvCell ( )
overridevirtual

Definition at line 1297 of file AccessibleCsvControl.cxx.

Member Function Documentation

void SAL_CALL ScAccessibleCsvCell::disposing ( )
overridevirtual
Reference< XAccessible > SAL_CALL ScAccessibleCsvCell::getAccessibleChild ( sal_Int32  nIndex)
overridevirtual

Returns the specified child.

Reimplemented from accessibility::AccessibleStaticTextBase.

Definition at line 1339 of file AccessibleCsvControl.cxx.

sal_Int32 SAL_CALL ScAccessibleCsvCell::getAccessibleChildCount ( )
overridevirtual

Returns the child count.

Reimplemented from accessibility::AccessibleStaticTextBase.

Definition at line 1334 of file AccessibleCsvControl.cxx.

virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL ScAccessibleCsvCell::getAccessibleContext ( )
inlineoverridevirtual

Definition at line 462 of file AccessibleCsvControl.hxx.

OUString SAL_CALL ScAccessibleCsvCell::getAccessibleDescription ( )
overridevirtual

Implements comphelper::OAccessibleContextHelper.

Definition at line 1391 of file AccessibleCsvControl.cxx.

sal_Int32 SAL_CALL ScAccessibleCsvCell::getAccessibleIndexInParent ( )
overridevirtual

Returns the index of this cell in the table.

Reimplemented from comphelper::OAccessibleContextHelper.

Definition at line 1344 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive(), and mnIndex.

OUString SAL_CALL ScAccessibleCsvCell::getAccessibleName ( )
overridevirtual

Implements comphelper::OAccessibleContextHelper.

Definition at line 1386 of file AccessibleCsvControl.cxx.

css::uno::Reference< css::accessibility::XAccessible > SAL_CALL ScAccessibleCsvCell::getAccessibleParent ( )
overridevirtual
Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCsvCell::getAccessibleRelationSet ( )
overridevirtual

Returns the relation to the ruler control.

Implements comphelper::OAccessibleContextHelper.

Definition at line 1351 of file AccessibleCsvControl.cxx.

References comphelper::OAccessibleContextHelper::ensureAlive().

virtual sal_Int16 SAL_CALL ScAccessibleCsvCell::getAccessibleRole ( )
inlineoverridevirtual

Implements comphelper::OAccessibleContextHelper.

Definition at line 466 of file AccessibleCsvControl.hxx.

Reference< XAccessibleStateSet > SAL_CALL ScAccessibleCsvCell::getAccessibleStateSet ( )
overridevirtual
sal_Int32 SAL_CALL ScAccessibleCsvCell::getBackground ( )
overridevirtual
sal_Int32 SAL_CALL ScAccessibleCsvCell::getForeground ( )
overridevirtual
void SAL_CALL ScAccessibleCsvCell::grabFocus ( )
overridevirtual
sal_uInt32 ScAccessibleCsvCell::implCalcPixelWidth ( sal_uInt32  nChars) const
private

Returns the width of the character count.

Definition at line 1409 of file AccessibleCsvControl.cxx.

References ScCsvControl::GetCharWidth(), and implGetGrid().

Referenced by implGetRealSize().

std::unique_ptr< SvxEditSource > ScAccessibleCsvCell::implCreateEditSource ( )
private
css::awt::Rectangle ScAccessibleCsvCell::implGetBounds ( )
overrideprivatevirtual
ScCsvGrid & ScAccessibleCsvCell::implGetGrid ( ) const
private
Point ScAccessibleCsvCell::implGetRealPos ( ) const
private

Returns the pixel position of the cell (rel.

to parent), regardless of visibility.

Definition at line 1401 of file AccessibleCsvControl.cxx.

References CSV_COLUMN_HEADER, CSV_LINE_HEADER, ScCsvGrid::GetColumnX(), ScCsvControl::GetHdrX(), ScCsvControl::GetY(), implGetGrid(), mnColumn, mnLine, and Point.

Referenced by implGetBounds().

Size ScAccessibleCsvCell::implGetRealSize ( ) const
private

Member Data Documentation

OUString ScAccessibleCsvCell::maCellText
private

Definition at line 441 of file AccessibleCsvControl.hxx.

Referenced by implCreateEditSource().

sal_uInt32 ScAccessibleCsvCell::mnColumn
private

The grid line index (core index).

Definition at line 443 of file AccessibleCsvControl.hxx.

Referenced by getAccessibleStateSet(), grabFocus(), implGetBounds(), implGetRealPos(), and implGetRealSize().

sal_Int32 ScAccessibleCsvCell::mnIndex
private

The grid column index (core index).

Definition at line 444 of file AccessibleCsvControl.hxx.

Referenced by getAccessibleIndexInParent().

sal_Int32 ScAccessibleCsvCell::mnLine
private

The text contents of this cell.

Definition at line 442 of file AccessibleCsvControl.hxx.

Referenced by getAccessibleStateSet(), implGetBounds(), implGetRealPos(), and implGetRealSize().


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