xref: /aoo42x/main/l10ntools/inc/tokens.h (revision 17ad1cec)
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 COMMENT				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 UIENTRIES			518			/* UIEntries = {					*/
61 #define PRAGMA				519			/* #pragma ...						*/
62 #define _LISTTEXT			521			/* { "Text" ... }                   */
63 #define TEXTREFID			522			/* Text = 12345                     */
64 #define LISTRESID			523			/* < 12345; ... >                   */
65 #define _LISTRESID			523			/* { 12345; ... }                   */
66 #define NORMDEFINE			524			/* #define ...                      */
67 /*------------------------------------------------------					*/
68 /*------------------------------------------------------                    */
69 /* Tokens for parsing cfg files												*/
70 /*------------------------------------------------------                    */
71 /*------------------------------------------------------                    */
72 #define CFG_TAG						501
73 #define CFG_TEXT_START				505
74 #define CFG_TEXT_END				506
75 #define CFG_TEXTCHAR				507
76 #define CFG_CLOSETAG				508
77 #define CFG_UNKNOWNTAG				509
78 #define CFG_TOKEN_PACKAGE			600
79 #define CFG_TOKEN_COMPONENT			601
80 #define CFG_TOKEN_CONFIGNAME		602
81 #define CFG_TOKEN_TEMPLATE			603
82 #define CFG_TOKEN_OORNAME			604
83 #define CFG_TOKEN_OORVALUE			605
84 #define CFG_TOKEN_NO_TRANSLATE		606
85 
86 /*------------------------------------------------------					*/
87 /*------------------------------------------------------                    */
88 /* Tokens for parsing xrm files												*/
89 /*------------------------------------------------------                    */
90 /*------------------------------------------------------                    */
91 #define XRM_README_START			501
92 #define XRM_README_END				502
93 #define XRM_SECTION_START			503
94 #define XRM_SECTION_END				504
95 #define XRM_PARAGRAPH_START			505
96 #define XRM_PARAGRAPH_END			506
97 #define XRM_TEXT_START				507
98 #define XRM_TEXT_END				508
99 #define XRM_LIST_START				509
100 #define XRM_LIST_END				510
101 #define XML_TEXTCHAR				600
102 
103 
104 #endif
105