summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-11-27 13:41:05 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-11-28 10:01:31 -0500
commitcf9b196bf8b925f6059c638251e93011e6ebde23 (patch)
treec33d01f4c3beca2641d98f72fa1d9df3b80baf7c /svtools
parent0ce2977569c5d08e66b325590ee470504afb928f (diff)
Make these methods non-inline.
Change-Id: Ifa0a78213edbdf997985bf89bc769219223feab9
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/viewdataentry.hxx62
-rw-r--r--svtools/source/contnr/viewdataentry.cxx54
2 files changed, 69 insertions, 47 deletions
diff --git a/svtools/inc/svtools/viewdataentry.hxx b/svtools/inc/svtools/viewdataentry.hxx
index 769381aff749..b657cbcf6916 100644
--- a/svtools/inc/svtools/viewdataentry.hxx
+++ b/svtools/inc/svtools/viewdataentry.hxx
@@ -35,55 +35,23 @@ class SVT_DLLPUBLIC SvViewData
friend class SvTreeList;
friend class SvListView;
- sal_uLong nVisPos;
+ sal_uLong nVisPos;
protected:
- sal_uInt16 nFlags;
+ sal_uInt16 nFlags;
public:
- SvViewData();
- SvViewData( const SvViewData& );
- virtual ~SvViewData();
-
- sal_Bool IsSelected() const
- { return (sal_Bool)(nFlags & SVLISTENTRYFLAG_SELECTED) != 0; }
-
- sal_Bool IsExpanded() const
- { return (sal_Bool)(nFlags & SVLISTENTRYFLAG_EXPANDED) != 0; }
-
- sal_Bool HasFocus() const
- { return (sal_Bool)(nFlags & SVLISTENTRYFLAG_FOCUSED) != 0; }
-
- sal_Bool IsCursored() const
- { return (sal_Bool)(nFlags & SVLISTENTRYFLAG_CURSORED) != 0; }
-
- bool IsSelectable() const
- { return (bool)(nFlags & SVLISTENTRYFLAG_NOT_SELECTABLE) == 0; }
-
- void SetFocus( sal_Bool bFocus)
- {
- if ( !bFocus )
- nFlags &= (~SVLISTENTRYFLAG_FOCUSED);
- else
- nFlags |= SVLISTENTRYFLAG_FOCUSED;
- }
-
- void SetCursored( sal_Bool bCursored )
- {
- if ( !bCursored )
- nFlags &= (~SVLISTENTRYFLAG_CURSORED);
- else
- nFlags |= SVLISTENTRYFLAG_CURSORED;
- }
-
- sal_uInt16 GetFlags() const
- { return nFlags; }
-
- void SetSelectable( bool bSelectable )
- {
- if( bSelectable )
- nFlags &= (~SVLISTENTRYFLAG_NOT_SELECTABLE);
- else
- nFlags |= SVLISTENTRYFLAG_NOT_SELECTABLE;
- }
+ SvViewData();
+ SvViewData( const SvViewData& );
+ virtual ~SvViewData();
+
+ bool IsSelected() const;
+ bool IsExpanded() const;
+ bool HasFocus() const;
+ bool IsCursored() const;
+ bool IsSelectable() const;
+ void SetFocus( sal_Bool bFocus);
+ void SetCursored( sal_Bool bCursored );
+ sal_uInt16 GetFlags() const;
+ void SetSelectable( bool bSelectable );
};
#endif
diff --git a/svtools/source/contnr/viewdataentry.cxx b/svtools/source/contnr/viewdataentry.cxx
index 4508782e2ee4..b0efde066252 100644
--- a/svtools/source/contnr/viewdataentry.cxx
+++ b/svtools/source/contnr/viewdataentry.cxx
@@ -47,4 +47,58 @@ SvViewData::~SvViewData()
#endif
}
+bool SvViewData::IsSelected() const
+{
+ return (nFlags & SVLISTENTRYFLAG_SELECTED) != 0;
+}
+
+bool SvViewData::IsExpanded() const
+{
+ return (nFlags & SVLISTENTRYFLAG_EXPANDED) != 0;
+}
+
+bool SvViewData::HasFocus() const
+{
+ return (nFlags & SVLISTENTRYFLAG_FOCUSED) != 0;
+}
+
+bool SvViewData::IsCursored() const
+{
+ return (nFlags & SVLISTENTRYFLAG_CURSORED) != 0;
+}
+
+bool SvViewData::IsSelectable() const
+{
+ return (nFlags & SVLISTENTRYFLAG_NOT_SELECTABLE) == 0;
+}
+
+void SvViewData::SetFocus( sal_Bool bFocus)
+{
+ if ( !bFocus )
+ nFlags &= (~SVLISTENTRYFLAG_FOCUSED);
+ else
+ nFlags |= SVLISTENTRYFLAG_FOCUSED;
+}
+
+void SvViewData::SetCursored( sal_Bool bCursored )
+{
+ if ( !bCursored )
+ nFlags &= (~SVLISTENTRYFLAG_CURSORED);
+ else
+ nFlags |= SVLISTENTRYFLAG_CURSORED;
+}
+
+sal_uInt16 SvViewData::GetFlags() const
+{
+ return nFlags;
+}
+
+void SvViewData::SetSelectable( bool bSelectable )
+{
+ if( bSelectable )
+ nFlags &= (~SVLISTENTRYFLAG_NOT_SELECTABLE);
+ else
+ nFlags |= SVLISTENTRYFLAG_NOT_SELECTABLE;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */