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, 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... | |
![]() | |
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... | |
![]() | |
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 |
![]() | |
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 |
![]() | |
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 |
![]() | |
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< 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 | |
![]() | |
ScCsvControl & | implGetControl () const |
Returns the VCL control. More... | |
rtl::Reference<::utl::AccessibleStateSetHelper > | implCreateStateSet () |
Creates a StateSetHelper and fills it with DEFUNC, OPAQUE, ENABLED, SHOWING and VISIBLE. More... | |
![]() | |
OAccessibleComponentHelper () | |
![]() | |
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 () |
![]() | |
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 () |
![]() | |
~OAccessibleComponentHelper_Base () | |
![]() | |
~ImplHelper1 () | |
![]() | |
tools::Rectangle | GetParagraphBoundingBox () const |
Accessible class representing a cell of the CSV grid control.
Definition at line 431 of file AccessibleCsvControl.hxx.
|
protected |
Definition at line 436 of file AccessibleCsvControl.hxx.
|
explicit |
The index of the cell in the table.
Definition at line 1283 of file AccessibleCsvControl.cxx.
References implCreateEditSource(), mnIndex, and accessibility::AccessibleStaticTextBase::SetEditSource().
|
overridevirtual |
Definition at line 1297 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Reimplemented from ScAccessibleCsvControl.
Definition at line 1301 of file AccessibleCsvControl.cxx.
References ScAccessibleCsvControl::disposing(), and accessibility::AccessibleStaticTextBase::SetEditSource().
|
overridevirtual |
Returns the specified child.
Reimplemented from accessibility::AccessibleStaticTextBase.
Definition at line 1339 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Returns the child count.
Reimplemented from accessibility::AccessibleStaticTextBase.
Definition at line 1334 of file AccessibleCsvControl.cxx.
|
inlineoverridevirtual |
Definition at line 460 of file AccessibleCsvControl.hxx.
|
overridevirtual |
Implements comphelper::OAccessibleContextHelper.
Definition at line 1391 of file AccessibleCsvControl.cxx.
|
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.
|
overridevirtual |
Implements comphelper::OAccessibleContextHelper.
Definition at line 1386 of file AccessibleCsvControl.cxx.
|
overridevirtual |
Implements comphelper::OAccessibleContextHelper.
Definition at line 1451 of file AccessibleCsvControl.cxx.
References ScCsvControl::GetAccessible(), and implGetGrid().
|
overridevirtual |
Returns the relation to the ruler control.
Implements comphelper::OAccessibleContextHelper.
Definition at line 1351 of file AccessibleCsvControl.cxx.
References comphelper::OAccessibleContextHelper::ensureAlive().
|
inlineoverridevirtual |
Implements comphelper::OAccessibleContextHelper.
Definition at line 464 of file AccessibleCsvControl.hxx.
|
overridevirtual |
Returns the current set of states.
Implements comphelper::OAccessibleContextHelper.
Definition at line 1358 of file AccessibleCsvControl.cxx.
References CSV_COLUMN_HEADER, CSV_LINE_HEADER, ScCsvGrid::GetFocusColumn(), weld::CustomWidgetController::HasFocus(), ScAccessibleCsvControl::implCreateStateSet(), implGetGrid(), comphelper::OAccessibleContextHelper::isAlive(), ScCsvGrid::IsSelected(), mnColumn, and mnLine.
|
overridevirtual |
Definition at line 1325 of file AccessibleCsvControl.cxx.
References svtools::DOCCOLOR, comphelper::OAccessibleContextHelper::ensureAlive(), and SC_MOD.
|
overridevirtual |
Definition at line 1318 of file AccessibleCsvControl.cxx.
References comphelper::OAccessibleContextHelper::ensureAlive(), and Application::GetSettings().
|
overridevirtual |
Sets the focus to the column of this cell.
Reimplemented from ScAccessibleCsvControl.
Definition at line 1310 of file AccessibleCsvControl.cxx.
References CSVCMD_MOVEGRIDCURSOR, comphelper::OAccessibleContextHelper::ensureAlive(), ScCsvControl::Execute(), ScCsvGrid::GetColumnPos(), implGetGrid(), and mnColumn.
|
private |
Returns the width of the character count.
Definition at line 1409 of file AccessibleCsvControl.cxx.
References ScCsvControl::GetCharWidth(), and implGetGrid().
Referenced by implGetRealSize().
|
private |
Creates the edit source the text helper needs.
Definition at line 1443 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.
Reimplemented from ScAccessibleCsvControl.
Definition at line 1423 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, Point, tools::Rectangle::SetLeft(), tools::Rectangle::SetSize(), and tools::Rectangle::Top().
|
private |
Returns the VCL grid control.
Assumes a living object.
Definition at line 1396 of file AccessibleCsvControl.cxx.
References ScAccessibleCsvControl::implGetControl().
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 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().
|
private |
Returns the pixel size of the cell, regardless of visibility.
Definition at line 1415 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 439 of file AccessibleCsvControl.hxx.
Referenced by implCreateEditSource().
|
private |
The grid line index (core index).
Definition at line 441 of file AccessibleCsvControl.hxx.
Referenced by getAccessibleStateSet(), grabFocus(), implGetBounds(), implGetRealPos(), and implGetRealSize().
|
private |
The grid column index (core index).
Definition at line 442 of file AccessibleCsvControl.hxx.
Referenced by getAccessibleIndexInParent().
|
private |
The text contents of this cell.
Definition at line 440 of file AccessibleCsvControl.hxx.
Referenced by getAccessibleStateSet(), implGetBounds(), implGetRealPos(), and implGetRealSize().