/************************************************************************* * * $RCSfile: tokens.h,v $ * * $Revision: 1.2 $ * * last change: $Author: nf $ $Date: 2001-08-23 11:45:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses * * - GNU Lesser General Public License Version 2.1 * - Sun Industry Standards Source License Version 1.1 * * Sun Microsystems Inc., October, 2000 * * GNU Lesser General Public License Version 2.1 * ============================================= * Copyright 2000 by Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, CA 94303, USA * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * * * Sun Industry Standards Source License Version 1.1 * ================================================= * The contents of this file are subject to the Sun Industry Standards * Source License Version 1.1 (the "License"); You may not use this file * except in compliance with the License. You may obtain a copy of the * License at http://www.openoffice.org/license.html. * * Software provided under this License is provided on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. * See the License for the specific provisions governing your rights and * obligations concerning the Software. * * The Initial Developer of the Original Code is: Sun Microsystems, Inc. * * Copyright: 2000 by Sun Microsystems, Inc. * * All Rights Reserved. * * Contributor(s): _______________________________________ * * ************************************************************************/ #ifndef _TOKENS_H #define _TOKENS_H /*------------------------------------------------------ */ /*------------------------------------------------------ */ /* Tokens for parsing src files */ /*------------------------------------------------------ */ /*------------------------------------------------------ */ #define IGNOREDTOKENS 400 /* #include | #pragma | //... | ... */ #define COMMEND 401 /*... */ #define DEFINEDRES 402 /* Text = { */ #define NORMDEFINE 403 /* #define ... */ #define ANYTOKEN 404 /* XYZ */ #define UNKNOWNTOKEN 405 /* XYZ[ \t]$ */ #define UNKNOWNCONSTRUCTION 406 /* XYZ ( xxx, yyy, zzz ) */ #define UNKNOWNCHAR 407 /* . */ /*------------------------------------------------------ */ /* prev. tokens will not be executed */ #define FILTER_LEVEL 500 /* following tokens will be executed */ /*------------------------------------------------------ */ #define CONDITION 501 /* #if... | #endif ... | ... */ #define EMPTYLINE 502 /* */ #define RESSOURCE 503 /* Menu MID_TEST */ #define RESSOURCEEXPR 504 /* Menu ( MID_TEST + .. ) */ #define SMALRESSOURCE 505 /* PageItem { */ #define TEXTLINE 506 /* TEXT = "hhh" */ #define LONGTEXTLINE 507 /* TEXT = "hhh" TEST "HHH" ... */ #define TEXT 508 /* "Something like this" */ #define LEVELUP 509 /* { */ #define LEVELDOWN 510 /* }; */ #define APPFONTMAPPING 511 /* MAP_APPFONT(10,10) */ #define ASSIGNMENT 512 /* Somathing = Anything */ #define LISTASSIGNMENT 513 /* ...List [xyz]=... */ #define LISTTEXT 514 /* < "Text" ... > */ #define RSCDEFINE 515 /* #define MY_TEXT */ #define RSCDEFINELEND 516 /* */ #define NEWTEXTINRES 517 /* ### Achtung : Ne... */ #define UIENTRIES 518 /* UIEntries = { */ #define PRAGMA 519 /* #pragma ... */ #define _LISTTEXT 521 /* { "Text" ... } */ #define TEXTREFID 522 /* Text = 12345 */ #define LISTRESID 523 /* < 12345; ... > */ #define _LISTRESID 523 /* { 12345; ... } */ /*------------------------------------------------------ */ /*------------------------------------------------------ */ /* Tokens for parsing xml files */ /*------------------------------------------------------ */ /*------------------------------------------------------ */ #define XML_RESSOURCEBUNDLE_START 501 #define XML_RESSOURCEBUNDLE_END 502 #define XML_CONTEXT_START 511 #define XML_CONTEXT_END 512 #define XML_KEY_START 521 #define XML_KEY_END 522 #define XML_TEXT_START 531 #define XML_TEXT_END 532 #define XML_TEXTCHAR 600 /*------------------------------------------------------ */ /*------------------------------------------------------ */ /* Tokens for parsing cfg files */ /*------------------------------------------------------ */ /*------------------------------------------------------ */ #define CFG_TAG 501 #define CFG_TEXT_START 505 #define CFG_TEXT_END 506 #define CFG_TEXTCHAR 507 #define CFG_CLOSETAG 508 #define CFG_UNKNOWNTAG 509 #define CFG_TOKEN_PACKAGE 600 #define CFG_TOKEN_COMPONENT 601 #define CFG_TOKEN_CONFIGNAME 602 #define CFG_TOKEN_TEMPLATE 603 /*------------------------------------------------------ */ /*------------------------------------------------------ */ /* Tokens for parsing xrm files */ /*------------------------------------------------------ */ /*------------------------------------------------------ */ #define XRM_README_START 501 #define XRM_README_END 502 #define XRM_SECTION_START 503 #define XRM_SECTION_END 504 #define XRM_PARAGRAPH_START 505 #define XRM_PARAGRAPH_END 506 #define XRM_TEXT_START 507 #define XRM_TEXT_END 508 #define XRM_LIST_START 509 #define XRM_LIST_END 510 #endif