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 (const OUString &rString, sal_Unicode cSearchChar, sal_Int32 nOffset, sal_Unicode cQuote= '\'')
 
static sal_Int32 IndexOfDifferent (const OUString &rString, sal_Unicode cSearchChar, sal_Int32 nOffset)
 
static sal_Int32 GetTokenCount (const OUString &rString, sal_Unicode cSeparator= ' ')
 
static void GetTokenByOffset (OUString &rToken, const OUString &rString, sal_Int32 &nOffset, sal_Unicode cSeparator= ' ', sal_Unicode cQuote= '\'')
 
static void AppendTableName (OUStringBuffer &rBuf, const OUString &rTabName)
 
static bool GetAddressFromString (ScAddress &rAddress, const OUString &rAddressStr, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Int32 &nOffset, sal_Unicode cSeparator= ' ', sal_Unicode cQuote= '\'')
 String to Range core. More...
 
static bool GetRangeFromString (ScRange &rRange, const OUString &rRangeStr, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Int32 &nOffset, sal_Unicode cSeparator= ' ', sal_Unicode cQuote= '\'')
 
static bool GetRangeListFromString (ScRangeList &rRangeList, const OUString &rRangeListStr, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Unicode cSeparator= ' ', sal_Unicode cQuote= '\'')
 
static bool GetAreaFromString (ScArea &rArea, const OUString &rRangeStr, const ScDocument *pDocument, formula::FormulaGrammar::AddressConvention eConv, sal_Int32 &nOffset, sal_Unicode cSeparator= ' ')
 
static bool GetRangeFromString (css::table::CellRangeAddress &rRange, const OUString &rRangeStr, const ScDocument *pDocument, 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, const OUString &rXMLRange, const ScDocument *pDoc)
 XML Range to Calc Range. More...
 
static ScRangeDataGetRangeDataFromString (const OUString &rString, const SCTAB nTab, const ScDocument *pDoc)
 String to RangeData core. More...
 

Detailed Description

Definition at line 82 of file rangeutl.hxx.

Member Function Documentation

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

Definition at line 415 of file rangeutl.cxx.

References ScCompiler::CheckTabQuotes().

Referenced by lcl_appendCellAddress(), and lcl_appendCellRangeAddress().

void ScRangeStringConverter::AssignString ( OUString &  rString,
const OUString &  rNewStr,
bool  bAppendStr,
sal_Unicode  cSeparator = ' ' 
)
static
bool ScRangeStringConverter::GetAddressFromString ( ScAddress rAddress,
const OUString &  rAddressStr,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Int32 &  nOffset,
sal_Unicode  cSeparator = ' ',
sal_Unicode  cQuote = '\'' 
)
static
bool ScRangeStringConverter::GetAreaFromString ( ScArea rArea,
const OUString &  rRangeStr,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Int32 &  nOffset,
sal_Unicode  cSeparator = ' ' 
)
static
ScRangeData * ScRangeStringConverter::GetRangeDataFromString ( const OUString &  rString,
const SCTAB  nTab,
const ScDocument pDoc 
)
static
static bool ScRangeStringConverter::GetRangeFromString ( ScRange rRange,
const OUString &  rRangeStr,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Int32 &  nOffset,
sal_Unicode  cSeparator = ' ',
sal_Unicode  cQuote = '\'' 
)
static
static bool ScRangeStringConverter::GetRangeFromString ( css::table::CellRangeAddress &  rRange,
const OUString &  rRangeStr,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Int32 &  nOffset,
sal_Unicode  cSeparator = ' ' 
)
static

String to Range API.

bool ScRangeStringConverter::GetRangeListFromString ( ScRangeList rRangeList,
const OUString &  rRangeListStr,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Unicode  cSeparator = ' ',
sal_Unicode  cQuote = '\'' 
)
static
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
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.

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
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
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
static void ScRangeStringConverter::GetStringFromRangeList ( OUString &  rString,
const ScRangeList pRangeList,
const ScDocument pDocument,
formula::FormulaGrammar::AddressConvention  eConv,
sal_Unicode  cSeparator = ' ' 
)
static
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
void ScRangeStringConverter::GetStringFromXMLRangeString ( OUString &  rString,
const OUString &  rXMLRange,
const ScDocument pDoc 
)
static
void ScRangeStringConverter::GetTokenByOffset ( OUString &  rToken,
const OUString &  rString,
sal_Int32 &  nOffset,
sal_Unicode  cSeparator = ' ',
sal_Unicode  cQuote = '\'' 
)
static
sal_Int32 ScRangeStringConverter::GetTokenCount ( const OUString &  rString,
sal_Unicode  cSeparator = ' ' 
)
static

Definition at line 423 of file rangeutl.cxx.

References GetTokenByOffset(), and nCount.

Referenced by ScXMLConsolidationContext::endFastElement().

sal_Int32 ScRangeStringConverter::IndexOf ( const OUString &  rString,
sal_Unicode  cSearchChar,
sal_Int32  nOffset,
sal_Unicode  cQuote = '\'' 
)
static
sal_Int32 ScRangeStringConverter::IndexOfDifferent ( const OUString &  rString,
sal_Unicode  cSearchChar,
sal_Int32  nOffset 
)
static

Definition at line 372 of file rangeutl.cxx.

References nIndex, and nLength.

Referenced by GetTokenByOffset().


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