summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-09-03 14:58:30 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-09-03 14:58:30 +0200
commit2b1b6c16040dc4c25b3143872f39fed6b9e6b54d (patch)
treed9f749dfa2e734e15ea8b05163e8d64200ac93eb /svtools
parent4833151f7dcfcf692dfd28eb796a0baf8782f285 (diff)
parent967ff551ae3b8cff755003a05cc465aa06eca149 (diff)
merged in latest changes from CWS dba33h
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/svtreebx.cxx14
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx6
2 files changed, 3 insertions, 17 deletions
diff --git a/svtools/source/contnr/svtreebx.cxx b/svtools/source/contnr/svtreebx.cxx
index fa3cf8e734c1..a8635c99d127 100644
--- a/svtools/source/contnr/svtreebx.cxx
+++ b/svtools/source/contnr/svtreebx.cxx
@@ -1513,11 +1513,6 @@ void SvTreeListBox::SetWindowBits( WinBits nWinStyle )
pImp->SetWindowBits( nWinStyle );
pImp->Resize();
Invalidate();
-
- if ( nWindowStyle != GetStyle() )
- {
- SetStyle( nWindowStyle );
- }
}
void SvTreeListBox::PaintEntry( SvLBoxEntry* pEntry )
@@ -2524,15 +2519,6 @@ void SvTreeListBox::DataChanged( const DataChangedEvent& rDCEvt )
void SvTreeListBox::StateChanged( StateChangedType i_nStateChange )
{
SvLBox::StateChanged( i_nStateChange );
- if ( ( i_nStateChange & STATE_CHANGE_STYLE ) != 0 )
- {
- if ( GetStyle() != nWindowStyle )
- // keep in sync with our WindowBits
- // TODO: SetWindowBits is weird, it should be completely replaced (in all clients) with SetStyle
- // (or are there WindowBits which have a different meaning when interpreted as style? Wouldn't
- // be the first time, but all of those should be fixed meanwhile ...)
- SetWindowBits( GetStyle() );
- }
}
void SvTreeListBox::InitSettings(BOOL bFont,BOOL bForeground,BOOL bBackground)
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx
index 5c1f4925783a..d1ea854cce61 100644
--- a/svtools/source/uno/treecontrolpeer.cxx
+++ b/svtools/source/uno/treecontrolpeer.cxx
@@ -1327,12 +1327,12 @@ void TreeControlPeer::setProperty( const ::rtl::OUString& PropertyName, const An
sal_Bool bEnabled = sal_False;
if ( aValue >>= bEnabled )
{
- WinBits nStyle = rTree.GetStyle();
+ WinBits nStyle = rTree.GetWindowBits();
if ( bEnabled )
nStyle |= WB_HIDESELECTION;
else
nStyle &= ~WB_HIDESELECTION;
- rTree.SetStyle( nStyle );
+ rTree.SetWindowBits( nStyle );
}
}
break;
@@ -1428,7 +1428,7 @@ Any TreeControlPeer::getProperty( const ::rtl::OUString& PropertyName ) throw(Ru
switch(nPropId)
{
case BASEPROPERTY_HIDEINACTIVESELECTION:
- return Any( ( rTree.GetStyle() & WB_HIDESELECTION ) != 0 ? sal_True : sal_False );
+ return Any( ( rTree.GetWindowBits() & WB_HIDESELECTION ) != 0 ? sal_True : sal_False );
case BASEPROPERTY_TREE_SELECTIONTYPE:
{