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 #ifndef INCLUDED_SC_INC_REFHINT_HXX
11 #define INCLUDED_SC_INC_REFHINT_HXX
12 
13 #include "types.hxx"
14 #include <svl/hint.hxx>
15 
16 namespace sc {
17 
18 struct RefUpdateContext;
19 class ColRowReorderMapType;
20 
21 class RefHint : public SfxHint
22 {
23 public:
24  enum Type {
29  };
30 
31 private:
33 
34 protected:
35  RefHint( Type eType );
36 
37 public:
38  RefHint() = delete;
39  virtual ~RefHint() override = 0;
40 
41  RefHint(RefHint const &) = default;
42  RefHint(RefHint &&) = default;
43  RefHint & operator =(RefHint const &) = delete;
44  RefHint & operator =(RefHint &&) = delete;
45 
46  Type getType() const;
47 };
48 
49 class RefColReorderHint final : public RefHint
50 {
55 
56 public:
57  RefColReorderHint( const sc::ColRowReorderMapType& rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2 );
58  virtual ~RefColReorderHint() override;
59 
60  RefColReorderHint(RefColReorderHint const &) = default;
62  RefColReorderHint & operator =(RefColReorderHint const &) = delete; // due to mrColMap
63  RefColReorderHint & operator =(RefColReorderHint &&) = delete; // due to mrColMap
64 
65  const sc::ColRowReorderMapType& getColMap() const;
66 
67  SCTAB getTab() const;
68  SCROW getStartRow() const;
69  SCROW getEndRow() const;
70 };
71 
72 class RefRowReorderHint final : public RefHint
73 {
78 
79 public:
80  RefRowReorderHint( const sc::ColRowReorderMapType& rRowMap, SCTAB nTab, SCCOL nCol1, SCCOL nCol2 );
81  virtual ~RefRowReorderHint() override;
82 
83  RefRowReorderHint(RefRowReorderHint const &) = default;
85  RefRowReorderHint & operator =(RefRowReorderHint const &) = delete; // due to mrRowMap
86  RefRowReorderHint & operator =(RefRowReorderHint &&) = delete; // due to mrRowMap
87 
88  const sc::ColRowReorderMapType& getRowMap() const;
89 
90  SCTAB getTab() const;
91  SCCOL getStartColumn() const;
92  SCCOL getEndColumn() const;
93 };
94 
95 class RefStartListeningHint final : public RefHint
96 {
97 public:
99  virtual ~RefStartListeningHint() override;
100 };
101 
102 class RefStopListeningHint final : public RefHint
103 {
104 public:
106  virtual ~RefStopListeningHint() override;
107 };
108 
109 }
110 
111 #endif
112 
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~RefHint() override=0
Definition: refhint.cxx:15
SCTAB getTab() const
Definition: refhint.cxx:32
SCCOL getStartColumn() const
Definition: refhint.cxx:62
SCCOL getEndColumn() const
Definition: refhint.cxx:67
SCROW getEndRow() const
Definition: refhint.cxx:42
RefRowReorderHint(const sc::ColRowReorderMapType &rRowMap, SCTAB nTab, SCCOL nCol1, SCCOL nCol2)
Definition: refhint.cxx:47
SCTAB getTab() const
Definition: refhint.cxx:57
sal_Int16 SCCOL
Definition: types.hxx:22
virtual ~RefRowReorderHint() override
Definition: refhint.cxx:50
RefRowReorderHint & operator=(RefRowReorderHint const &)=delete
RefHint()=delete
const sc::ColRowReorderMapType & mrRowMap
Definition: refhint.hxx:74
const sc::ColRowReorderMapType & getColMap() const
Definition: refhint.cxx:27
const sc::ColRowReorderMapType & mrColMap
Definition: refhint.hxx:51
const sc::ColRowReorderMapType & getRowMap() const
Definition: refhint.cxx:52
virtual ~RefStopListeningHint() override
Definition: refhint.cxx:76
sal_Int32 SCROW
Definition: types.hxx:18
Type getType() const
Definition: refhint.cxx:17
virtual ~RefColReorderHint() override
Definition: refhint.cxx:25
RefHint & operator=(RefHint const &)=delete
RefColReorderHint(const sc::ColRowReorderMapType &rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2)
Definition: refhint.cxx:22
Type meType
Definition: refhint.hxx:32
SCROW getStartRow() const
Definition: refhint.cxx:37
RefColReorderHint & operator=(RefColReorderHint const &)=delete
virtual ~RefStartListeningHint() override
Definition: refhint.cxx:73
sal_Int16 SCTAB
Definition: types.hxx:23