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/.
13 #include <svl/hint.hxx>
17 struct RefUpdateContext
;
18 class ColRowReorderMapType
;
20 class RefHint
: public SfxHint
34 RefHint( Type eType
);
38 virtual ~RefHint() override
= 0;
40 RefHint(RefHint
const &) = default;
41 RefHint(RefHint
&&) = default;
42 RefHint
& operator =(RefHint
const &) = delete;
43 RefHint
& operator =(RefHint
&&) = delete;
48 class RefColReorderHint final
: public RefHint
50 const sc::ColRowReorderMapType
& mrColMap
;
56 RefColReorderHint( const sc::ColRowReorderMapType
& rColMap
, SCTAB nTab
, SCROW nRow1
, SCROW nRow2
);
57 virtual ~RefColReorderHint() override
;
59 RefColReorderHint(RefColReorderHint
const &) = default;
60 RefColReorderHint(RefColReorderHint
&&) = default;
61 RefColReorderHint
& operator =(RefColReorderHint
const &) = delete; // due to mrColMap
62 RefColReorderHint
& operator =(RefColReorderHint
&&) = delete; // due to mrColMap
64 const sc::ColRowReorderMapType
& getColMap() const;
67 SCROW
getStartRow() const;
68 SCROW
getEndRow() const;
71 class RefRowReorderHint final
: public RefHint
73 const sc::ColRowReorderMapType
& mrRowMap
;
79 RefRowReorderHint( const sc::ColRowReorderMapType
& rRowMap
, SCTAB nTab
, SCCOL nCol1
, SCCOL nCol2
);
80 virtual ~RefRowReorderHint() override
;
82 RefRowReorderHint(RefRowReorderHint
const &) = default;
83 RefRowReorderHint(RefRowReorderHint
&&) = default;
84 RefRowReorderHint
& operator =(RefRowReorderHint
const &) = delete; // due to mrRowMap
85 RefRowReorderHint
& operator =(RefRowReorderHint
&&) = delete; // due to mrRowMap
87 const sc::ColRowReorderMapType
& getRowMap() const;
90 SCCOL
getStartColumn() const;
91 SCCOL
getEndColumn() const;
94 class RefStartListeningHint final
: public RefHint
97 RefStartListeningHint();
98 virtual ~RefStartListeningHint() override
;
101 class RefStopListeningHint final
: public RefHint
104 RefStopListeningHint();
105 virtual ~RefStopListeningHint() override
;
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */