tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / docfuncutil.hxx
blob2ec5bce703a71447d61eab9e5f371760cad3ec24
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 */
8 #pragma once
10 #include "undobase.hxx"
12 #include <memory>
14 class ScMarkData;
15 class ScRange;
16 enum class InsertDeleteFlags : sal_Int32;
18 namespace sc {
20 class DocFuncUtil
22 public:
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: */