Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / undoutil.hxx
blob05137e9c9066ca89aeb70e2b11b2d1b283d227bb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SC_UNDOUTIL_HXX
21 #define SC_UNDOUTIL_HXX
23 #include "address.hxx"
24 #include <tools/solar.h>
26 class ScRange;
27 class ScDocShell;
28 class ScDBData;
29 class ScDocument;
31 //----------------------------------------------------------------------------
33 class ScUndoUtil
35 public:
36 /** Mark Block (invisible - has to be repainted) */
37 static void MarkSimpleBlock( ScDocShell* pDocShell,
38 SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
39 SCCOL nEndX, SCROW nEndY, SCTAB nEndZ );
40 static void MarkSimpleBlock( ScDocShell* pDocShell,
41 const ScAddress& rBlockStart,
42 const ScAddress& rBlockEnd );
43 static void MarkSimpleBlock( ScDocShell* pDocShell,
44 const ScRange& rRange );
46 static void PaintMore( ScDocShell* pDocShell,
47 const ScRange& rRange );
49 /** Search for Data base range in Document ("untitled" or by region)
50 create new if not found */
51 static ScDBData* GetOldDBData( ScDBData* pUndoData, ScDocument* pDoc, SCTAB nTab,
52 SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 );
57 #endif
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */