Lines Matching refs:rStrm
56 sal_uInt16 lclReadFmlaSize( BiffInputStream& rStrm, BiffType eBiff, const sal_uInt16* pnFmlaSize ) in lclReadFmlaSize() argument
58 return pnFmlaSize ? *pnFmlaSize : ((eBiff == BIFF2) ? rStrm.readuInt8() : rStrm.readuInt16()); in lclReadFmlaSize()
448 SequenceInputStream& rStrm );
454 BiffInputStream& rStrm, const sal_uInt16* pnFmlaSize );
1282 SequenceInputStream& rStrm );
1287 bool importAttrToken( SequenceInputStream& rStrm );
1288 bool importSpaceToken( SequenceInputStream& rStrm );
1289 bool importTableToken( SequenceInputStream& rStrm );
1290 bool importArrayToken( SequenceInputStream& rStrm );
1291 …bool importRefToken( SequenceInputStream& rStrm, bool bDeleted, bool bRelativeAsOff…
1292 …bool importAreaToken( SequenceInputStream& rStrm, bool bDeleted, bool bRelativeAsOf…
1293 …bool importRef3dToken( SequenceInputStream& rStrm, bool bDeleted, bool bRelativeAsO…
1294 …bool importArea3dToken( SequenceInputStream& rStrm, bool bDeleted, bool bRelativeAs…
1295 bool importMemAreaToken( SequenceInputStream& rStrm, bool bAddData );
1296 bool importMemFuncToken( SequenceInputStream& rStrm );
1297 bool importNameToken( SequenceInputStream& rStrm );
1298 bool importNameXToken( SequenceInputStream& rStrm );
1299 bool importFuncToken( SequenceInputStream& rStrm );
1300 bool importFuncVarToken( SequenceInputStream& rStrm );
1301 bool importExpToken( SequenceInputStream& rStrm );
1303 LinkSheetRange readSheetRange( SequenceInputStream& rStrm );
1305 void swapStreamPosition( SequenceInputStream& rStrm );
1306 void skipMemAreaAddData( SequenceInputStream& rStrm );
1341 …:importBiff12Formula( const CellAddress& rBaseAddr, FormulaType eType, SequenceInputStream& rStrm ) in importBiff12Formula() argument
1345 sal_Int32 nFmlaSize = rStrm.readInt32(); in importBiff12Formula()
1346 sal_Int64 nFmlaPos = rStrm.tell(); in importBiff12Formula()
1349 rStrm.seek( nFmlaEndPos ); in importBiff12Formula()
1350 sal_Int32 nAddDataSize = rStrm.readInt32(); in importBiff12Formula()
1351 mnAddDataPos = rStrm.tell(); in importBiff12Formula()
1353 rStrm.seek( nFmlaPos ); in importBiff12Formula()
1358 while( bOk && !rStrm.isEof() && (rStrm.tell() < nFmlaEndPos) ) in importBiff12Formula()
1361 rStrm >> nTokenId; in importBiff12Formula()
1370 …case BIFF_TOKID_EXP: bOk = importExpToken( rStrm ); br… in importBiff12Formula()
1391 …case BIFF_TOKID_STR: bOk = pushValueOperand( BiffHelper::readString( rStrm, false ) ); br… in importBiff12Formula()
1392 …case BIFF_TOKID_NLR: bOk = importTableToken( rStrm ); br… in importBiff12Formula()
1393 …case BIFF_TOKID_ATTR: bOk = importAttrToken( rStrm ); br… in importBiff12Formula()
1394 …case BIFF_TOKID_ERR: bOk = pushBiffErrorOperand( rStrm.readuInt8() ); br… in importBiff12Formula()
1395 …case BIFF_TOKID_BOOL: bOk = pushBiffBoolOperand( rStrm.readuInt8() ); br… in importBiff12Formula()
1396 …case BIFF_TOKID_INT: bOk = pushValueOperand< double >( rStrm.readuInt16() ); br… in importBiff12Formula()
1397 …case BIFF_TOKID_NUM: bOk = pushValueOperand( rStrm.readDouble() ); br… in importBiff12Formula()
1406 … case BIFF_TOKID_ARRAY: bOk = importArrayToken( rStrm ); break; in importBiff12Formula()
1407 … case BIFF_TOKID_FUNC: bOk = importFuncToken( rStrm ); break; in importBiff12Formula()
1408 … case BIFF_TOKID_FUNCVAR: bOk = importFuncVarToken( rStrm ); break; in importBiff12Formula()
1409 … case BIFF_TOKID_NAME: bOk = importNameToken( rStrm ); break; in importBiff12Formula()
1410 … case BIFF_TOKID_REF: bOk = importRefToken( rStrm, false, false ); break; in importBiff12Formula()
1411 … case BIFF_TOKID_AREA: bOk = importAreaToken( rStrm, false, false ); break; in importBiff12Formula()
1412 … case BIFF_TOKID_MEMAREA: bOk = importMemAreaToken( rStrm, true ); break; in importBiff12Formula()
1413 … case BIFF_TOKID_MEMERR: bOk = importMemAreaToken( rStrm, false ); break; in importBiff12Formula()
1414 … case BIFF_TOKID_MEMNOMEM: bOk = importMemAreaToken( rStrm, false ); break; in importBiff12Formula()
1415 … case BIFF_TOKID_MEMFUNC: bOk = importMemFuncToken( rStrm ); break; in importBiff12Formula()
1416 … case BIFF_TOKID_REFERR: bOk = importRefToken( rStrm, true, false ); break; in importBiff12Formula()
1417 … case BIFF_TOKID_AREAERR: bOk = importAreaToken( rStrm, true, false ); break; in importBiff12Formula()
1418 … case BIFF_TOKID_REFN: bOk = importRefToken( rStrm, false, true ); break; in importBiff12Formula()
1419 … case BIFF_TOKID_AREAN: bOk = importAreaToken( rStrm, false, true ); break; in importBiff12Formula()
1420 … case BIFF_TOKID_MEMAREAN: bOk = importMemFuncToken( rStrm ); break; in importBiff12Formula()
1421 … case BIFF_TOKID_MEMNOMEMN: bOk = importMemFuncToken( rStrm ); break; in importBiff12Formula()
1422 … case BIFF_TOKID_NAMEX: bOk = importNameXToken( rStrm ); break; in importBiff12Formula()
1423 … case BIFF_TOKID_REF3D: bOk = importRef3dToken( rStrm, false, bRelativeAsOffset ); break; in importBiff12Formula()
1424 … case BIFF_TOKID_AREA3D: bOk = importArea3dToken( rStrm, false, bRelativeAsOffset ); break; in importBiff12Formula()
1425 … case BIFF_TOKID_REFERR3D: bOk = importRef3dToken( rStrm, true, bRelativeAsOffset ); break; in importBiff12Formula()
1426 … case BIFF_TOKID_AREAERR3D: bOk = importArea3dToken( rStrm, true, bRelativeAsOffset ); break; in importBiff12Formula()
1434 if( bOk && (rStrm.tell() == nFmlaEndPos) && (mnAddDataPos == nAddDataEndPos) ) in importBiff12Formula()
1439 rStrm.seek( nAddDataEndPos ); in importBiff12Formula()
1447 bool OoxFormulaParserImpl::importAttrToken( SequenceInputStream& rStrm ) in importAttrToken() argument
1451 rStrm >> nType; in importAttrToken()
1461 rStrm.skip( 2 ); in importAttrToken()
1464 rStrm.skip( 2 * rStrm.readuInt16() + 2 ); in importAttrToken()
1467 rStrm.skip( 2 ); in importAttrToken()
1472 bOk = importSpaceToken( rStrm ); in importAttrToken()
1480 bool OoxFormulaParserImpl::importSpaceToken( SequenceInputStream& rStrm ) in importSpaceToken() argument
1484 rStrm >> nType >> nCount; in importSpaceToken()
1509 bool OoxFormulaParserImpl::importTableToken( SequenceInputStream& rStrm ) in importTableToken() argument
1512 rStrm.skip( 3 ); in importTableToken()
1513 rStrm >> nFlags >> nTableId; in importTableToken()
1514 rStrm.skip( 2 ); in importTableToken()
1515 rStrm >> nCol1 >> nCol2; in importTableToken()
1634 bool OoxFormulaParserImpl::importArrayToken( SequenceInputStream& rStrm ) in importArrayToken() argument
1636 rStrm.skip( 14 ); in importArrayToken()
1644 swapStreamPosition( rStrm ); in importArrayToken()
1645 sal_Int32 nRows = rStrm.readInt32(); in importArrayToken()
1646 sal_Int32 nCols = rStrm.readInt32(); in importArrayToken()
1650 for( sal_Int32 nRow = 0; !rStrm.isEof() && (nRow < nRows); ++nRow ) in importArrayToken()
1654 for( sal_Int32 nCol = 0; !rStrm.isEof() && (nCol < nCols); ++nCol ) in importArrayToken()
1658 switch( rStrm.readuInt8() ) in importArrayToken()
1661 appendRawToken( OPCODE_PUSH ) <<= rStrm.readDouble(); in importArrayToken()
1664 appendRawToken( OPCODE_PUSH ) <<= BiffHelper::readString( rStrm, false ); in importArrayToken()
1667 …appendRawToken( OPCODE_PUSH ) <<= static_cast< double >( (rStrm.readuInt8() == BIFF_TOK_BOOL_FALSE… in importArrayToken()
1670 … appendRawToken( OPCODE_PUSH ) <<= BiffHelper::calcDoubleFromError( rStrm.readuInt8() ); in importArrayToken()
1671 rStrm.skip( 3 ); in importArrayToken()
1679 swapStreamPosition( rStrm ); in importArrayToken()
1687 bool OoxFormulaParserImpl::importRefToken( SequenceInputStream& rStrm, bool bDeleted, bool bRelativ… in importRefToken() argument
1690 aRef.readBiff12Data( rStrm, bRelativeAsOffset ); in importRefToken()
1694 bool OoxFormulaParserImpl::importAreaToken( SequenceInputStream& rStrm, bool bDeleted, bool bRelati… in importAreaToken() argument
1697 aRef.readBiff12Data( rStrm, bRelativeAsOffset ); in importAreaToken()
1701 bool OoxFormulaParserImpl::importRef3dToken( SequenceInputStream& rStrm, bool bDeleted, bool bRelat… in importRef3dToken() argument
1703 LinkSheetRange aSheetRange = readSheetRange( rStrm ); in importRef3dToken()
1705 aRef.readBiff12Data( rStrm, bRelativeAsOffset ); in importRef3dToken()
1709 bool OoxFormulaParserImpl::importArea3dToken( SequenceInputStream& rStrm, bool bDeleted, bool bRela… in importArea3dToken() argument
1711 LinkSheetRange aSheetRange = readSheetRange( rStrm ); in importArea3dToken()
1713 aRef.readBiff12Data( rStrm, bRelativeAsOffset ); in importArea3dToken()
1717 bool OoxFormulaParserImpl::importMemAreaToken( SequenceInputStream& rStrm, bool bAddData ) in importMemAreaToken() argument
1719 rStrm.skip( 6 ); in importMemAreaToken()
1721 skipMemAreaAddData( rStrm ); in importMemAreaToken()
1725 bool OoxFormulaParserImpl::importMemFuncToken( SequenceInputStream& rStrm ) in importMemFuncToken() argument
1727 rStrm.skip( 2 ); in importMemFuncToken()
1731 bool OoxFormulaParserImpl::importNameToken( SequenceInputStream& rStrm ) in importNameToken() argument
1733 return pushBiff12Name( rStrm.readInt32() ); in importNameToken()
1736 bool OoxFormulaParserImpl::importNameXToken( SequenceInputStream& rStrm ) in importNameXToken() argument
1738 sal_Int32 nRefId = rStrm.readInt16(); in importNameXToken()
1739 sal_Int32 nNameId = rStrm.readInt32(); in importNameXToken()
1743 bool OoxFormulaParserImpl::importFuncToken( SequenceInputStream& rStrm ) in importFuncToken() argument
1746 rStrm >> nFuncId; in importFuncToken()
1750 bool OoxFormulaParserImpl::importFuncVarToken( SequenceInputStream& rStrm ) in importFuncVarToken() argument
1754 rStrm >> nParamCount >> nFuncId; in importFuncVarToken()
1758 bool OoxFormulaParserImpl::importExpToken( SequenceInputStream& rStrm ) in importExpToken() argument
1761 rStrm >> aBaseAddr.mnRow; in importExpToken()
1762 swapStreamPosition( rStrm ); in importExpToken()
1763 rStrm >> aBaseAddr.mnCol; in importExpToken()
1764 swapStreamPosition( rStrm ); in importExpToken()
1768 LinkSheetRange OoxFormulaParserImpl::readSheetRange( SequenceInputStream& rStrm ) in readSheetRange() argument
1770 return getExternalLinks().getSheetRange( rStrm.readInt16() ); in readSheetRange()
1773 void OoxFormulaParserImpl::swapStreamPosition( SequenceInputStream& rStrm ) in swapStreamPosition() argument
1775 sal_Int64 nRecPos = rStrm.tell(); in swapStreamPosition()
1776 rStrm.seek( mnAddDataPos ); in swapStreamPosition()
1780 void OoxFormulaParserImpl::skipMemAreaAddData( SequenceInputStream& rStrm ) in skipMemAreaAddData() argument
1782 swapStreamPosition( rStrm ); in skipMemAreaAddData()
1783 rStrm.skip( 16 * rStrm.readInt32() ); in skipMemAreaAddData()
1784 swapStreamPosition( rStrm ); in skipMemAreaAddData()
1838 void readBiff8Data( BiffInputStream& rStrm );
1848 void BiffNlr::readBiff8Data( BiffInputStream& rStrm ) in readBiff8Data() argument
1851 rStrm >> nRow >> nCol; in readBiff8Data()
1883 BiffInputStream& rStrm, const sal_uInt16* pnFmlaSize );
1888 bool importTokenNotAvailable( BiffInputStream& rStrm );
1889 …bool importRefTokenNotAvailable( BiffInputStream& rStrm, bool bDeleted, bool bRelat…
1890 bool importStrToken2( BiffInputStream& rStrm );
1891 bool importStrToken8( BiffInputStream& rStrm );
1892 bool importAttrToken( BiffInputStream& rStrm );
1893 bool importSpaceToken3( BiffInputStream& rStrm );
1894 bool importSpaceToken4( BiffInputStream& rStrm );
1895 bool importSheetToken2( BiffInputStream& rStrm );
1896 bool importSheetToken3( BiffInputStream& rStrm );
1897 bool importEndSheetToken2( BiffInputStream& rStrm );
1898 bool importEndSheetToken3( BiffInputStream& rStrm );
1899 bool importNlrToken( BiffInputStream& rStrm );
1900 bool importArrayToken( BiffInputStream& rStrm );
1901 …bool importRefToken2( BiffInputStream& rStrm, bool bDeleted, bool bRelativeAsOffset…
1902 …bool importRefToken8( BiffInputStream& rStrm, bool bDeleted, bool bRelativeAsOffset…
1903 …bool importAreaToken2( BiffInputStream& rStrm, bool bDeleted, bool bRelativeAsOffse…
1904 …bool importAreaToken8( BiffInputStream& rStrm, bool bDeleted, bool bRelativeAsOffse…
1905 …bool importRef3dToken5( BiffInputStream& rStrm, bool bDeleted, bool bRelativeAsOffs…
1906 …bool importRef3dToken8( BiffInputStream& rStrm, bool bDeleted, bool bRelativeAsOffs…
1907 …bool importArea3dToken5( BiffInputStream& rStrm, bool bDeleted, bool bRelativeAsOff…
1908 …bool importArea3dToken8( BiffInputStream& rStrm, bool bDeleted, bool bRelativeAsOff…
1909 bool importMemAreaToken( BiffInputStream& rStrm, bool bAddData );
1910 bool importMemFuncToken( BiffInputStream& rStrm );
1911 bool importNameToken( BiffInputStream& rStrm );
1912 bool importNameXToken( BiffInputStream& rStrm );
1913 bool importFuncToken2( BiffInputStream& rStrm );
1914 bool importFuncToken4( BiffInputStream& rStrm );
1915 bool importFuncVarToken2( BiffInputStream& rStrm );
1916 bool importFuncVarToken4( BiffInputStream& rStrm );
1917 bool importFuncCEToken( BiffInputStream& rStrm );
1918 bool importExpToken( BiffInputStream& rStrm );
1919 bool importTblToken( BiffInputStream& rStrm );
1921 bool importNlrAddrToken( BiffInputStream& rStrm, bool bRow );
1922 bool importNlrRangeToken( BiffInputStream& rStrm );
1923 bool importNlrSAddrToken( BiffInputStream& rStrm, bool bRow );
1924 bool importNlrSRangeToken( BiffInputStream& rStrm );
1925 bool importNlrErrToken( BiffInputStream& rStrm, sal_uInt16 nSkip );
1927 sal_Int32 readRefId( BiffInputStream& rStrm );
1928 sal_uInt16 readNameId( BiffInputStream& rStrm );
1929 LinkSheetRange readSheetRange5( BiffInputStream& rStrm );
1930 LinkSheetRange readSheetRange8( BiffInputStream& rStrm );
1932 void swapStreamPosition( BiffInputStream& rStrm );
1933 void skipMemAreaAddData( BiffInputStream& rStrm );
1934 bool readNlrSAddrAddData( BiffNlr& orNlr, BiffInputStream& rStrm, bool bRow );
1935 …bool readNlrSRangeAddData( BiffNlr& orNlr, bool& orbIsRow, BiffInputStream& rStrm );
2097 FormulaType eType, BiffInputStream& rStrm, const sal_uInt16* pnFmlaSize ) in importBiffFormula() argument
2102 sal_uInt16 nFmlaSize = lclReadFmlaSize( rStrm, getBiff(), pnFmlaSize ); in importBiffFormula()
2103 sal_Int64 nEndPos = mnAddDataPos = rStrm.tell() + nFmlaSize; in importBiffFormula()
2106 while( bOk && !rStrm.isEof() && (rStrm.tell() < nEndPos) ) in importBiffFormula()
2109 rStrm >> nTokenId; in importBiffFormula()
2121 … case BIFF_TOKID_EXP: bOk = importExpToken( rStrm ); break; in importBiffFormula()
2122 … case BIFF_TOKID_TBL: bOk = importTblToken( rStrm ); break; in importBiffFormula()
2143 … case BIFF_TOKID_STR: bOk = (this->*mpImportStrToken)( rStrm ); break; in importBiffFormula()
2144 … case BIFF_TOKID_NLR: bOk = (this->*mpImportNlrToken)( rStrm ); break; in importBiffFormula()
2145 … case BIFF_TOKID_ATTR: bOk = importAttrToken( rStrm ); break; in importBiffFormula()
2146 … case BIFF_TOKID_SHEET: bOk = (this->*mpImportSheetToken)( rStrm ); break; in importBiffFormula()
2147 … case BIFF_TOKID_ENDSHEET: bOk = (this->*mpImportEndSheetToken)( rStrm ); break; in importBiffFormula()
2148 … case BIFF_TOKID_ERR: bOk = pushBiffErrorOperand( rStrm.readuInt8() ); break; in importBiffFormula()
2149 … case BIFF_TOKID_BOOL: bOk = pushBiffBoolOperand( rStrm.readuInt8() ); break; in importBiffFormula()
2150 … case BIFF_TOKID_INT: bOk = pushValueOperand< double >( rStrm.readuInt16() ); break; in importBiffFormula()
2151 … case BIFF_TOKID_NUM: bOk = pushValueOperand( rStrm.readDouble() ); break; in importBiffFormula()
2160 …case BIFF_TOKID_ARRAY: bOk = importArrayToken( rStrm ); … in importBiffFormula()
2161 …case BIFF_TOKID_FUNC: bOk = (this->*mpImportFuncToken)( rStrm ); … in importBiffFormula()
2162 …case BIFF_TOKID_FUNCVAR: bOk = (this->*mpImportFuncVarToken)( rStrm ); … in importBiffFormula()
2163 …case BIFF_TOKID_NAME: bOk = importNameToken( rStrm ); … in importBiffFormula()
2164 …case BIFF_TOKID_REF: bOk = (this->*mpImportRefToken)( rStrm, false, false ); … in importBiffFormula()
2165 …case BIFF_TOKID_AREA: bOk = (this->*mpImportAreaToken)( rStrm, false, false ); … in importBiffFormula()
2166 …case BIFF_TOKID_MEMAREA: bOk = importMemAreaToken( rStrm, true ); … in importBiffFormula()
2167 …case BIFF_TOKID_MEMERR: bOk = importMemAreaToken( rStrm, false ); … in importBiffFormula()
2168 …case BIFF_TOKID_MEMNOMEM: bOk = importMemAreaToken( rStrm, false ); … in importBiffFormula()
2169 …case BIFF_TOKID_MEMFUNC: bOk = importMemFuncToken( rStrm ); … in importBiffFormula()
2170 …case BIFF_TOKID_REFERR: bOk = (this->*mpImportRefToken)( rStrm, true, false ); … in importBiffFormula()
2171 …case BIFF_TOKID_AREAERR: bOk = (this->*mpImportAreaToken)( rStrm, true, false ); … in importBiffFormula()
2172 …case BIFF_TOKID_REFN: bOk = (this->*mpImportRefToken)( rStrm, false, true ); … in importBiffFormula()
2173 …case BIFF_TOKID_AREAN: bOk = (this->*mpImportAreaToken)( rStrm, false, true ); … in importBiffFormula()
2174 …case BIFF_TOKID_MEMAREAN: bOk = importMemFuncToken( rStrm ); … in importBiffFormula()
2175 …case BIFF_TOKID_MEMNOMEMN: bOk = importMemFuncToken( rStrm ); … in importBiffFormula()
2176 …case BIFF_TOKID_FUNCCE: bOk = (this->*mpImportFuncCEToken)( rStrm ); … in importBiffFormula()
2177 …case BIFF_TOKID_NAMEX: bOk = (this->*mpImportNameXToken)( rStrm ); … in importBiffFormula()
2178 …case BIFF_TOKID_REF3D: bOk = (this->*mpImportRef3dToken)( rStrm, false, mbRelativeAsOffset );… in importBiffFormula()
2179 …case BIFF_TOKID_AREA3D: bOk = (this->*mpImportArea3dToken)( rStrm, false, mbRelativeAsOffset )… in importBiffFormula()
2180 …case BIFF_TOKID_REFERR3D: bOk = (this->*mpImportRef3dToken)( rStrm, true, mbRelativeAsOffset ); … in importBiffFormula()
2181 …case BIFF_TOKID_AREAERR3D: bOk = (this->*mpImportArea3dToken)( rStrm, true, mbRelativeAsOffset );… in importBiffFormula()
2190 if( bOk && (rStrm.tell() == nEndPos) ) in importBiffFormula()
2194 rStrm.seek( mnAddDataPos ); in importBiffFormula()
2214 bool BiffFormulaParserImpl::importStrToken2( BiffInputStream& rStrm ) in importStrToken2() argument
2216 return pushValueOperand( rStrm.readByteStringUC( false, getTextEncoding(), mbAllowNulChars ) ); in importStrToken2()
2219 bool BiffFormulaParserImpl::importStrToken8( BiffInputStream& rStrm ) in importStrToken8() argument
2222 return pushValueOperand( rStrm.readUniStringBody( rStrm.readuInt8(), mbAllowNulChars ) ); in importStrToken8()
2225 bool BiffFormulaParserImpl::importAttrToken( BiffInputStream& rStrm ) in importAttrToken() argument
2229 rStrm >> nType; in importAttrToken()
2237 rStrm.skip( mnAttrDataSize ); in importAttrToken()
2240 …rStrm.skip( mnAttrDataSize * (1 + ((getBiff() == BIFF2) ? rStrm.readuInt8() : rStrm.readuInt16()))… in importAttrToken()
2243 rStrm.skip( mnAttrDataSize ); in importAttrToken()
2248 bOk = (this->*mpImportSpaceToken)( rStrm ); in importAttrToken()
2256 bool BiffFormulaParserImpl::importSpaceToken3( BiffInputStream& rStrm ) in importSpaceToken3() argument
2258 rStrm.skip( 2 ); in importSpaceToken3()
2262 bool BiffFormulaParserImpl::importSpaceToken4( BiffInputStream& rStrm ) in importSpaceToken4() argument
2265 rStrm >> nType >> nCount; in importSpaceToken4()
2290 bool BiffFormulaParserImpl::importSheetToken2( BiffInputStream& rStrm ) in importSheetToken2() argument
2292 rStrm.skip( 4 ); in importSheetToken2()
2293 mnCurrRefId = readRefId( rStrm ); in importSheetToken2()
2297 bool BiffFormulaParserImpl::importSheetToken3( BiffInputStream& rStrm ) in importSheetToken3() argument
2299 rStrm.skip( 6 ); in importSheetToken3()
2300 mnCurrRefId = readRefId( rStrm ); in importSheetToken3()
2304 bool BiffFormulaParserImpl::importEndSheetToken2( BiffInputStream& rStrm ) in importEndSheetToken2() argument
2306 rStrm.skip( 3 ); in importEndSheetToken2()
2311 bool BiffFormulaParserImpl::importEndSheetToken3( BiffInputStream& rStrm ) in importEndSheetToken3() argument
2313 rStrm.skip( 4 ); in importEndSheetToken3()
2318 bool BiffFormulaParserImpl::importNlrToken( BiffInputStream& rStrm ) in importNlrToken() argument
2322 rStrm >> nNlrType; in importNlrToken()
2325 case BIFF_TOK_NLR_ERR: bOk = importNlrErrToken( rStrm, 4 ); break; in importNlrToken()
2326 case BIFF_TOK_NLR_ROWR: bOk = importNlrAddrToken( rStrm, true ); break; in importNlrToken()
2327 case BIFF_TOK_NLR_COLR: bOk = importNlrAddrToken( rStrm, false ); break; in importNlrToken()
2328 case BIFF_TOK_NLR_ROWV: bOk = importNlrAddrToken( rStrm, true ); break; in importNlrToken()
2329 case BIFF_TOK_NLR_COLV: bOk = importNlrAddrToken( rStrm, false ); break; in importNlrToken()
2330 case BIFF_TOK_NLR_RANGE: bOk = importNlrRangeToken( rStrm ); break; in importNlrToken()
2331 case BIFF_TOK_NLR_SRANGE: bOk = importNlrSRangeToken( rStrm ); break; in importNlrToken()
2332 case BIFF_TOK_NLR_SROWR: bOk = importNlrSAddrToken( rStrm, true ); break; in importNlrToken()
2333 case BIFF_TOK_NLR_SCOLR: bOk = importNlrSAddrToken( rStrm, false ); break; in importNlrToken()
2334 case BIFF_TOK_NLR_SROWV: bOk = importNlrSAddrToken( rStrm, true ); break; in importNlrToken()
2335 case BIFF_TOK_NLR_SCOLV: bOk = importNlrSAddrToken( rStrm, false ); break; in importNlrToken()
2336 case BIFF_TOK_NLR_RANGEERR: bOk = importNlrErrToken( rStrm, 13 ); break; in importNlrToken()
2337 case BIFF_TOK_NLR_SXNAME: bOk = importNlrErrToken( rStrm, 4 ); break; in importNlrToken()
2343 bool BiffFormulaParserImpl::importArrayToken( BiffInputStream& rStrm ) in importArrayToken() argument
2345 rStrm.skip( mnArraySize ); in importArrayToken()
2354 swapStreamPosition( rStrm ); in importArrayToken()
2355 sal_uInt16 nCols = rStrm.readuInt8(); in importArrayToken()
2356 sal_uInt16 nRows = rStrm.readuInt16(); in importArrayToken()
2361 for( sal_uInt16 nRow = 0; !rStrm.isEof() && (nRow < nRows); ++nRow ) in importArrayToken()
2365 for( sal_uInt16 nCol = 0; !rStrm.isEof() && (nCol < nCols); ++nCol ) in importArrayToken()
2369 switch( rStrm.readuInt8() ) in importArrayToken()
2373 rStrm.skip( 8 ); in importArrayToken()
2376 appendRawToken( OPCODE_PUSH ) <<= rStrm.readDouble(); in importArrayToken()
2380 rStrm.readUniString( mbAllowNulChars ) : in importArrayToken()
2381 rStrm.readByteStringUC( false, getTextEncoding(), mbAllowNulChars ); in importArrayToken()
2384 …appendRawToken( OPCODE_PUSH ) <<= static_cast< double >( (rStrm.readuInt8() == BIFF_TOK_BOOL_FALSE… in importArrayToken()
2385 rStrm.skip( 7 ); in importArrayToken()
2388 … appendRawToken( OPCODE_PUSH ) <<= BiffHelper::calcDoubleFromError( rStrm.readuInt8() ); in importArrayToken()
2389 rStrm.skip( 7 ); in importArrayToken()
2397 swapStreamPosition( rStrm ); in importArrayToken()
2405 bool BiffFormulaParserImpl::importRefToken2( BiffInputStream& rStrm, bool bDeleted, bool bRelativeA… in importRefToken2() argument
2408 aRef.readBiff2Data( rStrm, bRelativeAsOffset ); in importRefToken2()
2412 bool BiffFormulaParserImpl::importRefToken8( BiffInputStream& rStrm, bool bDeleted, bool bRelativeA… in importRefToken8() argument
2415 aRef.readBiff8Data( rStrm, bRelativeAsOffset ); in importRefToken8()
2419 bool BiffFormulaParserImpl::importAreaToken2( BiffInputStream& rStrm, bool bDeleted, bool bRelative… in importAreaToken2() argument
2422 aRef.readBiff2Data( rStrm, bRelativeAsOffset ); in importAreaToken2()
2426 bool BiffFormulaParserImpl::importAreaToken8( BiffInputStream& rStrm, bool bDeleted, bool bRelative… in importAreaToken8() argument
2429 aRef.readBiff8Data( rStrm, bRelativeAsOffset ); in importAreaToken8()
2433 bool BiffFormulaParserImpl::importRef3dToken5( BiffInputStream& rStrm, bool bDeleted, bool bRelativ… in importRef3dToken5() argument
2435 LinkSheetRange aSheetRange = readSheetRange5( rStrm ); in importRef3dToken5()
2437 aRef.readBiff2Data( rStrm, bRelativeAsOffset ); in importRef3dToken5()
2441 bool BiffFormulaParserImpl::importRef3dToken8( BiffInputStream& rStrm, bool bDeleted, bool bRelativ… in importRef3dToken8() argument
2443 LinkSheetRange aSheetRange = readSheetRange8( rStrm ); in importRef3dToken8()
2445 aRef.readBiff8Data( rStrm, bRelativeAsOffset ); in importRef3dToken8()
2449 bool BiffFormulaParserImpl::importArea3dToken5( BiffInputStream& rStrm, bool bDeleted, bool bRelati… in importArea3dToken5() argument
2451 LinkSheetRange aSheetRange = readSheetRange5( rStrm ); in importArea3dToken5()
2453 aRef.readBiff2Data( rStrm, bRelativeAsOffset ); in importArea3dToken5()
2457 bool BiffFormulaParserImpl::importArea3dToken8( BiffInputStream& rStrm, bool bDeleted, bool bRelati… in importArea3dToken8() argument
2459 LinkSheetRange aSheetRange = readSheetRange8( rStrm ); in importArea3dToken8()
2461 aRef.readBiff8Data( rStrm, bRelativeAsOffset ); in importArea3dToken8()
2465 bool BiffFormulaParserImpl::importMemAreaToken( BiffInputStream& rStrm, bool bAddData ) in importMemAreaToken() argument
2467 rStrm.skip( mnMemAreaSize ); in importMemAreaToken()
2469 skipMemAreaAddData( rStrm ); in importMemAreaToken()
2473 bool BiffFormulaParserImpl::importMemFuncToken( BiffInputStream& rStrm ) in importMemFuncToken() argument
2475 rStrm.skip( mnMemFuncSize ); in importMemFuncToken()
2479 bool BiffFormulaParserImpl::importNameToken( BiffInputStream& rStrm ) in importNameToken() argument
2481 sal_uInt16 nNameId = readNameId( rStrm ); in importNameToken()
2485 bool BiffFormulaParserImpl::importNameXToken( BiffInputStream& rStrm ) in importNameXToken() argument
2487 sal_Int32 nRefId = readRefId( rStrm ); in importNameXToken()
2488 sal_uInt16 nNameId = readNameId( rStrm ); in importNameXToken()
2492 bool BiffFormulaParserImpl::importFuncToken2( BiffInputStream& rStrm ) in importFuncToken2() argument
2495 rStrm >> nFuncId; in importFuncToken2()
2499 bool BiffFormulaParserImpl::importFuncToken4( BiffInputStream& rStrm ) in importFuncToken4() argument
2502 rStrm >> nFuncId; in importFuncToken4()
2506 bool BiffFormulaParserImpl::importFuncVarToken2( BiffInputStream& rStrm ) in importFuncVarToken2() argument
2509 rStrm >> nParamCount >> nFuncId; in importFuncVarToken2()
2513 bool BiffFormulaParserImpl::importFuncVarToken4( BiffInputStream& rStrm ) in importFuncVarToken4() argument
2517 rStrm >> nParamCount >> nFuncId; in importFuncVarToken4()
2521 bool BiffFormulaParserImpl::importFuncCEToken( BiffInputStream& rStrm ) in importFuncCEToken() argument
2524 rStrm >> nParamCount >> nFuncId; in importFuncCEToken()
2530 bool BiffFormulaParserImpl::importExpToken( BiffInputStream& rStrm ) in importExpToken() argument
2533 aBaseAddr.read( rStrm ); in importExpToken()
2537 bool BiffFormulaParserImpl::importTblToken( BiffInputStream& rStrm ) in importTblToken() argument
2540 aBaseAddr.read( rStrm ); in importTblToken()
2544 bool BiffFormulaParserImpl::importNlrAddrToken( BiffInputStream& rStrm, bool bRow ) in importNlrAddrToken() argument
2547 aNlr.readBiff8Data( rStrm ); in importNlrAddrToken()
2551 bool BiffFormulaParserImpl::importNlrRangeToken( BiffInputStream& rStrm ) in importNlrRangeToken() argument
2554 aNlr.readBiff8Data( rStrm ); in importNlrRangeToken()
2555 rStrm.skip( 1 ); in importNlrRangeToken()
2557 rStrm >> aRange; in importNlrRangeToken()
2561 bool BiffFormulaParserImpl::importNlrSAddrToken( BiffInputStream& rStrm, bool bRow ) in importNlrSAddrToken() argument
2563 rStrm.skip( 4 ); in importNlrSAddrToken()
2565 …return readNlrSAddrAddData( aNlr, rStrm, bRow ) ? pushBiffNlrSAddr( aNlr, bRow ) : pushBiffErrorOp… in importNlrSAddrToken()
2568 bool BiffFormulaParserImpl::importNlrSRangeToken( BiffInputStream& rStrm ) in importNlrSRangeToken() argument
2570 rStrm.skip( 5 ); in importNlrSRangeToken()
2572 rStrm >> aRange; in importNlrSRangeToken()
2575 …return readNlrSRangeAddData( aNlr, bRow, rStrm ) ? pushBiffNlrSRange( aNlr, aRange, bRow ) : pushB… in importNlrSRangeToken()
2578 bool BiffFormulaParserImpl::importNlrErrToken( BiffInputStream& rStrm, sal_uInt16 nIgnore ) in importNlrErrToken() argument
2580 rStrm.skip( nIgnore ); in importNlrErrToken()
2584 sal_Int32 BiffFormulaParserImpl::readRefId( BiffInputStream& rStrm ) in readRefId() argument
2587 rStrm >> nRefId; in readRefId()
2588 rStrm.skip( mnRefIdSize ); in readRefId()
2592 sal_uInt16 BiffFormulaParserImpl::readNameId( BiffInputStream& rStrm ) in readNameId() argument
2595 rStrm >> nNameId; in readNameId()
2596 rStrm.skip( mnNameSize ); in readNameId()
2600 LinkSheetRange BiffFormulaParserImpl::readSheetRange5( BiffInputStream& rStrm ) in readSheetRange5() argument
2602 sal_Int32 nRefId = readRefId( rStrm ); in readSheetRange5()
2604 rStrm >> nTab1 >> nTab2; in readSheetRange5()
2608 LinkSheetRange BiffFormulaParserImpl::readSheetRange8( BiffInputStream& rStrm ) in readSheetRange8() argument
2610 return getExternalLinks().getSheetRange( readRefId( rStrm ) ); in readSheetRange8()
2613 void BiffFormulaParserImpl::swapStreamPosition( BiffInputStream& rStrm ) in swapStreamPosition() argument
2615 sal_Int64 nRecPos = rStrm.tell(); in swapStreamPosition()
2616 rStrm.seek( mnAddDataPos ); in swapStreamPosition()
2620 void BiffFormulaParserImpl::skipMemAreaAddData( BiffInputStream& rStrm ) in skipMemAreaAddData() argument
2622 swapStreamPosition( rStrm ); in skipMemAreaAddData()
2623 sal_Int32 nCount = rStrm.readuInt16(); in skipMemAreaAddData()
2624 rStrm.skip( ((getBiff() == BIFF8) ? 8 : 6) * nCount ); in skipMemAreaAddData()
2625 swapStreamPosition( rStrm ); in skipMemAreaAddData()
2628 bool BiffFormulaParserImpl::readNlrSAddrAddData( BiffNlr& orNlr, BiffInputStream& rStrm, bool bRow ) in readNlrSAddrAddData() argument
2631 return readNlrSRangeAddData( orNlr, bIsRow, rStrm ) && (bIsRow == bRow); in readNlrSAddrAddData()
2634 …ffFormulaParserImpl::readNlrSRangeAddData( BiffNlr& orNlr, bool& orbIsRow, BiffInputStream& rStrm ) in readNlrSRangeAddData() argument
2636 swapStreamPosition( rStrm ); in readNlrSRangeAddData()
2639 rStrm >> nCount; in readNlrSRangeAddData()
2642 sal_Int64 nEndPos = rStrm.tell() + 4 * nCount; in readNlrSRangeAddData()
2649 rStrm >> aAddr1 >> aAddr2; in readNlrSRangeAddData()
2656 rStrm >> aAddr2; in readNlrSRangeAddData()
2657 bValid = !rStrm.isEof() && lclIsValidNlrStack( aAddr1, aAddr2, orbIsRow ); in readNlrSRangeAddData()
2670 rStrm.seek( nEndPos ); in readNlrSRangeAddData()
2671 swapStreamPosition( rStrm ); in readNlrSRangeAddData()
2816 …portFormula( const CellAddress& rBaseAddress, FormulaType eType, SequenceInputStream& rStrm ) const in importFormula()
2818 return mxImpl->importBiff12Formula( rBaseAddress, eType, rStrm ); in importFormula()
2821 …ula( const CellAddress& rBaseAddress, FormulaType eType, BiffInputStream& rStrm, const sal_uInt16*… in importFormula() argument
2823 return mxImpl->importBiffFormula( rBaseAddress, eType, rStrm, pnFmlaSize ); in importFormula()
2890 OUString FormulaParser::importOleTargetLink( SequenceInputStream& rStrm ) in importOleTargetLink() argument
2893 sal_Int32 nFmlaSize = rStrm.readInt32(); in importOleTargetLink()
2894 sal_Int64 nFmlaEndPos = rStrm.tell() + ::std::max< sal_Int32 >( nFmlaSize, 0 ); in importOleTargetLink()
2895 if( (nFmlaSize == 7) && (rStrm.getRemaining() >= 7) ) in importOleTargetLink()
2900 rStrm >> nToken >> nRefId >> nNameId; in importOleTargetLink()
2904 rStrm.seek( nFmlaEndPos ); in importOleTargetLink()
2908 OUString FormulaParser::importOleTargetLink( BiffInputStream& rStrm, const sal_uInt16* pnFmlaSize )… in importOleTargetLink() argument
2911 sal_uInt16 nFmlaSize = lclReadFmlaSize( rStrm, getBiff(), pnFmlaSize ); in importOleTargetLink()
2912 rStrm.skip( nFmlaSize ); in importOleTargetLink()