LibreOffice Module sc (master) 1
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
ScCompiler::Convention Struct Referenceabstract

#include <compiler.hxx>

Public Types

enum  SpecialSymbolType {
  SHEET_SEPARATOR ,
  ABS_SHEET_PREFIX
}
 

Public Member Functions

 Convention (formula::FormulaGrammar::AddressConvention eConvP)
 
virtual ~Convention ()
 
virtual void makeRefStr (ScSheetLimits &rLimits, OUStringBuffer &rBuffer, formula::FormulaGrammar::Grammar eGram, const ScAddress &rPos, const OUString &rErrRef, const std::vector< OUString > &rTabNames, const ScComplexRefData &rRef, bool bSingleRef, bool bFromRangeName) const =0
 
virtual css::i18n::ParseResult parseAnyToken (const OUString &rFormula, sal_Int32 nSrcPos, const CharClass *pCharClass, bool bGroupSeparator) const =0
 
virtual bool parseExternalName (const OUString &rSymbol, OUString &rFile, OUString &rName, const ScDocument &rDoc, const css::uno::Sequence< css::sheet::ExternalLinkInfo > *pExternalLinks) const =0
 Parse the symbol string and pick up the file name and the external range name. More...
 
virtual OUString makeExternalNameStr (sal_uInt16 nFileId, const OUString &rFile, const OUString &rName) const =0
 
virtual void makeExternalRefStr (ScSheetLimits &rLimits, OUStringBuffer &rBuffer, const ScAddress &rPos, sal_uInt16 nFileId, const OUString &rFileName, const OUString &rTabName, const ScSingleRefData &rRef) const =0
 
virtual void makeExternalRefStr (ScSheetLimits &rLimits, OUStringBuffer &rBuffer, const ScAddress &rPos, sal_uInt16 nFileId, const OUString &rFileName, const std::vector< OUString > &rTabNames, const OUString &rTabName, const ScComplexRefData &rRef) const =0
 
virtual sal_Unicode getSpecialSymbol (SpecialSymbolType eSymType) const =0
 
virtual ScCharFlags getCharTableFlags (sal_Unicode c, sal_Unicode cLast) const =0
 

Public Attributes

const formula::FormulaGrammar::AddressConvention meConv
 

Protected Attributes

std::unique_ptr< ScCharFlags[]> mpCharTable
 

Detailed Description

Definition at line 191 of file compiler.hxx.

Member Enumeration Documentation

◆ SpecialSymbolType

Enumerator
SHEET_SEPARATOR 

Character between sheet name and address.

In OOO A1 this is '.', while XL A1 and XL R1C1 this is '!'.

ABS_SHEET_PREFIX 

In OOO A1, a sheet name may be prefixed with '$' to indicate an absolute sheet position.

Definition at line 236 of file compiler.hxx.

Constructor & Destructor Documentation

◆ Convention()

ScCompiler::Convention::Convention ( formula::FormulaGrammar::AddressConvention  eConvP)

◆ ~Convention()

ScCompiler::Convention::~Convention ( )
virtual

Definition at line 355 of file compiler.cxx.

Member Function Documentation

◆ getCharTableFlags()

virtual ScCharFlags ScCompiler::Convention::getCharTableFlags ( sal_Unicode  c,
sal_Unicode  cLast 
) const
pure virtual

◆ getSpecialSymbol()

virtual sal_Unicode ScCompiler::Convention::getSpecialSymbol ( SpecialSymbolType  eSymType) const
pure virtual

◆ makeExternalNameStr()

virtual OUString ScCompiler::Convention::makeExternalNameStr ( sal_uInt16  nFileId,
const OUString &  rFile,
const OUString &  rName 
) const
pure virtual

◆ makeExternalRefStr() [1/2]

virtual void ScCompiler::Convention::makeExternalRefStr ( ScSheetLimits rLimits,
OUStringBuffer &  rBuffer,
const ScAddress rPos,
sal_uInt16  nFileId,
const OUString &  rFileName,
const OUString &  rTabName,
const ScSingleRefData rRef 
) const
pure virtual

◆ makeExternalRefStr() [2/2]

virtual void ScCompiler::Convention::makeExternalRefStr ( ScSheetLimits rLimits,
OUStringBuffer &  rBuffer,
const ScAddress rPos,
sal_uInt16  nFileId,
const OUString &  rFileName,
const std::vector< OUString > &  rTabNames,
const OUString &  rTabName,
const ScComplexRefData rRef 
) const
pure virtual

◆ makeRefStr()

virtual void ScCompiler::Convention::makeRefStr ( ScSheetLimits rLimits,
OUStringBuffer &  rBuffer,
formula::FormulaGrammar::Grammar  eGram,
const ScAddress rPos,
const OUString &  rErrRef,
const std::vector< OUString > &  rTabNames,
const ScComplexRefData rRef,
bool  bSingleRef,
bool  bFromRangeName 
) const
pure virtual

◆ parseAnyToken()

virtual css::i18n::ParseResult ScCompiler::Convention::parseAnyToken ( const OUString &  rFormula,
sal_Int32  nSrcPos,
const CharClass pCharClass,
bool  bGroupSeparator 
) const
pure virtual

Referenced by ScCompiler::NextSymbol().

◆ parseExternalName()

virtual bool ScCompiler::Convention::parseExternalName ( const OUString &  rSymbol,
OUString &  rFile,
OUString &  rName,
const ScDocument rDoc,
const css::uno::Sequence< css::sheet::ExternalLinkInfo > *  pExternalLinks 
) const
pure virtual

Parse the symbol string and pick up the file name and the external range name.

Returns
true on successful parse, or false otherwise.

Referenced by ScCompiler::ParseExternalNamedRange().

Member Data Documentation

◆ meConv

const formula::FormulaGrammar::AddressConvention ScCompiler::Convention::meConv

◆ mpCharTable

std::unique_ptr<ScCharFlags[]> ScCompiler::Convention::mpCharTable
protected

Definition at line 255 of file compiler.hxx.

Referenced by Convention().


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