tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / core / tool / refhint.cxx
bloba7245fd281aab8522fc268e42885085d141f869d
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 ) : SfxHint(SfxHintId::ScReference), meType(eType) {}
15 RefHint::~RefHint() {}
17 RefHint::Type RefHint::getType() const
19 return meType;
22 RefColReorderHint::RefColReorderHint( const sc::ColRowReorderMapType& rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2 ) :
23 RefHint(ColumnReordered), mrColMap(rColMap), mnTab(nTab), mnRow1(nRow1), mnRow2(nRow2) {}
25 RefColReorderHint::~RefColReorderHint() {}
27 const sc::ColRowReorderMapType& RefColReorderHint::getColMap() const
29 return mrColMap;
32 SCTAB RefColReorderHint::getTab() const
34 return mnTab;
37 SCROW RefColReorderHint::getStartRow() const
39 return mnRow1;
42 SCROW RefColReorderHint::getEndRow() const
44 return mnRow2;
47 RefRowReorderHint::RefRowReorderHint( const sc::ColRowReorderMapType& rRowMap, SCTAB nTab, SCCOL nCol1, SCCOL nCol2 ) :
48 RefHint(RowReordered), mrRowMap(rRowMap), mnTab(nTab), mnCol1(nCol1), mnCol2(nCol2) {}
50 RefRowReorderHint::~RefRowReorderHint() {}
52 const sc::ColRowReorderMapType& RefRowReorderHint::getRowMap() const
54 return mrRowMap;
57 SCTAB RefRowReorderHint::getTab() const
59 return mnTab;
62 SCCOL RefRowReorderHint::getStartColumn() const
64 return mnCol1;
67 SCCOL RefRowReorderHint::getEndColumn() const
69 return mnCol2;
72 RefStartListeningHint::RefStartListeningHint() : RefHint(StartListening) {}
73 RefStartListeningHint::~RefStartListeningHint() {}
75 RefStopListeningHint::RefStopListeningHint() : RefHint(StopListening) {}
76 RefStopListeningHint::~RefStopListeningHint() {}
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */