summaryrefslogtreecommitdiff
path: root/automation/source
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-07-06 11:05:29 +0000
committerOliver Bolte <obo@openoffice.org>2004-07-06 11:05:29 +0000
commit690499632bb612b628a5dc88bd685467c3cbbe92 (patch)
tree0fd0dae6aa575f9e2a1ba019ce177913dbdf151c /automation/source
parentf228514d629074a33d95a8f269df0819665a2b65 (diff)
INTEGRATION: CWS docking1 (1.2.78); FILE MERGED
2004/06/15 15:01:37 gh 1.2.78.1: #i29531#add support for string ids to acces UI elements. Needed for new ToolBoxes
Diffstat (limited to 'automation/source')
-rw-r--r--automation/source/server/scmdstrm.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/automation/source/server/scmdstrm.cxx b/automation/source/server/scmdstrm.cxx
index a2e901f04691..a3d97f162897 100644
--- a/automation/source/server/scmdstrm.cxx
+++ b/automation/source/server/scmdstrm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: scmdstrm.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: vg $ $Date: 2003-04-15 15:53:26 $
+ * last change: $Author: obo $ $Date: 2004-07-06 12:05:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -93,11 +93,23 @@ SCmdStream::~SCmdStream()
delete pCommStream;
}
+void SCmdStream::Read (String* &pString)
+{
+ if ( !pString )
+ pString = new String();
+ comm_UniChar* pStr;
+ USHORT nLenInChars;
+ CmdBaseStream::Read( pStr, nLenInChars );
+
+ *pString = String( pStr, nLenInChars );
+ delete [] pStr;
+}
+
void SCmdStream::Read (String &aString)
{
comm_UniChar* pStr;
USHORT nLenInChars;
- Read( pStr, nLenInChars );
+ CmdBaseStream::Read( pStr, nLenInChars );
aString = String( pStr, nLenInChars );
delete [] pStr;