summaryrefslogtreecommitdiff
path: root/basic/source/runtime/props.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 16:46:25 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 16:46:25 +0000
commitc678736f06407c7cf7c758a8fa46b167377d3c98 (patch)
treeb49d74106e552d48b93145a68cec810403b0a7a7 /basic/source/runtime/props.cxx
parentaaf26db775226f8a26e35c0e9b4bf2d3a02107e6 (diff)
INTEGRATION: CWS warnings01 (1.4.30); FILE MERGED
2005/12/21 14:08:56 ab 1.4.30.4: #i53898# Clean up Basic to simplify warning removement in depended modules and later use 2005/12/08 14:27:32 ab 1.4.30.3: #i53898# Removed os2/mac define usage 2005/12/01 14:56:11 ab 1.4.30.2: #i53898# Removed warnings for unxlngi6 2005/11/07 12:02:50 ab 1.4.30.1: #i53898# Removed warnings
Diffstat (limited to 'basic/source/runtime/props.cxx')
-rw-r--r--basic/source/runtime/props.cxx309
1 files changed, 300 insertions, 9 deletions
diff --git a/basic/source/runtime/props.cxx b/basic/source/runtime/props.cxx
index e9a48f7d87..64f4c122b0 100644
--- a/basic/source/runtime/props.cxx
+++ b/basic/source/runtime/props.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: props.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 21:40:43 $
+ * last change: $Author: hr $ $Date: 2006-06-19 17:46:25 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -33,16 +33,10 @@
*
************************************************************************/
-#include <sbx.hxx>
#include "runtime.hxx"
-#pragma hdrstop
#include "stdobj.hxx"
#include "rtlproto.hxx"
-#if defined (OS2) && defined (__BORLANDC__)
-#pragma option -w-par
-#endif
-
// Properties und Methoden legen beim Get (bWrite = FALSE) den Returnwert
// im Element 0 des Argv ab; beim Put (bWrite = TRUE) wird der Wert aus
@@ -50,11 +44,17 @@
RTLFUNC(Erl)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get( 0 )->PutLong( StarBASIC::GetErl() );
}
RTLFUNC(Err)
{
+ (void)pBasic;
+ (void)bWrite;
+
if( bWrite )
{
INT32 nVal = rPar.Get( 0 )->GetLong();
@@ -62,413 +62,704 @@ RTLFUNC(Err)
StarBASIC::Error( StarBASIC::GetSfxFromVBError( (USHORT) nVal ) );
}
else
- rPar.Get( 0 )->PutLong( StarBASIC::GetVBErrorCode( StarBASIC::GetErr() ) );
+ rPar.Get( 0 )->PutLong( StarBASIC::GetVBErrorCode( StarBASIC::GetErrBasic() ) );
}
RTLFUNC(False)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutBool( FALSE );
}
RTLFUNC(Nothing)
{
+ (void)pBasic;
+ (void)bWrite;
+
// liefert eine leere Objekt-Variable.
rPar.Get( 0 )->PutObject( NULL );
}
RTLFUNC(Null)
{
+ (void)pBasic;
+ (void)bWrite;
+
// liefert eine leere Objekt-Variable.
rPar.Get( 0 )->PutNull();
}
RTLFUNC(PI)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get( 0 )->PutDouble( F_PI );
}
RTLFUNC(True)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get( 0 )->PutBool( TRUE );
}
RTLFUNC(ATTR_NORMAL)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(0);
}
RTLFUNC(ATTR_READONLY)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(1);
}
RTLFUNC(ATTR_HIDDEN)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(2);
}
RTLFUNC(ATTR_SYSTEM)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(4);
}
RTLFUNC(ATTR_VOLUME)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(8);
}
RTLFUNC(ATTR_DIRECTORY)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(16);
}
RTLFUNC(ATTR_ARCHIVE)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(32);
}
RTLFUNC(V_EMPTY)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(0);
}
RTLFUNC(V_NULL)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(1);
}
RTLFUNC(V_INTEGER)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(2);
}
RTLFUNC(V_LONG)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(3);
}
RTLFUNC(V_SINGLE)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(4);
}
RTLFUNC(V_DOUBLE)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(5);
}
RTLFUNC(V_CURRENCY)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(6);
}
RTLFUNC(V_DATE)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(7);
}
RTLFUNC(V_STRING)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(8);
}
RTLFUNC(MB_OK)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(0);
}
RTLFUNC(MB_OKCANCEL)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(1);
}
RTLFUNC(MB_ABORTRETRYIGNORE)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(2);
}
RTLFUNC(MB_YESNOCANCEL)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(3);
}
RTLFUNC(MB_YESNO)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(4);
}
RTLFUNC(MB_RETRYCANCEL)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(5);
}
RTLFUNC(MB_ICONSTOP)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(16);
}
RTLFUNC(MB_ICONQUESTION)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(32);
}
RTLFUNC(MB_ICONEXCLAMATION)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(48);
}
RTLFUNC(MB_ICONINFORMATION)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(64);
}
RTLFUNC(MB_DEFBUTTON1)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(0);
}
RTLFUNC(MB_DEFBUTTON2)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(256);
}
RTLFUNC(MB_DEFBUTTON3)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(512);
}
RTLFUNC(MB_APPLMODAL)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(0);
}
RTLFUNC(MB_SYSTEMMODAL)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(4096);
}
RTLFUNC(IDOK)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(1);
}
RTLFUNC(IDCANCEL)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(2);
}
RTLFUNC(IDABORT)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(3);
}
RTLFUNC(IDRETRY)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(4);
}
RTLFUNC(IDYES)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(6);
}
RTLFUNC(IDNO)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(7);
}
RTLFUNC(CF_TEXT)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(1);
}
RTLFUNC(CF_BITMAP)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(2);
}
RTLFUNC(CF_METAFILEPICT)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(3);
}
RTLFUNC(TYP_AUTHORFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(7);
}
RTLFUNC(TYP_CHAPTERFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(4);
}
RTLFUNC(TYP_CONDTXTFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(27);
}
RTLFUNC(TYP_DATEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(0);
}
RTLFUNC(TYP_DBFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(19);
}
RTLFUNC(TYP_DBNAMEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(3);
}
RTLFUNC(TYP_DBNEXTSETFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(24);
}
RTLFUNC(TYP_DBNUMSETFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(25);
}
RTLFUNC(TYP_DBSETNUMBERFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(26);
}
RTLFUNC(TYP_DDEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(14);
}
RTLFUNC(TYP_DOCINFOFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(18);
}
RTLFUNC(TYP_DOCSTATFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(6);
}
RTLFUNC(TYP_EXTUSERFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(30);
}
RTLFUNC(TYP_FILENAMEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(2);
}
RTLFUNC(TYP_FIXDATEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(31);
}
RTLFUNC(TYP_FIXTIMEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(32);
}
RTLFUNC(TYP_FORMELFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(10);
}
RTLFUNC(TYP_GETFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(9);
}
RTLFUNC(TYP_GETREFFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(13);
}
RTLFUNC(TYP_HIDDENPARAFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(17);
}
RTLFUNC(TYP_HIDDENTXTFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(11);
}
RTLFUNC(TYP_INPUTFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(16);
}
RTLFUNC(TYP_MACROFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(15);
}
RTLFUNC(TYP_NEXTPAGEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(28);
}
RTLFUNC(TYP_PAGENUMBERFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(5);
}
RTLFUNC(TYP_POSTITFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(21);
}
RTLFUNC(TYP_PREVPAGEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(29);
}
RTLFUNC(TYP_SEQFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(23);
}
RTLFUNC(TYP_SETFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(8);
}
RTLFUNC(TYP_SETINPFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(33);
}
RTLFUNC(TYP_SETREFFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(12);
}
RTLFUNC(TYP_TEMPLNAMEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(22);
}
RTLFUNC(TYP_TIMEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(1);
}
RTLFUNC(TYP_USERFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(20);
}
RTLFUNC(TYP_USRINPFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(34);
}
RTLFUNC(TYP_SETREFPAGEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(35);
}
RTLFUNC(TYP_GETREFPAGEFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(36);
}
RTLFUNC(TYP_INTERNETFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(37);
}
RTLFUNC(SET_ON)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(1);
}
RTLFUNC(SET_OFF)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(0);
}
RTLFUNC(TOGGLE)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(2);
}
RTLFUNC(FRAMEANCHORPAGE)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(1);
}
RTLFUNC(FRAMEANCHORPARA)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(14);
}
RTLFUNC(FRAMEANCHORCHAR)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(15);
}
RTLFUNC(CLEAR_ALLTABS)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(2);
}
RTLFUNC(CLEAR_TAB)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(1);
}
RTLFUNC(SET_TAB)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(0);
}
RTLFUNC(LINEPROP)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(0);
}
RTLFUNC(LINE_1)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(1);
}
RTLFUNC(LINE_15)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(2);
}
RTLFUNC(LINE_2)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(3);
}
RTLFUNC(TYP_JUMPEDITFLD)
{
+ (void)pBasic;
+ (void)bWrite;
+
rPar.Get(0)->PutInteger(38);
}