Tag: cws_src680_dba24c
User: fs      
Date: 2007-10-26 12:16:06+0000
Modified:
   dba/dbaccess/source/ui/inc/imageprovider.hxx

Log:
 getImage -> getImages, this saves one call and all its implementation, since 
all clients did two calls, anyway

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.2&r2=1.2.132.1
Delta lines:  +14 -15
---------------------
--- imageprovider.hxx   2006-10-05 13:06:11+0000        1.2
+++ imageprovider.hxx   2007-10-26 12:16:04+0000        1.2.132.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: imageprovider.hxx,v $
  *
- *  $Revision: 1.2 $
+ *  $Revision: 1.2.132.1 $
  *
- *  last change: $Author: kz $ $Date: 2006/10/05 13:06:11 $
+ *  last change: $Author: fs $ $Date: 2007/10/26 12:16:04 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -62,7 +62,7 @@
        //====================================================================
        //= ImageProvider
        //====================================================================
-    struct ImageProvider_Impl;
+    struct ImageProvider_Data;
     /** 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
@@ -72,7 +72,7 @@
        class ImageProvider
        {
     private:
-        ::boost::shared_ptr< ImageProvider_Impl >   m_pImpl;
+        ::boost::shared_ptr< ImageProvider_Data >   m_pData;
 
     public:
         /** creates a semi-functional ImageProvider instance
@@ -98,24 +98,23 @@
                 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.
+            @param  _out_rImage
+                the normal image to use for the object
+            @param  _out_rImageHC
+                the high-contrast version of the image to use for the object
             @return
                 the image to be used for the object.
         */
-        Image getImage(
+        void getImages(
             const String& _rName,
-            sal_Int32 _nDatabaseObjectType,
-            bool _bHighContrast
+            const sal_Int32 _nDatabaseObjectType,
+            Image& _out_rImage,
+            Image& _out_rImageHC
         );
 
         /** 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
             type.
 
@@ -138,7 +137,7 @@
 
         /** 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
             type.
 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to