1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  *   Licensed to the Apache Software Foundation (ASF) under one or more
12  *   contributor license agreements. See the NOTICE file distributed
13  *   with this work for additional information regarding copyright
14  *   ownership. The ASF licenses this file to you under the Apache
15  *   License, Version 2.0 (the "License"); you may not use this file
16  *   except in compliance with the License. You may obtain a copy of
17  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_L10NTOOLS_INC_TOKENS_H
21 #define INCLUDED_L10NTOOLS_INC_TOKENS_H
22 
23 /*------------------------------------------------------                    */
24 /*------------------------------------------------------                    */
25 /* Tokens for parsing src files                                             */
26 /*------------------------------------------------------                    */
27 /*------------------------------------------------------                    */
28 #define IGNOREDTOKENS       400         /* #include | #pragma | //... | ... */
29 #define COMMENT             401         /*...                               */
30 #define DEFINEDRES          402         /* Text = {                         */
31 #define ANYTOKEN            404         /* XYZ                              */
32 #define UNKNOWNCHAR         407         /* .                                */
33 /*------------------------------------------------------                    */
34 /* prev. tokens will not be executed                                        */
35 #define FILTER_LEVEL        500
36 /* following tokens will be executed                                        */
37 /*------------------------------------------------------                    */
38 #define CONDITION           501         /* #if... | #endif ... | ...        */
39 #define EMPTYLINE           502         /*                                  */
40 #define RESOURCE            503         /* Menu MID_TEST                    */
41 #define RESOURCEEXPR        504         /* Menu ( MID_TEST + .. )           */
42 #define SMALRESOURCE        505         /* PageItem {                       */
43 #define TEXTLINE            506         /* TEXT = "hhh"                     */
44 #define LONGTEXTLINE        507         /* TEXT = "hhh" TEST "HHH" ...      */
45 #define TEXT                508         /* "Something like this"            */
46 #define LEVELUP             509         /* {                                */
47 #define LEVELDOWN           510         /* };                               */
48 #define APPFONTMAPPING      511         /* MAP_APPFONT(10,10)               */
49 #define ASSIGNMENT          512         /* Something = Anything             */
50 #define LISTASSIGNMENT      513         /* ...List [xyz]=...                */
51 #define LISTTEXT            514         /* < "Text" ... >                   */
52 #define RSCDEFINE           515         /* #define MY_TEXT                  */
53 #define RSCDEFINELEND       516         /*                                  */
54 #define PRAGMA              519         /* #pragma ...                      */
55 #define LISTTEXT_           521         /* { "Text" ... }                   */
56 #define NORMDEFINE          524         /* #define ...                      */
57 /*------------------------------------------------------                    */
58 /*------------------------------------------------------                    */
59 /* Tokens for parsing cfg files                                             */
60 /*------------------------------------------------------                    */
61 /*------------------------------------------------------                    */
62 #define CFG_TAG                     501
63 #define CFG_TEXT_START              505
64 #define CFG_TEXT_END                506
65 #define CFG_TEXTCHAR                507
66 #define CFG_CLOSETAG                508
67 #define CFG_UNKNOWNTAG              509
68 #define CFG_TOKEN_PACKAGE           600
69 #define CFG_TOKEN_COMPONENT         601
70 #define CFG_TOKEN_CONFIGNAME        602
71 #define CFG_TOKEN_TEMPLATE          603
72 #define CFG_TOKEN_OORNAME           604
73 #define CFG_TOKEN_OORVALUE          605
74 #define CFG_TOKEN_NO_TRANSLATE      606
75 
76 /*------------------------------------------------------                    */
77 /*------------------------------------------------------                    */
78 /* Tokens for parsing xrm files                                             */
79 /*------------------------------------------------------                    */
80 /*------------------------------------------------------                    */
81 #define XRM_TEXT_START              507
82 #define XRM_TEXT_END                508
83 #define XML_TEXTCHAR                600
84 
85 /*------------------------------------------------------                    */
86 /*------------------------------------------------------                    */
87 /* Tokens for parsing description.xml files                                 */
88 /*------------------------------------------------------                    */
89 /*------------------------------------------------------                    */
90 #define DESC_DISPLAY_NAME_START          700
91 #define DESC_DISPLAY_NAME_END            701
92 #define DESC_TEXT_START                  702
93 #define DESC_TEXT_END                    703
94 #define DESC_EXTENSION_DESCRIPTION_START 704
95 #define DESC_EXTENSION_DESCRIPTION_END   705
96 #define DESC_EXTENSION_DESCRIPTION_SRC   706
97 
98 #endif
99 
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
101