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
14 #include <svl/hint.hxx>
18 struct RefUpdateContext
;
19 class ColRowReorderMapType
;
21 class RefHint
: public SfxHint
35 RefHint( Type eType
);
39 virtual ~RefHint() override
= 0;
41 RefHint(RefHint
const &) = default;
42 RefHint(RefHint
&&) = default;
43 RefHint
& operator =(RefHint
const &) = delete;
44 RefHint
& operator =(RefHint
&&) = delete;
49 class RefColReorderHint final
: public RefHint
51 const sc::ColRowReorderMapType
& mrColMap
;
57 RefColReorderHint( const sc::ColRowReorderMapType
& rColMap
, SCTAB nTab
, SCROW nRow1
, SCROW nRow2
);
58 virtual ~RefColReorderHint() override
;
60 RefColReorderHint(RefColReorderHint
const &) = default;
61 RefColReorderHint(RefColReorderHint
&&) = default;
62 RefColReorderHint
& operator =(RefColReorderHint
const &) = delete; // due to mrColMap
63 RefColReorderHint
& operator =(RefColReorderHint
&&) = delete; // due to mrColMap
65 const sc::ColRowReorderMapType
& getColMap() const;
68 SCROW
getStartRow() const;
69 SCROW
getEndRow() const;
72 class RefRowReorderHint
: public RefHint
74 const sc::ColRowReorderMapType
& mrRowMap
;
80 RefRowReorderHint( const sc::ColRowReorderMapType
& rRowMap
, SCTAB nTab
, SCCOL nCol1
, SCCOL nCol2
);
81 virtual ~RefRowReorderHint() override
;
83 RefRowReorderHint(RefRowReorderHint
const &) = default;
84 RefRowReorderHint(RefRowReorderHint
&&) = default;
85 RefRowReorderHint
& operator =(RefRowReorderHint
const &) = delete; // due to mrRowMap
86 RefRowReorderHint
& operator =(RefRowReorderHint
&&) = delete; // due to mrRowMap
88 const sc::ColRowReorderMapType
& getRowMap() const;
91 SCCOL
getStartColumn() const;
92 SCCOL
getEndColumn() const;
95 class RefStartListeningHint final
: public RefHint
98 RefStartListeningHint();
99 virtual ~RefStartListeningHint() override
;
102 class RefStopListeningHint final
: public RefHint
105 RefStopListeningHint();
106 virtual ~RefStopListeningHint() override
;
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */