summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-11-29 20:39:48 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-11-29 21:29:31 -0500
commitf532752756c81a295116b0889fe4e9d31b7c3bb6 (patch)
tree3a0fc8dfb93def468e2641ab6a5012c79bc18b45 /svtools
parentdffb58f927ed68b58de1d5d6ad0df6549eb21d70 (diff)
Remove unused method & remove header include by using forward declaration.
Also, SvViewDataEntry has lost one friend. Change-Id: Icf6d4127de38fed485cd260edae97748b1f78ede
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/treelistbox.hxx9
-rw-r--r--svtools/inc/svtools/viewdataentry.hxx2
-rw-r--r--svtools/source/contnr/svimpbox.cxx1
-rw-r--r--svtools/source/contnr/svlbitm.cxx1
-rw-r--r--svtools/source/contnr/treelist.cxx1
-rw-r--r--svtools/source/contnr/treelistbox.cxx7
-rw-r--r--svtools/source/contnr/viewdataentry.cxx5
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx1
8 files changed, 13 insertions, 14 deletions
diff --git a/svtools/inc/svtools/treelistbox.hxx b/svtools/inc/svtools/treelistbox.hxx
index 3aa876918500..ba678aeb9186 100644
--- a/svtools/inc/svtools/treelistbox.hxx
+++ b/svtools/inc/svtools/treelistbox.hxx
@@ -37,7 +37,6 @@
#include <tools/contnr.hxx>
#include <svtools/treelist.hxx>
#include <svtools/transfer.hxx>
-#include "svtools/viewdataentry.hxx"
class Application;
class SvTreeListBox;
@@ -143,11 +142,7 @@ public:
virtual ~SvLBoxItem();
virtual sal_uInt16 GetType() const = 0;
const Size& GetSize(const SvTreeListBox* pView, const SvTreeListEntry* pEntry) const;
- const Size& GetSize(const SvViewDataEntry* pData, sal_uInt16 nItemPos) const
- {
- const SvViewDataItem* pIData = pData->GetItem(nItemPos);
- return pIData->maSize;
- }
+ const Size& GetSize(const SvViewDataEntry* pData, sal_uInt16 nItemPos) const;
virtual void Paint(
const Point& rPos, SvTreeListBox& rOutDev, const SvViewDataEntry* pView, const SvTreeListEntry* pEntry) = 0;
@@ -347,7 +342,7 @@ public:
SvTreeListBox( Window* pParent, const ResId& rResId );
virtual ~SvTreeListBox();
- SvTreeList* GetModel() const { return (SvTreeList*)pModel; }
+ SvTreeList* GetModel() const { return pModel; }
using SvListView::SetModel;
void SetModel(SvTreeList* pNewModel);
diff --git a/svtools/inc/svtools/viewdataentry.hxx b/svtools/inc/svtools/viewdataentry.hxx
index 65a3db9134eb..06860884dde7 100644
--- a/svtools/inc/svtools/viewdataentry.hxx
+++ b/svtools/inc/svtools/viewdataentry.hxx
@@ -39,7 +39,6 @@ struct SvViewDataItem
class SVT_DLLPUBLIC SvViewDataEntry
{
friend class SvTreeList;
- friend class SvListView;
std::vector<SvViewDataItem> maItems;
sal_uLong nVisPos;
@@ -59,7 +58,6 @@ public:
void SetCursored( bool bCursored );
void SetSelected( bool bSelected );
void SetExpanded( bool bExpanded );
- sal_uInt16 GetFlags() const;
void SetSelectable( bool bSelectable );
void Init(size_t nSize);
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index d3c0eb76ff06..369fead02d3c 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -34,6 +34,7 @@
#include <comphelper/string.hxx>
#include "svtools/treelistentry.hxx"
+#include "svtools/viewdataentry.hxx"
#define NODE_BMP_TABDIST_NOTVALID -2000000
#define FIRST_ENTRY_TAB 1
diff --git a/svtools/source/contnr/svlbitm.cxx b/svtools/source/contnr/svlbitm.cxx
index e0f4b25f69ef..10621efe8f0c 100644
--- a/svtools/source/contnr/svlbitm.cxx
+++ b/svtools/source/contnr/svlbitm.cxx
@@ -20,6 +20,7 @@
#include <svtools/treelistbox.hxx>
#include <svtools/svlbitm.hxx>
#include "svtools/treelistentry.hxx"
+#include "svtools/viewdataentry.hxx"
#include <vcl/svapp.hxx>
#include <vcl/button.hxx>
#include <vcl/decoview.hxx>
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx
index 70b410c093cc..d0125f45efa5 100644
--- a/svtools/source/contnr/treelist.cxx
+++ b/svtools/source/contnr/treelist.cxx
@@ -19,6 +19,7 @@
#include "svtools/treelist.hxx"
#include "svtools/treelistentry.hxx"
+#include "svtools/viewdataentry.hxx"
#include "osl/diagnose.h"
#include <stdio.h>
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 802ec45b928a..b9c41805a949 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -37,6 +37,7 @@
#include <svtools/svmedit.hxx>
#include <svtools/svlbitm.hxx>
#include "svtools/treelistentry.hxx"
+#include "svtools/viewdataentry.hxx"
#include "svimpbox.hxx"
#include <set>
@@ -366,6 +367,12 @@ const Size& SvLBoxItem::GetSize(const SvTreeListBox* pView, const SvTreeListEntr
return pViewData->maSize;
}
+const Size& SvLBoxItem::GetSize(const SvViewDataEntry* pData, sal_uInt16 nItemPos) const
+{
+ const SvViewDataItem* pIData = pData->GetItem(nItemPos);
+ return pIData->maSize;
+}
+
struct SvTreeListBoxImpl
{
bool m_bIsEmptyTextAllowed:1;
diff --git a/svtools/source/contnr/viewdataentry.cxx b/svtools/source/contnr/viewdataentry.cxx
index 1d3bfaf87d2c..897e0e9448bc 100644
--- a/svtools/source/contnr/viewdataentry.cxx
+++ b/svtools/source/contnr/viewdataentry.cxx
@@ -109,11 +109,6 @@ void SvViewDataEntry::SetExpanded( bool bExpanded )
nFlags |= SVLISTENTRYFLAG_EXPANDED;
}
-sal_uInt16 SvViewDataEntry::GetFlags() const
-{
- return nFlags;
-}
-
void SvViewDataEntry::SetSelectable( bool bSelectable )
{
if( bSelectable )
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx
index f15a223f78c6..186490c6135a 100644
--- a/svtools/source/uno/treecontrolpeer.cxx
+++ b/svtools/source/uno/treecontrolpeer.cxx
@@ -34,6 +34,7 @@
#include <vcl/svapp.hxx>
#include <svtools/treelistbox.hxx>
#include "svtools/treelistentry.hxx"
+#include "svtools/viewdataentry.hxx"
#include <svtools/svlbitm.hxx>
#include <map>