summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/control/marktree.cxx
diff options
context:
space:
mode:
authorgt <gt@openoffice.org>2002-05-24 08:54:45 +0000
committergt <gt@openoffice.org>2002-05-24 08:54:45 +0000
commit531a3bafc6402de09c44656112401d9fb15bf235 (patch)
treeccb8b496417891bf7c7ec9ca2060392cb172afb2 /dbaccess/source/ui/control/marktree.cxx
parentf59aef5f9c8c4ea76b06cb197b9563b44e32e13c (diff)
#99251# use of default images from SvLBoxButtonData
Diffstat (limited to 'dbaccess/source/ui/control/marktree.cxx')
-rw-r--r--dbaccess/source/ui/control/marktree.cxx18
1 files changed, 7 insertions, 11 deletions
diff --git a/dbaccess/source/ui/control/marktree.cxx b/dbaccess/source/ui/control/marktree.cxx
index 0773c97ab65f..d8305f0848bf 100644
--- a/dbaccess/source/ui/control/marktree.cxx
+++ b/dbaccess/source/ui/control/marktree.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: marktree.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: oj $ $Date: 2002-04-29 08:49:26 $
+ * last change: $Author: gt $ $Date: 2002-05-24 09:54:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -98,14 +98,7 @@ OMarkableTreeListBox::~OMarkableTreeListBox()
// -----------------------------------------------------------------------------
void OMarkableTreeListBox::notifyHiContrastChanged()
{
- OSL_ENSURE(m_pCheckButton,"No CheckButton!");
- sal_Bool bHiContrast = GetBackground().GetColor().IsDark();
- m_pCheckButton->aBmps[SV_BMP_UNCHECKED] = Bitmap( ResId( bHiContrast ? BMP_CHECKBUTTON_UNCHECKED_SCH : BMP_CHECKBUTTON_UNCHECKED ) );
- m_pCheckButton->aBmps[SV_BMP_CHECKED] = Bitmap( ResId( bHiContrast ? BMP_CHECKBUTTON_CHECKED_SCH : BMP_CHECKBUTTON_CHECKED ) );
- m_pCheckButton->aBmps[SV_BMP_HICHECKED] = Bitmap( ResId( bHiContrast ? BMP_CHECKBUTTON_HICHECKED_SCH : BMP_CHECKBUTTON_HICHECKED ) );
- m_pCheckButton->aBmps[SV_BMP_HIUNCHECKED] = Bitmap( ResId( bHiContrast ? BMP_CHECKBUTTON_UNCHECKED_SCH : BMP_CHECKBUTTON_UNCHECKED ) );
- m_pCheckButton->aBmps[SV_BMP_TRISTATE] = Bitmap( ResId( bHiContrast ? BMP_CHECKBUTTON_TRISTATE_SCH : BMP_CHECKBUTTON_TRISTATE ) );
- m_pCheckButton->aBmps[SV_BMP_HITRISTATE] = Bitmap( ResId( bHiContrast ? BMP_CHECKBUTTON_HITRISTATE_SCH : BMP_CHECKBUTTON_HITRISTATE ) );
+ // old actions now done in SvTreeListBox::DataChanged() / InitSettings()
}
//------------------------------------------------------------------------
void OMarkableTreeListBox::Paint(const Rectangle& _rRect)
@@ -132,7 +125,7 @@ void OMarkableTreeListBox::InitButtonData()
SetNodeBitmaps( Bitmap(ModuleRes( bHiContrast ? BMP_PLUSBUTTON_SCH : BMP_PLUSBUTTON)),
Bitmap(ModuleRes( bHiContrast ? BMP_MINUSBUTTON_SCH : BMP_MINUSBUTTON)));
- m_pCheckButton = new SvLBoxButtonData();
+ m_pCheckButton = new SvLBoxButtonData( this );
OMarkableTreeListBox::notifyHiContrastChanged();
EnableCheckButton( m_pCheckButton );
}
@@ -367,6 +360,9 @@ SvLBoxEntry* OMarkableTreeListBox::GetEntryPosByName(const String& aName,SvLBoxE
/*************************************************************************
* history:
* $Log: not supported by cvs2svn $
+ * Revision 1.6 2002/04/29 08:49:26 oj
+ * #98772# hi contrast changes
+ *
* Revision 1.5 2001/06/20 09:53:46 fs
* #88485# corrected implDetermineState for a special case
*