LibreOffice Module sc (master) 1
|
#include <memory>
#include <sal/config.h>
#include <utility>
#include <AccessibleCsvControl.hxx>
#include <com/sun/star/accessibility/AccessibleRelationType.hpp>
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
#include <com/sun/star/accessibility/AccessibleTextType.hpp>
#include <com/sun/star/accessibility/AccessibleTableModelChange.hpp>
#include <com/sun/star/accessibility/AccessibleTableModelChangeType.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <unotools/accessiblerelationsethelper.hxx>
#include <comphelper/sequence.hxx>
#include <scitems.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/langitem.hxx>
#include <csvtablebox.hxx>
#include <csvcontrol.hxx>
#include <csvruler.hxx>
#include <csvgrid.hxx>
#include <AccessibleText.hxx>
#include <editsrc.hxx>
#include <scresid.hxx>
#include <strings.hrc>
#include <scmod.hxx>
#include <svtools/colorcfg.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <o3tl/string_view.hxx>
Go to the source code of this file.
Functions | |
static sal_Int32 | lcl_GetApiPos (sal_Int32 nRulerPos) |
Converts a ruler cursor position to API text index. More... | |
static sal_Int32 | lcl_GetRulerPos (sal_Int32 nApiPos) |
Converts an API text index to a ruler cursor position. More... | |
static sal_Int32 | lcl_ExpandSequence (Sequence< PropertyValue > &rSeq, sal_Int32 nExp) |
Expands the sequence's size and returns the base index of the new inserted elements. More... | |
static void | lcl_FillProperty (PropertyValue &rVal, const OUString &rPropName, const SfxPoolItem &rItem, sal_uInt8 nMID) |
Fills the property value rVal with the specified name and value from the item. More... | |
static void | lcl_FillFontAttributes (Sequence< PropertyValue > &rSeq, const vcl::Font &rFont) |
Fills the sequence with all font attributes of rFont. More... | |
static sal_Int32 | lcl_GetApiColumn (sal_uInt32 nGridColumn) |
Converts a grid columnm index to an API column index. More... | |
static sal_uInt32 | lcl_GetGridColumn (sal_Int32 nApiColumn) |
Converts an API columnm index to a ScCsvGrid column index. More... | |
Variables | |
const sal_Unicode | cRulerDot = '.' |
const sal_Unicode | cRulerLine = '|' |
const sal_Int32 | CSV_LINE_HEADER = CSV_POS_INVALID |
const sal_uInt32 | CSV_COLUMN_HEADER = CSV_COLUMN_INVALID |
|
static |
Expands the sequence's size and returns the base index of the new inserted elements.
Definition at line 217 of file AccessibleCsvControl.cxx.
Referenced by lcl_FillFontAttributes().
|
static |
Fills the sequence with all font attributes of rFont.
Definition at line 232 of file AccessibleCsvControl.cxx.
References ATTR_FONT(), ATTR_FONT_HEIGHT(), ATTR_FONT_LANGUAGE(), vcl::Font::GetCharSet(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), vcl::Font::GetFontSize(), vcl::Font::GetLanguage(), vcl::Font::GetPitch(), vcl::Font::GetStyleName(), Size::Height(), lcl_ExpandSequence(), lcl_FillProperty(), MID_FONT_CHAR_SET, MID_FONT_FAMILY, MID_FONT_FAMILY_NAME, MID_FONT_PITCH, MID_FONT_STYLE_NAME, MID_FONTHEIGHT, MID_LANG_LOCALE, and nIndex.
Referenced by ScAccessibleCsvRuler::getCharacterAttributes().
|
static |
Fills the property value rVal with the specified name and value from the item.
Definition at line 225 of file AccessibleCsvControl.cxx.
References SfxPoolItem::QueryValue().
Referenced by lcl_FillFontAttributes().
|
static |
Converts a grid columnm index to an API column index.
Definition at line 728 of file AccessibleCsvControl.cxx.
References CSV_COLUMN_HEADER.
Referenced by ScAccessibleCsvGrid::getAccessibleAtPoint(), ScAccessibleCsvGrid::getSelectedAccessibleColumns(), ScAccessibleCsvGrid::SendFocusEvent(), ScAccessibleCsvGrid::SendInsertColumnEvent(), ScAccessibleCsvGrid::SendRemoveColumnEvent(), and ScAccessibleCsvGrid::SendTableUpdateEvent().
|
static |
Converts a ruler cursor position to API text index.
Definition at line 183 of file AccessibleCsvControl.cxx.
Referenced by ScAccessibleCsvRuler::getCaretPosition(), ScAccessibleCsvRuler::getIndexAtPoint(), ScAccessibleCsvRuler::getTextBeforeIndex(), ScAccessibleCsvRuler::getTextBehindIndex(), ScAccessibleCsvRuler::implGetTextLength(), ScAccessibleCsvRuler::implHasSplit(), and lcl_GetRulerPos().
|
static |
Converts an API columnm index to a ScCsvGrid column index.
Definition at line 734 of file AccessibleCsvControl.cxx.
References CSV_COLUMN_HEADER.
Referenced by ScAccessibleCsvGrid::implGetCellText(), ScAccessibleCsvGrid::implIsColumnSelected(), and ScAccessibleCsvGrid::implSelectColumn().
|
static |
Converts an API text index to a ruler cursor position.
Definition at line 197 of file AccessibleCsvControl.cxx.
References lcl_GetApiPos().
Referenced by ScAccessibleCsvRuler::constructStringBuffer(), ScAccessibleCsvRuler::getCharacterBounds(), ScAccessibleCsvRuler::getTextAtIndex(), ScAccessibleCsvRuler::getTextBeforeIndex(), ScAccessibleCsvRuler::getTextBehindIndex(), ScAccessibleCsvRuler::implHasSplit(), and ScAccessibleCsvRuler::setCaretPosition().
const sal_Unicode cRulerDot = '.' |
Definition at line 64 of file AccessibleCsvControl.cxx.
Referenced by ScAccessibleCsvRuler::constructStringBuffer().
const sal_Unicode cRulerLine = '|' |
Definition at line 65 of file AccessibleCsvControl.cxx.
Referenced by ScAccessibleCsvRuler::constructStringBuffer().
const sal_uInt32 CSV_COLUMN_HEADER = CSV_COLUMN_INVALID |
Definition at line 68 of file AccessibleCsvControl.cxx.
Referenced by ScAccessibleCsvCell::getAccessibleStateSet(), ScAccessibleCsvCell::implGetBounds(), ScAccessibleCsvCell::implGetRealPos(), ScAccessibleCsvCell::implGetRealSize(), lcl_GetApiColumn(), and lcl_GetGridColumn().
const sal_Int32 CSV_LINE_HEADER = CSV_POS_INVALID |
Definition at line 67 of file AccessibleCsvControl.cxx.
Referenced by ScAccessibleCsvCell::getAccessibleStateSet(), ScAccessibleCsvCell::implGetBounds(), ScAccessibleCsvCell::implGetRealPos(), and ScAccessibleCsvCell::implGetRealSize().