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

#include <lotform.hxx>

Inheritance diagram for LotusToSc:
[legend]
Collaboration diagram for LotusToSc:
[legend]

Public Member Functions

 LotusToSc (LotusContext &rContext, SvStream &aStr, svl::SharedStringPool &rSPool, rtl_TextEncoding eSrc, bool b)
 
virtual void Convert (std::unique_ptr< ScTokenArray > &rpErg, sal_Int32 &nRest) override
 
void Reset (const ScAddress &rEingPos)
 
void SetWK3 ()
 
LotusContextgetContext ()
 
- Public Member Functions inherited from LotusConverterBase
void Reset (const ScAddress &rEingPos)
 
bool good () const
 

Private Member Functions

void DoFunc (DefTokenId eOc, sal_uInt8 nCnt, const char *pExtName)
 
void LotusRelToScRel (sal_uInt16 nCol, sal_uInt16 nRow, ScSingleRefData &rSRD)
 
void ReadSRD (const ScDocument *pDoc, ScSingleRefData &rSRD, sal_uInt8 nFlags)
 
void ReadCRD (const ScDocument *pDoc, ScComplexRefData &rCRD, sal_uInt8 nFlags)
 
void IncToken (TokenId &rParam)
 
void DecToken (TokenId &rParam)
 
void NegToken (TokenId &rParam)
 

Static Private Member Functions

static FUNC_TYPE IndexToType (sal_uInt8)
 
static DefTokenId IndexToToken (sal_uInt8)
 
static FUNC_TYPE IndexToTypeWK123 (sal_uInt8)
 
static DefTokenId IndexToTokenWK123 (sal_uInt8)
 

Private Attributes

LotusContextm_rContext
 
rtl_TextEncoding eSrcChar
 
TokenId nAddToken
 
TokenId nSubToken
 
TokenId n0Token
 
bool bWK3
 
bool bWK123
 

Additional Inherited Members

- Protected Member Functions inherited from LotusConverterBase
void Ignore (const long nSeekRel)
 
void Read (sal_uInt8 &nByte)
 
void Read (sal_uInt16 &nUINT16)
 
void Read (sal_Int16 &nINT16)
 
void Read (double &fDouble)
 
void Read (sal_uInt32 &nUINT32)
 
 LotusConverterBase (SvStream &rStr, svl::SharedStringPool &rSPool)
 
virtual ~LotusConverterBase () override
 
- Protected Member Functions inherited from ConverterBase
 ConverterBase (svl::SharedStringPool &rSPool)
 
virtual ~ConverterBase ()
 
void Reset ()
 
- Protected Attributes inherited from LotusConverterBase
SvStreamaIn
 
sal_Int32 nBytesLeft
 
- Protected Attributes inherited from ConverterBase
TokenPool aPool
 
TokenStack aStack
 
ScAddress aEingPos
 

Detailed Description

Definition at line 60 of file lotform.hxx.

Constructor & Destructor Documentation

LotusToSc::LotusToSc ( LotusContext rContext,
SvStream aStr,
svl::SharedStringPool rSPool,
rtl_TextEncoding  eSrc,
bool  b 
)

Definition at line 372 of file lotform.cxx.

References bWK123, bWK3, eSrcChar, and m_rContext.

Member Function Documentation

void LotusToSc::Convert ( std::unique_ptr< ScTokenArray > &  rpErg,
sal_Int32 &  nRest 
)
overridevirtual

Implements LotusConverterBase.

Definition at line 385 of file lotform.cxx.

