diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-07-10 23:05:36 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-07-10 23:27:44 +0200 |
commit | 6ee9ca5ae9d33aa10e0b86dc9a44c8d69564d556 (patch) | |
tree | cc2730d163ee2b7b2f0a4ad6a31e71b9862b4b2a /include/svtools | |
parent | fafd0b61cc8e3476c0eaaccf42a5ce2e72954295 (diff) |
svtools: pimplify SvListView
Sadly this saves only 56MB of preprocessor input.
Change-Id: I9ea78306884c5dcb54b61da87b43f700083daf2c
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/treelist.hxx | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/include/svtools/treelist.hxx b/include/svtools/treelist.hxx index 0d784449002e..6092bcc6bae0 100644 --- a/include/svtools/treelist.hxx +++ b/include/svtools/treelist.hxx @@ -30,7 +30,6 @@ #include <limits.h> #include <vector> -#include <boost/ptr_container/ptr_map.hpp> enum class SvListAction { @@ -243,23 +242,8 @@ class SVT_DLLPUBLIC SvListView { friend class SvTreeList; - typedef boost::ptr_map<SvTreeListEntry*, SvViewDataEntry> SvDataTable; - - sal_uLong nVisibleCount; - sal_uLong nSelectionCount; - bool bVisPositionsValid; - - SVT_DLLPRIVATE void InitTable(); - SVT_DLLPRIVATE void RemoveViewData( SvTreeListEntry* pParent ); - - SvDataTable maDataTable; // Mapping SvTreeListEntry -> ViewData - - void ActionMoving( SvTreeListEntry* pEntry,SvTreeListEntry* pTargetPrnt,sal_uLong nChildPos); - void ActionMoved( SvTreeListEntry* pEntry,SvTreeListEntry* pTargetPrnt,sal_uLong nChildPos); - void ActionInserted( SvTreeListEntry* pEntry ); - void ActionInsertedTree( SvTreeListEntry* pEntry ); - void ActionRemoving( SvTreeListEntry* pEntry ); - void ActionClear(); + struct Impl; + std::unique_ptr<Impl> m_pImpl; protected: SvTreeList* pModel; @@ -306,8 +290,7 @@ public: SvTreeListEntry* PrevVisible( SvTreeListEntry* pEntry, sal_uInt16& rDelta ) const { return pModel->PrevVisible(this,pEntry,rDelta); } - sal_uLong GetSelectionCount() const - { return nSelectionCount; } + sal_uLong GetSelectionCount() const; SvTreeListEntry* FirstSelected() const { return pModel->FirstSelected(this); } @@ -350,8 +333,7 @@ public: void SetEntryFocus( SvTreeListEntry* pEntry, bool bFocus ); const SvViewDataEntry* GetViewData( const SvTreeListEntry* pEntry ) const; SvViewDataEntry* GetViewData( SvTreeListEntry* pEntry ); - bool HasViewData() const - { return maDataTable.size() > 1; } // There's always a ROOT + bool HasViewData() const; virtual SvViewDataEntry* CreateViewData( SvTreeListEntry* pEntry ); virtual void InitViewData( SvViewDataEntry*, SvTreeListEntry* pEntry ); |