Tag: cws_src680_qiq
User: fs      
Date: 06/06/09 04:55:45

Modified:
 /dba/dbaccess/source/core/inc/
  core_resource.hxx

Log:
 #i51143# +loadString with placeholder replacement

File Changes:

Directory: /dba/dbaccess/source/core/inc/
=========================================

File [changed]: core_resource.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/inc/core_resource.hxx?r1=1.3&r2=1.3.124.1
Delta lines:  +25 -6
--------------------
--- core_resource.hxx   8 Sep 2005 13:36:10 -0000       1.3
+++ core_resource.hxx   9 Jun 2006 11:55:43 -0000       1.3.124.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: core_resource.hxx,v $
  *
- *  $Revision: 1.3 $
+ *  $Revision: 1.3.124.1 $
  *
- *  last change: $Author: rt $ $Date: 2005/09/08 13:36:10 $
+ *  last change: $Author: fs $ $Date: 2006/06/09 11:55:43 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -45,7 +45,11 @@
 namespace dbaccess
 {
 
-#define DBACORE_RESSTRING(id) ResourceManager::loadString(id)
+#define DBA_RES( id )                       ResourceManager::loadString( id )
+#define DBA_RES_PARAM( id, ascii, replace ) ResourceManager::loadString( id, 
ascii, replace )
+
+#define DBACORE_RESSTRING( id ) DBA_RES( id )
+        // (compatibility)
 
        //==================================================================
        //= ResourceManager
@@ -74,9 +78,24 @@
                static void ensureImplExists();
 
        public:
-               /** loads the string with the specified resource id from the 
FormLayer resource file
+               /** loads the string with the specified resource id
                */
                static ::rtl::OUString loadString(sal_uInt16 _nResId);
+
+        /** loads a string from the resource file, substituting a placeholder 
with a given string
+
+            @param  _nResId
+                the resource ID of the string to loAD
+            @param  _pPlaceholderAscii
+                the ASCII representation of the placeholder string
+            @param  _rReplace
+                the string which should substutite the placeholder
+        */
+        static ::rtl::OUString  loadString(
+                sal_uInt16              _nResId,
+                const sal_Char*         _pPlaceholderAscii,
+                const ::rtl::OUString&  _rReplace
+        );
        };
 
 //.........................................................................




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

Reply via email to