xref: /aoo4110/main/l10ntools/inc/tokens.h (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _TOKENS_H
25 #define _TOKENS_H
26 
27 /*------------------------------------------------------					*/
28 /*------------------------------------------------------                    */
29 /* Tokens for parsing src files												*/
30 /*------------------------------------------------------                    */
31 /*------------------------------------------------------                    */
32 #define IGNOREDTOKENS		400	        /* #include | #pragma | //... | ... */
33 #define COMMEND				401			/*...								*/
34 #define DEFINEDRES			402			/* Text = { 	                    */
35 #define ANYTOKEN			404			/* XYZ                              */
36 #define UNKNOWNTOKEN		405			/* XYZ[ \t]$                        */
37 #define UNKNOWNCONSTRUCTION	406			/* XYZ ( xxx, yyy, zzz )            */
38 #define UNKNOWNCHAR			407			/* .                                */
39 /*------------------------------------------------------                    */
40 /* prev. tokens will not be executed                                        */
41 #define FILTER_LEVEL		500
42 /* following tokens will be executed                                        */
43 /*------------------------------------------------------                    */
44 #define CONDITION			501 		/* #if... | #endif ... | ...        */
45 #define EMPTYLINE			502 		/*                                  */
46 #define	RESSOURCE			503			/* Menu MID_TEST                    */
47 #define	RESSOURCEEXPR		504			/* Menu ( MID_TEST + .. )           */
48 #define SMALRESSOURCE   	505 		/* PageItem {                       */
49 #define TEXTLINE			506 		/* TEXT = "hhh"                     */
50 #define LONGTEXTLINE		507			/* TEXT = "hhh" TEST "HHH" ...      */
51 #define TEXT				508			/* "Something like this"            */
52 #define LEVELUP				509			/* {                                */
53 #define LEVELDOWN			510			/* };                               */
54 #define APPFONTMAPPING		511			/* MAP_APPFONT(10,10)               */
55 #define ASSIGNMENT			512			/* Somathing = Anything             */
56 #define LISTASSIGNMENT		513 		/* ...List [xyz]=...                */
57 #define LISTTEXT			514 		/* < "Text" ... >                   */
58 #define RSCDEFINE			515			/* #define MY_TEXT                  */
59 #define RSCDEFINELEND		516			/*                                  */
60 #define	NEWTEXTINRES		517			/* ### Achtung : Ne... 				*/
61 #define	UIENTRIES			518			/* UIEntries = {					*/
62 #define PRAGMA				519			/* #pragma ...						*/
63 #define _LISTTEXT			521 		/* { "Text" ... }                   */
64 #define TEXTREFID			522 		/* Text = 12345                     */
65 #define LISTRESID			523			/* < 12345; ... >                   */
66 #define _LISTRESID			523			/* { 12345; ... }                   */
67 #define NORMDEFINE          524         /* #define ...                      */
68 /*------------------------------------------------------					*/
69 /*------------------------------------------------------                    */
70 /* Tokens for parsing cfg files												*/
71 /*------------------------------------------------------                    */
72 /*------------------------------------------------------                    */
73 #define CFG_TAG						501
74 #define CFG_TEXT_START				505
75 #define CFG_TEXT_END				506
76 #define CFG_TEXTCHAR				507
77 #define CFG_CLOSETAG				508
78 #define CFG_UNKNOWNTAG				509
79 #define CFG_TOKEN_PACKAGE			600
80 #define CFG_TOKEN_COMPONENT			601
81 #define CFG_TOKEN_CONFIGNAME		602
82 #define CFG_TOKEN_TEMPLATE			603
83 #define CFG_TOKEN_OORNAME			604
84 #define CFG_TOKEN_OORVALUE			605
85 #define CFG_TOKEN_NO_TRANSLATE		606
86 
87 /*------------------------------------------------------					*/
88 /*------------------------------------------------------                    */
89 /* Tokens for parsing xrm files												*/
90 /*------------------------------------------------------                    */
91 /*------------------------------------------------------                    */
92 #define XRM_README_START			501
93 #define XRM_README_END				502
94 #define XRM_SECTION_START			503
95 #define XRM_SECTION_END				504
96 #define XRM_PARAGRAPH_START			505
97 #define XRM_PARAGRAPH_END  			506
98 #define XRM_TEXT_START  			507
99 #define XRM_TEXT_END	  			508
100 #define XRM_LIST_START  			509
101 #define XRM_LIST_END	  			510
102 #define XML_TEXTCHAR				600
103 
104 
105 #endif
106