LibreOffice Module sc (master) 1
Functions | Variables
AccessibleCsvControl.cxx File Reference
#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>
Include dependency graph for AccessibleCsvControl.cxx:

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
 

Function Documentation

◆ lcl_ExpandSequence()

static sal_Int32 lcl_ExpandSequence ( Sequence< PropertyValue > &  rSeq,
sal_Int32  nExp 
)
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().

◆ lcl_FillFontAttributes()

static void lcl_FillFontAttributes ( Sequence< PropertyValue > &  rSeq,
const vcl::Font rFont 
)
static

◆ lcl_FillProperty()

static void lcl_FillProperty ( PropertyValue &  rVal,
const OUString &  rPropName,
const SfxPoolItem rItem,
sal_uInt8  nMID 
)
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().

◆ lcl_GetApiColumn()

static sal_Int32 lcl_GetApiColumn ( sal_uInt32  nGridColumn)
static

◆ lcl_GetApiPos()

static sal_Int32 lcl_GetApiPos ( sal_Int32  nRulerPos)
static

◆ lcl_GetGridColumn()

static sal_uInt32 lcl_GetGridColumn ( sal_Int32  nApiColumn)
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().

◆ lcl_GetRulerPos()

static sal_Int32 lcl_GetRulerPos ( sal_Int32  nApiPos)
static

Variable Documentation

◆ cRulerDot

const sal_Unicode cRulerDot = '.'

◆ cRulerLine

const sal_Unicode cRulerLine = '|'

◆ CSV_COLUMN_HEADER

const sal_uInt32 CSV_COLUMN_HEADER = CSV_COLUMN_INVALID

◆ CSV_LINE_HEADER

const sal_Int32 CSV_LINE_HEADER = CSV_POS_INVALID