From 3c4fb52d8fc89fe43983991ed2339295b2e0ef8c Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 1 May 2014 01:15:02 -0400 Subject: fdo#78079: Re-work sort by column to get it to do the right thing. Also fixed reference update problem. Change-Id: I06e6115ef969a011fdd5c92d5eb1927fb7ae789b --- sc/inc/refhint.hxx | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'sc/inc/refhint.hxx') diff --git a/sc/inc/refhint.hxx b/sc/inc/refhint.hxx index b9ddf046fb8a..9ded863d5f98 100644 --- a/sc/inc/refhint.hxx +++ b/sc/inc/refhint.hxx @@ -18,7 +18,7 @@ namespace sc { class RefHint : public SfxSimpleHint { public: - enum Type { Moved }; + enum Type { Moved, ColumnReordered }; private: Type meType; @@ -55,6 +55,24 @@ public: const ScAddress& getDelta() const; }; +class RefColReorderHint : public RefHint +{ + const sc::ColReorderMapType& mrColMap; + SCTAB mnTab; + SCROW mnRow1; + SCROW mnRow2; + +public: + RefColReorderHint( const sc::ColReorderMapType& rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2 ); + virtual ~RefColReorderHint(); + + const sc::ColReorderMapType& getColMap() const; + + SCTAB getTab() const; + SCROW getStartRow() const; + SCROW getEndRow() const; +}; + } #endif -- cgit