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: props.cxx,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 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_basic.hxx"
34 #include "runtime.hxx"
36 #include "rtlproto.hxx"
39 // Properties und Methoden legen beim Get (bWrite = FALSE) den Returnwert
40 // im Element 0 des Argv ab; beim Put (bWrite = TRUE) wird der Wert aus
41 // Element 0 gespeichert.
48 rPar
.Get( 0 )->PutLong( StarBASIC::GetErl() );
58 INT32 nVal
= rPar
.Get( 0 )->GetLong();
60 StarBASIC::Error( StarBASIC::GetSfxFromVBError( (USHORT
) nVal
) );
63 rPar
.Get( 0 )->PutLong( StarBASIC::GetVBErrorCode( StarBASIC::GetErrBasic() ) );
71 rPar
.Get(0)->PutBool( FALSE
);
79 // liefert eine leere Objekt-Variable.
80 rPar
.Get( 0 )->PutObject( NULL
);
88 // liefert eine leere Objekt-Variable.
89 rPar
.Get( 0 )->PutNull();
97 rPar
.Get( 0 )->PutDouble( F_PI
);
105 rPar
.Get( 0 )->PutBool( TRUE
);
113 rPar
.Get(0)->PutInteger(0);
115 RTLFUNC(ATTR_READONLY
)
120 rPar
.Get(0)->PutInteger(1);
127 rPar
.Get(0)->PutInteger(2);
134 rPar
.Get(0)->PutInteger(4);
141 rPar
.Get(0)->PutInteger(8);
143 RTLFUNC(ATTR_DIRECTORY
)
148 rPar
.Get(0)->PutInteger(16);
150 RTLFUNC(ATTR_ARCHIVE
)
155 rPar
.Get(0)->PutInteger(32);
163 rPar
.Get(0)->PutInteger(0);
170 rPar
.Get(0)->PutInteger(1);
177 rPar
.Get(0)->PutInteger(2);
184 rPar
.Get(0)->PutInteger(3);
191 rPar
.Get(0)->PutInteger(4);
198 rPar
.Get(0)->PutInteger(5);
205 rPar
.Get(0)->PutInteger(6);
212 rPar
.Get(0)->PutInteger(7);
219 rPar
.Get(0)->PutInteger(8);
227 rPar
.Get(0)->PutInteger(0);
234 rPar
.Get(0)->PutInteger(1);
236 RTLFUNC(MB_ABORTRETRYIGNORE
)
241 rPar
.Get(0)->PutInteger(2);
243 RTLFUNC(MB_YESNOCANCEL
)
248 rPar
.Get(0)->PutInteger(3);
255 rPar
.Get(0)->PutInteger(4);
257 RTLFUNC(MB_RETRYCANCEL
)
262 rPar
.Get(0)->PutInteger(5);
269 rPar
.Get(0)->PutInteger(16);
271 RTLFUNC(MB_ICONQUESTION
)
276 rPar
.Get(0)->PutInteger(32);
278 RTLFUNC(MB_ICONEXCLAMATION
)
283 rPar
.Get(0)->PutInteger(48);
285 RTLFUNC(MB_ICONINFORMATION
)
290 rPar
.Get(0)->PutInteger(64);
292 RTLFUNC(MB_DEFBUTTON1
)
297 rPar
.Get(0)->PutInteger(0);
299 RTLFUNC(MB_DEFBUTTON2
)
304 rPar
.Get(0)->PutInteger(256);
306 RTLFUNC(MB_DEFBUTTON3
)
311 rPar
.Get(0)->PutInteger(512);
313 RTLFUNC(MB_APPLMODAL
)
318 rPar
.Get(0)->PutInteger(0);
320 RTLFUNC(MB_SYSTEMMODAL
)
325 rPar
.Get(0)->PutInteger(4096);
333 rPar
.Get(0)->PutInteger(1);
341 rPar
.Get(0)->PutInteger(2);
348 rPar
.Get(0)->PutInteger(3);
355 rPar
.Get(0)->PutInteger(4);
362 rPar
.Get(0)->PutInteger(6);
369 rPar
.Get(0)->PutInteger(7);
377 rPar
.Get(0)->PutInteger(1);
384 rPar
.Get(0)->PutInteger(2);
386 RTLFUNC(CF_METAFILEPICT
)
391 rPar
.Get(0)->PutInteger(3);
394 RTLFUNC(TYP_AUTHORFLD
)
399 rPar
.Get(0)->PutInteger(7);
401 RTLFUNC(TYP_CHAPTERFLD
)
406 rPar
.Get(0)->PutInteger(4);
408 RTLFUNC(TYP_CONDTXTFLD
)
413 rPar
.Get(0)->PutInteger(27);
420 rPar
.Get(0)->PutInteger(0);
427 rPar
.Get(0)->PutInteger(19);
429 RTLFUNC(TYP_DBNAMEFLD
)
434 rPar
.Get(0)->PutInteger(3);
436 RTLFUNC(TYP_DBNEXTSETFLD
)
441 rPar
.Get(0)->PutInteger(24);
443 RTLFUNC(TYP_DBNUMSETFLD
)
448 rPar
.Get(0)->PutInteger(25);
450 RTLFUNC(TYP_DBSETNUMBERFLD
)
455 rPar
.Get(0)->PutInteger(26);
462 rPar
.Get(0)->PutInteger(14);
464 RTLFUNC(TYP_DOCINFOFLD
)
469 rPar
.Get(0)->PutInteger(18);
471 RTLFUNC(TYP_DOCSTATFLD
)
476 rPar
.Get(0)->PutInteger(6);
478 RTLFUNC(TYP_EXTUSERFLD
)
483 rPar
.Get(0)->PutInteger(30);
485 RTLFUNC(TYP_FILENAMEFLD
)
490 rPar
.Get(0)->PutInteger(2);
492 RTLFUNC(TYP_FIXDATEFLD
)
497 rPar
.Get(0)->PutInteger(31);
499 RTLFUNC(TYP_FIXTIMEFLD
)
504 rPar
.Get(0)->PutInteger(32);
506 RTLFUNC(TYP_FORMELFLD
)
511 rPar
.Get(0)->PutInteger(10);
518 rPar
.Get(0)->PutInteger(9);
520 RTLFUNC(TYP_GETREFFLD
)
525 rPar
.Get(0)->PutInteger(13);
527 RTLFUNC(TYP_HIDDENPARAFLD
)
532 rPar
.Get(0)->PutInteger(17);
534 RTLFUNC(TYP_HIDDENTXTFLD
)
539 rPar
.Get(0)->PutInteger(11);
541 RTLFUNC(TYP_INPUTFLD
)
546 rPar
.Get(0)->PutInteger(16);
548 RTLFUNC(TYP_MACROFLD
)
553 rPar
.Get(0)->PutInteger(15);
555 RTLFUNC(TYP_NEXTPAGEFLD
)
560 rPar
.Get(0)->PutInteger(28);
562 RTLFUNC(TYP_PAGENUMBERFLD
)
567 rPar
.Get(0)->PutInteger(5);
569 RTLFUNC(TYP_POSTITFLD
)
574 rPar
.Get(0)->PutInteger(21);
576 RTLFUNC(TYP_PREVPAGEFLD
)
581 rPar
.Get(0)->PutInteger(29);
588 rPar
.Get(0)->PutInteger(23);
595 rPar
.Get(0)->PutInteger(8);
597 RTLFUNC(TYP_SETINPFLD
)
602 rPar
.Get(0)->PutInteger(33);
604 RTLFUNC(TYP_SETREFFLD
)
609 rPar
.Get(0)->PutInteger(12);
611 RTLFUNC(TYP_TEMPLNAMEFLD
)
616 rPar
.Get(0)->PutInteger(22);
623 rPar
.Get(0)->PutInteger(1);
630 rPar
.Get(0)->PutInteger(20);
632 RTLFUNC(TYP_USRINPFLD
)
637 rPar
.Get(0)->PutInteger(34);
639 RTLFUNC(TYP_SETREFPAGEFLD
)
644 rPar
.Get(0)->PutInteger(35);
646 RTLFUNC(TYP_GETREFPAGEFLD
)
651 rPar
.Get(0)->PutInteger(36);
653 RTLFUNC(TYP_INTERNETFLD
)
658 rPar
.Get(0)->PutInteger(37);
666 rPar
.Get(0)->PutInteger(1);
673 rPar
.Get(0)->PutInteger(0);
680 rPar
.Get(0)->PutInteger(2);
683 RTLFUNC(FRAMEANCHORPAGE
)
688 rPar
.Get(0)->PutInteger(1);
690 RTLFUNC(FRAMEANCHORPARA
)
695 rPar
.Get(0)->PutInteger(14);
697 RTLFUNC(FRAMEANCHORCHAR
)
702 rPar
.Get(0)->PutInteger(15);
705 RTLFUNC(CLEAR_ALLTABS
)
710 rPar
.Get(0)->PutInteger(2);
717 rPar
.Get(0)->PutInteger(1);
724 rPar
.Get(0)->PutInteger(0);
732 rPar
.Get(0)->PutInteger(0);
739 rPar
.Get(0)->PutInteger(1);
746 rPar
.Get(0)->PutInteger(2);
753 rPar
.Get(0)->PutInteger(3);
756 RTLFUNC(TYP_JUMPEDITFLD
)
761 rPar
.Get(0)->PutInteger(38);