fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / docfuncutil.hxx
blob65bf820526be3ccae17d6c7d235197fcb4ce8f48
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 #ifndef INCLUDED_SC_DOCFUNCUTIL_HXX
9 #define INCLUDED_SC_DOCFUNCUTIL_HXX
11 #include <undobase.hxx>
13 #include <boost/shared_ptr.hpp>
15 class ScDocument;
16 class ScMarkData;
17 class ScRange;
18 struct InsertDeleteFlags;
20 namespace sc {
22 class DocFuncUtil
24 public:
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 );
44 #endif
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */