1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
32 /*------------------------------------------------------ */
33 /*------------------------------------------------------ */
34 /* Tokens for parsing src files */
35 /*------------------------------------------------------ */
36 /*------------------------------------------------------ */
37 #define IGNOREDTOKENS 400 /* #include | #pragma | //... | ... */
38 #define COMMEND 401 /*... */
39 #define DEFINEDRES 402 /* Text = { */
40 #define ANYTOKEN 404 /* XYZ */
41 #define UNKNOWNTOKEN 405 /* XYZ[ \t]$ */
42 #define UNKNOWNCONSTRUCTION 406 /* XYZ ( xxx, yyy, zzz ) */
43 #define UNKNOWNCHAR 407 /* . */
44 /*------------------------------------------------------ */
45 /* prev. tokens will not be executed */
46 #define FILTER_LEVEL 500
47 /* following tokens will be executed */
48 /*------------------------------------------------------ */
49 #define CONDITION 501 /* #if... | #endif ... | ... */
50 #define EMPTYLINE 502 /* */
51 #define RESSOURCE 503 /* Menu MID_TEST */
52 #define RESSOURCEEXPR 504 /* Menu ( MID_TEST + .. ) */
53 #define SMALRESSOURCE 505 /* PageItem { */
54 #define TEXTLINE 506 /* TEXT = "hhh" */
55 #define LONGTEXTLINE 507 /* TEXT = "hhh" TEST "HHH" ... */
56 #define TEXT 508 /* "Something like this" */
57 #define LEVELUP 509 /* { */
58 #define LEVELDOWN 510 /* }; */
59 #define APPFONTMAPPING 511 /* MAP_APPFONT(10,10) */
60 #define ASSIGNMENT 512 /* Somathing = Anything */
61 #define LISTASSIGNMENT 513 /* ...List [xyz]=... */
62 #define LISTTEXT 514 /* < "Text" ... > */
63 #define RSCDEFINE 515 /* #define MY_TEXT */
64 #define RSCDEFINELEND 516 /* */
65 #define NEWTEXTINRES 517 /* ### Achtung : Ne... */
66 #define UIENTRIES 518 /* UIEntries = { */
67 #define PRAGMA 519 /* #pragma ... */
68 #define _LISTTEXT 521 /* { "Text" ... } */
69 #define TEXTREFID 522 /* Text = 12345 */
70 #define LISTRESID 523 /* < 12345; ... > */
71 #define _LISTRESID 523 /* { 12345; ... } */
72 #define NORMDEFINE 524 /* #define ... */
73 /*------------------------------------------------------ */
74 /*------------------------------------------------------ */
75 /* Tokens for parsing cfg files */
76 /*------------------------------------------------------ */
77 /*------------------------------------------------------ */
79 #define CFG_TEXT_START 505
80 #define CFG_TEXT_END 506
81 #define CFG_TEXTCHAR 507
82 #define CFG_CLOSETAG 508
83 #define CFG_UNKNOWNTAG 509
84 #define CFG_TOKEN_PACKAGE 600
85 #define CFG_TOKEN_COMPONENT 601
86 #define CFG_TOKEN_CONFIGNAME 602
87 #define CFG_TOKEN_TEMPLATE 603
88 #define CFG_TOKEN_OORNAME 604
89 #define CFG_TOKEN_OORVALUE 605
90 #define CFG_TOKEN_NO_TRANSLATE 606
92 /*------------------------------------------------------ */
93 /*------------------------------------------------------ */
94 /* Tokens for parsing xrm files */
95 /*------------------------------------------------------ */
96 /*------------------------------------------------------ */
97 #define XRM_README_START 501
98 #define XRM_README_END 502
99 #define XRM_SECTION_START 503
100 #define XRM_SECTION_END 504
101 #define XRM_PARAGRAPH_START 505
102 #define XRM_PARAGRAPH_END 506
103 #define XRM_TEXT_START 507
104 #define XRM_TEXT_END 508
105 #define XRM_LIST_START 509
106 #define XRM_LIST_END 510
107 #define XML_TEXTCHAR 600
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */