diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-02 18:29:27 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-13 18:07:14 -0400 |
commit | 5c6ee09126631342939ae8766fe36083d8c011e3 (patch) | |
tree | 48081d36ae5000542adb49cc037267992f59ec66 /sc/inc/sortparam.hxx | |
parent | fdo#81102: fix .doc import of blank even page header (diff) | |
download | core-5c6ee09126631342939ae8766fe36083d8c011e3.tar.gz core-5c6ee09126631342939ae8766fe36083d8c011e3.zip |
fdo#81309: Adjust references during sort.
Change-Id: I2b98610f6b774400ecfaffe2905201c27fcab33f
Diffstat (limited to 'sc/inc/sortparam.hxx')
-rw-r--r-- | sc/inc/sortparam.hxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sc/inc/sortparam.hxx b/sc/inc/sortparam.hxx index 55b09a6ca2ba..ab26d10aacb0 100644 --- a/sc/inc/sortparam.hxx +++ b/sc/inc/sortparam.hxx @@ -78,6 +78,34 @@ struct SC_DLLPUBLIC ScSortParam inline sal_uInt16 GetSortKeyCount() const { return maKeyState.size(); } }; +namespace sc { + +struct SC_DLLPUBLIC ReorderParam +{ + /** + * This sort range already takes into account the presence or absence of + * header row / column i.e. if a header row / column is present, it + * excludes that row / column. + */ + ScRange maSortRange; + + /** + * List of original column / row positions after reordering. + */ + std::vector<SCCOLROW> maOrderIndices; + bool mbByRow; + bool mbPattern; + bool mbHiddenFiltered; + + /** + * Reorder the position indices such that it can be used to undo the + * original reordering. + */ + void reverse(); +}; + +} + #endif // INCLUDED_SC_INC_SORTPARAM_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |