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, OUString aCellText, 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_Int64 SAL_CALL getAccessibleChildCount () override
 Returns the child count. More...
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 nIndex) override
 Returns the specified child. More...
 
virtual sal_Int64 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 sal_Int64 SAL_CALL getAccessibleStateSet () override
 Returns the current set of states. More...
 
- 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 sal_Int64 SAL_CALL getAccessibleChildCount ()
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 i)
 
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 accessibility::AccessibleStaticTextBase
tools::Rectangle GetParagraphBoundingBox () const
 

Detailed Description

Accessible class representing a cell of the CSV grid control.

Definition at line 402 of file AccessibleCsvControl.hxx.

Member Typedef Documentation

◆ SvxEditSourcePtr

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

Definition at line 408 of file AccessibleCsvControl.hxx.

Constructor & Destructor Documentation

◆ ScAccessibleCsvCell()

ScAccessibleCsvCell::ScAccessibleCsvCell ( ScCsvGrid rGrid,
OUString  aCellText,
sal_Int32  nRow,
sal_Int32  nColumn 
)
explicit

The index of the cell in the table.

Definition at line 1228 of file AccessibleCsvControl.cxx.

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

◆ ~ScAccessibleCsvCell()

ScAccessibleCsvCell::~ScAccessibleCsvCell ( )
overridevirtual

Definition at line 1242 of file AccessibleCsvControl.cxx.

Member Function Documentation

◆ disposing()

void SAL_CALL ScAccessibleCsvCell::disposing ( )
overridevirtual

◆ getAccessibleChild()

Reference< XAccessible > SAL_CALL ScAccessibleCsvCell::getAccessibleChild ( sal_Int64  nIndex)
overridevirtual

Returns the specified child.

Reimplemented from accessibility::AccessibleStaticTextBase.

Definition at line 1284 of file AccessibleCsvControl.cxx.

References nIndex.

◆ getAccessibleChildCount()

sal_Int64 SAL_CALL ScAccessibleCsvCell::getAccessibleChildCount ( )
overridevirtual

Returns the child count.

Reimplemented from accessibility::AccessibleStaticTextBase.

Definition at line 1279 of file AccessibleCsvControl.cxx.

◆ getAccessibleContext()

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

Definition at line 432 of file AccessibleCsvControl.hxx.

◆ getAccessibleDescription()

OUString SAL_CALL ScAccessibleCsvCell::getAccessibleDescription ( )
overridevirtual

Definition at line 1336 of file AccessibleCsvControl.cxx.

◆ getAccessibleIndexInParent()

sal_Int64 SAL_CALL ScAccessibleCsvCell::getAccessibleIndexInParent ( )
overridevirtual

Returns the index of this cell in the table.

Definition at line 1289 of file AccessibleCsvControl.cxx.

References mnIndex.

◆ getAccessibleName()

OUString SAL_CALL ScAccessibleCsvCell::getAccessibleName ( )
overridevirtual

Definition at line 1331 of file AccessibleCsvControl.cxx.

◆ getAccessibleParent()

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

Definition at line 1396 of file AccessibleCsvControl.cxx.

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

◆ getAccessibleRelationSet()

Reference< XAccessibleRelationSet > SAL_CALL ScAccessibleCsvCell::getAccessibleRelationSet ( )
overridevirtual

Returns the relation to the ruler control.

Definition at line 1296 of file AccessibleCsvControl.cxx.

◆ getAccessibleRole()

virtual sal_Int16 SAL_CALL ScAccessibleCsvCell::getAccessibleRole ( )
inlineoverridevirtual

Definition at line 436 of file AccessibleCsvControl.hxx.

◆ getAccessibleStateSet()

sal_Int64 SAL_CALL ScAccessibleCsvCell::getAccessibleStateSet ( )
overridevirtual

◆ getBackground()

sal_Int32 SAL_CALL ScAccessibleCsvCell::getBackground ( )
overridevirtual

Definition at line 1270 of file AccessibleCsvControl.cxx.

References SC_MOD.

◆ getForeground()

sal_Int32 SAL_CALL ScAccessibleCsvCell::getForeground ( )
overridevirtual

Definition at line 1263 of file AccessibleCsvControl.cxx.

References Application::GetSettings().

◆ grabFocus()

void SAL_CALL ScAccessibleCsvCell::grabFocus ( )
overridevirtual

Sets the focus to the column of this cell.

Definition at line 1255 of file AccessibleCsvControl.cxx.

References CSVCMD_MOVEGRIDCURSOR, ScCsvControl::Execute(), ScCsvGrid::GetColumnPos(), implGetGrid(), and mnColumn.

◆ implCalcPixelWidth()

sal_uInt32 ScAccessibleCsvCell::implCalcPixelWidth ( sal_uInt32  nChars) const
private

Returns the width of the character count.

Definition at line 1354 of file AccessibleCsvControl.cxx.

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

Referenced by implGetRealSize().

◆ implCreateEditSource()

std::unique_ptr< SvxEditSource > ScAccessibleCsvCell::implCreateEditSource ( )
private

◆ implGetBounds()

css::awt::Rectangle ScAccessibleCsvCell::implGetBounds ( )
overrideprivatevirtual

◆ implGetGrid()

ScCsvGrid & ScAccessibleCsvCell::implGetGrid ( ) const
private

Returns the VCL grid control.

Assumes a living object.

Definition at line 1341 of file AccessibleCsvControl.cxx.

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

◆ implGetRealPos()

Point ScAccessibleCsvCell::implGetRealPos ( ) const
private

Returns the pixel position of the cell (rel.

to parent), regardless of visibility.

Definition at line 1346 of file AccessibleCsvControl.cxx.

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

Referenced by implGetBounds().

◆ implGetRealSize()

Size ScAccessibleCsvCell::implGetRealSize ( ) const
private

Member Data Documentation

◆ maCellText

OUString ScAccessibleCsvCell::maCellText
private

Definition at line 411 of file AccessibleCsvControl.hxx.

Referenced by implCreateEditSource().

◆ mnColumn

sal_uInt32 ScAccessibleCsvCell::mnColumn
private

The grid line index (core index).

Definition at line 413 of file AccessibleCsvControl.hxx.

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

◆ mnIndex

sal_Int32 ScAccessibleCsvCell::mnIndex
private

The grid column index (core index).

Definition at line 414 of file AccessibleCsvControl.hxx.

Referenced by getAccessibleIndexInParent().

◆ mnLine

sal_Int32 ScAccessibleCsvCell::mnLine
private

The text contents of this cell.

Definition at line 412 of file AccessibleCsvControl.hxx.

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


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