source: proto/gml2svg/lib/C/gml2svg/constants.cpp @ 2475

Last change on this file since 2475 was 1705, checked in by ksherdy, 8 years ago

Updated file permissions.

File size: 1.7 KB
Line 
1#include "constants.h"
2
3const int FEATURE_ID_MAX_LENGTH_EST = 80;
4const char * SCALE_FORMAT = "%5.17f";
5
6const char DEFAULT_DECIMAL = '.';
7const char DEFAULT_CS = ',';
8const char DEFAULT_TS = ' ';
9const char * CS_LOCAL_NAME = "cs";
10const char * DECIMAL_LOCAL_NAME = "decimal";
11const char * TS_LOCAL_NAME = "ts";   
12 
13// Scalable parameters
14const char * STROKE_WIDTH = "stroke-width";
15 
16// General
17const char * DQUOTE = "\"";
18const char * SPACE = " ";
19const char * RANGLE = ">";
20const char * EQUALS = "=";
21const char * LROUND = "(";
22const char * COMMA = ",";
23const char * RROUND = ")";
24const char * NEG = "-";
25const char * FSLASH = "/";
26
27// XML
28const char * XML_DECLARATION = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
29const char * XML_NAMESPACE_ATTR = "xmlns";
30
31// SVG
32const char * SVG_START_ELEMENT = "<svg";
33
34const char * SVG_NAMESPACE_VALUE = "http://www.w3.org/2000/svg";
35const char * SVG_WIDTH_ATTR = "width";
36const char * SVG_HEIGHT_ATTR = "height";
37const char * SVG_END_ELEMENT = "</svg>";
38 
39// g
40const char * G_START_ELEMENT = "<g";
41const char * G_TRANSFORM_ATTR = "transform";
42const char * SCALE = "scale";
43const char * TRANSLATE = "translate";
44const char * G_END_ELEMENT = "</g>";
45
46// PATH
47const char * PATH_START_ELEMENT = "<path";
48const char * PATH_ID_ATTR = "id";
49const char * PATH_STYLE_ATTR = "style";
50const char * PATH_D_ATTR = "d";
51const char * PATH_ONMOUSEOVER_ATTR = "onmouseover";
52const char * PATH_ONMOUSEOVER_VALUE = "showTooltip(evt)";
53const char * PATH_ONMOUSEOUT_ATTR = "onmouseout";
54const char * PATH_ONMOUSEOUT_VALUE = "hideTooltip(evt)";
55//const char * PATH_END_ELEMENT = "</path>";
56
57// FS TOOLTIP
58//const char * FS_TOOLTIP_START_ELEMENT = "<fs:tooltip xmlns:fs=\"http://www.galdosinc.com/fs\">";
59//const char * FS_TOOLTIP_END_ELEMENT = "</fs:tooltip>";
Note: See TracBrowser for help on using the repository browser.