1*9d1279ecSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*9d1279ecSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*9d1279ecSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*9d1279ecSAndrew Rist  * distributed with this work for additional information
6*9d1279ecSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*9d1279ecSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*9d1279ecSAndrew Rist  * "License"); you may not use this file except in compliance
9*9d1279ecSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*9d1279ecSAndrew Rist  *
11*9d1279ecSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*9d1279ecSAndrew Rist  *
13*9d1279ecSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*9d1279ecSAndrew Rist  * software distributed under the License is distributed on an
15*9d1279ecSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*9d1279ecSAndrew Rist  * KIND, either express or implied.  See the License for the
17*9d1279ecSAndrew Rist  * specific language governing permissions and limitations
18*9d1279ecSAndrew Rist  * under the License.
19*9d1279ecSAndrew Rist  *
20*9d1279ecSAndrew Rist  *************************************************************/
21*9d1279ecSAndrew Rist 
22*9d1279ecSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_automation.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir /*************************************************************************
28cdf0e10cSrcweir  *
29cdf0e10cSrcweir  *	  ATTENTION
30cdf0e10cSrcweir  *	  This file is intended to work inside and outside the StarOffice environment.
31cdf0e10cSrcweir  *	  Only adaption of file commtypes.hxx should be necessary. Else it is a bug!
32cdf0e10cSrcweir  *
33cdf0e10cSrcweir  ************************************************************************/
34cdf0e10cSrcweir #include <osl/endian.h>
35cdf0e10cSrcweir 
36cdf0e10cSrcweir #include "cmdbasestream.hxx"
37cdf0e10cSrcweir #include "rcontrol.hxx"
38cdf0e10cSrcweir 
CmdBaseStream()39cdf0e10cSrcweir CmdBaseStream::CmdBaseStream()
40cdf0e10cSrcweir : pCommStream( NULL )
41cdf0e10cSrcweir {
42cdf0e10cSrcweir }
43cdf0e10cSrcweir 
~CmdBaseStream()44cdf0e10cSrcweir CmdBaseStream::~CmdBaseStream()
45cdf0e10cSrcweir {
46cdf0e10cSrcweir }
47cdf0e10cSrcweir 
GenError(rtl::OString * pUId,comm_String * pString)48cdf0e10cSrcweir void CmdBaseStream::GenError (rtl::OString *pUId, comm_String *pString )
49cdf0e10cSrcweir {
50cdf0e10cSrcweir 	Write(comm_USHORT(SIReturnError));
51cdf0e10cSrcweir 	Write(pUId);
52cdf0e10cSrcweir 	Write(pString);
53cdf0e10cSrcweir }
54cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,comm_ULONG nUId)55cdf0e10cSrcweir void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId )
56cdf0e10cSrcweir {
57cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
58cdf0e10cSrcweir 	Write(nRet);
59cdf0e10cSrcweir 	Write(nUId);
60cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_NONE));				// Typ der folgenden Parameter
61cdf0e10cSrcweir }
62cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,rtl::OString * pUId,comm_ULONG nNr)63cdf0e10cSrcweir void CmdBaseStream::GenReturn (comm_USHORT nRet, rtl::OString *pUId, comm_ULONG nNr )
64cdf0e10cSrcweir {
65cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
66cdf0e10cSrcweir 	Write(nRet);
67cdf0e10cSrcweir 	if ( pUId->equals( rtl::OString( "UID_ACTIVE" ) ) )
68cdf0e10cSrcweir 		Write(comm_ULONG(0));
69cdf0e10cSrcweir 	else
70cdf0e10cSrcweir 		Write(pUId);
71cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_ULONG_1));			// Typ der folgenden Parameter
72cdf0e10cSrcweir 	Write(nNr);
73cdf0e10cSrcweir }
74cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,rtl::OString * pUId,comm_String * pString)75cdf0e10cSrcweir void CmdBaseStream::GenReturn (comm_USHORT nRet, rtl::OString *pUId, comm_String *pString )
76cdf0e10cSrcweir {
77cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
78cdf0e10cSrcweir 	Write(nRet);
79cdf0e10cSrcweir 	if ( pUId->equals( rtl::OString( "UID_ACTIVE" ) ) )
80cdf0e10cSrcweir 		Write(comm_ULONG(0));
81cdf0e10cSrcweir 	else
82cdf0e10cSrcweir 		Write(pUId);
83cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_STR_1));				// Typ der folgenden Parameter
84cdf0e10cSrcweir 	Write(pString);
85cdf0e10cSrcweir }
86cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,rtl::OString * pUId,comm_BOOL bBool)87cdf0e10cSrcweir void CmdBaseStream::GenReturn (comm_USHORT nRet, rtl::OString *pUId, comm_BOOL bBool )
88cdf0e10cSrcweir {
89cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
90cdf0e10cSrcweir 	Write(nRet);
91cdf0e10cSrcweir 	if ( pUId->equals( rtl::OString( "UID_ACTIVE" ) ) )
92cdf0e10cSrcweir 		Write(comm_ULONG(0));
93cdf0e10cSrcweir 	else
94cdf0e10cSrcweir 		Write(pUId);
95cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_BOOL_1));			// Typ der folgenden Parameter
96cdf0e10cSrcweir 	Write(bBool);
97cdf0e10cSrcweir }
98cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,rtl::OString * pUId,comm_ULONG nNr,comm_String * pString,comm_BOOL bBool)99cdf0e10cSrcweir void CmdBaseStream::GenReturn (comm_USHORT nRet, rtl::OString *pUId, comm_ULONG nNr, comm_String *pString, comm_BOOL bBool )
100cdf0e10cSrcweir {
101cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
102cdf0e10cSrcweir 	Write(nRet);
103cdf0e10cSrcweir 	if ( pUId->equals( rtl::OString( "UID_ACTIVE" ) ) )
104cdf0e10cSrcweir 		Write(comm_ULONG(0));
105cdf0e10cSrcweir 	else
106cdf0e10cSrcweir 		Write(pUId);
107cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_ULONG_1|PARAM_STR_1|PARAM_BOOL_1));		// Typ der folgenden Parameter
108cdf0e10cSrcweir 	Write(nNr);
109cdf0e10cSrcweir 	Write(pString);
110cdf0e10cSrcweir 	Write(bBool);
111cdf0e10cSrcweir }
112cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,comm_USHORT nMethod,comm_ULONG nNr)113cdf0e10cSrcweir void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_USHORT nMethod, comm_ULONG nNr )
114cdf0e10cSrcweir {
115cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
116cdf0e10cSrcweir 	Write(nRet);
117cdf0e10cSrcweir 	Write((comm_ULONG)nMethod); //HELPID BACKWARD (no sal_uLong needed)
118cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_ULONG_1));			// Typ der folgenden Parameter
119cdf0e10cSrcweir 	Write(nNr);
120cdf0e10cSrcweir }
121cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,comm_USHORT nMethod,comm_String * pString)122cdf0e10cSrcweir void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_USHORT nMethod, comm_String *pString )
123cdf0e10cSrcweir {
124cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
125cdf0e10cSrcweir 	Write(nRet);
126cdf0e10cSrcweir 	Write((comm_ULONG)nMethod); //HELPID BACKWARD (no sal_uLong needed)
127cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_STR_1));				// Typ der folgenden Parameter
128cdf0e10cSrcweir 	Write(pString);
129cdf0e10cSrcweir }
130cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,comm_USHORT nMethod,comm_BOOL bBool)131cdf0e10cSrcweir void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_USHORT nMethod, comm_BOOL bBool )
132cdf0e10cSrcweir {
133cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
134cdf0e10cSrcweir 	Write(nRet);
135cdf0e10cSrcweir 	Write((comm_ULONG)nMethod); //HELPID BACKWARD (no sal_uLong needed)
136cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_BOOL_1));			// Typ der folgenden Parameter
137cdf0e10cSrcweir 	Write(bBool);
138cdf0e10cSrcweir }
139cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,comm_USHORT nMethod,comm_USHORT nNr)140cdf0e10cSrcweir void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_USHORT nMethod, comm_USHORT nNr )
141cdf0e10cSrcweir {
142cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
143cdf0e10cSrcweir 	Write(nRet);
144cdf0e10cSrcweir 	Write((comm_ULONG)nMethod); //HELPID BACKWARD (no sal_uLong needed)
145cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_USHORT_1));			// Typ der folgenden Parameter
146cdf0e10cSrcweir 	Write(nNr);
147cdf0e10cSrcweir }
148cdf0e10cSrcweir 
149cdf0e10cSrcweir 
150cdf0e10cSrcweir // MacroRecorder
GenReturn(comm_USHORT nRet,rtl::OString * pUId,comm_USHORT nMethod)151cdf0e10cSrcweir void CmdBaseStream::GenReturn( comm_USHORT nRet, rtl::OString *pUId, comm_USHORT nMethod )
152cdf0e10cSrcweir {
153cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
154cdf0e10cSrcweir 	Write(nRet);
155cdf0e10cSrcweir 	Write(pUId);
156cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_USHORT_1));		// Typ der folgenden Parameter
157cdf0e10cSrcweir 	Write(nMethod);
158cdf0e10cSrcweir }
159cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,rtl::OString * pUId,comm_USHORT nMethod,comm_String * pString)160cdf0e10cSrcweir void CmdBaseStream::GenReturn( comm_USHORT nRet, rtl::OString *pUId, comm_USHORT nMethod, comm_String *pString )
161cdf0e10cSrcweir {
162cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
163cdf0e10cSrcweir 	Write(nRet);
164cdf0e10cSrcweir 	Write(pUId);
165cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_USHORT_1|PARAM_STR_1));		// Typ der folgenden Parameter
166cdf0e10cSrcweir 	Write(nMethod);
167cdf0e10cSrcweir 	Write(pString);
168cdf0e10cSrcweir }
169cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,rtl::OString * pUId,comm_USHORT nMethod,comm_String * pString,comm_BOOL bBool)170cdf0e10cSrcweir void CmdBaseStream::GenReturn( comm_USHORT nRet, rtl::OString *pUId, comm_USHORT nMethod, comm_String *pString, comm_BOOL bBool )
171cdf0e10cSrcweir {
172cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
173cdf0e10cSrcweir 	Write(nRet);
174cdf0e10cSrcweir 	Write(pUId);
175cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_USHORT_1|PARAM_STR_1|PARAM_BOOL_1));		// Typ der folgenden Parameter
176cdf0e10cSrcweir 	Write(nMethod);
177cdf0e10cSrcweir 	Write(pString);
178cdf0e10cSrcweir 	Write(bBool);
179cdf0e10cSrcweir }
180cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,rtl::OString * pUId,comm_USHORT nMethod,comm_BOOL bBool)181cdf0e10cSrcweir void CmdBaseStream::GenReturn( comm_USHORT nRet, rtl::OString *pUId, comm_USHORT nMethod, comm_BOOL bBool )
182cdf0e10cSrcweir {
183cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
184cdf0e10cSrcweir 	Write(nRet);
185cdf0e10cSrcweir 	Write(pUId);
186cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_USHORT_1|PARAM_BOOL_1));		// Typ der folgenden Parameter
187cdf0e10cSrcweir 	Write(nMethod);
188cdf0e10cSrcweir 	Write(bBool);
189cdf0e10cSrcweir }
190cdf0e10cSrcweir 
GenReturn(comm_USHORT nRet,rtl::OString * pUId,comm_USHORT nMethod,comm_ULONG nNr)191cdf0e10cSrcweir void CmdBaseStream::GenReturn( comm_USHORT nRet, rtl::OString *pUId, comm_USHORT nMethod, comm_ULONG nNr )
192cdf0e10cSrcweir {
193cdf0e10cSrcweir 	Write(comm_USHORT(SIReturn));
194cdf0e10cSrcweir 	Write(nRet);
195cdf0e10cSrcweir 	Write(pUId);
196cdf0e10cSrcweir 	Write(comm_USHORT(PARAM_USHORT_1|PARAM_ULONG_1));		// Typ der folgenden Parameter
197cdf0e10cSrcweir 	Write(nMethod);
198cdf0e10cSrcweir 	Write(nNr);
199cdf0e10cSrcweir }
200cdf0e10cSrcweir 
201cdf0e10cSrcweir 
202cdf0e10cSrcweir 
Read(comm_USHORT & nNr)203cdf0e10cSrcweir void CmdBaseStream::Read (comm_USHORT &nNr)
204cdf0e10cSrcweir {
205cdf0e10cSrcweir 	comm_USHORT nId;
206cdf0e10cSrcweir 	*pCommStream >> nId;
207cdf0e10cSrcweir 	if (pCommStream->IsEof()) return;
208cdf0e10cSrcweir #ifdef DBG_UTIL
209cdf0e10cSrcweir 	if (nId != BinUSHORT) DBG_ERROR1( "Falscher Typ im Stream: Erwartet USHORT, gefunden :%hu", nId );
210cdf0e10cSrcweir #endif
211cdf0e10cSrcweir 	*pCommStream >> nNr;
212cdf0e10cSrcweir }
213cdf0e10cSrcweir 
Read(comm_ULONG & nNr)214cdf0e10cSrcweir void CmdBaseStream::Read (comm_ULONG &nNr)
215cdf0e10cSrcweir {
216cdf0e10cSrcweir 	comm_USHORT nId;
217cdf0e10cSrcweir 	*pCommStream >> nId;
218cdf0e10cSrcweir 	if (pCommStream->IsEof()) return;
219cdf0e10cSrcweir #ifdef DBG_UTIL
220cdf0e10cSrcweir 	if (nId != BinULONG) DBG_ERROR1( "Falscher Typ im Stream: Erwartet ULONG, gefunden :%hu", nId );
221cdf0e10cSrcweir #endif
222cdf0e10cSrcweir 	*pCommStream >> nNr;
223cdf0e10cSrcweir }
224cdf0e10cSrcweir 
Read(comm_UniChar * & aString,comm_USHORT & nLenInChars)225cdf0e10cSrcweir void CmdBaseStream::Read (comm_UniChar* &aString, comm_USHORT &nLenInChars )
226cdf0e10cSrcweir {
227cdf0e10cSrcweir 	comm_USHORT nId;
228cdf0e10cSrcweir 	*pCommStream >> nId;
229cdf0e10cSrcweir #ifdef DBG_UTIL
230cdf0e10cSrcweir 	if (nId != BinString) DBG_ERROR1( "Falscher Typ im Stream: Erwartet String, gefunden :%hu", nId );
231cdf0e10cSrcweir #endif
232cdf0e10cSrcweir 
233cdf0e10cSrcweir 	*pCommStream >> nLenInChars;
234cdf0e10cSrcweir 
235cdf0e10cSrcweir 	aString = new comm_UniChar [nLenInChars];
236cdf0e10cSrcweir 	pCommStream->Read( aString, ((comm_ULONG)nLenInChars) * sizeof( comm_UniChar ) );
237cdf0e10cSrcweir #ifdef OSL_BIGENDIAN
238cdf0e10cSrcweir     // we have to change the byteorder
239cdf0e10cSrcweir     comm_USHORT n;
240cdf0e10cSrcweir     for ( n = 0 ; n < nLenInChars ; n++ )
241cdf0e10cSrcweir         aString[ n ] = aString[ n ] >> 8 | aString[ n ] << 8;
242cdf0e10cSrcweir #endif
243cdf0e10cSrcweir }
244cdf0e10cSrcweir 
Read(comm_BOOL & bBool)245cdf0e10cSrcweir void CmdBaseStream::Read (comm_BOOL &bBool)
246cdf0e10cSrcweir {
247cdf0e10cSrcweir 	comm_USHORT nId;
248cdf0e10cSrcweir 	*pCommStream >> nId;
249cdf0e10cSrcweir #ifdef DBG_UTIL
250cdf0e10cSrcweir 	if (nId != BinBool) DBG_ERROR1( "Falscher Typ im Stream: Erwartet BOOL, gefunden :%hu", nId );
251cdf0e10cSrcweir #endif
252cdf0e10cSrcweir 	*pCommStream >> bBool;
253cdf0e10cSrcweir }
254cdf0e10cSrcweir 
GetNextType()255cdf0e10cSrcweir comm_USHORT CmdBaseStream::GetNextType()
256cdf0e10cSrcweir {
257cdf0e10cSrcweir 	comm_USHORT nId;
258cdf0e10cSrcweir 	*pCommStream >> nId;
259cdf0e10cSrcweir     pCommStream->SeekRel(-2);
260cdf0e10cSrcweir     return nId;
261cdf0e10cSrcweir }
262cdf0e10cSrcweir 
263cdf0e10cSrcweir 
Write(comm_USHORT nNr)264cdf0e10cSrcweir void CmdBaseStream::Write( comm_USHORT nNr )
265cdf0e10cSrcweir {
266cdf0e10cSrcweir 	*pCommStream << comm_USHORT( BinUSHORT );
267cdf0e10cSrcweir 	*pCommStream << nNr;
268cdf0e10cSrcweir }
269cdf0e10cSrcweir 
Write(comm_ULONG nNr)270cdf0e10cSrcweir void CmdBaseStream::Write( comm_ULONG nNr )
271cdf0e10cSrcweir {
272cdf0e10cSrcweir 	*pCommStream << comm_USHORT( BinULONG );
273cdf0e10cSrcweir 	*pCommStream << nNr;
274cdf0e10cSrcweir }
275cdf0e10cSrcweir 
Write(const comm_UniChar * aString,comm_USHORT nLenInChars)276cdf0e10cSrcweir void CmdBaseStream::Write( const comm_UniChar* aString, comm_USHORT nLenInChars )
277cdf0e10cSrcweir {
278cdf0e10cSrcweir     *pCommStream << comm_USHORT(BinString);
279cdf0e10cSrcweir 
280cdf0e10cSrcweir     comm_USHORT n;
281cdf0e10cSrcweir 
282cdf0e10cSrcweir     // remove BiDi and zero-width-markers    0x200B - 0x200F
283cdf0e10cSrcweir     // remove BiDi and paragraph-markers     0x2028 - 0x202E
284cdf0e10cSrcweir 
285cdf0e10cSrcweir     comm_UniChar* aNoBiDiString;
286cdf0e10cSrcweir     aNoBiDiString = new comm_UniChar [nLenInChars];
287cdf0e10cSrcweir     comm_USHORT nNewLenInChars = 0;
288cdf0e10cSrcweir     for ( n = 0 ; n < nLenInChars ; n++ )
289cdf0e10cSrcweir     {
290cdf0e10cSrcweir         comm_UniChar c = aString[ n ];
291cdf0e10cSrcweir         if (  ((c >= 0x200B) && (c <= 0x200F))
292cdf0e10cSrcweir             ||((c >= 0x2028) && (c <= 0x202E)) )
293cdf0e10cSrcweir         {   //Ignore character
294cdf0e10cSrcweir         }
295cdf0e10cSrcweir         else
296cdf0e10cSrcweir         {
297cdf0e10cSrcweir             aNoBiDiString[ nNewLenInChars ] = c;
298cdf0e10cSrcweir             nNewLenInChars++;
299cdf0e10cSrcweir         }
300cdf0e10cSrcweir     }
301cdf0e10cSrcweir 
302cdf0e10cSrcweir 	*pCommStream << nNewLenInChars;
303cdf0e10cSrcweir 
304cdf0e10cSrcweir #ifdef OSL_BIGENDIAN
305cdf0e10cSrcweir     // we have to change the byteorder
306cdf0e10cSrcweir     comm_UniChar* aNewString;
307cdf0e10cSrcweir     aNewString = new comm_UniChar [nNewLenInChars];
308cdf0e10cSrcweir     for ( n = 0 ; n < nNewLenInChars ; n++ )
309cdf0e10cSrcweir         aNewString[ n ] = aNoBiDiString[ n ] >> 8 | aNoBiDiString[ n ] << 8;
310cdf0e10cSrcweir 	pCommStream->Write( aNewString, ((comm_ULONG)nNewLenInChars) * sizeof( comm_UniChar ) );
311cdf0e10cSrcweir     delete [] aNewString;
312cdf0e10cSrcweir #else
313cdf0e10cSrcweir     pCommStream->Write( aNoBiDiString, ((comm_ULONG)nNewLenInChars) * sizeof( comm_UniChar ) );
314cdf0e10cSrcweir #endif
315cdf0e10cSrcweir 
316cdf0e10cSrcweir     delete [] aNoBiDiString;
317cdf0e10cSrcweir }
318cdf0e10cSrcweir 
Write(comm_BOOL bBool)319cdf0e10cSrcweir void CmdBaseStream::Write( comm_BOOL bBool )
320cdf0e10cSrcweir {
321cdf0e10cSrcweir 	*pCommStream << comm_USHORT( BinBool );
322cdf0e10cSrcweir 	*pCommStream << bBool;
323cdf0e10cSrcweir }
324cdf0e10cSrcweir 
Read(comm_String * & pString)325cdf0e10cSrcweir void CmdBaseStream::Read ( comm_String* &pString )
326cdf0e10cSrcweir {
327cdf0e10cSrcweir     (void) pString; /* avoid warning about unused parameter */
328cdf0e10cSrcweir     DBG_ERROR("Read ( comm_String* &pString ) Not Implemented");
329cdf0e10cSrcweir }
Read(rtl::OString * & pId)330cdf0e10cSrcweir void CmdBaseStream::Read ( rtl::OString* &pId )
331cdf0e10cSrcweir {
332cdf0e10cSrcweir     (void) pId; /* avoid warning about unused parameter */
333cdf0e10cSrcweir     DBG_ERROR("Read ( rtl::OString* &pId ) Not Implemented");
334cdf0e10cSrcweir }
335cdf0e10cSrcweir 
Write(comm_String * pString)336cdf0e10cSrcweir void CmdBaseStream::Write( comm_String *pString )
337cdf0e10cSrcweir {
338cdf0e10cSrcweir     (void) pString; /* avoid warning about unused parameter */
339cdf0e10cSrcweir     DBG_ERROR("Write( comm_String *pString ) Not Implemented");
340cdf0e10cSrcweir }
Write(rtl::OString * pId)341cdf0e10cSrcweir void CmdBaseStream::Write( rtl::OString* pId )
342cdf0e10cSrcweir {
343cdf0e10cSrcweir     (void) pId; /* avoid warning about unused parameter */
344cdf0e10cSrcweir     DBG_ERROR("Write( rtl::OString* pId ) Not Implemented");
345cdf0e10cSrcweir }
346cdf0e10cSrcweir 
347