1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #include "undobase.hxx"
16 enum class InsertDeleteFlags
: sal_Int32
;
24 static bool hasProtectedTab( const ScDocument
& rDoc
, const ScMarkData
& rMark
);
26 static ScDocumentUniquePtr
createDeleteContentsUndoDoc(
27 ScDocument
& rDoc
, const ScMarkData
& rMark
, const ScRange
& rRange
,
28 InsertDeleteFlags nFlags
, bool bOnlyMarked
);
30 static void addDeleteContentsUndo(
31 SfxUndoManager
* pUndoMgr
, ScDocShell
* pDocSh
, const ScMarkData
& rMark
,
32 const ScRange
& rRange
, ScDocumentUniquePtr
&& pUndoDoc
, InsertDeleteFlags nFlags
,
33 const std::shared_ptr
<ScSimpleUndo::DataSpansType
>& pSpans
,
34 bool bMulti
, bool bDrawUndo
);
36 static std::shared_ptr
<ScSimpleUndo::DataSpansType
> getNonEmptyCellSpans(
37 const ScDocument
& rDoc
, const ScMarkData
& rMark
, const ScRange
& rRange
);
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */