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/.
8 #ifndef INCLUDED_SC_DOCFUNCUTIL_HXX
9 #define INCLUDED_SC_DOCFUNCUTIL_HXX
11 #include <undobase.hxx>
13 #include <boost/shared_ptr.hpp>
18 struct InsertDeleteFlags
;
26 static bool hasProtectedTab( const ScDocument
& rDoc
, const ScMarkData
& rMark
);
28 static ScDocument
* createDeleteContentsUndoDoc(
29 ScDocument
& rDoc
, const ScMarkData
& rMark
, const ScRange
& rRange
,
30 InsertDeleteFlags nFlags
, bool bOnlyMarked
);
32 static void addDeleteContentsUndo(
33 svl::IUndoManager
* pUndoMgr
, ScDocShell
* pDocSh
, const ScMarkData
& rMark
,
34 const ScRange
& rRange
, ScDocument
* pUndoDoc
, InsertDeleteFlags nFlags
,
35 const boost::shared_ptr
<ScSimpleUndo::DataSpansType
>& pSpans
,
36 bool bMulti
, bool bDrawUndo
);
38 static ScSimpleUndo::DataSpansType
* getNonEmptyCellSpans(
39 const ScDocument
& rDoc
, const ScMarkData
& rMark
, const ScRange
& rRange
);
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */