Line data Source code
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 :
10 : #include <refhint.hxx>
11 :
12 : namespace sc {
13 :
14 0 : RefHint::RefHint( Type eType ) : SfxSimpleHint(SC_HINT_REFERENCE), meType(eType) {}
15 0 : RefHint::~RefHint() {}
16 :
17 0 : RefHint::Type RefHint::getType() const { return meType; }
18 :
19 0 : RefMovedHint::RefMovedHint( const ScRange& rRange, const ScAddress& rMove ) :
20 0 : RefHint(Moved), maRange(rRange), maMoveDelta(rMove) {}
21 :
22 0 : RefMovedHint::~RefMovedHint() {}
23 :
24 0 : const ScRange& RefMovedHint::getRange() const
25 : {
26 0 : return maRange;
27 : }
28 :
29 0 : const ScAddress& RefMovedHint::getDelta() const
30 : {
31 0 : return maMoveDelta;
32 : }
33 :
34 : }
35 :
36 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|