15#include <document.hxx>
40 if (!pSourceOptions || !pDestinationShell)
58 if ( pOwnClip && pDPObj )
70 pClipDoc->
GetClipArea( nClipEndX, nClipEndY,
true );
71 nClipEndX = nClipEndX + nClipStartX;
72 nClipEndY = nClipEndY + nClipStartY;
74 ScRange aSource( nClipStartX, nClipStartY, nSourceTab, nClipEndX, nClipEndY, nSourceTab );
105 if (lcl_checkClassification(pClipDoc, rThisDoc))
113 bool entireColumnOrRowSelected =
false;
122 entireColumnOrRowSelected =
true;
127 if (pItem->
GetValue() || entireColumnOrRowSelected)
130 pTabViewShell,
true ,
true ,
true ,
131 true ,
true ,
true , nThisTab);
140 for (
size_t i = 0,
n = rDest.
size();
i <
n; ++
i)
144 for (
const auto& rTab : rMark)
158 SCROW nRowTest = (nRows / nSrcRows) * nSrcRows;
159 SCCOL nColTest = (nCols / nSrcCols) * nSrcCols;
160 if ( rDest.
size() > 1 && ( nRows != nRowTest || nCols != nColTest ) )
Stores options which are only relevant for clipboard documents.
css::uno::Reference< css::document::XDocumentProperties > m_xDocumentProperties
Document properties.
bool DataPilotMove(const ScRange &rSource, const ScAddress &rDest)
ScClipParam & GetClipParam()
SC_DLLPUBLIC SCCOL MaxCol() const
SC_DLLPUBLIC SCROW MaxRow() const
SC_DLLPUBLIC ScDPObject * GetDPAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const
SfxObjectShell * GetDocumentShell() const
void GetClipArea(SCCOL &nClipX, SCROW &nClipY, bool bIncludeFiltered)
ScClipOptions * GetClipOptions()
SC_DLLPUBLIC const SfxPoolItem * GetAttr(SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt16 nWhich) const
void GetClipStart(SCCOL &nClipX, SCROW &nClipY)
static void SetCellAnchoredFromPosition(SdrObject &rObj, const ScDocument &rDoc, SCTAB nTab, bool bResizeWithCell)
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
static void notifyAllViewsSheetGeomInvalidation(const SfxViewShell *pForViewShell, bool bColumns, bool bRows, bool bSizes, bool bHidden, bool bFiltered, bool bGroups, SCTAB nCurrentTabIndex)
Emits a LOK_CALLBACK_INVALIDATE_SHEET_GEOMETRY for all views whose current tab is equal to nCurrentTa...
static css::uno::Reference< css::datatransfer::XTransferable2 > GetClipData(vcl::Window *pWin)
void ErrorMessage(TranslateId pGlobStrId)
SC_DLLPUBLIC void CellContentChanged()
ScDrawView * GetScDrawView()
ScDocument * GetDocument() const
SCTAB GetVisibleTab() const
static SC_DLLPUBLIC ScTransferObj * GetOwnClipboard(const css::uno::Reference< css::datatransfer::XTransferable2 > &)
ScDocument & GetDocument() const
ScGridWindow * GetActiveWin()
weld::Window * GetDialogParent()
ScAddress GetCurPos() const
SC_DLLPUBLIC void PasteFromSystem()
SC_DLLPUBLIC bool PasteFromClip(InsertDeleteFlags nFlags, ScDocument *pClipDoc, ScPasteFunc nFunction=ScPasteFunc::NONE, bool bSkipEmptyCells=false, bool bTranspose=false, bool bAsLink=false, InsCellCmd eMoveMode=INS_NONE, InsertDeleteFlags nUndoExtraFlags=InsertDeleteFlags::NONE, bool bAllowDialogs=false)
static bool HasFiltered(const ScRange &rRange, const ScDocument &rDoc)
SdrObject * GetMarkedObjectByIndex(size_t nNum) const
size_t GetMarkedObjectCount() const
static bool ShowPasteInfo(SfxClassificationCheckPasteResult eResult)
static SfxClassificationCheckPasteResult CheckPaste(const css::uno::Reference< css::document::XDocumentProperties > &xSource, const css::uno::Reference< css::document::XDocumentProperties > &xDestination)
css::uno::Reference< css::document::XDocumentProperties > getDocProperties() const
SfxClassificationCheckPasteResult
SC_DLLPUBLIC void PasteFromClipboard(ScViewData &rViewData, ScTabViewShell *pTabViewShell, bool bShowDialog)
bool CheckDestRanges(const ScDocument &rDoc, SCCOL nSrcCols, SCROW nSrcRows, const ScMarkData &rMark, const ScRangeList &rDest)
constexpr TypedWhichId< ScLineBreakCell > ATTR_LINEBREAK(139)
This struct stores general clipboard parameters associated with a ScDocument instance created in clip...
bool isMultiRange() const