1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef _CHART2_RES_TITLES_SRC
28#define _CHART2_RES_TITLES_SRC
29
30#include "res_Titles.hrc"
31#include "HelpIds.hrc"
32
33#define TITLES_HEIGHT 12
34#define indentLabel 3
35#define fixedLinesHeight RSC_CD_FIXEDLINE_HEIGHT
36
37#define TITLES( xpos, ypos, availableWidth, indentLabel, fixedLinesHeight ) \
38Edit ED_MAINTITLE \
39{ \
40    HelpID = HID_SCH_TITLE_MAIN; \
41	Border = TRUE ; \
42    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos  ) ; \
43	Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
44	TabStop = TRUE ; \
45}; \
46Edit ED_SUBTITLE \
47{ \
48    HelpID = HID_SCH_TITLE_SUB; \
49	Border = TRUE ; \
50    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+TITLES_HEIGHT+4 ) ; \
51	Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
52	TabStop = TRUE ; \
53}; \
54Edit ED_X_AXIS \
55{ \
56    HelpID = HID_SCH_TITLE_X; \
57	Border = TRUE ; \
58    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+2*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
59	Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
60	TabStop = TRUE ; \
61}; \
62Edit ED_Y_AXIS \
63{ \
64    HelpID = HID_SCH_TITLE_Y; \
65	Border = TRUE ; \
66    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+3*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
67	Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
68	TabStop = TRUE ; \
69}; \
70Edit ED_Z_AXIS \
71{ \
72    HelpID = HID_SCH_TITLE_Z; \
73	Border = TRUE ; \
74    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+4*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
75	Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
76	TabStop = TRUE ; \
77}; \
78Edit ED_SECONDARY_X_AXIS \
79{ \
80    HelpID = HID_SCH_TITLE_SECONDARY_X; \
81    Border = TRUE ; \
82    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+5*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
83    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
84    TabStop = TRUE ; \
85}; \
86Edit ED_SECONDARY_Y_AXIS \
87{ \
88    HelpID = HID_SCH_TITLE_SECONDARY_Y; \
89    Border = TRUE ; \
90    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+6*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
91    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
92    TabStop = TRUE ; \
93}; \
94FixedText FT_MAINTITLE \
95{ \
96	Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2  ) ; \
97    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
98	Text [ en-US ] = "~Title" ; \
99}; \
100FixedText FT_SUBTITLE \
101{ \
102	Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+TITLES_HEIGHT+4  ) ; \
103    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
104	Text [ en-US ] = "~Subtitle" ; \
105}; \
106FixedLine FL_AXES \
107{ \
108    Pos = MAP_APPFONT( xpos ,ypos+2+2*(TITLES_HEIGHT+4)+0  ); \
109    Size = MAP_APPFONT( availableWidth ,fixedLinesHeight ); \
110    Text[ en-US ] = "Axes"; \
111}; \
112FixedText FT_TITLE_X_AXIS \
113{ \
114	Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+2*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
115    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
116	Text [ en-US ] = "~X axis" ; \
117}; \
118FixedText FT_TITLE_Y_AXIS \
119{ \
120	Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+3*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
121    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
122	Text [ en-US ] = "~Y axis" ; \
123}; \
124FixedText FT_TITLE_Z_AXIS \
125{ \
126	Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+4*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
127    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
128	Text [ en-US ] = "~Z axis" ; \
129}; \
130FixedLine FL_SECONDARY_AXES \
131{ \
132    Pos = MAP_APPFONT( xpos ,ypos+2+5*(TITLES_HEIGHT+4)+3+(fixedLinesHeight+3)  ); \
133    Size = MAP_APPFONT( availableWidth ,fixedLinesHeight ); \
134    Text[ en-US ] = "Secondary Axes"; \
135}; \
136FixedText FT_TITLE_SECONDARY_X_AXIS \
137{ \
138    Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+5*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
139    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
140    Text [ en-US ] = "X ~axis" ; \
141}; \
142FixedText FT_TITLE_SECONDARY_Y_AXIS \
143{ \
144    Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+6*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
145    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
146    Text [ en-US ] = "Y ax~is" ; \
147};
148
149#endif
150