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 #include <refhint.hxx>
14 RefHint::RefHint( Type eType
) : SfxSimpleHint(SC_HINT_REFERENCE
), meType(eType
) {}
15 RefHint::~RefHint() {}
17 RefHint::Type
RefHint::getType() const
22 RefMovedHint::RefMovedHint( const ScRange
& rRange
, const ScAddress
& rMove
, const sc::RefUpdateContext
& rCxt
) :
23 RefHint(Moved
), maRange(rRange
), maMoveDelta(rMove
), mrCxt(rCxt
) {}
25 RefMovedHint::~RefMovedHint() {}
27 const ScRange
& RefMovedHint::getRange() const
32 const ScAddress
& RefMovedHint::getDelta() const
37 const sc::RefUpdateContext
& RefMovedHint::getContext() const
42 RefColReorderHint::RefColReorderHint( const sc::ColRowReorderMapType
& rColMap
, SCTAB nTab
, SCROW nRow1
, SCROW nRow2
) :
43 RefHint(ColumnReordered
), mrColMap(rColMap
), mnTab(nTab
), mnRow1(nRow1
), mnRow2(nRow2
) {}
45 RefColReorderHint::~RefColReorderHint() {}
47 const sc::ColRowReorderMapType
& RefColReorderHint::getColMap() const
52 SCTAB
RefColReorderHint::getTab() const
57 SCROW
RefColReorderHint::getStartRow() const
62 SCROW
RefColReorderHint::getEndRow() const
67 RefRowReorderHint::RefRowReorderHint( const sc::ColRowReorderMapType
& rRowMap
, SCTAB nTab
, SCCOL nCol1
, SCCOL nCol2
) :
68 RefHint(RowReordered
), mrRowMap(rRowMap
), mnTab(nTab
), mnCol1(nCol1
), mnCol2(nCol2
) {}
70 RefRowReorderHint::~RefRowReorderHint() {}
72 const sc::ColRowReorderMapType
& RefRowReorderHint::getRowMap() const
77 SCTAB
RefRowReorderHint::getTab() const
82 SCCOL
RefRowReorderHint::getStartColumn() const
87 SCCOL
RefRowReorderHint::getEndColumn() const
92 RefStartListeningHint::RefStartListeningHint() : RefHint(StartListening
) {}
93 RefStartListeningHint::~RefStartListeningHint() {}
95 RefStopListeningHint::RefStopListeningHint() : RefHint(StopListening
) {}
96 RefStopListeningHint::~RefStopListeningHint() {}
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */