LibreOffice Module sc (master) 1
Static Public Member Functions | List of all members
ScRangeStringConverter Class Reference

#include <rangeutl.hxx>

Static Public Member Functions

static void AssignString (OUString &rString, const OUString &rNewStr, bool bAppendStr, sal_Unicode cSeparator=' ')
 helper methods More...
 
static sal_Int32 IndexOf (std::u16string_view rString, sal_Unicode cSearchChar, sal_Int32 nOffset, sal_Unicode cQuote='\'')
 
static sal_Int32 IndexOfDifferent (std::u16string_view rString, sal_Unicode cSearchChar, sal_Int32 nOffset)
 
static sal_Int32 GetTokenCount (std::u16string_view rString, sal_Unicode cSeparator=' ')
 
static void GetTokenByOffset (OUString &rToken, std::u16string_view rString, sal_Int32 &nOffset, sal_Unicode cSeparator=' ', sal_Unicode cQuote='\'')
 
static void AppendTableName (OUStringBuffer &rBuf, const OUString &rTabName)
 
static bool GetAddressFromString (ScAddress &rAddress, std::u16string_view rAddressStr, const ScDocument &rDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Int32 &nOffset, sal_Unicode cSeparator=' ', sal_Unicode cQuote='\'')
 String to Range core. More...
 
static bool GetRangeFromString (ScRange &rRange, std::u16string_view rRangeStr, const ScDocument &rDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Int32 &nOffset, sal_Unicode cSeparator=' ', sal_Unicode cQuote='\'')
 
static bool GetRangeListFromString (ScRangeList &rRangeList, std::u16string_view rRangeListStr, const ScDocument &rDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator=' ', sal_Unicode cQuote='\'')
 
static bool GetAreaFromString (ScArea &rArea, std::u16string_view rRangeStr, const ScDocument &rDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Int32 &nOffset, sal_Unicode cSeparator=' ')
 
static bool GetRangeFromString (css::table::CellRangeAddress &rRange, std::u16string_view rRangeStr, const ScDocument &rDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Int32 &nOffset, sal_Unicode cSeparator=' ')
 String to Range API. More...
 
static void GetStringFromAddress (OUString &rString, const ScAddress &rAddress, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator=' ', bool bAppendStr=false, ScRefFlags nFormatFlags=ScRefFlags::VALID|ScRefFlags::TAB_3D)
 Range to String core. More...
 
static void GetStringFromRange (OUString &rString, const ScRange &rRange, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator=' ', bool bAppendStr=false, ScRefFlags nFormatFlags=ScRefFlags::VALID|ScRefFlags::TAB_3D)
 
static void GetStringFromRangeList (OUString &rString, const ScRangeList *pRangeList, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator=' ')
 
static void GetStringFromArea (OUString &rString, const ScArea &rArea, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator, bool bAppendStr=false, ScRefFlags nFormatFlags=ScRefFlags::VALID|ScRefFlags::TAB_3D)
 
static void GetStringFromAddress (OUString &rString, const css::table::CellAddress &rAddress, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator=' ', bool bAppendStr=false)
 Range to String API. More...
 
static void GetStringFromRange (OUString &rString, const css::table::CellRangeAddress &rRange, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator=' ', bool bAppendStr=false, ScRefFlags nFormatFlags=ScRefFlags::VALID|ScRefFlags::TAB_3D)
 
static void GetStringFromRangeList (OUString &rString, const css::uno::Sequence< css::table::CellRangeAddress > &rRangeSeq, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator=' ')
 
static void GetStringFromXMLRangeString (OUString &rString, std::u16string_view rXMLRange, const ScDocument &rDoc)
 XML Range to Calc Range. More...
 
static ScRangeDataGetRangeDataFromString (const OUString &rString, const SCTAB nTab, const ScDocument &rDoc, formula::FormulaGrammar::AddressConvention eConv)
 String to RangeData core. More...
 

Detailed Description

Definition at line 89 of file rangeutl.hxx.

Member Function Documentation

◆ AppendTableName()

void ScRangeStringConverter::AppendTableName ( OUStringBuffer &  rBuf,
const OUString &  rTabName 
)
static

Definition at line 439 of file rangeutl.cxx.

References ScCompiler::CheckTabQuotes().

Referenced by lcl_appendCellAddress(), and lcl_appendCellRangeAddress().

◆ AssignString()

void ScRangeStringConverter::AssignString ( OUString &  rString,
const OUString &  rNewStr,
bool  bAppendStr,
sal_Unicode  cSeparator = ' ' 
)
static

◆ GetAddressFromString()

bool ScRangeStringConverter::GetAddressFromString ( ScAddress rAddress,
std::u16string_view  rAddressStr,
const ScDocument rDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Int32 &  nOffset,
sal_Unicode  cSeparator = ' ',
sal_Unicode  cQuote = '\'' 
)
static

◆ GetAreaFromString()

