12 #include <document.hxx>
16 #include <tokenarray.hxx>
34 return mpSet->getBlockPosition(nTab, nCol);
39 bool bAsLink,
bool bSkipEmptyCells) :
41 mnDestCol1(-1), mnDestCol2(-1),
42 mnDestRow1(-1), mnDestRow2(-1),
43 mnTabStart(-1), mnTabEnd(-1),
45 mpRefUndoDoc(pRefUndoDoc), mpClipDoc(pClipDoc),
47 mpCondFormatList(nullptr),
48 mbAsLink(bAsLink), mbSkipEmptyCells(bSkipEmptyCells),
49 mbTableProtected(
false)
177 bool bPaste =
isDateCell(rSrcCol, rSrcPos.
Row()) ? bDateTime : bNumeric;
197 if (pCode && pCode->
GetLen() == 1)
211 if (nErr != FormulaError::NONE)
222 rSrcCell.
set(pErrCell);
232 bool bPaste =
isDateCell(rSrcCol, rSrcPos.
Row()) ? bDateTime : bNumeric;
359 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()
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
const SfxPoolItem & GetAttr(SCROW nRow, sal_uInt16 nWhich) const
formula::FormulaToken * AddSingleReference(const ScSingleRefData &rRef)
ScSingleRefToken with ocPush.
Store position data for column array storage.
InsertDeleteFlags getInsertFlag() const
bool isTableProtected() const
Store arbitrary cell value of any kind.
virtual ~ClipContextBase()
MixDocContext(ScDocument &rDoc)
ScClipParam & GetClipParam()
ScFormulaCell * mpFormula
Additional class containing cell annotation data.
ScConditionalFormatList * getCondFormatList()
void setCondFormatList(ScConditionalFormatList *pCondFormatList)
void setDeleteFlag(InsertDeleteFlags nFlag)
void setStartListening(bool b)
std::vector< std::shared_ptr< sc::Sparkline > > maSingleSparkline
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.
std::shared_ptr< sc::Sparkline > const & getSingleSparkline(size_t nColOffset) const
bool isCloneSparklines() const
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)
CAUTION! The following defines must be in the same namespace as the respective type.
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
bool isSkipEmptyCells() const
Get the flag that indicates whether the "skip empty cells" paste option is selected.
ScRange getWholeRange() const
Return a single range that encompasses all individual ranges.
void setSingleSparkline(size_t nColOffset, std::shared_ptr< sc::Sparkline > const &pSparkline)
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
Strings (and string results if InsertDeleteFlags::FORMULA is not set).
SC_DLLPUBLIC ScFieldEditEngine & GetEditEngine()
ColumnBlockPosition * getBlockPosition(SCTAB nTab, SCCOL nCol)
std::vector< ScCellValue > maSingleCells
bool m_bDetectedRangeSegmentation false
InsertDeleteFlags mnInsertFlag
Sheet / outlining (grouping) information.
bool isKeepScenarioFlags() const
bool isCloneNotes() const