20#include <document.hxx>
45 sal_uInt32 nNextRec = 0;
49 STATE eCurrent = S_START;
59 while( eCurrent != S_END )
71 nNextRec += nRecLen + 4;
160 sal_uInt16 nSubType(0);
191 "*ImportLotus::Read(): Read too much..." );
207 aBaseName = aBaseName.copy(0, aBaseName.getLength()-1);
209 for( nCnt = 1 ; nCnt < nTabs ; nCnt++ )
212 "-ImportLotus::Read(): Where is my table?!" );
214 if( aTabName ==
"temp" )
216 aTabName = aBaseName;
240 sal_uInt32 nNextRec = 0;
259 nNextRec += nRecLen + 4;
264 if( nRecLen != 26 || !
BofFm3() )
274 "-ImportLotus::Read( SvStream& ): EOF twice!" );
301 "*ImportLotus::Read(): Read too much..." );
321 aDocument.SetInsertingFromOtherDoc(
true);
324 ImportLotus aLotusImport(aContext, rStream, RTL_TEXTENCODING_ASCII_US);
327 if (eRet ==
ErrCode(0xFFFFFFFF))
void Formulacell(sal_uInt16 nRecLen)
void Hiddencolumn(sal_uInt16 nRecLen)
void Columnwidth(sal_uInt16 nRecLen)
void Row_(const sal_uInt16 nRecLen)
void RowPresentation(sal_uInt16 nRecLen)
void Apply(LotusContext &rContext, const SCTAB nTabNum)
LotusContext & getContext()
static SC_DLLPUBLIC void Init()
DLL-init/exit-code must be linked to the DLL only.
void SetLookUpColRowNames(bool bVal)
SC_DLLPUBLIC bool RenameTab(SCTAB nTab, const OUString &rName, bool bExternalDocument=false)
SC_DLLPUBLIC void CalcAfterLoad(bool bStartListening=true)
SC_DLLPUBLIC void CreateValidTabName(OUString &rName) const
SfxObjectShell * GetDocumentShell() const
SC_DLLPUBLIC bool HasTable(SCTAB nTab) const
SC_DLLPUBLIC bool GetName(SCTAB nTab, OUString &rName) const
SC_DLLPUBLIC SCTAB GetTableCount() 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.
sal_uInt64 Seek(sal_uInt64 nPos)
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
ErrCode ScImportLotus123old(LotusContext &rContext, SvStream &aStream, rtl_TextEncoding eSrc)
#define SAL_WARN_IF(condition, area, stream)
SAL_DLLPUBLIC_EXPORT bool TestImportWKS(SvStream &rStream)
#define SCERR_IMPORT_FORMAT
#define SCERR_IMPORT_UNKNOWN_WK
#define SCERR_IMPORT_FILEPASSWD