diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-10-09 14:04:10 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-10-09 14:04:10 +0000 |
commit | 59aa2e527a22ed233a849bd02fad0533afc69a93 (patch) | |
tree | 15a4bd68533b6376f2ef4dc04a54df6a9f195801 | |
parent | dad46050f9c33b2b84ab3a07b1325554e675c8b1 (diff) |
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
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 23 |
1 files changed, 21 insertions, 2 deletions
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 <vcl/svapp.hxx> #endif +#ifndef _SV_NATIVEWIDGETS_HXX +#include <vcl/salnativewidgets.hxx> +#endif + #ifndef _HELP_HXX #include <vcl/help.hxx> #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)) |