summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs/res_Titlesx_tmpl.hrc
blob: b03e6516f7ffa8759849bef8f0481128d94f1fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */
#ifndef _CHART2_RES_TITLES_SRC
#define _CHART2_RES_TITLES_SRC

#include "res_Titles.hrc"
#include "HelpIds.hrc"

#define TITLES_HEIGHT 12
#define indentLabel 3
#define fixedLinesHeight RSC_CD_FIXEDLINE_HEIGHT

#define TITLES( xpos, ypos, availableWidth, indentLabel, fixedLinesHeight ) \
Edit ED_MAINTITLE \
{ \
    HelpID = HID_SCH_TITLE_MAIN; \
    Border = TRUE ; \
    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    TabStop = TRUE ; \
}; \
Edit ED_SUBTITLE \
{ \
    HelpID = HID_SCH_TITLE_SUB; \
    Border = TRUE ; \
    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+TITLES_HEIGHT+4 ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    TabStop = TRUE ; \
}; \
Edit ED_X_AXIS \
{ \
    HelpID = HID_SCH_TITLE_X; \
    Border = TRUE ; \
    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+2*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    TabStop = TRUE ; \
}; \
Edit ED_Y_AXIS \
{ \
    HelpID = HID_SCH_TITLE_Y; \
    Border = TRUE ; \
    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+3*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    TabStop = TRUE ; \
}; \
Edit ED_Z_AXIS \
{ \
    HelpID = HID_SCH_TITLE_Z; \
    Border = TRUE ; \
    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+4*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    TabStop = TRUE ; \
}; \
Edit ED_SECONDARY_X_AXIS \
{ \
    HelpID = HID_SCH_TITLE_SECONDARY_X; \
    Border = TRUE ; \
    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+5*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    TabStop = TRUE ; \
}; \
Edit ED_SECONDARY_Y_AXIS \
{ \
    HelpID = HID_SCH_TITLE_SECONDARY_Y; \
    Border = TRUE ; \
    Pos = MAP_APPFONT ( xpos+indentLabel+(availableWidth-2*indentLabel-4)/2+4 , ypos+6*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    TabStop = TRUE ; \
}; \
FixedText FT_MAINTITLE \
{ \
    Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    Text [ en-US ] = "~Title" ; \
}; \
FixedText FT_SUBTITLE \
{ \
    Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+TITLES_HEIGHT+4  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    Text [ en-US ] = "~Subtitle" ; \
}; \
FixedLine FL_AXES \
{ \
    Pos = MAP_APPFONT( xpos ,ypos+2+2*(TITLES_HEIGHT+4)+0  ); \
    Size = MAP_APPFONT( availableWidth ,fixedLinesHeight ); \
    Text[ en-US ] = "Axes"; \
}; \
FixedText FT_TITLE_X_AXIS \
{ \
    Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+2*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    Text [ en-US ] = "~X axis" ; \
}; \
FixedText FT_TITLE_Y_AXIS \
{ \
    Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+3*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    Text [ en-US ] = "~Y axis" ; \
}; \
FixedText FT_TITLE_Z_AXIS \
{ \
    Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+4*(TITLES_HEIGHT+4)+4+(fixedLinesHeight+3)  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    Text [ en-US ] = "~Z axis" ; \
}; \
FixedLine FL_SECONDARY_AXES \
{ \
    Pos = MAP_APPFONT( xpos ,ypos+2+5*(TITLES_HEIGHT+4)+3+(fixedLinesHeight+3)  ); \
    Size = MAP_APPFONT( availableWidth ,fixedLinesHeight ); \
    Text[ en-US ] = "Secondary Axes"; \
}; \
FixedText FT_TITLE_SECONDARY_X_AXIS \
{ \
    Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+5*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    Text [ en-US ] = "X ~axis" ; \
}; \
FixedText FT_TITLE_SECONDARY_Y_AXIS \
{ \
    Pos = MAP_APPFONT ( xpos+indentLabel , ypos+2+6*(TITLES_HEIGHT+4)+8+2*(fixedLinesHeight+3)  ) ; \
    Size = MAP_APPFONT ( (availableWidth-2*indentLabel-4)/2 , TITLES_HEIGHT ) ; \
    Text [ en-US ] = "Y ax~is" ; \
};

#endif