24#include <document.hxx>
29#include <osl/diagnose.h>
43 if ( nViewTab < nStartZ || nViewTab > nEndZ )
46 const ScRange aMarkRange( nStartX, nStartY, nStartZ, nEndX, nEndY, nEndZ);
59 rBlockEnd.
Col(), rBlockEnd.
Row(), rBlockEnd.
Tab() );
76 bool bWasTemp =
false;
83 OSL_ENSURE(bWasTemp,
"Undo: didn't find database range");
88 nCol1,nRow1, nCol2,nRow2,
true,
105 if (nCol1 > 0) --nCol1;
106 if (nRow1 > 0) --nRow1;
107 if (nCol2<rDoc.
MaxCol()) ++nCol2;
108 if (nRow2<rDoc.
MaxRow()) ++nRow2;
const OUString & GetName() const
const ScDocument & GetDocument() const
void PostPaint(SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab, SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab, PaintPartFlags nPart, sal_uInt16 nExtFlags=0)
bool IsPaintLocked() const
SC_DLLPUBLIC SCCOL MaxCol() const
SC_DLLPUBLIC SCROW MaxRow() const
SC_DLLPUBLIC const ScDBData * GetDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) const
SC_DLLPUBLIC bool HasColHeader(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, SCTAB nTab)
SC_DLLPUBLIC ScDBData * GetAnonymousDBData(SCTAB nTab)
SC_DLLPUBLIC void SetAnonymousDBData(SCTAB nTab, std::unique_ptr< ScDBData > pDBData)
void SetMarkArea(const ScRange &rRange)
static ScTabViewShell * GetActiveViewShell()
void DoneBlockMode(bool bContinue=false)
SC_DLLPUBLIC void MoveCursorAbs(SCCOL nCurX, SCROW nCurY, ScFollowMode eMode, bool bShift, bool bControl, bool bKeepOld=false, bool bKeepSel=false)
ScViewData & GetViewData()
void InitOwnBlockMode(const ScRange &rMarkRange)
SC_DLLPUBLIC void SetTabNo(SCTAB nTab, bool bNew=false, bool bExtendSelection=false, bool bSameTabButMoved=false)
static void PaintMore(ScDocShell *pDocShell, const ScRange &rRange)
static ScDBData * GetOldDBData(const ScDBData *pUndoData, ScDocument *pDoc, SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2)
Search for Data base range in Document ("untitled" or by region) create new if not found.
static void MarkSimpleBlock(const ScDocShell *pDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ)
Mark Block (invisible - has to be repainted)
ScMarkData & GetMarkData()
constexpr OUStringLiteral STR_DB_LOCAL_NONAME