1*2f531595SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*2f531595SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*2f531595SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*2f531595SAndrew Rist * distributed with this work for additional information
6*2f531595SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*2f531595SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*2f531595SAndrew Rist * "License"); you may not use this file except in compliance
9*2f531595SAndrew Rist * with the License.  You may obtain a copy of the License at
10*2f531595SAndrew Rist *
11*2f531595SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*2f531595SAndrew Rist *
13*2f531595SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*2f531595SAndrew Rist * software distributed under the License is distributed on an
15*2f531595SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*2f531595SAndrew Rist * KIND, either express or implied.  See the License for the
17*2f531595SAndrew Rist * specific language governing permissions and limitations
18*2f531595SAndrew Rist * under the License.
19*2f531595SAndrew Rist *
20*2f531595SAndrew Rist *************************************************************/
21*2f531595SAndrew Rist
22*2f531595SAndrew Rist
23cdf0e10cSrcweir#include "HelpIds.hrc"
24cdf0e10cSrcweir#include "TabPages.hrc"
25cdf0e10cSrcweir
26cdf0e10cSrcweir#define Y0 3
27cdf0e10cSrcweir#define Y1 (Y0+13)
28cdf0e10cSrcweir#define Y2 (Y1)
29cdf0e10cSrcweir#define Y3 (Y2+16)
30cdf0e10cSrcweir#define Y4 (Y3+13)
31cdf0e10cSrcweir#define Y5 (Y4)
32cdf0e10cSrcweir#define Y6 (Y5+16)
33cdf0e10cSrcweir#define Y7 (Y6+13)
34cdf0e10cSrcweir#define Y8 (Y7+16)
35cdf0e10cSrcweir#define Y9 (Y8+16)
36cdf0e10cSrcweir#define Y10 (Y9+16)
37cdf0e10cSrcweir#define Y11 (Y10+13)
38cdf0e10cSrcweir#define Y12 (Y11+16)
39cdf0e10cSrcweir
40cdf0e10cSrcweir#define EDITWIDTH 50
41cdf0e10cSrcweir#define LABELWIDTH 88
42cdf0e10cSrcweir#define MAXLABELWIDTH 138
43cdf0e10cSrcweir
44cdf0e10cSrcweir#define X1 6
45cdf0e10cSrcweir#define X2 11
46cdf0e10cSrcweir#define X3 (X2+LABELWIDTH+4)
47cdf0e10cSrcweir#define X4 (X2+MAXLABELWIDTH+4)
48cdf0e10cSrcweir#define X5 (X4+EDITWIDTH+5)
49cdf0e10cSrcweir
50cdf0e10cSrcweir#define XTICK_1 X2
51cdf0e10cSrcweir#define XTICK_2 (XTICK_1+60)
52cdf0e10cSrcweir#define XTICK_3 (XTICK_2+60)
53cdf0e10cSrcweir#define XTICK_4 (XTICK_3+60)
54cdf0e10cSrcweir#define XTICK_5 (XTICK_4+6)
55cdf0e10cSrcweir#define TICKWIDTH 59
56cdf0e10cSrcweir
57cdf0e10cSrcweirTabPage TP_AXIS_POSITIONS
58cdf0e10cSrcweir{
59cdf0e10cSrcweir    HelpID = "chart2:TabPage:TP_AXIS_POSITIONS";
60cdf0e10cSrcweir    Hide = TRUE ;
61cdf0e10cSrcweir    SVLook = TRUE ;
62cdf0e10cSrcweir    Size = MAP_APPFONT ( 260 , 185 ) ;
63cdf0e10cSrcweir
64cdf0e10cSrcweir    FixedLine FL_AXIS_LINE
65cdf0e10cSrcweir    {
66cdf0e10cSrcweir        Pos = MAP_APPFONT ( X1 , Y0  ) ;
67cdf0e10cSrcweir        Size = MAP_APPFONT ( 248 , 8 ) ;
68cdf0e10cSrcweir        Text [ en-US ] = "Axis line" ;
69cdf0e10cSrcweir    };
70cdf0e10cSrcweir
71cdf0e10cSrcweir    FixedText FT_CROSSES_OTHER_AXIS_AT
72cdf0e10cSrcweir    {
73cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y1  ) ;
74cdf0e10cSrcweir        Size = MAP_APPFONT ( MAXLABELWIDTH , 8 ) ;
75cdf0e10cSrcweir        Text [ en-US ] = "~Cross other axis at" ;
76cdf0e10cSrcweir    };
77cdf0e10cSrcweir    ListBox LB_CROSSES_OTHER_AXIS_AT
78cdf0e10cSrcweir    {
79cdf0e10cSrcweir        HelpID = "chart2:ListBox:TP_AXIS_POSITIONS:LB_CROSSES_OTHER_AXIS_AT";
80cdf0e10cSrcweir        Border = TRUE ;
81cdf0e10cSrcweir        AutoHScroll = TRUE ;
82cdf0e10cSrcweir        Pos = MAP_APPFONT ( X4 , Y1-2 ) ;
83cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
84cdf0e10cSrcweir        TabStop = TRUE ;
85cdf0e10cSrcweir        Group = TRUE ;
86cdf0e10cSrcweir        DropDown=TRUE;
87cdf0e10cSrcweir        DDExtraWidth = TRUE ;
88cdf0e10cSrcweir
89cdf0e10cSrcweir        StringList [ en-US ] =
90cdf0e10cSrcweir        {
91cdf0e10cSrcweir            "Start" ;
92cdf0e10cSrcweir            "End" ;
93cdf0e10cSrcweir            "Value" ;
94cdf0e10cSrcweir            "Category" ;
95cdf0e10cSrcweir        };
96cdf0e10cSrcweir    };
97cdf0e10cSrcweir    SpinField EDT_CROSSES_OTHER_AXIS_AT
98cdf0e10cSrcweir    {
99cdf0e10cSrcweir        HelpID = "chart2:SpinField:TP_AXIS_POSITIONS:EDT_CROSSES_OTHER_AXIS_AT";
100cdf0e10cSrcweir        Border = TRUE ;
101cdf0e10cSrcweir        SVLook = TRUE ;
102cdf0e10cSrcweir        Pos = MAP_APPFONT ( X5 , Y1-2  ) ;
103cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
104cdf0e10cSrcweir        TabStop = TRUE ;
105cdf0e10cSrcweir    };
106cdf0e10cSrcweir    ComboBox EDT_CROSSES_OTHER_AXIS_AT_CATEGORY
107cdf0e10cSrcweir    {
108cdf0e10cSrcweir        HelpID = "chart2:ComboBox:TP_AXIS_POSITIONS:EDT_CROSSES_OTHER_AXIS_AT_CATEGORY";
109cdf0e10cSrcweir        Border = TRUE ;
110cdf0e10cSrcweir        SVLook = TRUE ;
111cdf0e10cSrcweir        Pos = MAP_APPFONT ( X5 , Y1-2  ) ;
112cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
113cdf0e10cSrcweir        DropDown = TRUE ;
114cdf0e10cSrcweir        TabStop = TRUE ;
115cdf0e10cSrcweir    };
116cdf0e10cSrcweir
117cdf0e10cSrcweir    CheckBox CB_AXIS_BETWEEN_CATEGORIES
118cdf0e10cSrcweir    {
119cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_AXIS_POSITIONS:CB_AXIS_BETWEEN_CATEGORIES";
120cdf0e10cSrcweir        Hide = TRUE;
121cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y2  ) ;
122cdf0e10cSrcweir        Size = MAP_APPFONT ( 150 , 10 ) ;
123cdf0e10cSrcweir        TabStop = TRUE ;
124cdf0e10cSrcweir        Text [ en-US ] = "Axis ~between categories" ;
125cdf0e10cSrcweir    };
126cdf0e10cSrcweir
127cdf0e10cSrcweir    FixedLine FL_LABELS
128cdf0e10cSrcweir    {
129cdf0e10cSrcweir        Pos = MAP_APPFONT ( X1 , Y3  ) ;
130cdf0e10cSrcweir        Size = MAP_APPFONT ( 248 , 8 ) ;
131cdf0e10cSrcweir        Text [ en-US ] = "Labels" ;
132cdf0e10cSrcweir    };
133cdf0e10cSrcweir    FixedText FT_PLACE_LABELS
134cdf0e10cSrcweir    {
135cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y4  ) ;
136cdf0e10cSrcweir        Size = MAP_APPFONT ( MAXLABELWIDTH , 8 ) ;
137cdf0e10cSrcweir        Text [ en-US ] = "~Place labels" ;
138cdf0e10cSrcweir    };
139cdf0e10cSrcweir    ListBox LB_PLACE_LABELS
140cdf0e10cSrcweir    {
141cdf0e10cSrcweir        HelpID = "chart2:ListBox:TP_AXIS_POSITIONS:LB_PLACE_LABELS";
142cdf0e10cSrcweir        Border = TRUE ;
143cdf0e10cSrcweir        AutoHScroll = TRUE ;
144cdf0e10cSrcweir        Pos = MAP_APPFONT ( X4 , Y4-2 ) ;
145cdf0e10cSrcweir        Size = MAP_APPFONT ( 89 , 12 ) ;
146cdf0e10cSrcweir        TabStop = TRUE ;
147cdf0e10cSrcweir        Group = TRUE ;
148cdf0e10cSrcweir        DropDown=TRUE;
149cdf0e10cSrcweir        DDExtraWidth = TRUE ;
150cdf0e10cSrcweir
151cdf0e10cSrcweir        StringList [ en-US ] =
152cdf0e10cSrcweir        {
153cdf0e10cSrcweir            "Near axis" ;
154cdf0e10cSrcweir            "Near axis (other side)" ;
155cdf0e10cSrcweir            "Outside start" ;
156cdf0e10cSrcweir            "Outside end" ;
157cdf0e10cSrcweir        };
158cdf0e10cSrcweir    };
159cdf0e10cSrcweir
160cdf0e10cSrcweir    FixedText FT_AXIS_LABEL_DISTANCE
161cdf0e10cSrcweir    {
162cdf0e10cSrcweir        Hide = TRUE;
163cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y5  ) ;
164cdf0e10cSrcweir        Size = MAP_APPFONT ( MAXLABELWIDTH , 8 ) ;
165cdf0e10cSrcweir        Text [ en-US ] = "~Distance" ;
166cdf0e10cSrcweir    };
167cdf0e10cSrcweir    SpinField EDT_AXIS_LABEL_DISTANCE
168cdf0e10cSrcweir    {
169cdf0e10cSrcweir        HelpID = "chart2:SpinField:TP_AXIS_POSITIONS:EDT_AXIS_LABEL_DISTANCE";
170cdf0e10cSrcweir        Hide = TRUE;
171cdf0e10cSrcweir        Border = TRUE ;
172cdf0e10cSrcweir        SVLook = TRUE ;
173cdf0e10cSrcweir        Pos = MAP_APPFONT ( X4 , Y5-2 ) ;
174cdf0e10cSrcweir        Size = MAP_APPFONT ( 89 , 12 ) ;
175cdf0e10cSrcweir        TabStop = TRUE ;
176cdf0e10cSrcweir    };
177cdf0e10cSrcweir
178cdf0e10cSrcweir    FixedLine FL_TICKS
179cdf0e10cSrcweir    {
180cdf0e10cSrcweir        Pos = MAP_APPFONT ( X1 , Y6  ) ;
181cdf0e10cSrcweir        Size = MAP_APPFONT ( 248 , 8 ) ;
182cdf0e10cSrcweir        Text[ en-US ] = "Interval marks";
183cdf0e10cSrcweir    };
184cdf0e10cSrcweir    FixedText FT_MAJOR
185cdf0e10cSrcweir    {
186cdf0e10cSrcweir        Pos = MAP_APPFONT ( XTICK_1 , Y7  ) ;
187cdf0e10cSrcweir        Size = MAP_APPFONT ( TICKWIDTH , 8 ) ;
188cdf0e10cSrcweir        Text [ en-US ] = "Major:" ;
189cdf0e10cSrcweir    };
190cdf0e10cSrcweir    CheckBox CB_TICKS_INNER
191cdf0e10cSrcweir    {
192cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_AXIS_POSITIONS:CB_TICKS_INNER";
193cdf0e10cSrcweir        Pos = MAP_APPFONT ( XTICK_2 , Y7  ) ;
194cdf0e10cSrcweir        Size = MAP_APPFONT ( TICKWIDTH , 10 ) ;
195cdf0e10cSrcweir        Text [ en-US ] = "~Inner";
196cdf0e10cSrcweir    };
197cdf0e10cSrcweir    CheckBox CB_TICKS_OUTER
198cdf0e10cSrcweir    {
199cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_AXIS_POSITIONS:CB_TICKS_OUTER";
200cdf0e10cSrcweir        Pos = MAP_APPFONT ( XTICK_3 , Y7  ) ;
201cdf0e10cSrcweir        Size = MAP_APPFONT ( TICKWIDTH , 10 ) ;
202cdf0e10cSrcweir        Text [ en-US ] = "~Outer";
203cdf0e10cSrcweir    };
204cdf0e10cSrcweir
205cdf0e10cSrcweir    FixedText FT_MINOR
206cdf0e10cSrcweir    {
207cdf0e10cSrcweir        Pos = MAP_APPFONT ( XTICK_1 , Y8  ) ;
208cdf0e10cSrcweir        Size = MAP_APPFONT ( TICKWIDTH , 8 ) ;
209cdf0e10cSrcweir        Text [ en-US ] = "Minor:" ;
210cdf0e10cSrcweir    };
211cdf0e10cSrcweir    CheckBox CB_MINOR_INNER
212cdf0e10cSrcweir    {
213cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_AXIS_POSITIONS:CB_MINOR_INNER";
214cdf0e10cSrcweir        Pos = MAP_APPFONT ( XTICK_2 , Y8  );
215cdf0e10cSrcweir        Size = MAP_APPFONT ( TICKWIDTH , 10 ) ;
216cdf0e10cSrcweir        Text [ en-US ] = "I~nner";
217cdf0e10cSrcweir    };
218cdf0e10cSrcweir    CheckBox CB_MINOR_OUTER
219cdf0e10cSrcweir    {
220cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_AXIS_POSITIONS:CB_MINOR_OUTER";
221cdf0e10cSrcweir        Pos = MAP_APPFONT ( XTICK_3 , Y8  ) ;
222cdf0e10cSrcweir        Size = MAP_APPFONT ( TICKWIDTH , 10 ) ;
223cdf0e10cSrcweir        Text [ en-US ] = "O~uter";
224cdf0e10cSrcweir    };
225cdf0e10cSrcweir
226cdf0e10cSrcweir    FixedLine FL_VERTICAL
227cdf0e10cSrcweir    {
228cdf0e10cSrcweir        Hide = TRUE ;
229cdf0e10cSrcweir        Pos = MAP_APPFONT ( XTICK_4 , Y7  ) ;
230cdf0e10cSrcweir        Size = MAP_APPFONT ( 6 , 25 ) ;
231cdf0e10cSrcweir        Vert = TRUE ;
232cdf0e10cSrcweir    };
233cdf0e10cSrcweir
234cdf0e10cSrcweir    FixedText FT_PLACE_TICKS
235cdf0e10cSrcweir    {
236cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y9  );
237cdf0e10cSrcweir        Size = MAP_APPFONT ( LABELWIDTH , 8 ) ;
238cdf0e10cSrcweir        Text [ en-US ] = "Place ~marks";
239cdf0e10cSrcweir    };
240cdf0e10cSrcweir    ListBox LB_PLACE_TICKS
241cdf0e10cSrcweir    {
242cdf0e10cSrcweir        HelpID = "chart2:ListBox:TP_AXIS_POSITIONS:LB_PLACE_TICKS";
243cdf0e10cSrcweir        Border = TRUE ;
244cdf0e10cSrcweir        AutoHScroll = TRUE ;
245cdf0e10cSrcweir        Pos = MAP_APPFONT ( X3 , Y9-2  ) ;
246cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
247cdf0e10cSrcweir        TabStop = TRUE ;
248cdf0e10cSrcweir        Group = TRUE ;
249cdf0e10cSrcweir        DropDown=TRUE;
250cdf0e10cSrcweir        DDExtraWidth = TRUE ;
251cdf0e10cSrcweir
252cdf0e10cSrcweir        StringList [ en-US ] =
253cdf0e10cSrcweir        {
254cdf0e10cSrcweir            "At labels" ;
255cdf0e10cSrcweir            "At axis" ;
256cdf0e10cSrcweir            "At axis and labels" ;
257cdf0e10cSrcweir        };
258cdf0e10cSrcweir    };
259cdf0e10cSrcweir
260cdf0e10cSrcweir
261cdf0e10cSrcweir    FixedLine FL_GRIDS
262cdf0e10cSrcweir    {
263cdf0e10cSrcweir        Hide = TRUE ;
264cdf0e10cSrcweir        Pos = MAP_APPFONT ( X1 , Y10  ) ;
265cdf0e10cSrcweir        Size = MAP_APPFONT ( 248 , 8 ) ;
266cdf0e10cSrcweir        Text[ en-US ] = "Grids";
267cdf0e10cSrcweir    };
268cdf0e10cSrcweir    CheckBox CB_MAJOR_GRID
269cdf0e10cSrcweir    {
270cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_AXIS_POSITIONS:CB_MAJOR_GRID";
271cdf0e10cSrcweir        Hide = TRUE ;
272cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y11  ) ;
273cdf0e10cSrcweir        Size = MAP_APPFONT ( 150 , 10 ) ;
274cdf0e10cSrcweir        TabStop = TRUE ;
275cdf0e10cSrcweir        Text [ en-US ] = "Show major ~grid" ;
276cdf0e10cSrcweir    };
277cdf0e10cSrcweir    PushButton PB_MAJOR_GRID
278cdf0e10cSrcweir    {
279cdf0e10cSrcweir        HelpID = "chart2:PushButton:TP_AXIS_POSITIONS:PB_MAJOR_GRID";
280cdf0e10cSrcweir        Hide = TRUE ;
281cdf0e10cSrcweir        TabStop = TRUE;
282cdf0e10cSrcweir        Pos  = MAP_APPFONT ( X3 , Y11-2  );
283cdf0e10cSrcweir        Size = MAP_APPFONT ( 54 , 14 );
284cdf0e10cSrcweir        Text [ en-US ] = "Mo~re...";
285cdf0e10cSrcweir    };
286cdf0e10cSrcweir    CheckBox CB_MINOR_GRID
287cdf0e10cSrcweir    {
288cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_AXIS_POSITIONS:CB_MINOR_GRID";
289cdf0e10cSrcweir        Hide = TRUE ;
290cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y12  ) ;
291cdf0e10cSrcweir        Size = MAP_APPFONT ( 150 , 10 ) ;
292cdf0e10cSrcweir        TabStop = TRUE ;
293cdf0e10cSrcweir        Text [ en-US ] = "~Show minor grid" ;
294cdf0e10cSrcweir    };
295cdf0e10cSrcweir    PushButton PB_MINOR_GRID
296cdf0e10cSrcweir    {
297cdf0e10cSrcweir        HelpID = "chart2:PushButton:TP_AXIS_POSITIONS:PB_MINOR_GRID";
298cdf0e10cSrcweir        Hide = TRUE ;
299cdf0e10cSrcweir        TabStop = TRUE;
300cdf0e10cSrcweir        Pos  = MAP_APPFONT ( X3 , Y12-2  );
301cdf0e10cSrcweir        Size = MAP_APPFONT ( 54 , 14 );
302cdf0e10cSrcweir        Text [ en-US ] = "Mor~e...";
303cdf0e10cSrcweir    };
304cdf0e10cSrcweir};
305