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 INCLUDED_SVTOOLS_NFSYMBOL_HXX 25 #define INCLUDED_SVTOOLS_NFSYMBOL_HXX 26 27 /* ATTENTION! If new types arrive that had its content previously handled as 28 * SYMBOLTYPE_STRING, they have to be added at several places in zforscan.cxx 29 * and/or zformat.cxx, and in xmloff/source/style/xmlnumfe.cxx. Mostly these 30 * are places where already NF_SYMBOLTYPE_STRING together with 31 * NF_SYMBOLTYPE_CURRENCY or NF_SYMBOLTYPE_DATESEP are used in the same case of 32 * a switch respectively an if-condition. 33 */ 34 35 namespace svt { 36 37 /// Number formatter's symbol types of a token, if not key words, which are >0 38 enum NfSymbolType 39 { 40 NF_SYMBOLTYPE_STRING = -1, // literal string in output 41 NF_SYMBOLTYPE_DEL = -2, // special character 42 NF_SYMBOLTYPE_BLANK = -3, // blank for '_' 43 NF_SYMBOLTYPE_STAR = -4, // *-character 44 NF_SYMBOLTYPE_DIGIT = -5, // digit place holder 45 NF_SYMBOLTYPE_DECSEP = -6, // decimal separator 46 NF_SYMBOLTYPE_THSEP = -7, // group AKA thousand separator 47 NF_SYMBOLTYPE_EXP = -8, // exponent E 48 NF_SYMBOLTYPE_FRAC = -9, // fraction / 49 NF_SYMBOLTYPE_EMPTY = -10, // deleted symbols 50 NF_SYMBOLTYPE_FRACBLANK = -11, // delimiter between integer and fraction 51 NF_SYMBOLTYPE_COMMENT = -12, // comment is following 52 NF_SYMBOLTYPE_CURRENCY = -13, // currency symbol 53 NF_SYMBOLTYPE_CURRDEL = -14, // currency symbol delimiter [$] 54 NF_SYMBOLTYPE_CURREXT = -15, // currency symbol extension -xxx 55 NF_SYMBOLTYPE_CALENDAR = -16, // calendar ID 56 NF_SYMBOLTYPE_CALDEL = -17, // calendar delimiter [~] 57 NF_SYMBOLTYPE_DATESEP = -18, // date separator 58 NF_SYMBOLTYPE_TIMESEP = -19, // time separator 59 NF_SYMBOLTYPE_TIME100SECSEP = -20, // time 100th seconds separator 60 NF_SYMBOLTYPE_PERCENT = -21 // percent % 61 }; 62 63 } // namespace svt 64 65 #endif // INCLUDED_SVTOOLS_NFSYMBOL_HXX 66