12 #include <document.hxx>
16 #include <tokenarray.hxx>
33 return mpSet->getBlockPosition(nTab, nCol);
38 bool bAsLink,
bool bSkipAttrForEmptyCells) :
40 mnDestCol1(-1), mnDestCol2(-1),
41 mnDestRow1(-1), mnDestRow2(-1),
42 mnTabStart(-1), mnTabEnd(-1),
44 mpRefUndoDoc(pRefUndoDoc), mpClipDoc(pClipDoc),
46 mpCondFormatList(nullptr),
47 mbAsLink(bAsLink), mbSkipAttrForEmptyCells(bSkipAttrForEmptyCells),
49 mbTableProtected(false)
176 bool bPaste =
isDateCell(rSrcCol, rSrcPos.
Row()) ? bDateTime : bNumeric;
196 if (pCode && pCode->
GetLen() == 1)
210 if (nErr != FormulaError::NONE)
221 rSrcCell.
set(pErrCell);
231 bool bPaste =
isDateCell(rSrcCol, rSrcPos.
Row()) ? bDateTime : bNumeric;
341 return (nType == SvNumFormatType::DATE) || (nType == SvNumFormatType::TIME) || (nType == SvNumFormatType::DATETIME);
Numeric values (and numeric results if InsertDeleteFlags::FORMULA is not set).
OUString getString() const
SC_DLLPUBLIC svl::SharedStringPool & GetSharedStringPool()
const SfxPoolItem & GetAttr(SCROW nRow, sal_uInt16 nWhich) const
void setSingleCell(const ScAddress &rSrcPos, const ScColumn &rSrcCol)
Single reference (one address) into the sheet.
virtual ~CopyToClipContext() override
void setTabRange(SCTAB nStart, SCTAB nEnd)
bool isStartListening() const
formula::FormulaToken * AddSingleReference(const ScSingleRefData &rRef)
ScSingleRefToken with ocPush.
Store position data for column array storage.
InsertDeleteFlags getInsertFlag() const
bool isSkipAttrForEmptyCells() const
bool isTableProtected() const
bool mbSkipAttrForEmptyCells
Store arbitrary cell value of any kind.
virtual ~ClipContextBase()
MixDocContext(ScDocument &rDoc)
ScClipParam & GetClipParam()
ScFormulaCell * mpFormula
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
Additional class containing cell annotation data.
ScConditionalFormatList * getCondFormatList()
void setCondFormatList(ScConditionalFormatList *pCondFormatList)
void setDeleteFlag(InsertDeleteFlags nFlag)
void setStartListening(bool b)
Internal use only (copy from clip): do not delete existing cell contents when pasting notes...
SC_DLLPUBLIC SvNumberFormatter * GetFormatTable() const
void SetTextCurrentDefaults(const EditTextObject &rTextObject)
SetText and apply defaults already set.
void SetFlag3D(bool bVal)
void setSingleCellNote(size_t nColOffset, const ScPostIt *pNote)
std::vector< const ScPatternAttr * > maSinglePatterns
void InitAddress(const ScAddress &rAdr)
InitAddress: InitFlags and set address.
CopyToClipContext(ScDocument &rDoc, bool bKeepScenarioFlags)
std::unique_ptr< EditTextObject > CreateTextObject()
constexpr TypedWhichId< SfxUInt32Item > ATTR_VALUE_FORMAT(146)
ScConditionalFormatList * mpCondFormatList
ScDocument * mpRefUndoDoc
void setDestRange(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2)
const ScPatternAttr * getSingleCellPattern(size_t nColOffset) const
CopyToDocContext(ScDocument &rDoc)
void setSingleCellPattern(size_t nColOffset, const ScPatternAttr *pAttr)
ScCellValue & getSingleCell(size_t nColOffset)
void setTableProtected(bool b)
Internal use only (undo etc.): do not copy/delete caption objects of cell notes.
const ScPostIt * getSingleCellNote(size_t nColOffset) const
std::vector< const ScPostIt * > maSingleNotes
virtual ~CopyToDocContext() override
ScRange getWholeRange() const
Return a single range that encompasses all individual ranges.
sc::CellTextAttr & getSingleCellAttr(size_t nColOffset)
void assign(const ScDocument &rDoc, const ScAddress &rPos)
Take cell value from specified position in specified document.
Dates, times, datetime values.
ScDocument * getUndoDoc()
SCTAB getTabStart() const
bool isDateCell(const ScColumn &rCol, SCROW nRow) const
ScDocument * getClipDoc()
InsertDeleteFlags mnDeleteFlag
InsertDeleteFlags getDeleteFlag() const
std::unique_ptr< ColumnBlockPositionSet > mpSet
void setSingleCellColumnSize(size_t nSize)
Set the column size of a "single cell" row, which is used when copying a single row of cells in a cli...
Range getDestRange() const
CopyFromClipContext()=delete
const sc::CellTextAttr * GetCellTextAttr(SCROW nRow) const
virtual ~CopyFromClipContext() override
virtual ~MixDocContext() override
std::vector< sc::CellTextAttr > maSingleCellAttrs
SC_DLLPUBLIC ScFieldEditEngine & GetEditEngine()
ColumnBlockPosition * getBlockPosition(SCTAB nTab, SCCOL nCol)
std::vector< ScCellValue > maSingleCells
InsertDeleteFlags mnInsertFlag
bool isKeepScenarioFlags() const
bool isCloneNotes() const