LibreOffice Module sc (master)  1
docfuncutil.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
6  */
7 
8 #ifndef INCLUDED_SC_DOCFUNCUTIL_HXX
9 #define INCLUDED_SC_DOCFUNCUTIL_HXX
10 
11 #include "undobase.hxx"
12 
13 #include <memory>
14 
15 class ScMarkData;
16 class ScRange;
17 enum class InsertDeleteFlags : sal_uInt16;
18 
19 namespace sc {
20 
22 {
23 public:
24 
25  static bool hasProtectedTab( const ScDocument& rDoc, const ScMarkData& rMark );
26 
27  static ScDocumentUniquePtr createDeleteContentsUndoDoc(
28  ScDocument& rDoc, const ScMarkData& rMark, const ScRange& rRange,
29  InsertDeleteFlags nFlags, bool bOnlyMarked );
30 
31  static void addDeleteContentsUndo(
32  SfxUndoManager* pUndoMgr, ScDocShell* pDocSh, const ScMarkData& rMark,
33  const ScRange& rRange, ScDocumentUniquePtr&& pUndoDoc, InsertDeleteFlags nFlags,
34  const std::shared_ptr<ScSimpleUndo::DataSpansType>& pSpans,
35  bool bMulti, bool bDrawUndo );
36 
37  static std::shared_ptr<ScSimpleUndo::DataSpansType> getNonEmptyCellSpans(
38  const ScDocument& rDoc, const ScMarkData& rMark, const ScRange& rRange );
39 };
40 
41 }
42 
43 #endif
44 
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
Definition: markdata.hxx:43
std::unique_ptr< ScDocument, o3tl::default_delete< ScDocument > > ScDocumentUniquePtr
Definition: document.hxx:2613
InsertDeleteFlags
Definition: global.hxx:158