References LotusConverterBase::aIn, ConverterBase::aPool, ConverterBase::aStack, bWK123, bWK3, ScSingleRefData::Col(), DoFunc(), eSrcChar, eType, RangeNameBufferWK3::FindAbs(), RangeNameBufferWK3::FindRel(), FT_Absnref, FT_Braces, FT_Const10Float, FT_ConstFloat, FT_ConstInt, FT_ConstString, FT_Cref, FT_Econstant, FT_Ecref, FT_Erref, FT_FuncFix0, FT_FuncFix1, FT_FuncFix2, FT_FuncFix3, FT_FuncFix4, FT_FuncVar, FT_Neg, FT_NOP, FT_NotImpl, FT_Nrref, FT_Op, FT_Range, FT_Return, FT_Rref, FT_Snum, FT_Splfunc, FT_Variable, TokenStack::Get(), GetAddInName(), LotusRangeList::GetIndex(), TokenPool::GetTokenArray(), ID_FAIL, LotusConverterBase::Ignore(), IndexToToken(), IndexToTokenWK123(), IndexToType(), IndexToTypeWK123(), ScComplexRefData::InitFlags(), LotusRelToScRel(), m_rContext, LotusContext::maRangeNames, LotusConverterBase::nBytesLeft, nId, nValue, ocBad, ocClose, ocNegSub, ocNoName, ocOpen, p, LotusContext::pDoc, LotusContext::pRngNmBffWK3, LotusConverterBase::Read(), ScfTools::read_zeroTerminated_uInt8s_ToOUString(), SvStream::ReadBytes(), ReadCRD(), ScfTools::ReadLongDouble(), ReadSRD(), ScComplexRefData::Ref1, ScComplexRefData::Ref2, SvStream::remainingSize(), ScSingleRefData::Row(), SAL_WARN, SAL_WARN_IF, SvStream::SeekRel(), ScSingleRefData::SetFlag3D(), ScSingleRefData::SetRelTab(), Snum32ToDouble(), SnumToDouble(), and TokenPool::Store().

Referenced by ImportLotus::Formulacell(), OP_Formula(), and OP_Formula123().

void LotusToSc::DecToken ( TokenId rParam)
private

Definition at line 345 of file lotform.cxx.

References ConverterBase::aPool, nSubToken, ocOpen, and TokenPool::Store().

Referenced by DoFunc().

void LotusToSc::DoFunc ( DefTokenId  eOc,
sal_uInt8  nCnt,
const char *  pExtName 
)
private
LotusContext& LotusToSc::getContext ( )
inline
void LotusToSc::IncToken ( TokenId rParam)
private

Definition at line 339 of file lotform.cxx.

References ConverterBase::aPool, nAddToken, ocOpen, and TokenPool::Store().

Referenced by DoFunc().

DefTokenId LotusToSc::IndexToToken ( sal_uInt8  nIndex)
staticprivate
DefTokenId LotusToSc::IndexToTokenWK123 ( sal_uInt8  nIndex)
staticprivate
FUNC_TYPE LotusToSc::IndexToType ( sal_uInt8  nIndex)
staticprivate
FUNC_TYPE LotusToSc::IndexToTypeWK123 ( sal_uInt8  nIndex)
staticprivate
void LotusToSc::LotusRelToScRel ( sal_uInt16  nCol,
sal_uInt16  nRow,
ScSingleRefData rSRD 
)
private
void LotusToSc::NegToken ( TokenId rParam)
private

Definition at line 351 of file lotform.cxx.

References ConverterBase::aPool, ocClose, ocNegSub, ocOpen, and TokenPool::Store().

Referenced by DoFunc().

void LotusToSc::ReadCRD ( const ScDocument pDoc,
ScComplexRefData rCRD,
sal_uInt8  nFlags 
)
inlineprivate

Definition at line 101 of file lotform.hxx.

References ReadSRD(), ScComplexRefData::Ref1, and ScComplexRefData::Ref2.

Referenced by Convert().

void LotusToSc::ReadSRD ( const ScDocument pDoc,
ScSingleRefData rSRD,
sal_uInt8  nFlags 
)
private
void LotusToSc::Reset ( const ScAddress rEingPos)
void LotusToSc::SetWK3 ( )
inline

Definition at line 110 of file lotform.hxx.

References bWK3.

Referenced by ImportLotus::Formulacell().

Member Data Documentation

bool LotusToSc::bWK123
private

Definition at line 76 of file lotform.hxx.

Referenced by Convert(), and LotusToSc().

bool LotusToSc::bWK3
private

Definition at line 75 of file lotform.hxx.

Referenced by Convert(), LotusToSc(), and SetWK3().

rtl_TextEncoding LotusToSc::eSrcChar
private

Definition at line 64 of file lotform.hxx.

Referenced by Convert(), DoFunc(), and LotusToSc().

LotusContext& LotusToSc::m_rContext
private

Definition at line 63 of file lotform.hxx.

Referenced by Convert(), getContext(), and LotusRelToScRel().

TokenId LotusToSc::n0Token
private

Definition at line 67 of file lotform.hxx.

Referenced by DoFunc(), and Reset().

TokenId LotusToSc::nAddToken
private

Definition at line 65 of file lotform.hxx.

Referenced by IncToken(), and Reset().

TokenId LotusToSc::nSubToken
private

Definition at line 66 of file lotform.hxx.

Referenced by DecToken(), and Reset().


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