User: obo     
Date: 2006/07/10 08:13:23

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

Log:
 INTEGRATION: CWS qiq (1.3.124); FILE MERGED
 2006/06/09 11:55:43 fs 1.3.124.1: #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.4
Delta lines:  +22 -3
--------------------
--- core_resource.hxx   8 Sep 2005 13:36:10 -0000       1.3
+++ core_resource.hxx   10 Jul 2006 15:13:20 -0000      1.4
@@ -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