1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: rtlproto.hxx,v $
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 ************************************************************************/
31 #include <basic/sbstar.hxx>
33 #define RTLFUNC( name ) void SbRtl_##name( StarBASIC* pBasic, SbxArray& rPar, BOOL bWrite )
34 #define RTLNAME( name ) &SbRtl_##name
36 typedef void( *RtlCall
) ( StarBASIC
* p
, SbxArray
& rArgs
, BOOL bWrite
);
43 extern RTLFUNC(False
);
44 extern RTLFUNC(Nothing
);
48 extern RTLFUNC(ATTR_NORMAL
);
49 extern RTLFUNC(ATTR_READONLY
);
50 extern RTLFUNC(ATTR_HIDDEN
);
51 extern RTLFUNC(ATTR_SYSTEM
);
52 extern RTLFUNC(ATTR_VOLUME
);
53 extern RTLFUNC(ATTR_DIRECTORY
);
54 extern RTLFUNC(ATTR_ARCHIVE
);
56 extern RTLFUNC(V_EMPTY
);
57 extern RTLFUNC(V_NULL
);
58 extern RTLFUNC(V_INTEGER
);
59 extern RTLFUNC(V_LONG
);
60 extern RTLFUNC(V_SINGLE
);
61 extern RTLFUNC(V_DOUBLE
);
62 extern RTLFUNC(V_CURRENCY
);
63 extern RTLFUNC(V_DATE
);
64 extern RTLFUNC(V_STRING
);
66 extern RTLFUNC(MB_OK
);
67 extern RTLFUNC(MB_OKCANCEL
);
68 extern RTLFUNC(MB_ABORTRETRYIGNORE
);
69 extern RTLFUNC(MB_YESNOCANCEL
);
70 extern RTLFUNC(MB_YESNO
);
71 extern RTLFUNC(MB_RETRYCANCEL
);
72 extern RTLFUNC(MB_ICONSTOP
);
73 extern RTLFUNC(MB_ICONQUESTION
);
74 extern RTLFUNC(MB_ICONEXCLAMATION
);
75 extern RTLFUNC(MB_ICONINFORMATION
);
76 extern RTLFUNC(MB_DEFBUTTON1
);
77 extern RTLFUNC(MB_DEFBUTTON2
);
78 extern RTLFUNC(MB_DEFBUTTON3
);
79 extern RTLFUNC(MB_APPLMODAL
);
80 extern RTLFUNC(MB_SYSTEMMODAL
);
83 extern RTLFUNC(IDCANCEL
);
84 extern RTLFUNC(IDABORT
);
85 extern RTLFUNC(IDRETRY
);
86 extern RTLFUNC(IDYES
);
89 extern RTLFUNC(CF_TEXT
);
90 extern RTLFUNC(CF_BITMAP
);
91 extern RTLFUNC(CF_METAFILEPICT
);
95 extern RTLFUNC(SET_OFF
);
96 extern RTLFUNC(SET_ON
);
97 extern RTLFUNC(TOGGLE
);
99 extern RTLFUNC(TYP_AUTHORFLD
);
100 extern RTLFUNC(TYP_CHAPTERFLD
);
101 extern RTLFUNC(TYP_CONDTXTFLD
);
102 extern RTLFUNC(TYP_DATEFLD
);
103 extern RTLFUNC(TYP_DBFLD
);
104 extern RTLFUNC(TYP_DBNAMEFLD
);
105 extern RTLFUNC(TYP_DBNEXTSETFLD
);
106 extern RTLFUNC(TYP_DBNUMSETFLD
);
107 extern RTLFUNC(TYP_DBSETNUMBERFLD
);
108 extern RTLFUNC(TYP_DDEFLD
);
109 extern RTLFUNC(TYP_DOCINFOFLD
);
110 extern RTLFUNC(TYP_DOCSTATFLD
);
111 extern RTLFUNC(TYP_EXTUSERFLD
);
112 extern RTLFUNC(TYP_FILENAMEFLD
);
113 extern RTLFUNC(TYP_FIXDATEFLD
);
114 extern RTLFUNC(TYP_FIXTIMEFLD
);
115 extern RTLFUNC(TYP_FORMELFLD
);
116 extern RTLFUNC(TYP_GETFLD
);
117 extern RTLFUNC(TYP_GETREFFLD
);
118 extern RTLFUNC(TYP_HIDDENPARAFLD
);
119 extern RTLFUNC(TYP_HIDDENTXTFLD
);
120 extern RTLFUNC(TYP_INPUTFLD
);
121 extern RTLFUNC(TYP_MACROFLD
);
122 extern RTLFUNC(TYP_NEXTPAGEFLD
);
123 extern RTLFUNC(TYP_PAGENUMBERFLD
);
124 extern RTLFUNC(TYP_POSTITFLD
);
125 extern RTLFUNC(TYP_PREVPAGEFLD
);
126 extern RTLFUNC(TYP_SEQFLD
);
127 extern RTLFUNC(TYP_SETFLD
);
128 extern RTLFUNC(TYP_SETINPFLD
);
129 extern RTLFUNC(TYP_SETREFFLD
);
130 extern RTLFUNC(TYP_TEMPLNAMEFLD
);
131 extern RTLFUNC(TYP_TIMEFLD
);
132 extern RTLFUNC(TYP_USERFLD
);
133 extern RTLFUNC(TYP_USRINPFLD
);
134 extern RTLFUNC(TYP_SETREFPAGEFLD
);
135 extern RTLFUNC(TYP_GETREFPAGEFLD
);
136 extern RTLFUNC(TYP_INTERNETFLD
);
137 extern RTLFUNC(TYP_JUMPEDITFLD
);
139 extern RTLFUNC(FRAMEANCHORPAGE
);
140 extern RTLFUNC(FRAMEANCHORPARA
);
141 extern RTLFUNC(FRAMEANCHORCHAR
);
143 extern RTLFUNC(CLEAR_ALLTABS
);
144 extern RTLFUNC(CLEAR_TAB
);
145 extern RTLFUNC(SET_TAB
);
147 extern RTLFUNC(LINEPROP
);
148 extern RTLFUNC(LINE_1
);
149 extern RTLFUNC(LINE_15
);
150 extern RTLFUNC(LINE_2
);
154 extern RTLFUNC(CreateObject
);
155 extern RTLFUNC(Error
);
162 extern RTLFUNC(CurDir
);
163 extern RTLFUNC(ChDir
); // JSM
164 extern RTLFUNC(ChDrive
); // JSM
165 extern RTLFUNC(FileCopy
); // JSM
166 extern RTLFUNC(Kill
); // JSM
167 extern RTLFUNC(MkDir
); // JSM
168 extern RTLFUNC(RmDir
); // JSM
169 extern RTLFUNC(SendKeys
); // JSM
171 extern RTLFUNC(DoEvents
);
172 extern RTLFUNC(DimArray
);
175 extern RTLFUNC(FileLen
);
179 extern RTLFUNC(Input
);
180 extern RTLFUNC(InStr
);
181 extern RTLFUNC(InStrRev
);
183 extern RTLFUNC(IPmt
);
185 extern RTLFUNC(Join
);
186 extern RTLFUNC(LCase
);
187 extern RTLFUNC(Left
);
189 extern RTLFUNC(LTrim
);
191 extern RTLFUNC(MIRR
);
192 extern RTLFUNC(NPer
);
196 extern RTLFUNC(PPmt
);
198 extern RTLFUNC(Rate
);
199 extern RTLFUNC(Replace
);
200 extern RTLFUNC(Right
);
201 extern RTLFUNC(RTrim
);
205 extern RTLFUNC(Space
);
206 extern RTLFUNC(Split
);
209 extern RTLFUNC(StrComp
);
210 extern RTLFUNC(String
);
211 extern RTLFUNC(StrReverse
);
214 extern RTLFUNC(UCase
);
218 extern RTLFUNC(DateSerial
);
219 extern RTLFUNC(TimeSerial
);
220 extern RTLFUNC(DateValue
);
221 extern RTLFUNC(TimeValue
);
223 extern RTLFUNC(Hour
);
224 extern RTLFUNC(Minute
);
225 extern RTLFUNC(Month
);
226 extern RTLFUNC(MonthName
);
228 extern RTLFUNC(Second
);
229 extern RTLFUNC(Time
);
230 extern RTLFUNC(Timer
);
231 extern RTLFUNC(Weekday
);
232 extern RTLFUNC(WeekdayName
);
233 extern RTLFUNC(Year
);
234 extern RTLFUNC(Date
);
235 extern RTLFUNC(InputBox
);
237 extern RTLFUNC(MsgBox
);
238 extern RTLFUNC(IsArray
);
239 extern RTLFUNC(IsDate
);
240 extern RTLFUNC(IsEmpty
);
241 extern RTLFUNC(IsError
);
242 extern RTLFUNC(IsNull
);
243 extern RTLFUNC(IsNumeric
);
244 extern RTLFUNC(IsObject
);
245 extern RTLFUNC(IsUnoStruct
);
247 extern RTLFUNC(FileDateTime
);
248 extern RTLFUNC(Format
);
249 extern RTLFUNC(GetAttr
);
250 extern RTLFUNC(Randomize
); // JSM
251 extern RTLFUNC(Round
);
253 extern RTLFUNC(Shell
);
254 extern RTLFUNC(VarType
);
255 extern RTLFUNC(TypeName
);
256 extern RTLFUNC(TypeLen
);
259 extern RTLFUNC(FileAttr
);
262 extern RTLFUNC(Seek
);
263 extern RTLFUNC(SetAttr
); // JSM
264 extern RTLFUNC(Reset
); // JSM
266 extern RTLFUNC(DDEInitiate
);
267 extern RTLFUNC(DDETerminate
);
268 extern RTLFUNC(DDETerminateAll
);
269 extern RTLFUNC(DDERequest
);
270 extern RTLFUNC(DDEExecute
);
271 extern RTLFUNC(DDEPoke
);
273 extern RTLFUNC(FreeFile
);
274 extern RTLFUNC(IsMissing
);
275 extern RTLFUNC(LBound
);
276 extern RTLFUNC(UBound
);
278 extern RTLFUNC(QBColor
);
279 extern RTLFUNC(StrConv
);
281 extern RTLFUNC(Beep
);
283 extern RTLFUNC(Load
);
284 extern RTLFUNC(Unload
);
285 extern RTLFUNC(AboutStarBasic
);
286 extern RTLFUNC(LoadPicture
);
287 extern RTLFUNC(SavePicture
);
289 extern RTLFUNC(CBool
); // JSM
290 extern RTLFUNC(CByte
); // JSM
291 extern RTLFUNC(CCur
); // JSM
292 extern RTLFUNC(CDate
); // JSM
293 extern RTLFUNC(CDbl
); // JSM
294 extern RTLFUNC(CInt
); // JSM
295 extern RTLFUNC(CLng
); // JSM
296 extern RTLFUNC(CSng
); // JSM
297 extern RTLFUNC(CStr
); // JSM
298 extern RTLFUNC(CVar
); // JSM
299 extern RTLFUNC(CVErr
); // JSM
301 extern RTLFUNC(Iif
); // JSM
303 extern RTLFUNC(DumpAllObjects
);
305 extern RTLFUNC(GetSystemType
);
306 extern RTLFUNC(GetGUIType
);
308 extern RTLFUNC(Green
);
309 extern RTLFUNC(Blue
);
311 extern RTLFUNC(Switch
);
312 extern RTLFUNC(Wait
);
313 //i#64882# add new WaitUntil
314 extern RTLFUNC(WaitUntil
);
315 extern RTLFUNC(FuncCaller
);
317 extern RTLFUNC(GetGUIVersion
);
318 extern RTLFUNC(Choose
);
319 extern RTLFUNC(Trim
);
321 extern RTLFUNC(DateAdd
);
322 extern RTLFUNC(DateDiff
);
323 extern RTLFUNC(DatePart
);
324 extern RTLFUNC(FormatDateTime
);
325 extern RTLFUNC(GetSolarVersion
);
326 extern RTLFUNC(TwipsPerPixelX
);
327 extern RTLFUNC(TwipsPerPixelY
);
328 extern RTLFUNC(FreeLibrary
);
329 extern RTLFUNC(Array
);
330 extern RTLFUNC(FindObject
);
331 extern RTLFUNC(FindPropertyObject
);
332 extern RTLFUNC(EnableReschedule
);
336 extern RTLFUNC(Environ
);
337 extern RTLFUNC(GetDialogZoomFactorX
);
338 extern RTLFUNC(GetDialogZoomFactorY
);
339 extern RTLFUNC(GetSystemTicks
);
340 extern RTLFUNC(GetPathSeparator
);
341 extern RTLFUNC(ResolvePath
);
342 extern RTLFUNC(CreateUnoStruct
);
343 extern RTLFUNC(CreateUnoService
);
344 extern RTLFUNC(CreateUnoServiceWithArguments
);
345 extern RTLFUNC(CreateUnoValue
);
346 extern RTLFUNC(GetProcessServiceManager
);
347 extern RTLFUNC(GetDefaultContext
);
348 extern RTLFUNC(CreatePropertySet
);
349 extern RTLFUNC(CreateUnoListener
);
350 extern RTLFUNC(HasUnoInterfaces
);
351 extern RTLFUNC(EqualUnoObjects
);
352 extern RTLFUNC(CreateUnoDialog
);
353 extern RTLFUNC(GlobalScope
);
354 extern RTLFUNC(FileExists
);
355 extern RTLFUNC(ConvertToUrl
);
356 extern RTLFUNC(ConvertFromUrl
);
357 extern RTLFUNC(CDateToIso
);
358 extern RTLFUNC(CDateFromIso
);
359 extern RTLFUNC(CompatibilityMode
);
360 extern RTLFUNC(CDec
);
362 extern RTLFUNC(Partition
); // Fong
364 extern double Now_Impl();
365 extern void Wait_Impl( bool bDurationBased
, SbxArray
& rPar
);