LibreOffice Module sc (master) 1
|
Accessible class representing a cell of the CSV grid control. More...
#include <AccessibleCsvControl.hxx>
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< SvxEditSource > | SvxEditSourcePtr |
Private Member Functions | |
ScCsvGrid & | implGetGrid () 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< SvxEditSource > | implCreateEditSource () |
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 |
Accessible class representing a cell of the CSV grid control.
Definition at line 402 of file AccessibleCsvControl.hxx.
|
protected |
Definition at line 408 of file AccessibleCsvControl.hxx.
|
explicit |
The index of the cell in the table.
Definition at line 1228 of file AccessibleCsvControl.cxx.
References implCreateEditSource(), mnIndex, and accessibility::AccessibleStaticTextBase::SetEditSource().
|
overridevirtual |
Definition at line 1242 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Definition at line 1246 of file AccessibleCsvControl.cxx.
References ScAccessibleCsvControl::disposing(), and accessibility::AccessibleStaticTextBase::SetEditSource().
|
overridevirtual |
Returns the specified child.
Reimplemented from accessibility::AccessibleStaticTextBase.
Definition at line 1284 of file AccessibleCsvControl.cxx.
References nIndex.
|
overridevirtual |
Returns the child count.
Reimplemented from accessibility::AccessibleStaticTextBase.
Definition at line 1279 of file AccessibleCsvControl.cxx.
|
inlineoverridevirtual |
Definition at line 432 of file AccessibleCsvControl.hxx.
|
overridevirtual |
Definition at line 1336 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Returns the index of this cell in the table.
Definition at line 1289 of file AccessibleCsvControl.cxx.
References mnIndex.
|
overridevirtual |
Definition at line 1331 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Definition at line 1396 of file AccessibleCsvControl.cxx.
References ScCsvControl::GetAccessible(), and implGetGrid().
|
overridevirtual |
Returns the relation to the ruler control.
Definition at line 1296 of file AccessibleCsvControl.cxx.
|
inlineoverridevirtual |
Definition at line 436 of file AccessibleCsvControl.hxx.
|
overridevirtual |
Returns the current set of states.
Definition at line 1303 of file AccessibleCsvControl.cxx.
References CSV_COLUMN_HEADER, CSV_LINE_HEADER, ScCsvGrid::GetFocusColumn(), weld::CustomWidgetController::HasFocus(), implGetGrid(), isAlive(), ScCsvGrid::IsSelected(), mnColumn, and mnLine.
|
overridevirtual |
Definition at line 1270 of file AccessibleCsvControl.cxx.
References SC_MOD.
|
overridevirtual |
Definition at line 1263 of file AccessibleCsvControl.cxx.
References Application::GetSettings().
|
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.
|
private |
Returns the width of the character count.
Definition at line 1354 of file AccessibleCsvControl.cxx.
References ScCsvControl::GetCharWidth(), and implGetGrid().
Referenced by implGetRealSize().
|
private |
Creates the edit source the text helper needs.
Definition at line 1388 of file AccessibleCsvControl.cxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), ScCsvGrid::GetEditEngine(), implGetGrid(), implGetRealSize(), and maCellText.
Referenced by ScAccessibleCsvCell().
|
overrideprivatevirtual |
Returns the bounding box of the cell relative in the table.
Definition at line 1368 of file AccessibleCsvControl.cxx.
References CSV_COLUMN_HEADER, CSV_LINE_HEADER, ScCsvControl::GetFirstX(), ScCsvControl::GetHdrHeight(), tools::Rectangle::GetHeight(), ScCsvControl::GetLastX(), weld::CustomWidgetController::GetOutputSizePixel(), tools::Rectangle::GetWidth(), implGetGrid(), implGetRealPos(), implGetRealSize(), tools::Rectangle::Intersection(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), mnColumn, mnLine, tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetSize(), tools::Rectangle::SetTop(), and tools::Rectangle::Top().
|
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().
|
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().
|
private |
Returns the pixel size of the cell, regardless of visibility.
Definition at line 1360 of file AccessibleCsvControl.cxx.
References CSV_COLUMN_HEADER, CSV_LINE_HEADER, ScCsvGrid::GetColumnWidth(), ScCsvControl::GetHdrHeight(), ScCsvControl::GetHdrWidth(), ScCsvControl::GetLineHeight(), implCalcPixelWidth(), implGetGrid(), mnColumn, and mnLine.
Referenced by implCreateEditSource(), and implGetBounds().
|
private |
Definition at line 411 of file AccessibleCsvControl.hxx.
Referenced by implCreateEditSource().
|
private |
The grid line index (core index).
Definition at line 413 of file AccessibleCsvControl.hxx.
Referenced by getAccessibleStateSet(), grabFocus(), implGetBounds(), implGetRealPos(), and implGetRealSize().
|
private |
The grid column index (core index).
Definition at line 414 of file AccessibleCsvControl.hxx.
Referenced by getAccessibleIndexInParent().
|
private |
The text contents of this cell.
Definition at line 412 of file AccessibleCsvControl.hxx.
Referenced by getAccessibleStateSet(), implGetBounds(), implGetRealPos(), and implGetRealSize().