From 59aa2e527a22ed233a849bd02fad0533afc69a93 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Tue, 9 Oct 2007 14:04:10 +0000 Subject: INTEGRATION: CWS aquavcl03 (1.53.40); FILE MERGED 2007/08/23 12:29:58 isma87 1.53.40.1: #i80969#: add call to native functions to draw natively (if possible) nodes and nets for listviews --- svtools/source/contnr/svimpbox.cxx | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'svtools') diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 6a9c1fa0df99..354892dde93f 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -4,9 +4,9 @@ * * $RCSfile: svimpbox.cxx,v $ * - * $Revision: 1.53 $ + * $Revision: 1.54 $ * - * last change: $Author: obo $ $Date: 2007-07-18 08:52:26 $ + * last change: $Author: kz $ $Date: 2007-10-09 15:04:10 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -40,6 +40,10 @@ #include #endif +#ifndef _SV_NATIVEWIDGETS_HXX +#include +#endif + #ifndef _HELP_HXX #include #endif @@ -1094,6 +1098,21 @@ void SvImpLBox::DrawNet() if( pView->GetVisibleCount() < 2 && !pStartEntry->HasChildsOnDemand() && !pStartEntry->HasChilds() ) return; + + //for platforms who don't have nets, DrawNativeControl does nothing and return true + //so that SvImpLBox::DrawNet() doesn't draw anything too + if(pView->IsNativeControlSupported( CTRL_LISTNET, PART_ENTIRE_CONTROL)) { + ImplControlValue aControlValue; + Region aCtrlRegion( Rectangle(Point( 0, 0 ), Size( 0, 0 )) ); + ControlState nState = CTRL_STATE_ENABLED; + if( pView->DrawNativeControl( CTRL_LISTNET, PART_ENTIRE_CONTROL, + aCtrlRegion, nState, aControlValue, rtl::OUString() ) ) + { + return; + } + + } + long nEntryHeight = pView->GetEntryHeight(); long nEntryHeightDIV2 = nEntryHeight / 2; if( nEntryHeightDIV2 && !(nEntryHeight & 0x0001)) -- cgit v1.2.3