bool ScRangeStringConverter::GetAreaFromString ( ScArea rArea,
std::u16string_view  rRangeStr,
const ScDocument rDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Int32 &  nOffset,
sal_Unicode  cSeparator = ' ' 
)
static

◆ GetRangeDataFromString()

ScRangeData * ScRangeStringConverter::GetRangeDataFromString ( const OUString &  rString,
const SCTAB  nTab,
const ScDocument rDoc,
formula::FormulaGrammar::AddressConvention  eConv 
)
static

◆ GetRangeFromString() [1/2]

static bool ScRangeStringConverter::GetRangeFromString ( css::table::CellRangeAddress &  rRange,
std::u16string_view  rRangeStr,
const ScDocument rDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Int32 &  nOffset,
sal_Unicode  cSeparator = ' ' 
)
static

String to Range API.

◆ GetRangeFromString() [2/2]

static bool ScRangeStringConverter::GetRangeFromString ( ScRange rRange,
std::u16string_view  rRangeStr,
const ScDocument rDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Int32 &  nOffset,
sal_Unicode  cSeparator = ' ',
sal_Unicode  cQuote = '\'' 
)
static

◆ GetRangeListFromString()

bool ScRangeStringConverter::GetRangeListFromString ( ScRangeList rRangeList,
std::u16string_view  rRangeListStr,
const ScDocument rDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Unicode  cSeparator = ' ',
sal_Unicode  cQuote = '\'' 
)
static

◆ GetStringFromAddress() [1/2]

static void ScRangeStringConverter::GetStringFromAddress ( OUString &  rString,
const css::table::CellAddress &  rAddress,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Unicode  cSeparator = ' ',
bool  bAppendStr = false 
)
static

Range to String API.

◆ GetStringFromAddress() [2/2]

static void ScRangeStringConverter::GetStringFromAddress ( OUString &  rString,
const ScAddress rAddress,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Unicode  cSeparator = ' ',
bool  bAppendStr = false,
ScRefFlags  nFormatFlags = ScRefFlags::VALID|ScRefFlags::TAB_3D 
)
static

◆ GetStringFromArea()

void ScRangeStringConverter::GetStringFromArea ( OUString &  rString,
const ScArea rArea,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Unicode  cSeparator,
bool  bAppendStr = false,
ScRefFlags  nFormatFlags = ScRefFlags::VALID | ScRefFlags::TAB_3D 
)
static

◆ GetStringFromRange() [1/2]

static void ScRangeStringConverter::GetStringFromRange ( OUString &  rString,
const css::table::CellRangeAddress &  rRange,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Unicode  cSeparator = ' ',
bool  bAppendStr = false,
ScRefFlags  nFormatFlags = ScRefFlags::VALID|ScRefFlags::TAB_3D 
)
static

◆ GetStringFromRange() [2/2]

static void ScRangeStringConverter::GetStringFromRange ( OUString &  rString,
const ScRange rRange,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Unicode  cSeparator = ' ',
bool  bAppendStr = false,
ScRefFlags  nFormatFlags = ScRefFlags::VALID|ScRefFlags::TAB_3D 
)
static

◆ GetStringFromRangeList() [1/2]

static void ScRangeStringConverter::GetStringFromRangeList ( OUString &  rString,
const css::uno::Sequence< css::table::CellRangeAddress > &  rRangeSeq,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Unicode  cSeparator = ' ' 
)
static

◆ GetStringFromRangeList() [2/2]

static void ScRangeStringConverter::GetStringFromRangeList ( OUString &  rString,
const ScRangeList pRangeList,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Unicode  cSeparator = ' ' 
)
static

◆ GetStringFromXMLRangeString()

void ScRangeStringConverter::GetStringFromXMLRangeString ( OUString &  rString,
std::u16string_view  rXMLRange,
const ScDocument rDoc 
)
static

◆ GetTokenByOffset()

void ScRangeStringConverter::GetTokenByOffset ( OUString &  rToken,
std::u16string_view  rString,
sal_Int32 &  nOffset,
sal_Unicode  cSeparator = ' ',
sal_Unicode  cQuote = '\'' 
)
static

◆ GetTokenCount()

sal_Int32 ScRangeStringConverter::GetTokenCount ( std::u16string_view  rString,
sal_Unicode  cSeparator = ' ' 
)
static

Definition at line 447 of file rangeutl.cxx.

References GetTokenByOffset(), and nCount.

Referenced by ScXMLConsolidationContext::endFastElement().

◆ IndexOf()

sal_Int32 ScRangeStringConverter::IndexOf ( std::u16string_view  rString,
sal_Unicode  cSearchChar,
sal_Int32  nOffset,
sal_Unicode  cQuote = '\'' 
)
static

◆ IndexOfDifferent()

sal_Int32 ScRangeStringConverter::IndexOfDifferent ( std::u16string_view  rString,
sal_Unicode  cSearchChar,
sal_Int32  nOffset 
)
static

Definition at line 396 of file rangeutl.cxx.

References nIndex, and nLength.

Referenced by GetTokenByOffset().


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