1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef _TOKENS_H 29 #define _TOKENS_H 30 31 /*------------------------------------------------------ */ 32 /*------------------------------------------------------ */ 33 /* Tokens for parsing src files */ 34 /*------------------------------------------------------ */ 35 /*------------------------------------------------------ */ 36 #define IGNOREDTOKENS 400 /* #include | #pragma | //... | ... */ 37 #define COMMEND 401 /*... */ 38 #define DEFINEDRES 402 /* Text = { */ 39 #define ANYTOKEN 404 /* XYZ */ 40 #define UNKNOWNTOKEN 405 /* XYZ[ \t]$ */ 41 #define UNKNOWNCONSTRUCTION 406 /* XYZ ( xxx, yyy, zzz ) */ 42 #define UNKNOWNCHAR 407 /* . */ 43 /*------------------------------------------------------ */ 44 /* prev. tokens will not be executed */ 45 #define FILTER_LEVEL 500 46 /* following tokens will be executed */ 47 /*------------------------------------------------------ */ 48 #define CONDITION 501 /* #if... | #endif ... | ... */ 49 #define EMPTYLINE 502 /* */ 50 #define RESSOURCE 503 /* Menu MID_TEST */ 51 #define RESSOURCEEXPR 504 /* Menu ( MID_TEST + .. ) */ 52 #define SMALRESSOURCE 505 /* PageItem { */ 53 #define TEXTLINE 506 /* TEXT = "hhh" */ 54 #define LONGTEXTLINE 507 /* TEXT = "hhh" TEST "HHH" ... */ 55 #define TEXT 508 /* "Something like this" */ 56 #define LEVELUP 509 /* { */ 57 #define LEVELDOWN 510 /* }; */ 58 #define APPFONTMAPPING 511 /* MAP_APPFONT(10,10) */ 59 #define ASSIGNMENT 512 /* Somathing = Anything */ 60 #define LISTASSIGNMENT 513 /* ...List [xyz]=... */ 61 #define LISTTEXT 514 /* < "Text" ... > */ 62 #define RSCDEFINE 515 /* #define MY_TEXT */ 63 #define RSCDEFINELEND 516 /* */ 64 #define NEWTEXTINRES 517 /* ### Achtung : Ne... */ 65 #define UIENTRIES 518 /* UIEntries = { */ 66 #define PRAGMA 519 /* #pragma ... */ 67 #define _LISTTEXT 521 /* { "Text" ... } */ 68 #define TEXTREFID 522 /* Text = 12345 */ 69 #define LISTRESID 523 /* < 12345; ... > */ 70 #define _LISTRESID 523 /* { 12345; ... } */ 71 #define NORMDEFINE 524 /* #define ... */ 72 /*------------------------------------------------------ */ 73 /*------------------------------------------------------ */ 74 /* Tokens for parsing cfg files */ 75 /*------------------------------------------------------ */ 76 /*------------------------------------------------------ */ 77 #define CFG_TAG 501 78 #define CFG_TEXT_START 505 79 #define CFG_TEXT_END 506 80 #define CFG_TEXTCHAR 507 81 #define CFG_CLOSETAG 508 82 #define CFG_UNKNOWNTAG 509 83 #define CFG_TOKEN_PACKAGE 600 84 #define CFG_TOKEN_COMPONENT 601 85 #define CFG_TOKEN_CONFIGNAME 602 86 #define CFG_TOKEN_TEMPLATE 603 87 #define CFG_TOKEN_OORNAME 604 88 #define CFG_TOKEN_OORVALUE 605 89 #define CFG_TOKEN_NO_TRANSLATE 606 90 91 /*------------------------------------------------------ */ 92 /*------------------------------------------------------ */ 93 /* Tokens for parsing xrm files */ 94 /*------------------------------------------------------ */ 95 /*------------------------------------------------------ */ 96 #define XRM_README_START 501 97 #define XRM_README_END 502 98 #define XRM_SECTION_START 503 99 #define XRM_SECTION_END 504 100 #define XRM_PARAGRAPH_START 505 101 #define XRM_PARAGRAPH_END 506 102 #define XRM_TEXT_START 507 103 #define XRM_TEXT_END 508 104 #define XRM_LIST_START 509 105 #define XRM_LIST_END 510 106 #define XML_TEXTCHAR 600 107 108 109 #endif 110