LibreOffice Module sc (master) 1
|
#include <qpro.hxx>
Public Member Functions | |
ScQProReader (SvStream *pStream) | |
~ScQProReader () | |
bool | recordsLeft () |
void | SetEof (bool bValue) |
bool | nextRecord () |
sal_uInt16 | getId () const |
sal_uInt16 | getLength () const |
OUString | readString (sal_uInt16 nLength) |
ErrCode | parse (ScDocument &rDoc) |
ErrCode | import (ScDocument &rDoc) |
ErrCode | readSheet (SCTAB nTab, ScDocument &rDoc, ScQProStyle *pStyle) |
Private Attributes | |
sal_uInt16 | mnId |
sal_uInt16 | mnLength |
sal_uInt32 | mnOffset |
SvStream * | mpStream |
bool | mbEndOfFile |
const SCTAB | mnMaxTab |
ScQProReader::ScQProReader | ( | SvStream * | pStream | ) |
Definition at line 152 of file qpro.cxx.
References mnId, mpStream, SvStream::SetBufferSize(), and SvStream::SetStreamCharSet().
ScQProReader::~ScQProReader | ( | ) |
Definition at line 167 of file qpro.cxx.
References mpStream, and SvStream::SetBufferSize().
|
inline |
|
inline |
Definition at line 49 of file qpro.hxx.
References mnLength.
Referenced by parse(), and readSheet().
ErrCode ScQProReader::import | ( | ScDocument & | rDoc | ) |
Definition at line 243 of file qpro.cxx.
References ScDocument::CalcAfterLoad(), and parse().
Referenced by ScFormatFilterPluginImpl::ScImportQuattroPro().
bool ScQProReader::nextRecord | ( | ) |
Definition at line 273 of file qpro.cxx.
References i, mbEndOfFile, mnId, mnLength, mnOffset, mpStream, nPos, SvStream::ReadUInt16(), recordsLeft(), SvStream::Seek(), and SvStream::Tell().
Referenced by parse(), and readSheet().
ErrCode ScQProReader::parse | ( | ScDocument & | rDoc | ) |
Definition at line 173 of file qpro.cxx.
References aLabel, aName, ERRCODE_NONE, getId(), getLength(), i, ScDocument::InsertTab(), mnMaxTab, mpStream, nextRecord(), nVersion, SvStream::ReadInt16(), readSheet(), readString(), SvStream::ReadUChar(), SvStream::ReadUInt16(), recordsLeft(), ScDocument::RenameTab(), SCERR_IMPORT_FORMAT, SCERR_IMPORT_OPEN, and SetEof().
Referenced by import(), and TestImportQPW().
ErrCode ScQProReader::readSheet | ( | SCTAB | nTab, |
ScDocument & | rDoc, | ||
ScQProStyle * | pStyle | ||
) |
Definition at line 37 of file qpro.cxx.
References ScFormulaCell::AddRecalcMode(), aLabel, QProToSc::Convert(), ScDocument::EnsureTable(), ERRCODE_NONE, getId(), getLength(), ScDocument::GetSharedStringPool(), SvStream::good(), mpStream, nextRecord(), nState, nValue, OK, SvStream::ReadDouble(), SvStream::ReadInt16(), readString(), SvStream::ReadUChar(), SvStream::ReadUInt16(), SAL_INFO, SCERR_IMPORT_FORMAT, ScQProStyle::SetFormat(), ScDocument::SetFormulaCell(), ScDocument::SetTextCell(), and ScDocument::SetValue().
Referenced by parse().
OUString ScQProReader::readString | ( | sal_uInt16 | nLength | ) |
Definition at line 315 of file qpro.cxx.
References SvStream::GetStreamCharSet(), mpStream, nLength, and read_uInt8s_ToOUString().
Referenced by parse(), and readSheet().
bool ScQProReader::recordsLeft | ( | ) |
Definition at line 268 of file qpro.cxx.
References SvStream::good(), and mpStream.
Referenced by nextRecord(), and parse().
|
inline |
|
private |
Definition at line 38 of file qpro.hxx.
Referenced by nextRecord(), and SetEof().
|
private |
Definition at line 34 of file qpro.hxx.
Referenced by getId(), and nextRecord().
|
private |
Definition at line 35 of file qpro.hxx.
Referenced by getLength(), and nextRecord().
|
private |
|
private |
Definition at line 36 of file qpro.hxx.
Referenced by nextRecord().
|
private |
Definition at line 37 of file qpro.hxx.
Referenced by nextRecord(), parse(), readSheet(), readString(), recordsLeft(), ScQProReader(), and ~ScQProReader().