diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-29 17:44:52 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-29 19:13:18 -0500 |
commit | 74a16a90ff3befd7fc336cf203a9b797df9fc5b6 (patch) | |
tree | 5c9fbd990c777ffed4cc1248688d57043a0c9dc2 /svtools/source/contnr/viewdataentry.cxx | |
parent | 1ea411fb15930d734fb31c28dde01d919bd22f38 (diff) |
Avoid direct use of flag value.
Change-Id: I4279c352a990b2ffda482e9c69b63b18b3c13dc9
Diffstat (limited to 'svtools/source/contnr/viewdataentry.cxx')
-rw-r--r-- | svtools/source/contnr/viewdataentry.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/svtools/source/contnr/viewdataentry.cxx b/svtools/source/contnr/viewdataentry.cxx index 9c3d2d3b7889..99aeaa40e33d 100644 --- a/svtools/source/contnr/viewdataentry.cxx +++ b/svtools/source/contnr/viewdataentry.cxx @@ -94,6 +94,14 @@ void SvViewDataEntry::SetSelected( bool bSelected ) nFlags |= SVLISTENTRYFLAG_SELECTED; } +void SvViewDataEntry::SetExpanded( bool bExpanded ) +{ + if ( !bExpanded ) + nFlags &= (~SVLISTENTRYFLAG_EXPANDED); + else + nFlags |= SVLISTENTRYFLAG_EXPANDED; +} + sal_uInt16 SvViewDataEntry::GetFlags() const { return nFlags; |