LibreOffice Module sc (master) 1
refhint.hxx
Go to the documentation of this file.
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#pragma once
11
12#include "types.hxx"
13#include <svl/hint.hxx>
14
15namespace sc {
16
17struct RefUpdateContext;
18class ColRowReorderMapType;
19
20class RefHint : public SfxHint
21{
22public:
23 enum Type {
28 };
29
30private:
32
33protected:
34 RefHint( Type eType );
35
36public:
37 RefHint() = delete;
38 virtual ~RefHint() override = 0;
39
40 RefHint(RefHint const &) = default;
41 RefHint(RefHint &&) = default;
42 RefHint & operator =(RefHint const &) = delete;
43 RefHint & operator =(RefHint &&) = delete;
44
45 Type getType() const;
46};
47
48class RefColReorderHint final : public RefHint
49{
54
55public:
56 RefColReorderHint( const sc::ColRowReorderMapType& rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2 );
57 virtual ~RefColReorderHint() override;
58
61 RefColReorderHint & operator =(RefColReorderHint const &) = delete; // due to mrColMap
62 RefColReorderHint & operator =(RefColReorderHint &&) = delete; // due to mrColMap
63
65
66 SCTAB getTab() const;
67 SCROW getStartRow() const;
68 SCROW getEndRow() const;
69};
70
71class RefRowReorderHint final : public RefHint
72{
77
78public:
79 RefRowReorderHint( const sc::ColRowReorderMapType& rRowMap, SCTAB nTab, SCCOL nCol1, SCCOL nCol2 );
80 virtual ~RefRowReorderHint() override;
81
84 RefRowReorderHint & operator =(RefRowReorderHint const &) = delete; // due to mrRowMap
85 RefRowReorderHint & operator =(RefRowReorderHint &&) = delete; // due to mrRowMap
86
88
89 SCTAB getTab() const;
90 SCCOL getStartColumn() const;
91 SCCOL getEndColumn() const;
92};
93
94class RefStartListeningHint final : public RefHint
95{
96public:
98 virtual ~RefStartListeningHint() override;
99};
100
101class RefStopListeningHint final : public RefHint
102{
103public:
105 virtual ~RefStopListeningHint() override;
106};
107
108}
109
110/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~RefColReorderHint() override
Definition: refhint.cxx:25
SCROW getEndRow() const
Definition: refhint.cxx:42
const sc::ColRowReorderMapType & mrColMap
Definition: refhint.hxx:50
RefColReorderHint(RefColReorderHint const &)=default
RefColReorderHint(RefColReorderHint &&)=default
SCTAB getTab() const
Definition: refhint.cxx:32
const sc::ColRowReorderMapType & getColMap() const
Definition: refhint.cxx:27
RefColReorderHint & operator=(RefColReorderHint const &)=delete
RefColReorderHint(const sc::ColRowReorderMapType &rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2)
Definition: refhint.cxx:22
SCROW getStartRow() const
Definition: refhint.cxx:37
RefHint()=delete
virtual ~RefHint() override=0
Definition: refhint.cxx:15
RefHint & operator=(RefHint const &)=delete
RefHint(RefHint &&)=default
Type getType() const
Definition: refhint.cxx:17
@ StartListening
Definition: refhint.hxx:26
@ StopListening
Definition: refhint.hxx:27
@ ColumnReordered
Definition: refhint.hxx:24
@ RowReordered
Definition: refhint.hxx:25
Type meType
Definition: refhint.hxx:31
RefHint(RefHint const &)=default
RefRowReorderHint(RefRowReorderHint &&)=default
RefRowReorderHint & operator=(RefRowReorderHint const &)=delete
RefRowReorderHint(const sc::ColRowReorderMapType &rRowMap, SCTAB nTab, SCCOL nCol1, SCCOL nCol2)
Definition: refhint.cxx:47
virtual ~RefRowReorderHint() override
Definition: refhint.cxx:50
const sc::ColRowReorderMapType & getRowMap() const
Definition: refhint.cxx:52
const sc::ColRowReorderMapType & mrRowMap
Definition: refhint.hxx:73
SCTAB getTab() const
Definition: refhint.cxx:57
RefRowReorderHint(RefRowReorderHint const &)=default
SCCOL getEndColumn() const
Definition: refhint.cxx:67
SCCOL getStartColumn() const
Definition: refhint.cxx:62
virtual ~RefStartListeningHint() override
Definition: refhint.cxx:73
virtual ~RefStopListeningHint() override
Definition: refhint.cxx:76
CAUTION! The following defines must be in the same namespace as the respective type.
sal_Int16 SCTAB
Definition: types.hxx:22
sal_Int16 SCCOL
Definition: types.hxx:21
sal_Int32 SCROW
Definition: types.hxx:17