summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-07-06 11:04:28 +0000
committerOliver Bolte <obo@openoffice.org>2004-07-06 11:04:28 +0000
commit7888b2342e899be4c1d6b28030ea1c71c2f77581 (patch)
tree5384e2c7fb59cb664ccc6f7f64b5ea685aa41a13
parent134265af674c90a90ddf9d9ff0ba9600d3823f4e (diff)
INTEGRATION: CWS docking1 (1.1.104); FILE MERGED
2004/06/15 15:01:36 gh 1.1.104.1: #i29531#add support for string ids to acces UI elements. Needed for new ToolBoxes
-rw-r--r--automation/source/server/cmdbasestream.cxx113
-rw-r--r--automation/source/server/makefile.mk10
2 files changed, 43 insertions, 80 deletions
diff --git a/automation/source/server/cmdbasestream.cxx b/automation/source/server/cmdbasestream.cxx
index f253e305f..509124b4b 100644
--- a/automation/source/server/cmdbasestream.cxx
+++ b/automation/source/server/cmdbasestream.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cmdbasestream.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2004-06-17 13:37:36 $
+ * last change: $Author: obo $ $Date: 2004-07-06 12:04:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -83,11 +83,11 @@ CmdBaseStream::~CmdBaseStream()
{
}
-void CmdBaseStream::GenError (comm_ULONG nError, const comm_UniChar* aString, comm_USHORT nLenInChars )
+void CmdBaseStream::GenError (SmartId *pUId, comm_String *pString )
{
Write(comm_USHORT(SIReturnError));
- Write(nError);
- Write(aString, nLenInChars);
+ Write(pUId);
+ Write(pString);
}
void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId )
@@ -98,90 +98,90 @@ void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId )
Write(comm_USHORT(PARAM_NONE)); // Typ der folgenden Parameter
}
-void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId, comm_ULONG nNr )
+void CmdBaseStream::GenReturn (comm_USHORT nRet, SmartId *pUId, comm_ULONG nNr )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
- Write(nUId);
+ Write(pUId);
Write(comm_USHORT(PARAM_ULONG_1)); // Typ der folgenden Parameter
Write(nNr);
}
-void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId, const comm_UniChar* aString, comm_USHORT nLenInChars )
+void CmdBaseStream::GenReturn (comm_USHORT nRet, SmartId *pUId, comm_String *pString )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
- Write(nUId);
+ Write(pUId);
Write(comm_USHORT(PARAM_STR_1)); // Typ der folgenden Parameter
- Write(aString, nLenInChars);
+ Write(pString);
}
-void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId, comm_BOOL bBool )
+void CmdBaseStream::GenReturn (comm_USHORT nRet, SmartId *pUId, comm_BOOL bBool )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
- Write(nUId);
+ Write(pUId);
Write(comm_USHORT(PARAM_BOOL_1)); // Typ der folgenden Parameter
Write(bBool);
}
-void CmdBaseStream::GenReturn (comm_USHORT nRet, comm_ULONG nUId, comm_ULONG nNr, const comm_UniChar* aString, comm_USHORT nLenInChars, comm_BOOL bBool )
+void CmdBaseStream::GenReturn (comm_USHORT nRet, SmartId *pUId, comm_ULONG nNr, comm_String *pString, comm_BOOL bBool )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
- Write(nUId);
+ Write(pUId);
Write(comm_USHORT(PARAM_ULONG_1|PARAM_STR_1|PARAM_BOOL_1)); // Typ der folgenden Parameter
Write(nNr);
- Write(aString, nLenInChars);
+ Write(pString);
Write(bBool);
}
// MacroRecorder
-void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nMethod )
+void CmdBaseStream::GenReturn( comm_USHORT nRet, SmartId *pUId, comm_USHORT nMethod )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
- Write(nUId);
+ Write(pUId);
Write(comm_USHORT(PARAM_USHORT_1)); // Typ der folgenden Parameter
Write(nMethod);
}
-void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nMethod, const comm_UniChar* aString, comm_USHORT nLenInChars )
+void CmdBaseStream::GenReturn( comm_USHORT nRet, SmartId *pUId, comm_USHORT nMethod, comm_String *pString )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
- Write(nUId);
+ Write(pUId);
Write(comm_USHORT(PARAM_USHORT_1|PARAM_STR_1)); // Typ der folgenden Parameter
Write(nMethod);
- Write(aString, nLenInChars);
+ Write(pString);
}
-void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nMethod, const comm_UniChar* aString, comm_USHORT nLenInChars, comm_BOOL bBool )
+void CmdBaseStream::GenReturn( comm_USHORT nRet, SmartId *pUId, comm_USHORT nMethod, comm_String *pString, comm_BOOL bBool )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
- Write(nUId);
+ Write(pUId);
Write(comm_USHORT(PARAM_USHORT_1|PARAM_STR_1|PARAM_BOOL_1)); // Typ der folgenden Parameter
Write(nMethod);
- Write(aString, nLenInChars);
+ Write(pString);
Write(bBool);
}
-void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nMethod, comm_BOOL bBool )
+void CmdBaseStream::GenReturn( comm_USHORT nRet, SmartId *pUId, comm_USHORT nMethod, comm_BOOL bBool )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
- Write(nUId);
+ Write(pUId);
Write(comm_USHORT(PARAM_USHORT_1|PARAM_BOOL_1)); // Typ der folgenden Parameter
Write(nMethod);
Write(bBool);
}
-void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nMethod, comm_ULONG nNr )
+void CmdBaseStream::GenReturn( comm_USHORT nRet, SmartId *pUId, comm_USHORT nMethod, comm_ULONG nNr )
{
Write(comm_USHORT(SIReturn));
Write(nRet);
- Write(nUId);
+ Write(pUId);
Write(comm_USHORT(PARAM_USHORT_1|PARAM_ULONG_1)); // Typ der folgenden Parameter
Write(nMethod);
Write(nNr);
@@ -189,55 +189,6 @@ void CmdBaseStream::GenReturn( comm_USHORT nRet, comm_ULONG nUId, comm_USHORT nM
-
-// StringID
-void CmdBaseStream::GenReturn( comm_USHORT nRet, const comm_UniChar* aUId, comm_USHORT nUIdLenInChars )
-{
- Write(comm_USHORT(SIReturn));
- Write(nRet);
- Write(aUId, nUIdLenInChars);
- Write(comm_USHORT(PARAM_NONE)); // Typ der folgenden Parameter
-}
-
-void CmdBaseStream::GenReturn( comm_USHORT nRet, const comm_UniChar* aUId, comm_USHORT nUIdLenInChars, comm_ULONG nNr )
-{
- Write(comm_USHORT(SIReturn));
- Write(nRet);
- Write(aUId, nUIdLenInChars);
- Write(comm_USHORT(PARAM_ULONG_1)); // Typ der folgenden Parameter
- Write(nNr);
-}
-
-void CmdBaseStream::GenReturn( comm_USHORT nRet, const comm_UniChar* aUId, comm_USHORT nUIdLenInChars, const comm_UniChar* aString, comm_USHORT nLenInChars )
-{
- Write(comm_USHORT(SIReturn));
- Write(nRet);
- Write(aUId, nUIdLenInChars);
- Write(comm_USHORT(PARAM_STR_1)); // Typ der folgenden Parameter
- Write(aString, nLenInChars);
-}
-
-void CmdBaseStream::GenReturn( comm_USHORT nRet, const comm_UniChar* aUId, comm_USHORT nUIdLenInChars, comm_BOOL bBool )
-{
- Write(comm_USHORT(SIReturn));
- Write(nRet);
- Write(aUId, nUIdLenInChars);
- Write(comm_USHORT(PARAM_BOOL_1)); // Typ der folgenden Parameter
- Write(bBool);
-}
-
-void CmdBaseStream::GenReturn( comm_USHORT nRet, const comm_UniChar* aUId, comm_USHORT nUIdLenInChars, comm_ULONG nNr, const comm_UniChar* aString, comm_USHORT nLenInChars, comm_BOOL bBool )
-{
- Write(comm_USHORT(SIReturn));
- Write(nRet);
- Write(aUId, nUIdLenInChars);
- Write(comm_USHORT(PARAM_ULONG_1|PARAM_STR_1|PARAM_BOOL_1)); // Typ der folgenden Parameter
- Write(nNr);
- Write(aString, nLenInChars);
- Write(bBool);
-}
-
-
void CmdBaseStream::Read (comm_USHORT &nNr)
{
comm_USHORT nId;
@@ -327,3 +278,13 @@ void CmdBaseStream::Write( comm_BOOL bBool )
*pCommStream << bBool;
}
+void CmdBaseStream::Read ( comm_String* &pString )
+{ DBG_ERROR("Read ( comm_String* &pString ) Not Implemented") }
+void CmdBaseStream::Read ( SmartId* &pId )
+{ DBG_ERROR("Read ( SmartId* &pId ) Not Implemented") }
+
+void CmdBaseStream::Write( comm_String *pString )
+{ DBG_ERROR("Write( comm_String *pString ) Not Implemented") }
+void CmdBaseStream::Write( SmartId* pId )
+{ DBG_ERROR("Write( SmartId* pId ) Not Implemented") }
+
diff --git a/automation/source/server/makefile.mk b/automation/source/server/makefile.mk
index e90ec469a..d6eb780a6 100644
--- a/automation/source/server/makefile.mk
+++ b/automation/source/server/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.1 $
+# $Revision: 1.2 $
#
-# last change: $Author: mh $ $Date: 2002-11-18 15:27:48 $
+# last change: $Author: obo $ $Date: 2004-07-06 12:04:28 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -81,12 +81,14 @@ SLOFILES = \
$(SLO)$/editwin.obj \
$(SLO)$/server.obj \
$(SLO)$/retstrm.obj \
- $(SLO)$/profiler.obj
+ $(SLO)$/profiler.obj \
+ $(SLO)$/smartid.obj
OBJFILES = \
$(OBJ)$/cmdbasestream.obj \
- $(OBJ)$/svcommstream.obj
+ $(OBJ)$/svcommstream.obj \
+ $(OBJ)$/smartid.obj
EXCEPTIONSFILES = \
$(SLO)$/server.obj \