summaryrefslogtreecommitdiff
path: root/sc/inc/types.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-08-14 23:36:47 +0200
committerKohei Yoshida <libreoffice@kohei.us>2014-08-22 12:35:11 -0500
commit2d8d35f9f74102b800a3b777a5e3d79dce283ae9 (patch)
treefefcd69d3a5cc729fad0b50f7e2ace0005e731be /sc/inc/types.hxx
parent4bd844d6842becf495834bda997d2731bd49316d (diff)
correct references after sort, fdo#79441
5c6ee09126631342939ae8766fe36083d8c011e3 introduced a different algorithm for reference handling during sort. Unfortunately that clashed with the SC_CLONECELL_ADJUST3DREL introduced a little earlier resulting in relative 3D references effectively being "adjusted" twice. Furthermore, in-sort-range range references to one row (or column) were not adapted to the move at all if the formula within the range listened only to ranges and not a single cell. Added collecting and adjusting area listeners for this. Last but not least, external (relative) references need to be treated the same as internal 3D references, making them point to the same location after the sort. (cherry picked from commit 69adec3ec051ff94f600ab899506ca9d645a8b56) Conflicts: sc/inc/types.hxx sc/source/core/data/bcaslot.cxx Plus necessary parts of 27182231acd3a0c9898a8dba78b76dc8a827b4c0 related to bcaslot changes. Change-Id: I492768b525f95f1c43d1c6e7a63a36cce093fa5a Reviewed-on: https://gerrit.libreoffice.org/10930 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc/inc/types.hxx')
-rw-r--r--sc/inc/types.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/inc/types.hxx b/sc/inc/types.hxx
index 732ff190ca64..5226463ad3c3 100644
--- a/sc/inc/types.hxx
+++ b/sc/inc/types.hxx
@@ -100,6 +100,14 @@ struct RangeMatrix
typedef boost::unordered_map<SCCOLROW,SCCOLROW> ColRowReorderMapType;
+enum AreaOverlapType
+{
+ AreaInside,
+ AreaPartialOverlap,
+ OneRowInsideArea,
+ OneColumnInsideArea
+};
+
}
#endif