20 #include <document.hxx>
45 sal_uInt32 nNextRec = 0;
49 STATE eCurrent = S_START;
59 while( eCurrent != S_END )
71 nNextRec += nRecLen + 4;
87 switch (rContext.eFirstType)
160 sal_uInt16 nSubType(0);
191 "*ImportLotus::Read(): Read too much..." );
194 aPrgrsBar.Progress();
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!" );
292 rContext.maAttrTable.Apply(rContext, static_cast<SCTAB>(
nExtTab));
301 "*ImportLotus::Read(): Read too much..." );
303 aPrgrsBar.Progress();
307 rContext.maAttrTable.Apply(rContext, static_cast<SCTAB>(
nExtTab));
323 LotusContext aContext(aDocument, RTL_TEXTENCODING_ASCII_US);
324 ImportLotus aLotusImport(aContext, rStream, RTL_TEXTENCODING_ASCII_US);
327 if (eRet ==
ErrCode(0xFFFFFFFF))
A simplified progress bar based on the stream position of an existing stream.
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
#define SCERR_IMPORT_UNKNOWN_WK
void Row_(const sal_uInt16 nRecLen)
sal_uInt64 Seek(sal_uInt64 nPos)
void RowPresentation(sal_uInt16 nRecLen)
void Formulacell(sal_uInt16 nRecLen)
SC_DLLPUBLIC bool RenameTab(SCTAB nTab, const OUString &rName, bool bExternalDocument=false)
SC_DLLPUBLIC SCTAB GetTableCount() const
void SetLookUpColRowNames(bool bVal)
SC_DLLPUBLIC bool HasTable(SCTAB nTab) const
void SetInsertingFromOtherDoc(bool bVal)
SC_DLLPUBLIC const ScDocOptions & GetDocOptions() const
void EnableExecuteLink(bool bVal)
ErrCode ScImportLotus123old(LotusContext &rContext, SvStream &aStream, rtl_TextEncoding eSrc)
static SC_DLLPUBLIC void Init()
DLL-init/exit-code must be linked to the DLL only.
SAL_DLLPUBLIC_EXPORT bool TestImportWKS(SvStream &rStream)
SC_DLLPUBLIC void CreateValidTabName(OUString &rName) const
void Hiddencolumn(sal_uInt16 nRecLen)
SC_DLLPUBLIC void CalcAfterLoad(bool bStartListening=true)
SC_DLLPUBLIC void SetDocOptions(const ScDocOptions &rOpt)
#define SAL_WARN_IF(condition, area, stream)
#define SCERR_IMPORT_FORMAT
LotusContext & getContext()
SfxObjectShell * GetDocumentShell() const
SC_DLLPUBLIC void MakeTable(SCTAB nTab, bool _bNeedsNameCheck=true)
SC_DLLPUBLIC bool GetName(SCTAB nTab, OUString &rName) const
void Columnwidth(sal_uInt16 nRecLen)
#define SCERR_IMPORT_FILEPASSWD