25#include <document.hxx>
45 switch (rContext.
eTyp)
74 sal_uInt64
const nStrmSize = aStream.
TellEnd();
76 while (!rContext.
bEOF && aStream.
good() && (aStream.
Tell() < nStrmSize))
92 else if( nOpcode < nOps )
93 pOps[ nOpcode ] (rContext, aStream,
nLength);
98 aStream.ReadUInt16( nOpcode ).ReadUInt16(
nLength );
99 if ( nOpcode == 0x29a)
102 aStream.ReadUInt16( nOpcode ).ReadUInt16(
nLength );
103 if ( nOpcode == 0x804 )
132 sal_uInt16 nOpcode(0), nVersNr(0), nRecLen(0);
162 if( nVersNr == 0x0004 && nRecLen == 26 )
171 if( nRecLen == 0x1a )
176 if( nRecLen == 0x1a )
190 rContext.
bEOF =
false;
SC_DLLPUBLIC void CalcAfterLoad(bool bStartListening=true)
SfxObjectShell * GetDocumentShell() const
A simplified progress bar based on the stream position of an existing stream.
void Progress()
Sets the progress bar to the current stream position.
virtual sal_uInt64 TellEnd()
sal_uInt64 Seek(sal_uInt64 nPos)
std::size_t ReadBytes(void *pData, std::size_t nSize)
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
static WKTYP ScanVersion(SvStream &aStream)
static ErrCode generate_Opcodes(LotusContext &rContext, SvStream &aStream, ScfStreamProgressBar &aPrgrsBar)
ErrCode ScImportLotus123old(LotusContext &rContext, SvStream &aStream, rtl_TextEncoding eSrc)
void OP_ApplyPatternArea123(LotusContext &rContext, SvStream &r)
void(* OPCODE_FKT)(LotusContext &rContext, SvStream &rStream, sal_uInt16 nLength)
#define SCERR_IMPORT_OUTOFMEM
#define SCERR_IMPORT_FORMAT
#define SCERR_IMPORT_UNKNOWN_WK
#define SCERR_IMPORT_FILEPASSWD
bool MemNew(LotusContext &rContext)
void MemDelete(LotusContext &rContext)
#define STREAM_SEEK_TO_BEGIN
static OPCODE_FKT pOpFkt[FKT_LIMIT]
std::map< sal_uInt16, ScPatternAttr > aLotusPatternPool
static const sal_uInt16 nBOF
static OPCODE_FKT pOpFkt123[FKT_LIMIT123]
rtl_TextEncoding eCharset