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#ifndef _CHART2_RES_TITLES_SRC
24#define _CHART2_RES_TITLES_SRC
25
26#include "res_Titles.hrc"
27#include "HelpIds.hrc"
28
29#define TITLES_HEIGHT 12
30#define indentLabel 3
31#define fixedLinesHeight RSC_CD_FIXEDLINE_HEIGHT
32
33#define TITLES( xpos, ypos, availableWidth, indentLabel, fixedLinesHeight ) \
34Edit ED_MAINTITLE \
35{ \
36    HelpID = HID_SCH_TITLE_MAIN; \
37	Border = TRUE ; \
38    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos  ) ; \
39	Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
40	TabStop = TRUE ; \
41}; \
42Edit ED_SUBTITLE \
43{ \
44    HelpID = HID_SCH_TITLE_SUB; \
45	Border = TRUE ; \
46    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+TITLES_HEIGHT+4 ) ; \
47	Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
48	TabStop = TRUE ; \
49}; \
50Edit ED_X_AXIS \
51{ \
52    HelpID = HID_SCH_TITLE_X; \
53	Border = TRUE ; \
54    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+2*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
55	Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
56	TabStop = TRUE ; \
57}; \
58Edit ED_Y_AXIS \
59{ \
60    HelpID = HID_SCH_TITLE_Y; \
61	Border = TRUE ; \
62    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+3*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
63	Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
64	TabStop = TRUE ; \
65}; \
66Edit ED_Z_AXIS \
67{ \
68    HelpID = HID_SCH_TITLE_Z; \
69	Border = TRUE ; \
70    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+4*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
71	Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
72	TabStop = TRUE ; \
73}; \
74Edit ED_SECONDARY_X_AXIS \
75{ \
76    HelpID = HID_SCH_TITLE_SECONDARY_X; \
77    Border = TRUE ; \
78    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+5*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
79    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
80    TabStop = TRUE ; \
81}; \
82Edit ED_SECONDARY_Y_AXIS \
83{ \
84    HelpID = HID_SCH_TITLE_SECONDARY_Y; \
85    Border = TRUE ; \
86    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+6*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
87    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
88    TabStop = TRUE ; \
89}; \
90FixedText FT_MAINTITLE \
91{ \
92	Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2  ) ; \
93    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
94	Text [ en-US ] = "~Title" ; \
95}; \
96FixedText FT_SUBTITLE \
97{ \
98	Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+TITLES_HEIGHT+4  ) ; \
99    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
100	Text [ en-US ] = "~Subtitle" ; \
101}; \
102FixedLine FL_AXES \
103{ \
104    Pos = MAP_APPFONT( xpos ,ypos+2+2*(TITLES_HEIGHT+4)+0  ); \
105    Size = MAP_APPFONT( availableWidth ,fixedLinesHeight ); \
106    Text[ en-US ] = "Axes"; \
107}; \
108FixedText FT_TITLE_X_AXIS \
109{ \
110	Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+2*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
111    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
112	Text [ en-US ] = "~X axis" ; \
113}; \
114FixedText FT_TITLE_Y_AXIS \
115{ \
116	Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+3*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
117    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
118	Text [ en-US ] = "~Y axis" ; \
119}; \
120FixedText FT_TITLE_Z_AXIS \
121{ \
122	Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+4*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
123    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
124	Text [ en-US ] = "~Z axis" ; \
125}; \
126FixedLine FL_SECONDARY_AXES \
127{ \
128    Pos = MAP_APPFONT( xpos ,ypos+2+5*(TITLES_HEIGHT+4)+3+(fixedLinesHeight+3)  ); \
129    Size = MAP_APPFONT( availableWidth ,fixedLinesHeight ); \
130    Text[ en-US ] = "Secondary Axes"; \
131}; \
132FixedText FT_TITLE_SECONDARY_X_AXIS \
133{ \
134    Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+5*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
135    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
136    Text [ en-US ] = "X ~axis" ; \
137}; \
138FixedText FT_TITLE_SECONDARY_Y_AXIS \
139{ \
140    Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+6*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
141    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
142    Text [ en-US ] = "Y ax~is" ; \
143};
144
145#endif
146