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