diff options
author | Palenik Mihály <palenik.mihaly@gmail.com> | 2014-10-22 19:01:05 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-10-30 13:03:44 +0000 |
commit | f92ab4da51647a4353038b1c56b70db3672c49cf (patch) | |
tree | de37e84439aef3b3cbd08e875a58a0f36dea0697 /include | |
parent | 226285b7ccc0c6880ae1005c9f0d9f47aa41fc29 (diff) |
Improve SvSimpleTable class
It is possible to order columns. This is set in Expert Configuration
dialog. The header's itembits weren't set correctly therefore mouse
click handler didn't do anything. The comparsion was slow on big
table.
Conflicts:
include/svtools/treelist.hxx
svtools/source/contnr/simptabl.cxx
Change-Id: I7e1301d40433ef45b3d0a3fb300909345ede9d4d
Reviewed-on: https://gerrit.libreoffice.org/12070
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/simptabl.hxx | 3 | ||||
-rw-r--r-- | include/svtools/treelist.hxx | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/svtools/simptabl.hxx b/include/svtools/simptabl.hxx index 5ade4fbbbe6a..821a1d73753f 100644 --- a/include/svtools/simptabl.hxx +++ b/include/svtools/simptabl.hxx @@ -23,6 +23,7 @@ #include <svtools/svtdllapi.h> #include <svtools/headbar.hxx> #include <svtools/svtabbx.hxx> +#include <unotools/intlwrapper.hxx> class SvSimpleTable; class SVT_DLLPUBLIC SvSimpleTableContainer : public Control @@ -59,6 +60,8 @@ private: bool bSortDirection; sal_uInt16 nSortCol; + const CollatorWrapper aCollator; + DECL_LINK( StartDragHdl, HeaderBar* ); DECL_LINK( DragHdl, HeaderBar* ); DECL_LINK( EndDragHdl, HeaderBar* ); diff --git a/include/svtools/treelist.hxx b/include/svtools/treelist.hxx index cf208727deb4..ae0159510d8f 100644 --- a/include/svtools/treelist.hxx +++ b/include/svtools/treelist.hxx @@ -44,7 +44,9 @@ enum class SvListAction INVALIDATE_ENTRY = 8, RESORTING = 9, RESORTED = 10, - CLEARED = 11 + CLEARED = 11, + REVERSING = 12, + REVERSED = 13 }; class SvTreeListEntry; @@ -124,6 +126,7 @@ class SVT_DLLPUBLIC SvTreeList ); SVT_DLLPRIVATE void ResortChildren( SvTreeListEntry* pParent ); + SVT_DLLPRIVATE void ReverseChildren( SvTreeListEntry* pParent ); SvTreeList(const SvTreeList&); // disabled SvTreeList& operator= (const SvTreeList&); // disabled @@ -233,6 +236,7 @@ public: void SetCompareHdl( const Link& rLink ) { aCompareLink = rLink; } const Link& GetCompareHdl() const { return aCompareLink; } void Resort(); + void Reverse(); }; class SVT_DLLPUBLIC SvListView |