Bump version to 5.0-43
[LibreOffice.git] / basic / source / inc / rtlproto.hxx
blob7236f78ed2ad04a1463cedc62268867aaff7894c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_BASIC_SOURCE_INC_RTLPROTO_HXX
21 #define INCLUDED_BASIC_SOURCE_INC_RTLPROTO_HXX
23 #include <basic/sbstar.hxx>
24 #include "sbtrace.hxx"
26 #define RTLFUNC( name ) void SbRtl_##name( StarBASIC* pBasic, SbxArray& rPar, bool bWrite )
27 #define RTLNAME( name ) &SbRtl_##name
29 typedef void( *RtlCall ) ( StarBASIC* p, SbxArray& rArgs, bool bWrite );
31 // Properties
33 extern RTLFUNC(Date);
34 extern RTLFUNC(Err);
35 extern RTLFUNC(Erl);
36 extern RTLFUNC(False);
37 extern RTLFUNC(Empty);
38 extern RTLFUNC(Nothing);
39 extern RTLFUNC(Null);
40 extern RTLFUNC(True);
42 extern RTLFUNC(ATTR_NORMAL);
43 extern RTLFUNC(ATTR_READONLY);
44 extern RTLFUNC(ATTR_HIDDEN);
45 extern RTLFUNC(ATTR_SYSTEM);
46 extern RTLFUNC(ATTR_VOLUME);
47 extern RTLFUNC(ATTR_DIRECTORY);
48 extern RTLFUNC(ATTR_ARCHIVE);
50 extern RTLFUNC(V_EMPTY);
51 extern RTLFUNC(V_NULL);
52 extern RTLFUNC(V_INTEGER);
53 extern RTLFUNC(V_LONG);
54 extern RTLFUNC(V_SINGLE);
55 extern RTLFUNC(V_DOUBLE);
56 extern RTLFUNC(V_CURRENCY);
57 extern RTLFUNC(V_DATE);
58 extern RTLFUNC(V_STRING);
60 extern RTLFUNC(MB_OK);
61 extern RTLFUNC(MB_OKCANCEL);
62 extern RTLFUNC(MB_ABORTRETRYIGNORE);
63 extern RTLFUNC(MB_YESNOCANCEL);
64 extern RTLFUNC(MB_YESNO);
65 extern RTLFUNC(MB_RETRYCANCEL);
66 extern RTLFUNC(MB_ICONSTOP);
67 extern RTLFUNC(MB_ICONQUESTION);
68 extern RTLFUNC(MB_ICONEXCLAMATION);
69 extern RTLFUNC(MB_ICONINFORMATION);
70 extern RTLFUNC(MB_DEFBUTTON1);
71 extern RTLFUNC(MB_DEFBUTTON2);
72 extern RTLFUNC(MB_DEFBUTTON3);
73 extern RTLFUNC(MB_APPLMODAL);
74 extern RTLFUNC(MB_SYSTEMMODAL);
76 extern RTLFUNC(IDOK);
77 extern RTLFUNC(IDCANCEL);
78 extern RTLFUNC(IDABORT);
79 extern RTLFUNC(IDRETRY);
80 extern RTLFUNC(IDYES);
81 extern RTLFUNC(IDNO);
83 extern RTLFUNC(CF_TEXT);
84 extern RTLFUNC(CF_BITMAP);
85 extern RTLFUNC(CF_METAFILEPICT);
87 extern RTLFUNC(PI);
89 extern RTLFUNC(SET_OFF);
90 extern RTLFUNC(SET_ON);
91 extern RTLFUNC(TOGGLE);
93 extern RTLFUNC(TYP_AUTHORFLD);
94 extern RTLFUNC(TYP_CHAPTERFLD);
95 extern RTLFUNC(TYP_CONDTXTFLD);
96 extern RTLFUNC(TYP_DATEFLD);
97 extern RTLFUNC(TYP_DBFLD);
98 extern RTLFUNC(TYP_DBNAMEFLD);
99 extern RTLFUNC(TYP_DBNEXTSETFLD);
100 extern RTLFUNC(TYP_DBNUMSETFLD);
101 extern RTLFUNC(TYP_DBSETNUMBERFLD);
102 extern RTLFUNC(TYP_DDEFLD);
103 extern RTLFUNC(TYP_DOCINFOFLD);
104 extern RTLFUNC(TYP_DOCSTATFLD);
105 extern RTLFUNC(TYP_EXTUSERFLD);
106 extern RTLFUNC(TYP_FILENAMEFLD);
107 extern RTLFUNC(TYP_FIXDATEFLD);
108 extern RTLFUNC(TYP_FIXTIMEFLD);
109 extern RTLFUNC(TYP_FORMELFLD);
110 extern RTLFUNC(TYP_GETFLD);
111 extern RTLFUNC(TYP_GETREFFLD);
112 extern RTLFUNC(TYP_HIDDENPARAFLD);
113 extern RTLFUNC(TYP_HIDDENTXTFLD);
114 extern RTLFUNC(TYP_INPUTFLD);
115 extern RTLFUNC(TYP_MACROFLD);
116 extern RTLFUNC(TYP_NEXTPAGEFLD);
117 extern RTLFUNC(TYP_PAGENUMBERFLD);
118 extern RTLFUNC(TYP_POSTITFLD);
119 extern RTLFUNC(TYP_PREVPAGEFLD);
120 extern RTLFUNC(TYP_SEQFLD);
121 extern RTLFUNC(TYP_SETFLD);
122 extern RTLFUNC(TYP_SETINPFLD);
123 extern RTLFUNC(TYP_SETREFFLD);
124 extern RTLFUNC(TYP_TEMPLNAMEFLD);
125 extern RTLFUNC(TYP_TIMEFLD);
126 extern RTLFUNC(TYP_USERFLD);
127 extern RTLFUNC(TYP_USRINPFLD);
128 extern RTLFUNC(TYP_SETREFPAGEFLD);
129 extern RTLFUNC(TYP_GETREFPAGEFLD);
130 extern RTLFUNC(TYP_INTERNETFLD);
131 extern RTLFUNC(TYP_JUMPEDITFLD);
133 extern RTLFUNC(FRAMEANCHORPAGE);
134 extern RTLFUNC(FRAMEANCHORPARA);
135 extern RTLFUNC(FRAMEANCHORCHAR);
137 extern RTLFUNC(CLEAR_ALLTABS);
138 extern RTLFUNC(CLEAR_TAB);
139 extern RTLFUNC(SET_TAB);
141 extern RTLFUNC(LINEPROP);
142 extern RTLFUNC(LINE_1);
143 extern RTLFUNC(LINE_15);
144 extern RTLFUNC(LINE_2);
146 // Methoden
148 extern RTLFUNC(CreateObject);
149 extern RTLFUNC(Error);
150 extern RTLFUNC(Sin);
151 extern RTLFUNC(Abs);
152 extern RTLFUNC(Asc);
153 extern RTLFUNC(Atn);
154 extern RTLFUNC(Chr);
155 extern RTLFUNC(ChrW);
156 extern RTLFUNC(Cos);
157 extern RTLFUNC(CurDir);
158 extern RTLFUNC(ChDir); // JSM
159 extern RTLFUNC(ChDrive); // JSM
160 extern RTLFUNC(FileCopy); // JSM
161 extern RTLFUNC(Kill); // JSM
162 extern RTLFUNC(MkDir); // JSM
163 extern RTLFUNC(RmDir); // JSM
164 extern RTLFUNC(SendKeys); // JSM
165 extern RTLFUNC(DDB);
166 extern RTLFUNC(DimArray);
167 extern RTLFUNC(Dir);
168 extern RTLFUNC(DoEvents);
169 extern RTLFUNC(Exp);
170 extern RTLFUNC(FileLen);
171 extern RTLFUNC(Fix);
172 extern RTLFUNC(FV);
173 extern RTLFUNC(Hex);
174 extern RTLFUNC(Input);
175 extern RTLFUNC(InStr);
176 extern RTLFUNC(InStrRev);
177 extern RTLFUNC(Int);
178 extern RTLFUNC(IPmt);
179 extern RTLFUNC(IRR);
180 extern RTLFUNC(Join);
181 extern RTLFUNC(LCase);
182 extern RTLFUNC(Left);
183 extern RTLFUNC(Log);
184 extern RTLFUNC(LTrim);
185 extern RTLFUNC(Mid);
186 extern RTLFUNC(MIRR);
187 extern RTLFUNC(NPer);
188 extern RTLFUNC(NPV);
189 extern RTLFUNC(Oct);
190 extern RTLFUNC(Pmt);
191 extern RTLFUNC(PPmt);
192 extern RTLFUNC(PV);
193 extern RTLFUNC(Rate);
194 extern RTLFUNC(Replace);
195 extern RTLFUNC(Right);
196 extern RTLFUNC(RTrim);
197 extern RTLFUNC(RTL);
198 extern RTLFUNC(Sgn);
199 extern RTLFUNC(SLN);
200 extern RTLFUNC(Space);
201 extern RTLFUNC(Split);
202 extern RTLFUNC(Sqr);
203 extern RTLFUNC(Str);
204 extern RTLFUNC(StrComp);
205 extern RTLFUNC(String);
206 extern RTLFUNC(StrReverse);
207 extern RTLFUNC(SYD);
208 extern RTLFUNC(Tan);
209 extern RTLFUNC(UCase);
210 extern RTLFUNC(Val);
211 extern RTLFUNC(Len);
212 extern RTLFUNC(Spc);
213 extern RTLFUNC(DateSerial);
214 extern RTLFUNC(TimeSerial);
215 extern RTLFUNC(DateValue);
216 extern RTLFUNC(TimeValue);
217 extern RTLFUNC(Day);
218 extern RTLFUNC(Hour);
219 extern RTLFUNC(Minute);
220 extern RTLFUNC(Month);
221 extern RTLFUNC(MonthName);
222 extern RTLFUNC(Now);
223 extern RTLFUNC(Second);
224 extern RTLFUNC(Time);
225 extern RTLFUNC(Timer);
226 extern RTLFUNC(Weekday);
227 extern RTLFUNC(WeekdayName);
228 extern RTLFUNC(Year);
229 extern RTLFUNC(InputBox);
230 extern RTLFUNC(Me);
231 extern RTLFUNC(MsgBox);
232 extern RTLFUNC(IsArray);
233 extern RTLFUNC(IsDate);
234 extern RTLFUNC(IsEmpty);
235 extern RTLFUNC(IsError);
236 extern RTLFUNC(IsNull);
237 extern RTLFUNC(IsNumeric);
238 extern RTLFUNC(IsObject);
239 extern RTLFUNC(IsUnoStruct);
241 extern RTLFUNC(FileDateTime);
242 extern RTLFUNC(Format);
243 extern RTLFUNC(GetAttr);
244 extern RTLFUNC(Randomize); // JSM
245 extern RTLFUNC(Round);
246 extern RTLFUNC(Frac);
247 extern RTLFUNC(Rnd);
248 extern RTLFUNC(Shell);
249 extern RTLFUNC(VarType);
250 extern RTLFUNC(TypeName);
251 extern RTLFUNC(TypeLen);
253 extern RTLFUNC(EOF);
254 extern RTLFUNC(FileAttr);
255 extern RTLFUNC(Loc);
256 extern RTLFUNC(Lof);
257 extern RTLFUNC(Seek);
258 extern RTLFUNC(SetAttr); // JSM
259 extern RTLFUNC(Reset); // JSM
261 extern RTLFUNC(DDEInitiate);
262 extern RTLFUNC(DDETerminate);
263 extern RTLFUNC(DDETerminateAll);
264 extern RTLFUNC(DDERequest);
265 extern RTLFUNC(DDEExecute);
266 extern RTLFUNC(DDEPoke);
268 extern RTLFUNC(FreeFile);
269 extern RTLFUNC(IsMissing);
270 extern RTLFUNC(LBound);
271 extern RTLFUNC(UBound);
272 extern RTLFUNC(RGB);
273 extern RTLFUNC(QBColor);
274 extern RTLFUNC(StrConv);
276 extern RTLFUNC(Beep);
278 extern RTLFUNC(Load);
279 extern RTLFUNC(Unload);
280 extern RTLFUNC(LoadPicture);
281 extern RTLFUNC(SavePicture);
283 extern RTLFUNC(CallByName);
284 extern RTLFUNC(CBool); // JSM
285 extern RTLFUNC(CByte); // JSM
286 extern RTLFUNC(CCur); // JSM
287 extern RTLFUNC(CDate); // JSM
288 extern RTLFUNC(CDbl); // JSM
289 extern RTLFUNC(CInt); // JSM
290 extern RTLFUNC(CLng); // JSM
291 extern RTLFUNC(CSng); // JSM
292 extern RTLFUNC(CStr); // JSM
293 extern RTLFUNC(CVar); // JSM
294 extern RTLFUNC(CVErr); // JSM
296 extern RTLFUNC(Iif); // JSM
298 extern RTLFUNC(DumpAllObjects);
300 extern RTLFUNC(GetSystemType);
301 extern RTLFUNC(GetGUIType);
302 extern RTLFUNC(Red);
303 extern RTLFUNC(Green);
304 extern RTLFUNC(Blue);
306 extern RTLFUNC(Switch);
307 extern RTLFUNC(Wait);
308 //i#64882# add new WaitUntil
309 extern RTLFUNC(WaitUntil);
310 extern RTLFUNC(FuncCaller);
312 extern RTLFUNC(GetGUIVersion);
313 extern RTLFUNC(Choose);
314 extern RTLFUNC(Trim);
316 extern RTLFUNC(DateAdd);
317 extern RTLFUNC(DateDiff);
318 extern RTLFUNC(DatePart);
319 extern RTLFUNC(FormatDateTime);
320 extern RTLFUNC(GetSolarVersion);
321 extern RTLFUNC(TwipsPerPixelX);
322 extern RTLFUNC(TwipsPerPixelY);
323 extern RTLFUNC(FreeLibrary);
324 extern RTLFUNC(Array);
325 extern RTLFUNC(FindObject);
326 extern RTLFUNC(FindPropertyObject);
327 extern RTLFUNC(EnableReschedule);
329 extern RTLFUNC(Put);
330 extern RTLFUNC(Get);
331 extern RTLFUNC(Environ);
332 extern RTLFUNC(GetDialogZoomFactorX);
333 extern RTLFUNC(GetDialogZoomFactorY);
334 extern RTLFUNC(GetSystemTicks);
335 extern RTLFUNC(GetPathSeparator);
336 extern RTLFUNC(ResolvePath);
337 extern RTLFUNC(CreateUnoStruct);
338 extern RTLFUNC(CreateUnoService);
339 extern RTLFUNC(CreateUnoServiceWithArguments);
340 extern RTLFUNC(CreateUnoValue);
341 extern RTLFUNC(GetProcessServiceManager);
342 extern RTLFUNC(GetDefaultContext);
343 extern RTLFUNC(CreatePropertySet);
344 extern RTLFUNC(CreateUnoListener);
345 extern RTLFUNC(HasUnoInterfaces);
346 extern RTLFUNC(EqualUnoObjects);
347 extern RTLFUNC(CreateUnoDialog);
348 extern RTLFUNC(GlobalScope);
349 extern RTLFUNC(FileExists);
350 extern RTLFUNC(ConvertToUrl);
351 extern RTLFUNC(ConvertFromUrl);
352 extern RTLFUNC(CDateToUnoDate);
353 extern RTLFUNC(CDateFromUnoDate);
354 extern RTLFUNC(CDateToUnoTime);
355 extern RTLFUNC(CDateFromUnoTime);
356 extern RTLFUNC(CDateToUnoDateTime);
357 extern RTLFUNC(CDateFromUnoDateTime);
358 extern RTLFUNC(CDateToIso);
359 extern RTLFUNC(CDateFromIso);
360 extern RTLFUNC(CompatibilityMode);
361 extern RTLFUNC(CDec);
363 extern RTLFUNC(Partition); // Fong
365 #ifdef DBG_TRACE_BASIC
366 extern RTLFUNC(TraceCommand);
367 #endif
369 extern double Now_Impl();
370 extern void Wait_Impl( bool bDurationBased, SbxArray& rPar );
372 #endif
374 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */