Lines Matching refs:rModel
329 void SheetDataBuffer::setBlankCell( const CellModel& rModel ) in setBlankCell() argument
331 setCellFormat( rModel ); in setBlankCell()
334 void SheetDataBuffer::setValueCell( const CellModel& rModel, double fValue ) in setValueCell() argument
336 if( CellBlock* pCellBlock = maCellBlocks.getCellBlock( rModel.maCellAddr ) ) in setValueCell()
337 pCellBlock->getCellAny( rModel.maCellAddr.Column ) <<= fValue; in setValueCell()
339 putValue( rModel.maCellAddr, fValue ); in setValueCell()
340 setCellFormat( rModel ); in setValueCell()
343 void SheetDataBuffer::setStringCell( const CellModel& rModel, const OUString& rText ) in setStringCell() argument
345 if( CellBlock* pCellBlock = maCellBlocks.getCellBlock( rModel.maCellAddr ) ) in setStringCell()
346 pCellBlock->getCellAny( rModel.maCellAddr.Column ) <<= rText; in setStringCell()
348 putString( rModel.maCellAddr, rText ); in setStringCell()
349 setCellFormat( rModel ); in setStringCell()
352 void SheetDataBuffer::setStringCell( const CellModel& rModel, const RichStringRef& rxString ) in setStringCell() argument
355 const Font* pFirstPortionFont = getStyles().getFontFromCellXf( rModel.mnXfId ).get(); in setStringCell()
359 setStringCell( rModel, aText ); in setStringCell()
363 if( CellBlock* pCellBlock = maCellBlocks.getCellBlock( rModel.maCellAddr ) ) in setStringCell()
364 pCellBlock->insertRichString( rModel.maCellAddr, rxString, pFirstPortionFont ); in setStringCell()
366 putRichString( rModel.maCellAddr, *rxString, pFirstPortionFont ); in setStringCell()
367 setCellFormat( rModel ); in setStringCell()
371 void SheetDataBuffer::setStringCell( const CellModel& rModel, sal_Int32 nStringId ) in setStringCell() argument
375 setStringCell( rModel, xString ); in setStringCell()
377 setBlankCell( rModel ); in setStringCell()
380 void SheetDataBuffer::setDateTimeCell( const CellModel& rModel, const DateTime& rDateTime ) in setDateTimeCell() argument
384 setValueCell( rModel, fSerial ); in setDateTimeCell()
388 setStandardNumFmt( rModel.maCellAddr, nStdFmt ); in setDateTimeCell()
391 void SheetDataBuffer::setBooleanCell( const CellModel& rModel, bool bValue ) in setBooleanCell() argument
393 setCellFormula( rModel.maCellAddr, getFormulaParser().convertBoolToFormula( bValue ) ); in setBooleanCell()
395 setCellFormat( rModel, 0 ); in setBooleanCell()
398 void SheetDataBuffer::setErrorCell( const CellModel& rModel, const OUString& rErrorCode ) in setErrorCell() argument
400 setErrorCell( rModel, getUnitConverter().calcBiffErrorCode( rErrorCode ) ); in setErrorCell()
403 void SheetDataBuffer::setErrorCell( const CellModel& rModel, sal_uInt8 nErrorCode ) in setErrorCell() argument
405 setCellFormula( rModel.maCellAddr, getFormulaParser().convertErrorToFormula( nErrorCode ) ); in setErrorCell()
406 setCellFormat( rModel ); in setErrorCell()
409 void SheetDataBuffer::setFormulaCell( const CellModel& rModel, const ApiTokenSequence& rTokens ) in setFormulaCell() argument
441 maSharedFmlaAddr = rModel.maCellAddr; in setFormulaCell()
453 setCellFormula( rModel.maCellAddr, aTokens ); in setFormulaCell()
454 setCellFormat( rModel ); in setFormulaCell()
457 void SheetDataBuffer::setFormulaCell( const CellModel& rModel, sal_Int32 nSharedId ) in setFormulaCell() argument
459 setCellFormula( rModel.maCellAddr, resolveSharedFormula( BinAddress( nSharedId, 0 ) ) ); in setFormulaCell()
460 setCellFormat( rModel ); in setFormulaCell()
471 …eetDataBuffer::createTableOperation( const CellRangeAddress& rRange, const DataTableModel& rModel ) in createTableOperation() argument
476 maTableOperations.push_back( TableOperation( rRange, rModel ) ); in createTableOperation()
714 …uffer::finalizeTableOperation( const CellRangeAddress& rRange, const DataTableModel& rModel ) const in finalizeTableOperation()
718 …if( !rModel.mbRef1Deleted && (rModel.maRef1.getLength() > 0) && (rRange.StartColumn > 0) && (rRang… in finalizeTableOperation()
722 if( getAddressConverter().convertToCellAddress( aRef1, rModel.maRef1, nSheet, true ) ) try in finalizeTableOperation()
724 if( rModel.mb2dTable ) in finalizeTableOperation()
727 …if( !rModel.mbRef2Deleted && getAddressConverter().convertToCellAddress( aRef2, rModel.maRef2, nSh… in finalizeTableOperation()
740 else if( rModel.mbRowTable ) in finalizeTableOperation()
782 void SheetDataBuffer::setCellFormat( const CellModel& rModel, sal_Int32 nNumFmtId ) in setCellFormat() argument
784 if( (rModel.mnXfId >= 0) || (nNumFmtId >= 0) ) in setCellFormat()
792 if( rModel.maCellAddr.Row != nLastRow ) in setCellFormat()
812 …XfIdRanges.empty() || !maXfIdRanges.rbegin()->second.tryExpand( rModel.maCellAddr, rModel.mnXfId, … in setCellFormat()
813 …maXfIdRanges[ BinAddress( rModel.maCellAddr ) ].set( rModel.maCellAddr, rModel.mnXfId, nNumFmtId ); in setCellFormat()
816 if( const Xf* pXf = getStyles().getCellXf( rModel.mnXfId ).get() ) in setCellFormat()
823 if( rModel.mnCellType != XML_TOKEN_INVALID ) in setCellFormat()
824 maCenterFillRanges.push_back( MergedRange( rModel.maCellAddr, nHorAlign ) ); in setCellFormat()
826 maCenterFillRanges.rbegin()->tryExpand( rModel.maCellAddr, nHorAlign ); in setCellFormat()