diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-27 13:41:05 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-28 10:01:31 -0500 |
commit | cf9b196bf8b925f6059c638251e93011e6ebde23 (patch) | |
tree | c33d01f4c3beca2641d98f72fa1d9df3b80baf7c /svtools/source | |
parent | 0ce2977569c5d08e66b325590ee470504afb928f (diff) |
Make these methods non-inline.
Change-Id: Ifa0a78213edbdf997985bf89bc769219223feab9
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/contnr/viewdataentry.cxx | 54 |
1 files changed, 54 insertions, 0 deletions
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: */ |