1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_SC_INC_REFHINT_HXX
11 #define INCLUDED_SC_INC_REFHINT_HXX
13 #include "address.hxx"
14 #include "simplehintids.hxx"
18 class RefHint
: public SfxSimpleHint
32 RefHint(); // disabled
35 RefHint( Type eType
);
38 virtual ~RefHint() = 0;
43 class RefMovedHint
: public RefHint
46 ScAddress maMoveDelta
;
50 RefMovedHint( const ScRange
& rRange
, const ScAddress
& rMove
);
51 virtual ~RefMovedHint();
54 * Get the source range from which the references have moved.
56 const ScRange
& getRange() const;
59 * Get the movement vector.
61 const ScAddress
& getDelta() const;
64 class RefColReorderHint
: public RefHint
66 const sc::ColRowReorderMapType
& mrColMap
;
72 RefColReorderHint( const sc::ColRowReorderMapType
& rColMap
, SCTAB nTab
, SCROW nRow1
, SCROW nRow2
);
73 virtual ~RefColReorderHint();
75 const sc::ColRowReorderMapType
& getColMap() const;
78 SCROW
getStartRow() const;
79 SCROW
getEndRow() const;
82 class RefRowReorderHint
: public RefHint
84 const sc::ColRowReorderMapType
& mrRowMap
;
90 RefRowReorderHint( const sc::ColRowReorderMapType
& rRowMap
, SCTAB nTab
, SCCOL nCol1
, SCCOL nCol2
);
91 virtual ~RefRowReorderHint();
93 const sc::ColRowReorderMapType
& getRowMap() const;
96 SCCOL
getStartColumn() const;
97 SCCOL
getEndColumn() const;
100 class RefStartListeningHint
: public RefHint
103 RefStartListeningHint();
104 virtual ~RefStartListeningHint();
107 class RefStopListeningHint
: public RefHint
110 RefStopListeningHint();
111 virtual ~RefStopListeningHint();
118 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */