LibreOffice Module sc (master)
1
|
#include <lotform.hxx>
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 () |
LotusContext & | getContext () |
![]() | |
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 &rDoc, ScSingleRefData &rSRD, sal_uInt8 nFlags) |
void | ReadCRD (const ScDocument &rDoc, 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 | |
LotusContext & | m_rContext |
rtl_TextEncoding | eSrcChar |
TokenId | nAddToken |
TokenId | nSubToken |
TokenId | n0Token |
bool | bWK3 |
bool | bWK123 |
Additional Inherited Members | |
![]() | |
void | Ignore (const tools::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 |
![]() | |
ConverterBase (svl::SharedStringPool &rSPool) | |
virtual | ~ConverterBase () |
void | Reset () |
![]() | |
SvStream & | aIn |
sal_Int32 | nBytesLeft |
![]() | |
TokenPool | aPool |
TokenStack | aStack |
ScAddress | aEingPos |
Definition at line 60 of file lotform.hxx.
LotusToSc::LotusToSc | ( | LotusContext & | rContext, |
SvStream & | aStr, | ||
svl::SharedStringPool & | rSPool, | ||
rtl_TextEncoding | eSrc, | ||
bool | b | ||
) |
Definition at line 371 of file lotform.cxx.
References bWK123, bWK3, eSrcChar, and m_rContext.
|
overridevirtual |
Implements LotusConverterBase.
Definition at line 384 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::pRngNmBffWK3, LotusContext::rDoc, 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().
Definition at line 344 of file lotform.cxx.
References ConverterBase::aPool, nSubToken, ocOpen, and TokenPool::Store().
Referenced by DoFunc().
|
private |
Definition at line 37 of file lotform.cxx.
References ConverterBase::aPool, ConverterBase::aStack, DecToken(), eSrcChar, TokenStack::HasMoreTokens(), IncToken(), lcl_KnownAddIn(), n, n0Token, NegToken(), ocChoose, ocClose, ocFind, ocFixed, ocGetYear, ocHLookup, ocIndex, ocIRR, ocMid, ocNegSub, ocNoName, ocNper, ocOpen, ocPMT, ocRate, ocReplace, ocRoundDown, ocRoundUp, ocSep, ocSub, ocTrue, ocVLookup, SAL_WARN_IF, TokenPool::Store(), comphelper::string::stripEnd(), and t.
Referenced by Convert().
|
inline |
Definition at line 95 of file lotform.hxx.
References m_rContext.
Referenced by ImportLotus::Bof(), ImportLotus::Font_Face(), ImportLotus::Font_Type(), ImportLotus::Font_Ysize(), ImportLotus::parse(), ImportLotus::Read(), ImportLotus::Row_(), and ImportLotus::Userrange().
Definition at line 338 of file lotform.cxx.
References ConverterBase::aPool, nAddToken, ocOpen, and TokenPool::Store().
Referenced by DoFunc().
|
staticprivate |
Definition at line 932 of file lotform.cxx.
References ocAbs, ocAdd, ocAnd, ocArcCos, ocArcSin, ocArcTan, ocArcTan2, ocAverageA, ocChar, ocChoose, ocClean, ocCode, ocColumns, ocCos, ocCount2, ocDBAverage, ocDBCount2, ocDBMax, ocDBMin, ocDBStdDevP, ocDBSum, ocDBVarP, ocDDB, ocDiv, ocEqual, ocExact, ocExp, ocFalse, ocFind, ocFixed, ocFV, ocGetActDate, ocGetDate, ocGetDateValue, ocGetDay, ocGetHour, ocGetMin, ocGetMonth, ocGetSec, ocGetTime, ocGetTimeValue, ocGetYear, ocGreater, ocGreaterEqual, ocHLookup, ocIf, ocIndex, ocIndirect, ocInt, ocIRR, ocIsError, ocIsNA, ocIsString, ocIsValue, ocLeft, ocLen, ocLess, ocLessEqual, ocLn, ocLog10, ocLower, ocMaxA, ocMid, ocMinA, ocMod, ocMul, ocNegSub, ocNoName, ocNot, ocNotAvail, ocNotEqual, ocNPV, ocOr, ocPi, ocPMT, ocPow, ocProper, ocPush, ocPV, ocRandom, ocRate, ocReplace, ocRept, ocRight, ocRound, ocRows, ocSin, ocSLN, ocSqrt, ocStDevPA, ocSub, ocSum, ocSYD, ocTan, ocTrim, ocTrue, ocUpper, ocValue, ocVarPA, and ocVLookup.
Referenced by Convert().
|
staticprivate |
Definition at line 1461 of file lotform.cxx.
References ocAbs, ocAdd, ocAmpersand, ocAnd, ocArcCos, ocArcSin, ocArcTan, ocArcTan2, ocAverage, ocAverageA, ocChar, ocChoose, ocClean, ocCode, ocColumns, ocCos, ocCount, ocCount2, ocDBAverage, ocDBCount2, ocDBGet, ocDBMax, ocDBMin, ocDBStdDev, ocDBStdDevP, ocDBSum, ocDBVar, ocDBVarP, ocDDB, ocDiv, ocEqual, ocExact, ocExp, ocFalse, ocFind, ocFixed, ocFV, ocGetActDate, ocGetDate, ocGetDateValue, ocGetDay, ocGetDayOfWeek, ocGetDiffDate, ocGetDiffDate360, ocGetHour, ocGetMin, ocGetMonth, ocGetSec, ocGetTime, ocGetTimeValue, ocGetYear, ocGreater, ocGreaterEqual, ocHLookup, ocIf, ocIndex, ocIndirect, ocInt, ocIRR, ocIsError, ocIsNA, ocIsString, ocIsValue, ocLeft, ocLen, ocLess, ocLessEqual, ocLn, ocLog10, ocLower, ocMax, ocMaxA, ocMid, ocMin, ocMinA, ocMod, ocMul, ocNegSub, ocNoName, ocNot, ocNotAvail, ocNotEqual, ocNPV, ocOr, ocPi, ocPMT, ocPow, ocProper, ocPush, ocPV, ocRandom, ocRank, ocRate, ocReplace, ocRept, ocRight, ocRound, ocRows, ocSin, ocSLN, ocSqrt, ocStDev, ocStDevA, ocStDevP, ocStDevPA, ocSub, ocSum, ocSumProduct, ocSYD, ocTan, ocTrim, ocTrue, ocUpper, ocValue, ocVar, ocVarA, ocVarP, ocVarPA, and ocVLookup.
Referenced by Convert().
Definition at line 668 of file lotform.cxx.
References FT_Braces, FT_ConstFloat, FT_ConstInt, FT_ConstString, FT_FuncFix0, FT_FuncFix1, FT_FuncFix2, FT_FuncFix3, FT_FuncFix4, FT_FuncVar, FT_Neg, FT_NOP, FT_NotImpl, FT_Op, FT_Range, FT_Return, and FT_Variable.
Referenced by Convert().
Definition at line 1197 of file lotform.cxx.
References FT_Absnref, FT_Braces, FT_Const10Float, 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_Return, FT_Rref, FT_Snum, and FT_Splfunc.
Referenced by Convert().
|
private |
Definition at line 246 of file lotform.cxx.
References LotusContext::eTyp, eWK_1, eWK_2, ScSingleRefData::IsRowRel(), m_rContext, SAL_WARN, ScSingleRefData::SetAbsCol(), ScSingleRefData::SetAbsRow(), ScSingleRefData::SetRelCol(), ScSingleRefData::SetRelRow(), and ScSingleRefData::SetRowRel().
Referenced by Convert().
Definition at line 350 of file lotform.cxx.
References ConverterBase::aPool, ocClose, ocNegSub, ocOpen, and TokenPool::Store().
Referenced by DoFunc().
|
inlineprivate |
Definition at line 101 of file lotform.hxx.
References ReadSRD(), ScComplexRefData::Ref1, and ScComplexRefData::Ref2.
Referenced by Convert().
|
private |
Definition at line 319 of file lotform.cxx.
References ConverterBase::aEingPos, ScDocument::GetSheetLimits(), LotusConverterBase::Read(), ScSingleRefData::SetAddress(), ScSingleRefData::SetColRel(), ScSingleRefData::SetFlag3D(), ScSingleRefData::SetRowRel(), ScSingleRefData::SetTabRel(), and ScAddress::Tab().
Definition at line 356 of file lotform.cxx.
References ConverterBase::aPool, n0Token, nAddToken, nSubToken, ocAdd, ocClose, ocSub, ConverterBase::Reset(), and TokenPool::Store().
Referenced by ImportLotus::Formulacell(), OP_Formula(), and OP_Formula123().
|
inline |
Definition at line 110 of file lotform.hxx.
References bWK3.
Referenced by ImportLotus::Formulacell().
|
private |
Definition at line 76 of file lotform.hxx.
Referenced by Convert(), and LotusToSc().
|
private |
Definition at line 75 of file lotform.hxx.
Referenced by Convert(), LotusToSc(), and SetWK3().
|
private |
Definition at line 64 of file lotform.hxx.
Referenced by Convert(), DoFunc(), and LotusToSc().
|
private |
Definition at line 63 of file lotform.hxx.
Referenced by Convert(), getContext(), and LotusRelToScRel().
|
private |
Definition at line 67 of file lotform.hxx.
|
private |
Definition at line 65 of file lotform.hxx.
Referenced by IncToken(), and Reset().
|
private |
Definition at line 66 of file lotform.hxx.
Referenced by DecToken(), and Reset().