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