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
767 lines
11 KiB
C++
767 lines
11 KiB
C++
/*************************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: props.cxx,v $
|
|
*
|
|
* $Revision: 1.5 $
|
|
*
|
|
* 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.
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License version 2.1, as published by the Free Software Foundation.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
* MA 02111-1307 USA
|
|
*
|
|
************************************************************************/
|
|
|
|
#include "runtime.hxx"
|
|
#include "stdobj.hxx"
|
|
#include "rtlproto.hxx"
|
|
|
|
|
|
// Properties und Methoden legen beim Get (bWrite = FALSE) den Returnwert
|
|
// im Element 0 des Argv ab; beim Put (bWrite = TRUE) wird der Wert aus
|
|
// Element 0 gespeichert.
|
|
|
|
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();
|
|
if( nVal <= 65535L )
|
|
StarBASIC::Error( StarBASIC::GetSfxFromVBError( (USHORT) nVal ) );
|
|
}
|
|
else
|
|
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);
|
|
}
|
|
|
|
|