diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-10-08 22:33:47 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-10-08 23:24:58 -0400 |
commit | 7adef94b82f5c71da483f238d05df7800b8da38b (patch) | |
tree | 193c4a6aadf8b1d8e021bfd5580789ae0e9bd3ec /sc/source/ui/inc/docfuncutil.hxx | |
parent | ed0e3fdcc13e0925c16aa81f6aa461892f15d81a (diff) |
Share undo doc creation code.
Change-Id: I55f27b61637ba0284479c63c2fa48b0bd8938c0f
Diffstat (limited to 'sc/source/ui/inc/docfuncutil.hxx')
-rw-r--r-- | sc/source/ui/inc/docfuncutil.hxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sc/source/ui/inc/docfuncutil.hxx b/sc/source/ui/inc/docfuncutil.hxx index 20927a05ba88..553bab684a96 100644 --- a/sc/source/ui/inc/docfuncutil.hxx +++ b/sc/source/ui/inc/docfuncutil.hxx @@ -5,17 +5,34 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#ifndef INCLUDED_SC_DOCFUNCUTIL_HXX +#define INCLUDED_SC_DOCFUNCUTIL_HXX + +#include <undobase.hxx> + class ScDocument; class ScMarkData; +class ScRange; +struct InsertDeleteFlags; namespace sc { class DocFuncUtil { public: + static bool hasProtectedTab( const ScDocument& rDoc, const ScMarkData& rMark ); + + static ScDocument* createDeleteContentsUndoDoc( + ScDocument& rDoc, const ScMarkData& rMark, const ScRange& rRange, + InsertDeleteFlags nFlags, bool bOnlyMarked ); + + static ScSimpleUndo::DataSpansType* getNonEmptyCellSpans( + const ScDocument& rDoc, const ScMarkData& rMark, const ScRange& rRange ); }; } +#endif + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |