update dev300-m58
[ooovba.git] / automation / source / server / retstrm.hxx
blob2013680a9c0696ea54e11878355a071cfc9fa770
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: retstrm.hxx,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _RETSTRM_HXX
31 #define _RETSTRM_HXX
33 #include <basic/sbxvar.hxx>
34 #include <vcl/smartid.hxx>
35 #include "cmdbasestream.hxx"
37 class SvStream;
39 class RetStream: public CmdBaseStream
42 public:
43 RetStream();
44 ~RetStream();
46 using CmdBaseStream::GenError;
47 // void GenError( comm_ULONG nError, const comm_UniChar* aString, comm_USHORT nLenInChars ){CmdBaseStream::GenError( nError, aString, nLenInChars );}
48 // new
49 void GenError( SmartId aUId, String aString );
51 using CmdBaseStream::GenReturn;
52 void GenReturn( comm_USHORT nRet, comm_ULONG nNr ){CmdBaseStream::GenReturn( nRet, nNr );}
53 void GenReturn( comm_USHORT nRet, SmartId aUId, comm_ULONG nNr ){CmdBaseStream::GenReturn( nRet, &aUId, nNr );}
54 void GenReturn( comm_USHORT nRet, SmartId aUId, comm_BOOL bBool ){CmdBaseStream::GenReturn( nRet, &aUId, bBool );}
55 // MacroRecorder
56 void GenReturn( comm_USHORT nRet, SmartId aUId, comm_USHORT nMethod ){CmdBaseStream::GenReturn( nRet, &aUId, nMethod );}
57 void GenReturn( comm_USHORT nRet, SmartId aUId, comm_USHORT nMethod, comm_BOOL bBool ){CmdBaseStream::GenReturn( nRet, &aUId, nMethod, bBool );}
58 void GenReturn( comm_USHORT nRet, SmartId aUId, comm_USHORT nMethod, comm_ULONG nNr ){CmdBaseStream::GenReturn( nRet, &aUId, nMethod, nNr );}
60 // new
61 void GenReturn( USHORT nRet, SmartId aUId, String aString );
62 void GenReturn( USHORT nRet, SmartId aUId, SbxValue &aValue );
63 void GenReturn( USHORT nRet, SmartId aUId, comm_ULONG nNr, String aString, BOOL bBool );
64 // MacroRecorder
65 void GenReturn( USHORT nRet, SmartId aUId, comm_USHORT nMethod, String aString );
66 void GenReturn( USHORT nRet, SmartId aUId, comm_USHORT nMethod, String aString, BOOL bBool );
68 void Reset();
69 SvStream* GetStream();
73 using CmdBaseStream::Write;
74 void Write( comm_USHORT nNr ){CmdBaseStream::Write( nNr );}
75 void Write( comm_ULONG nNr ){CmdBaseStream::Write( nNr );}
76 void Write( comm_BOOL bBool ){CmdBaseStream::Write( bBool );}
77 // new
78 void Write( SbxValue &aValue );
80 // Complex Datatypes to be handled system dependent
81 virtual void Write( SmartId* pId );
82 virtual void Write( String *pString );
84 SvStream *pSammel;
87 #endif