fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / core / tool / refhint.cxx
blobc159e9695b18c5d37c99a7eddbff57fe07c461f2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #include <refhint.hxx>
12 namespace sc {
14 RefHint::RefHint( Type eType ) : SfxSimpleHint(SC_HINT_REFERENCE), meType(eType) {}
15 RefHint::~RefHint() {}
17 RefHint::Type RefHint::getType() const
19 return meType;
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
29 return maRange;
32 const ScAddress& RefMovedHint::getDelta() const
34 return maMoveDelta;
37 const sc::RefUpdateContext& RefMovedHint::getContext() const
39 return mrCxt;
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
49 return mrColMap;
52 SCTAB RefColReorderHint::getTab() const
54 return mnTab;
57 SCROW RefColReorderHint::getStartRow() const
59 return mnRow1;
62 SCROW RefColReorderHint::getEndRow() const
64 return mnRow2;
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
74 return mrRowMap;
77 SCTAB RefRowReorderHint::getTab() const
79 return mnTab;
82 SCCOL RefRowReorderHint::getStartColumn() const
84 return mnCol1;
87 SCCOL RefRowReorderHint::getEndColumn() const
89 return mnCol2;
92 RefStartListeningHint::RefStartListeningHint() : RefHint(StartListening) {}
93 RefStartListeningHint::~RefStartListeningHint() {}
95 RefStopListeningHint::RefStopListeningHint() : RefHint(StopListening) {}
96 RefStopListeningHint::~RefStopListeningHint() {}
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */