Kaydet (Commit) 803b3a87 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS dba24c (1.2.132); FILE MERGED

2007/10/26 12:16:04 fs 1.2.132.1: getImage -> getImages, this saves one call and all its implementation, since all clients did two calls, anyway
üst 73d3861b
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: imageprovider.hxx,v $ * $RCSfile: imageprovider.hxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: kz $ $Date: 2006-10-05 13:06:11 $ * last change: $Author: ihi $ $Date: 2007-11-21 16:05:10 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -62,7 +62,7 @@ namespace dbaui ...@@ -62,7 +62,7 @@ namespace dbaui
//==================================================================== //====================================================================
//= ImageProvider //= ImageProvider
//==================================================================== //====================================================================
struct ImageProvider_Impl; struct ImageProvider_Data;
/** provides images for database objects such as tables, queries, forms, reports ... /** 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 At the moment, this class cares for small icons only, that is, icons which can be used
...@@ -72,7 +72,7 @@ namespace dbaui ...@@ -72,7 +72,7 @@ namespace dbaui
class ImageProvider class ImageProvider
{ {
private: private:
::boost::shared_ptr< ImageProvider_Impl > m_pImpl; ::boost::shared_ptr< ImageProvider_Data > m_pData;
public: public:
/** creates a semi-functional ImageProvider instance /** creates a semi-functional ImageProvider instance
...@@ -98,24 +98,23 @@ namespace dbaui ...@@ -98,24 +98,23 @@ namespace dbaui
constants. constants.
@param _rName @param _rName
the name of the object the name of the object
@param _bHighContrast @param _out_rImage
indicates whether High-Contrast icons should be used. the normal image to use for the object
Note that normally, this would be some application-wide setting. However, @param _out_rImageHC
in current OOo, HC support is decided on a per-control basis, means every the high-contrast version of the image to use for the object
control decides itself whether its images must be HC versions or not.
Thus callers need to specify this flag.
@return @return
the image to be used for the object. the image to be used for the object.
*/ */
Image getImage( void getImages(
const String& _rName, const String& _rName,
sal_Int32 _nDatabaseObjectType, const sal_Int32 _nDatabaseObjectType,
bool _bHighContrast Image& _out_rImage,
Image& _out_rImageHC
); );
/** returns the default image to be used for a database object /** returns the default image to be used for a database object
In opposite to getImage, this method does not check the concrete object In opposite to getImages, this method does not check the concrete object
for its image, but returns a default image to be used for all objects of the given for its image, but returns a default image to be used for all objects of the given
type. type.
...@@ -138,7 +137,7 @@ namespace dbaui ...@@ -138,7 +137,7 @@ namespace dbaui
/** returns the resource ID for the default image to be used for a database object /** returns the resource ID for the default image to be used for a database object
In opposite to getImage, this method does not check the concrete object In opposite to getImages, this method does not check the concrete object
for its image, but returns a default image to be used for all objects of the given for its image, but returns a default image to be used for all objects of the given
type. type.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment