Tag: cws_src680_hsqlcsv User: fs Date: 2006/09/20 01:48:17 Modified: dba/dbaccess/source/ui/misc/imageprovider.cxx
Log: #i69526# ColorMode added to XTableUIProvider::getTableIcon File Changes: Directory: /dba/dbaccess/source/ui/misc/ ======================================== File [changed]: imageprovider.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/misc/imageprovider.cxx?r1=1.1.2.2&r2=1.1.2.3 Delta lines: +9 -5 ------------------- --- imageprovider.cxx 18 Sep 2006 20:19:20 -0000 1.1.2.2 +++ imageprovider.cxx 20 Sep 2006 08:48:14 -0000 1.1.2.3 @@ -4,9 +4,9 @@ * * $RCSfile: imageprovider.cxx,v $ * - * $Revision: 1.1.2.2 $ + * $Revision: 1.1.2.3 $ * - * last change: $Author: fs $ $Date: 2006/09/18 20:19:20 $ + * last change: $Author: fs $ $Date: 2006/09/20 08:48:14 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -56,6 +56,9 @@ #ifndef _COM_SUN_STAR_GRAPHIC_XGRAPHIC_HPP_ #include <com/sun/star/graphic/XGraphic.hpp> #endif +#ifndef _COM_SUN_STAR_GRAPHIC_GRAPHICCOLORMODE_HPP_ +#include <com/sun/star/graphic/GraphicColorMode.hpp> +#endif #ifndef _COM_SUN_STAR_SDB_APPLICATION_XTABLEUIPROVIDER_HPP_ #include <com/sun/star/sdb/application/XTableUIProvider.hpp> #endif @@ -86,6 +89,7 @@ using ::com::sun::star::sdb::application::XTableUIProvider; using ::com::sun::star::uno::UNO_QUERY; /** === end UNO using === **/ + namespace GraphicColorMode = ::com::sun::star::graphic::GraphicColorMode; //==================================================================== //= ImageProvider_Impl @@ -100,13 +104,13 @@ { //................................................................ static Reference< XGraphic > lcl_getConnectionProvidedTableIcon_nothrow( - const Reference< XConnection >& _rxConnection, const ::rtl::OUString& _rName ) + const Reference< XConnection >& _rxConnection, const ::rtl::OUString& _rName, bool _bHighContrast ) { try { Reference< XTableUIProvider > xProvider( _rxConnection, UNO_QUERY ); if ( xProvider.is() ) - return xProvider->getTableIcon( _rName ); + return xProvider->getTableIcon( _rName, _bHighContrast ? GraphicColorMode::HIGH_CONTRAST_DARK : GraphicColorMode::NORMAL ); } catch( const Exception& ) { @@ -170,7 +174,7 @@ else { // check whether the connection can give us an icon - Reference< XGraphic > xGraphic = lcl_getConnectionProvidedTableIcon_nothrow( m_pImpl->xConnection, _rName ); + Reference< XGraphic > xGraphic = lcl_getConnectionProvidedTableIcon_nothrow( m_pImpl->xConnection, _rName, _bHighContrast ); if ( xGraphic.is() ) aObjectImage = Image( xGraphic ); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
