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 190 of file compiler.hxx.

Member Enumeration Documentation

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 235 of file compiler.hxx.

Constructor & Destructor Documentation

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

Definition at line 323 of file compiler.cxx.

Member Function Documentation

virtual ScCharFlags ScCompiler::Convention::getCharTableFlags ( sal_Unicode  c,
sal_Unicode  cLast 
) const
pure virtual
virtual sal_Unicode ScCompiler::Convention::getSpecialSymbol ( SpecialSymbolType  eSymType) const
pure virtual
virtual OUString ScCompiler::Convention::makeExternalNameStr ( sal_uInt16  nFileId,
const OUString &  rFile,
const OUString &  rName 
) const
pure virtual
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
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
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
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().

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::IsExternalNamedRange().

Member Data Documentation

const formula::FormulaGrammar::AddressConvention ScCompiler::Convention::meConv
std::unique_ptr<ScCharFlags[]> ScCompiler::Convention::mpCharTable
protected

Definition at line 254 of file compiler.hxx.

Referenced by Convention().


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