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 () |
Public Member Functions inherited from LotusConverterBase | |
void | Reset (const ScAddress &rEingPos) |
virtual void | Convert (std::unique_ptr< ScTokenArray > &rpErg, sal_Int32 &nRest)=0 |
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) |
void | Reset (const ScAddress &rEingPos) |
void | Reset () |
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 | |
Protected Member Functions inherited from LotusConverterBase | |
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 |
void | Reset () |
Protected Member Functions inherited from ConverterBase | |
ConverterBase (svl::SharedStringPool &rSPool) | |
virtual | ~ConverterBase () |
void | Reset () |
Protected Attributes inherited from LotusConverterBase | |
SvStream & | aIn |
sal_Int32 | nBytesLeft |
Protected Attributes inherited from ConverterBase | |
TokenPool | aPool |
TokenStack | aStack |
ScAddress | aEingPos |
Definition at line 59 of file lotform.hxx.
LotusToSc::LotusToSc | ( | LotusContext & | rContext, |
SvStream & | aStr, | ||
svl::SharedStringPool & | rSPool, | ||
rtl_TextEncoding | eSrc, | ||
bool | b | ||
) |
Definition at line 378 of file lotform.cxx.
References bWK123, bWK3, eSrcChar, and m_rContext.
|
overridevirtual |
Implements LotusConverterBase.
Definition at line 391 of file lotform.cxx.
References aBuffer, 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, 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().
|
private |
Definition at line 351 of file lotform.cxx.
References ConverterBase::aPool, nSubToken, ocOpen, and TokenPool::Store().
Referenced by DoFunc().
|
private |
Definition at line 38 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 94 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().
|
private |
Definition at line 345 of file lotform.cxx.
References ConverterBase::aPool, nAddToken, ocOpen, and TokenPool::Store().
Referenced by DoFunc().
|
staticprivate |
Definition at line 946 of file lotform.cxx.
References nIndex, 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 1475 of file lotform.cxx.
References nIndex, 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 682 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, FT_Variable, and nIndex.
Referenced by Convert().
Definition at line 1211 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, FT_Splfunc, and nIndex.
Referenced by Convert().
|
private |
Definition at line 247 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().
|
private |
Definition at line 357 of file lotform.cxx.
References ConverterBase::aPool, ocClose, ocNegSub, ocOpen, and TokenPool::Store().
Referenced by DoFunc().
|
inlineprivate |
Definition at line 100 of file lotform.hxx.
References ReadSRD(), ScComplexRefData::Ref1, and ScComplexRefData::Ref2.
Referenced by Convert().
|
private |
Definition at line 320 of file lotform.cxx.
References ConverterBase::aEingPos, LotusConverterBase::aIn, ScDocument::GetSheetLimits(), SvStream::good(), LotusConverterBase::Read(), SAL_WARN, ScSingleRefData::SetAddress(), ScSingleRefData::SetColRel(), ScSingleRefData::SetFlag3D(), ScSingleRefData::SetRowRel(), ScSingleRefData::SetTabRel(), and ScAddress::Tab().
|
private |
Definition at line 129 of file frmbase.cxx.
void LotusToSc::Reset | ( | const ScAddress & | rEingPos | ) |
Definition at line 363 of file lotform.cxx.
References ConverterBase::aPool, n0Token, nAddToken, nSubToken, ocAdd, ocClose, ocSub, LotusConverterBase::Reset(), and TokenPool::Store().
Referenced by ImportLotus::Formulacell(), OP_Formula(), and OP_Formula123().
|
private |
Definition at line 122 of file frmbase.cxx.
|
inline |
Definition at line 109 of file lotform.hxx.
References bWK3.
Referenced by ImportLotus::Formulacell().
|
private |
Definition at line 75 of file lotform.hxx.
Referenced by Convert(), and LotusToSc().
|
private |
Definition at line 74 of file lotform.hxx.
Referenced by Convert(), LotusToSc(), and SetWK3().
|
private |
Definition at line 63 of file lotform.hxx.
Referenced by Convert(), DoFunc(), and LotusToSc().
|
private |
Definition at line 62 of file lotform.hxx.
Referenced by Convert(), getContext(), and LotusRelToScRel().
|
private |
Definition at line 66 of file lotform.hxx.
|
private |
Definition at line 64 of file lotform.hxx.
Referenced by IncToken(), and Reset().
|
private |
Definition at line 65 of file lotform.hxx.
Referenced by DecToken(), and Reset().