LibreOffice Module sc (master)  1
undoutil.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 file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_UNDOUTIL_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_UNDOUTIL_HXX
22 
23 #include <address.hxx>
24 
25 class ScDocShell;
26 class ScDBData;
27 class ScDocument;
28 
30 {
31 public:
33  static void MarkSimpleBlock( const ScDocShell* pDocShell,
34  SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
35  SCCOL nEndX, SCROW nEndY, SCTAB nEndZ );
36  static void MarkSimpleBlock( const ScDocShell* pDocShell,
37  const ScAddress& rBlockStart,
38  const ScAddress& rBlockEnd );
39  static void MarkSimpleBlock( const ScDocShell* pDocShell,
40  const ScRange& rRange );
41 
42  static void PaintMore( ScDocShell* pDocShell,
43  const ScRange& rRange );
44 
47  static ScDBData* GetOldDBData( const ScDBData* pUndoData, ScDocument* pDoc, SCTAB nTab,
48  SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 );
49 };
50 
51 #endif
52 
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static void MarkSimpleBlock(const ScDocShell *pDocShell, SCCOL nStartX, SCROW nStartY, SCTAB nStartZ, SCCOL nEndX, SCROW nEndY, SCTAB nEndZ)
Mark Block (invisible - has to be repainted)
Definition: undoutil.cxx:30
static void PaintMore(ScDocShell *pDocShell, const ScRange &rRange)
Definition: undoutil.cxx:96
sal_Int16 SCCOL
Definition: types.hxx:22
sal_Int32 SCROW
Definition: types.hxx:18
static ScDBData * GetOldDBData(const ScDBData *pUndoData, ScDocument *pDoc, SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2)
Search for Data base range in Document ("untitled" or by region) create new if not found...
Definition: undoutil.cxx:68
sal_Int16 SCTAB
Definition: types.hxx:23