LibreOffice Module sc (master)  1
refupdat.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_CORE_INC_REFUPDAT_HXX
21 #define INCLUDED_SC_SOURCE_CORE_INC_REFUPDAT_HXX
22 
23 #include <global.hxx>
24 
25 class ScDocument;
26 class ScBigRange;
27 struct ScComplexRefData;
28 class ScAddress;
29 class ScRange;
30 
32  UR_NOTHING = 0,
33  UR_UPDATED = 1,
34  UR_INVALID = 2,
35  UR_STICKY = 3
40 };
41 
43 {
44 public:
45 
46  static ScRefUpdateRes Update
47  ( const ScDocument* pDoc, UpdateRefMode eUpdateRefMode,
48  SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
49  SCCOL nCol2, SCROW nRow2, SCTAB nTab2,
50  SCCOL nDx, SCROW nDy, SCTAB nDz,
51  SCCOL& theCol1, SCROW& theRow1, SCTAB& theTab1,
52  SCCOL& theCol2, SCROW& theRow2, SCTAB& theTab2 );
53 
54  static ScRefUpdateRes Update( UpdateRefMode eUpdateRefMode,
55  const ScBigRange& rWhere,
56  sal_Int32 nDx, sal_Int32 nDy, sal_Int32 nDz,
57  ScBigRange& rWhat );
58 
59  static void MoveRelWrap( const ScDocument* pDoc, const ScAddress& rPos,
60  SCCOL nMaxCol, SCROW nMaxRow, ScComplexRefData& rRef );
61 
63  const ScDocument* pDoc, const ScRange& rSource, const ScAddress& rDest, ScRange& rRef );
64 
65  static void DoTranspose( SCCOL& rCol, SCROW& rRow, SCTAB& rTab, const ScDocument* pDoc,
66  const ScRange& rSource, const ScAddress& rDest );
67 
69  const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY, ScRange& rRef );
70 };
71 
72 #endif
73 
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static ScRefUpdateRes Update(const ScDocument *pDoc, UpdateRefMode eUpdateRefMode, SCCOL nCol1, SCROW nRow1, SCTAB nTab1, SCCOL nCol2, SCROW nRow2, SCTAB nTab2, SCCOL nDx, SCROW nDy, SCTAB nDz, SCCOL &theCol1, SCROW &theRow1, SCTAB &theTab1, SCCOL &theCol2, SCROW &theRow2, SCTAB &theTab2)
Definition: refupdat.cxx:189
Not updated because the reference is sticky, but would had been updated if it wasn't.
Definition: refupdat.hxx:35
Reference was adjusted/updated.
Definition: refupdat.hxx:33
static ScRefUpdateRes UpdateGrow(const ScRange &rArea, SCCOL nGrowX, SCROW nGrowY, ScRange &rRef)
Definition: refupdat.cxx:557
Some part of the reference became invalid.
Definition: refupdat.hxx:34
static void DoTranspose(SCCOL &rCol, SCROW &rRow, SCTAB &rTab, const ScDocument *pDoc, const ScRange &rSource, const ScAddress &rDest)
Definition: refupdat.cxx:509
static void MoveRelWrap(const ScDocument *pDoc, const ScAddress &rPos, SCCOL nMaxCol, SCROW nMaxRow, ScComplexRefData &rRef)
Definition: refupdat.cxx:463
sal_Int16 SCCOL
Definition: types.hxx:22
Reference not affected, no change at all.
Definition: refupdat.hxx:32
UpdateRefMode
Definition: global.hxx:310
sal_Int32 SCROW
Definition: types.hxx:18
ScRefUpdateRes
Definition: refupdat.hxx:31
Complex reference (a range) into the sheet.
Definition: refdata.hxx:123
static ScRefUpdateRes UpdateTranspose(const ScDocument *pDoc, const ScRange &rSource, const ScAddress &rDest, ScRange &rRef)
Definition: refupdat.cxx:533
sal_Int16 SCTAB
Definition: types.hxx:23