29#include <document.hxx>
43 bool bEndOfSheet =
false;
45 SAL_INFO(
"sc",
"Read sheet " << nTab);
60 pStyle->
SetFormat( &rDoc, nCol, nRow, nTab, nStyle );
79 pStyle->
SetFormat( &rDoc, nCol, nRow, nTab, nStyle );
91 pStyle->
SetFormat( &rDoc, nCol, nRow, nTab, nStyle );
105 nStyle = nStyle >> 3;
106 pStyle->
SetFormat( &rDoc, nCol, nRow, nTab, nStyle );
124 std::unique_ptr<ScTokenArray> pArray;
132 nStyle = nStyle >> 3;
134 pStyle->
SetFormat( &rDoc, nCol, nRow, nTab, nStyle );
158 , mnMaxTab(
utl::ConfigManager::IsFuzzing() ? 128 :
MAXTAB)
177 sal_uInt16
i = 1, j = 1;
184 std::unique_ptr<ScQProStyle> pStyleElement(
new ScQProStyle );
205 eRet =
readSheet( nTab, rDoc, pStyleElement.get() );
218 pStyleElement->setAlign(
i, nAlign );
219 pStyleElement->setFont(
i, nFont );
225 sal_uInt16 nPtSize, nFontAttr;
228 pStyleElement->setFontRecord( j, nFontAttr, nPtSize );
234 pStyleElement->setFontType( j,
aLabel );
259 aDocument.SetInsertingFromOtherDoc(
true);
290 fprintf( stderr,
"Read record 0x%x length 0x%x at offset 0x%x\n",
296 int i, chunk = std::min(len, 16);
297 unsigned char data[16];
300 for (
i = 0;
i < chunk;
i++)
301 fprintf( stderr,
"%.2x ", data[
i] );
302 fprintf( stderr,
"| " );
303 for (
i = 0;
i < chunk;
i++)
304 fprintf( stderr,
"%c", data[
i] < 127 && data[
i] > 30 ? data[
i] :
'.' );
305 fprintf( stderr,
"\n" );
ConvErr Convert(const ScDocument &rDoc, std::unique_ptr< ScTokenArray > &pArray)
static SC_DLLPUBLIC void Init()
DLL-init/exit-code must be linked to the DLL only.
void SetLookUpColRowNames(bool bVal)
SC_DLLPUBLIC bool InsertTab(SCTAB nPos, const OUString &rName, bool bExternalDocument=false, bool bUndoDeleteTab=false)
SC_DLLPUBLIC ScFormulaCell * SetFormulaCell(const ScAddress &rPos, ScFormulaCell *pCell)
Set formula cell, and transfer its ownership to the document.
SC_DLLPUBLIC bool RenameTab(SCTAB nTab, const OUString &rName, bool bExternalDocument=false)
SC_DLLPUBLIC void SetTextCell(const ScAddress &rPos, const OUString &rStr)
Call this if you are not sure whether to put this as an edit text or a simple text.
SC_DLLPUBLIC void EnsureTable(SCTAB nTab)
SC_DLLPUBLIC void CalcAfterLoad(bool bStartListening=true)
@ ETERNAL
CalcAll() without broadcast/notify but setting up new listeners.
SC_DLLPUBLIC void SetValue(SCCOL nCol, SCROW nRow, SCTAB nTab, const double &rVal)
SC_DLLPUBLIC svl::SharedStringPool & GetSharedStringPool()
ErrCode import(ScDocument &rDoc)
sal_uInt16 getLength() const
OUString readString(sal_uInt16 nLength)
ErrCode parse(ScDocument &rDoc)
ScQProReader(SvStream *pStream)
ErrCode readSheet(SCTAB nTab, ScDocument &rDoc, ScQProStyle *pStyle)
void SetFormat(ScDocument *pDoc, sal_uInt8 nCol, sal_uInt16 nRow, SCTAB nTab, sal_uInt16 nStyle)
SvStream & ReadDouble(double &rDouble)
SvStream & ReadInt16(sal_Int16 &rInt16)
void SetBufferSize(sal_uInt16 m_nBufSize)
sal_uInt64 Seek(sal_uInt64 nPos)
void SetStreamCharSet(rtl_TextEncoding eCharSet)
rtl_TextEncoding GetStreamCharSet() const
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
SvStream & ReadUChar(unsigned char &rChar)
#define SAL_INFO(area, stream)
SAL_DLLPUBLIC_EXPORT bool TestImportQPW(SvStream &rStream)
#define SCERR_IMPORT_FORMAT
#define SCERR_IMPORT_OPEN
OUString read_uInt8s_ToOUString(SvStream &rStrm, std::size_t nUnits, rtl_TextEncoding eEnc)