Tag: cws_src680_hsqlcsv User: fs Date: 2006/09/18 13:19:08 Modified: dba/dbaccess/source/ui/inc/imageprovider.hxx
Log: #i69526# moved all tree icons into the ImageProvider - no hhard-coded versions anymore File Changes: Directory: /dba/dbaccess/source/ui/inc/ ======================================= File [changed]: imageprovider.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/imageprovider.hxx?r1=1.1.2.1&r2=1.1.2.2 Delta lines: +39 -3 -------------------- --- imageprovider.hxx 14 Sep 2006 11:46:18 -0000 1.1.2.1 +++ imageprovider.hxx 18 Sep 2006 20:19:06 -0000 1.1.2.2 @@ -4,9 +4,9 @@ * * $RCSfile: imageprovider.hxx,v $ * - * $Revision: 1.1.2.1 $ + * $Revision: 1.1.2.2 $ * - * last change: $Author: fs $ $Date: 2006/09/14 11:46:18 $ + * last change: $Author: fs $ $Date: 2006/09/18 20:19:06 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -64,6 +64,10 @@ //==================================================================== struct ImageProvider_Impl; /** provides images for database objects such as tables, queries, forms, reports ... + + At the moment, this class cares for small icons only, that is, icons which can be used + in a tree control. On the medium term, we should extend it with support for different-sized + icons. */ class ImageProvider { @@ -155,6 +159,38 @@ sal_Int32 _nDatabaseObjectType, bool _bHighContrast ); + + /** retrieves the image to be used for folders of database objects + @param _nDatabaseObjectType + the type of the object. Must be one of the css.sdb.application.DatabaseObject + constants. + @param _rName + the name of the object + @param _bHighContrast + indicates whether High-Contrast icons should be used. + Note that normally, this would be some application-wide setting. However, + in current OOo, HC support is decided on a per-control basis, means every + control decides itself whether its images must be HC versions or not. + Thus callers need to specify this flag. + @return + the image to be used for folders of the given type + */ + Image getFolderImage( + sal_Int32 _nDatabaseObjectType, + bool _bHighContrast + ); + + /** retrieves the image to be used for a database as a whole. + @param _bHighContrast + indicates whether High-Contrast icons should be used. + Note that normally, this would be some application-wide setting. However, + in current OOo, HC support is decided on a per-control basis, means every + control decides itself whether its images must be HC versions or not. + Thus callers need to specify this flag. + @return + the image to be used for folders of this type + */ + Image getDatabaseImage( bool _bHighContrast ); }; //........................................................................ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
