Bump version to 4.1-6
[LibreOffice.git] / l10ntools / inc / tokens.h
blob694bead2dd10816533d1e8dc2d71793c9fe17202
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef _TOKENS_H
21 #define _TOKENS_H
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 UNKNOWNTOKEN 405 /* XYZ[ \t]$ */
33 #define UNKNOWNCONSTRUCTION 406 /* XYZ ( xxx, yyy, zzz ) */
34 #define UNKNOWNCHAR 407 /* . */
35 /*------------------------------------------------------ */
36 /* prev. tokens will not be executed */
37 #define FILTER_LEVEL 500
38 /* following tokens will be executed */
39 /*------------------------------------------------------ */
40 #define CONDITION 501 /* #if... | #endif ... | ... */
41 #define EMPTYLINE 502 /* */
42 #define RESOURCE 503 /* Menu MID_TEST */
43 #define RESOURCEEXPR 504 /* Menu ( MID_TEST + .. ) */
44 #define SMALRESOURCE 505 /* PageItem { */
45 #define TEXTLINE 506 /* TEXT = "hhh" */
46 #define LONGTEXTLINE 507 /* TEXT = "hhh" TEST "HHH" ... */
47 #define TEXT 508 /* "Something like this" */
48 #define LEVELUP 509 /* { */
49 #define LEVELDOWN 510 /* }; */
50 #define APPFONTMAPPING 511 /* MAP_APPFONT(10,10) */
51 #define ASSIGNMENT 512 /* Something = Anything */
52 #define LISTASSIGNMENT 513 /* ...List [xyz]=... */
53 #define LISTTEXT 514 /* < "Text" ... > */
54 #define RSCDEFINE 515 /* #define MY_TEXT */
55 #define RSCDEFINELEND 516 /* */
56 #define NEWTEXTINRES 517 /* ### Achtung : Ne... */
57 #define UIENTRIES 518 /* UIEntries = { */
58 #define PRAGMA 519 /* #pragma ... */
59 #define _LISTTEXT 521 /* { "Text" ... } */
60 #define TEXTREFID 522 /* Text = 12345 */
61 #define LISTRESID 523 /* < 12345; ... > */
62 #define _LISTRESID 523 /* { 12345; ... } */
63 #define NORMDEFINE 524 /* #define ... */
64 /*------------------------------------------------------ */
65 /*------------------------------------------------------ */
66 /* Tokens for parsing cfg files */
67 /*------------------------------------------------------ */
68 /*------------------------------------------------------ */
69 #define CFG_TAG 501
70 #define CFG_TEXT_START 505
71 #define CFG_TEXT_END 506
72 #define CFG_TEXTCHAR 507
73 #define CFG_CLOSETAG 508
74 #define CFG_UNKNOWNTAG 509
75 #define CFG_TOKEN_PACKAGE 600
76 #define CFG_TOKEN_COMPONENT 601
77 #define CFG_TOKEN_CONFIGNAME 602
78 #define CFG_TOKEN_TEMPLATE 603
79 #define CFG_TOKEN_OORNAME 604
80 #define CFG_TOKEN_OORVALUE 605
81 #define CFG_TOKEN_NO_TRANSLATE 606
83 /*------------------------------------------------------ */
84 /*------------------------------------------------------ */
85 /* Tokens for parsing xrm files */
86 /*------------------------------------------------------ */
87 /*------------------------------------------------------ */
88 #define XRM_TEXT_START 507
89 #define XRM_TEXT_END 508
90 #define XML_TEXTCHAR 600
92 /*------------------------------------------------------ */
93 /*------------------------------------------------------ */
94 /* Tokens for parsing description.xml files */
95 /*------------------------------------------------------ */
96 /*------------------------------------------------------ */
97 #define DESC_DISPLAY_NAME_START 700
98 #define DESC_DISPLAY_NAME_END 701
99 #define DESC_TEXT_START 702
100 #define DESC_TEXT_END 703
101 #define DESC_EXTENSION_DESCRIPTION_START 704
102 #define DESC_EXTENSION_DESCRIPTION_END 705
103 #define DESC_EXTENSION_DESCRIPTION_SRC 706
105 #endif
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */