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 "tp_Scale.hrc"
25cdf0e10cSrcweir
26cdf0e10cSrcweir#define YLine1 3
27cdf0e10cSrcweir#define Y1 (YLine1+13)
28cdf0e10cSrcweir#define Y2 (Y1+16)
29cdf0e10cSrcweir#define Y3 (Y2+16)
30cdf0e10cSrcweir#define Y4 (Y3+16)
31cdf0e10cSrcweir#define Y5 (Y4+16)
32cdf0e10cSrcweir#define Y6 (Y5+16)
33cdf0e10cSrcweir#define Y7 (Y6+16)
34cdf0e10cSrcweir#define Y8 (Y7+16)
35cdf0e10cSrcweir
36cdf0e10cSrcweir#define LABELWIDTH 88
37cdf0e10cSrcweir#define AUTOCHECKWIDTH 41
38cdf0e10cSrcweir#define EDITWIDTH 50
39cdf0e10cSrcweir#define X1 6
40cdf0e10cSrcweir#define X2 11
41cdf0e10cSrcweir#define X3 (X2+LABELWIDTH+4)
42cdf0e10cSrcweir#define X4 (X3+EDITWIDTH+5)
43cdf0e10cSrcweir#define X5 (X4+AUTOCHECKWIDTH+5)
44cdf0e10cSrcweir
45cdf0e10cSrcweir#define STR_LIST_TIME_UNIT  \
46cdf0e10cSrcweir    StringList [ en-US ] = \
47cdf0e10cSrcweir    { \
48cdf0e10cSrcweir        "Days" ; \
49cdf0e10cSrcweir        "Months" ; \
50cdf0e10cSrcweir        "Years" ; \
51cdf0e10cSrcweir    };
52cdf0e10cSrcweir
53cdf0e10cSrcweirTabPage TP_SCALE
54cdf0e10cSrcweir{
55cdf0e10cSrcweir    HelpID = "chart2:TabPage:TP_SCALE";
56cdf0e10cSrcweir    Hide = TRUE ;
57cdf0e10cSrcweir    SVLook = TRUE ;
58cdf0e10cSrcweir    Size = MAP_APPFONT ( 260 , 185 ) ;
59cdf0e10cSrcweir
60cdf0e10cSrcweir    FixedLine FL_SCALE
61cdf0e10cSrcweir    {
62cdf0e10cSrcweir        Pos = MAP_APPFONT ( X1 , YLine1  ) ;
63cdf0e10cSrcweir        Size = MAP_APPFONT ( 248 , 8 ) ;
64cdf0e10cSrcweir        Text [ en-US ] = "Scale" ;
65cdf0e10cSrcweir    };
66cdf0e10cSrcweir    //---------------------------
67cdf0e10cSrcweir    CheckBox CBX_REVERSE
68cdf0e10cSrcweir    {
69cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_SCALE:CBX_REVERSE:ValueAxis";
70cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y1  ) ;
71cdf0e10cSrcweir        Size = MAP_APPFONT ( 244 , 10 ) ;
72cdf0e10cSrcweir        TabStop = TRUE ;
73cdf0e10cSrcweir        Text [ en-US ] = "~Reverse direction" ;
74cdf0e10cSrcweir    };
75cdf0e10cSrcweir    //---------------------------
76cdf0e10cSrcweir    CheckBox CBX_LOGARITHM
77cdf0e10cSrcweir    {
78cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_SCALE:CBX_LOGARITHM";
79cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y2  ) ;
80cdf0e10cSrcweir        Size = MAP_APPFONT ( 244 , 10 ) ;
81cdf0e10cSrcweir        TabStop = TRUE ;
82cdf0e10cSrcweir        Text [ en-US ] = "~Logarithmic scale" ;
83cdf0e10cSrcweir    };
84cdf0e10cSrcweir    //---------------------------
85cdf0e10cSrcweir    FixedText TXT_AXIS_TYPE
86cdf0e10cSrcweir    {
87cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y2  ) ;
88cdf0e10cSrcweir        Size = MAP_APPFONT ( LABELWIDTH , 8 ) ;
89cdf0e10cSrcweir        Text [ en-US ] = "T~ype" ;
90cdf0e10cSrcweir    };
91cdf0e10cSrcweir    ListBox LB_AXIS_TYPE
92cdf0e10cSrcweir    {
93cdf0e10cSrcweir        HelpID = "chart2:ListBox:TP_SCALE:LB_AXIS_TYPE";
94cdf0e10cSrcweir        Border = TRUE ;
95cdf0e10cSrcweir        AutoHScroll = TRUE ;
96cdf0e10cSrcweir        Pos = MAP_APPFONT ( X3 , Y2-2  ) ;
97cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
98cdf0e10cSrcweir        TabStop = TRUE ;
99cdf0e10cSrcweir        Group = TRUE ;
100cdf0e10cSrcweir        DropDown=TRUE;
101cdf0e10cSrcweir        DDExtraWidth = TRUE ;
102cdf0e10cSrcweir
103cdf0e10cSrcweir        StringList [ en-US ] =
104cdf0e10cSrcweir        {
105cdf0e10cSrcweir            "Automatic" ;
106cdf0e10cSrcweir            "Text" ;
107cdf0e10cSrcweir            "Date" ;
108cdf0e10cSrcweir        };
109cdf0e10cSrcweir    };
110cdf0e10cSrcweir    //---------------------------
111cdf0e10cSrcweir    FixedText TXT_MIN
112cdf0e10cSrcweir    {
113cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y3  ) ;
114cdf0e10cSrcweir        Size = MAP_APPFONT ( LABELWIDTH , 8 ) ;
115cdf0e10cSrcweir        Text [ en-US ] = "~Minimum" ;
116cdf0e10cSrcweir    };
117cdf0e10cSrcweir    SpinField EDT_MIN
118cdf0e10cSrcweir    {
119cdf0e10cSrcweir        HelpID = "chart2:SpinField:TP_SCALE:EDT_MIN";
120cdf0e10cSrcweir        Border = TRUE ;
121cdf0e10cSrcweir        SVLook = TRUE ;
122cdf0e10cSrcweir        Pos = MAP_APPFONT ( X3 , Y3-2 ) ;
123cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
124cdf0e10cSrcweir        TabStop = TRUE ;
125cdf0e10cSrcweir    };
126cdf0e10cSrcweir    CheckBox CBX_AUTO_MIN
127cdf0e10cSrcweir    {
128cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_MIN";
129cdf0e10cSrcweir        Pos = MAP_APPFONT ( X4 , Y3+1  ) ;
130cdf0e10cSrcweir        Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ;
131cdf0e10cSrcweir        TabStop = TRUE ;
132cdf0e10cSrcweir        Text [ en-US ] = "~Automatic" ;
133cdf0e10cSrcweir    };
134cdf0e10cSrcweir    //---------------------------
135cdf0e10cSrcweir    FixedText TXT_MAX
136cdf0e10cSrcweir    {
137cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y4  ) ;
138cdf0e10cSrcweir        Size = MAP_APPFONT ( LABELWIDTH , 8 ) ;
139cdf0e10cSrcweir        Text [ en-US ] = "Ma~ximum" ;
140cdf0e10cSrcweir    };
141cdf0e10cSrcweir    SpinField EDT_MAX
142cdf0e10cSrcweir    {
143cdf0e10cSrcweir        HelpID = "chart2:SpinField:TP_SCALE:EDT_MAX";
144cdf0e10cSrcweir        Border = TRUE ;
145cdf0e10cSrcweir        SVLook = TRUE ;
146cdf0e10cSrcweir        Pos = MAP_APPFONT ( X3 , Y4-2  ) ;
147cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
148cdf0e10cSrcweir        TabStop = TRUE ;
149cdf0e10cSrcweir    };
150cdf0e10cSrcweir    CheckBox CBX_AUTO_MAX
151cdf0e10cSrcweir    {
152cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_MAX";
153cdf0e10cSrcweir        Pos = MAP_APPFONT ( X4 , Y4+1  ) ;
154cdf0e10cSrcweir        Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ;
155cdf0e10cSrcweir        TabStop = TRUE ;
156cdf0e10cSrcweir        Text [ en-US ] = "A~utomatic" ;
157cdf0e10cSrcweir    };
158cdf0e10cSrcweir    //---------------------------
159cdf0e10cSrcweir    FixedText TXT_TIME_RESOLUTION
160cdf0e10cSrcweir    {
161cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y5  ) ;
162cdf0e10cSrcweir        Size = MAP_APPFONT ( LABELWIDTH , 8 ) ;
163cdf0e10cSrcweir        Text [ en-US ] = "R~esolution" ;
164cdf0e10cSrcweir    };
165cdf0e10cSrcweir    ListBox LB_TIME_RESOLUTION
166cdf0e10cSrcweir    {
167cdf0e10cSrcweir        HelpID = "chart2:ListBox:TP_SCALE:LB_TIME_RESOLUTION";
168cdf0e10cSrcweir        Border = TRUE ;
169cdf0e10cSrcweir        AutoHScroll = TRUE ;
170cdf0e10cSrcweir        Pos = MAP_APPFONT ( X3 , Y5-2  ) ;
171cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
172cdf0e10cSrcweir        TabStop = TRUE ;
173cdf0e10cSrcweir        Group = TRUE ;
174cdf0e10cSrcweir        DropDown=TRUE;
175cdf0e10cSrcweir        DDExtraWidth = TRUE ;
176cdf0e10cSrcweir
177cdf0e10cSrcweir        STR_LIST_TIME_UNIT
178cdf0e10cSrcweir    };
179cdf0e10cSrcweir    CheckBox CBX_AUTO_TIME_RESOLUTION
180cdf0e10cSrcweir    {
181cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_TIME_RESOLUTION";
182cdf0e10cSrcweir        Pos = MAP_APPFONT ( X4 , Y5+1  ) ;
183cdf0e10cSrcweir        Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ;
184cdf0e10cSrcweir        TabStop = TRUE ;
185cdf0e10cSrcweir        Text [ en-US ] = "Automat~ic" ;
186cdf0e10cSrcweir    };
187cdf0e10cSrcweir    //---------------------------
188cdf0e10cSrcweir    FixedText TXT_STEP_MAIN
189cdf0e10cSrcweir    {
190cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y5  ) ;
191cdf0e10cSrcweir        Size = MAP_APPFONT ( LABELWIDTH , 8 ) ;
192cdf0e10cSrcweir        Text [ en-US ] = "Ma~jor interval" ;
193cdf0e10cSrcweir    };
194cdf0e10cSrcweir    SpinField EDT_STEP_MAIN
195cdf0e10cSrcweir    {
196cdf0e10cSrcweir        HelpID = "chart2:SpinField:TP_SCALE:EDT_STEP_MAIN";
197cdf0e10cSrcweir        Border = TRUE ;
198cdf0e10cSrcweir        Pos = MAP_APPFONT ( X3 , Y5-2  ) ;
199cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
200cdf0e10cSrcweir        TabStop = TRUE ;
201cdf0e10cSrcweir    };
202cdf0e10cSrcweir    MetricField MT_MAIN_DATE_STEP
203cdf0e10cSrcweir    {
204cdf0e10cSrcweir        HelpID = "chart2:MetricField:TP_SCALE:MT_MAIN_DATE_STEP";
205cdf0e10cSrcweir        Border = TRUE ;
206cdf0e10cSrcweir        Pos = MAP_APPFONT ( X3 , Y6-2  ) ;
207cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
208cdf0e10cSrcweir        TabStop = TRUE ;
209cdf0e10cSrcweir        Repeat = TRUE ;
210cdf0e10cSrcweir        Spin = TRUE ;
211cdf0e10cSrcweir        Minimum = 1 ;
212cdf0e10cSrcweir        Maximum = 100000 ;
213cdf0e10cSrcweir        StrictFormat = TRUE ;
214cdf0e10cSrcweir        Unit = FUNIT_CUSTOM ;
215cdf0e10cSrcweir        First = 1 ;
216cdf0e10cSrcweir        Last = 100000 ;
217cdf0e10cSrcweir        SpinSize = 1 ;
218cdf0e10cSrcweir    };
219cdf0e10cSrcweir
220cdf0e10cSrcweir    ListBox LB_MAIN_TIME_UNIT
221cdf0e10cSrcweir    {
222cdf0e10cSrcweir        HelpID = "chart2:ListBox:TP_SCALE:LB_MAIN_TIME_UNIT";
223cdf0e10cSrcweir        Border = TRUE ;
224cdf0e10cSrcweir        AutoHScroll = TRUE ;
225cdf0e10cSrcweir        Pos = MAP_APPFONT ( X5 , Y6-2  ) ;
226cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
227cdf0e10cSrcweir        TabStop = TRUE ;
228cdf0e10cSrcweir        Group = TRUE ;
229cdf0e10cSrcweir        DropDown=TRUE;
230cdf0e10cSrcweir        DDExtraWidth = TRUE ;
231cdf0e10cSrcweir
232cdf0e10cSrcweir        STR_LIST_TIME_UNIT
233cdf0e10cSrcweir    };
234cdf0e10cSrcweir
235cdf0e10cSrcweir    CheckBox CBX_AUTO_STEP_MAIN
236cdf0e10cSrcweir    {
237cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_STEP_MAIN";
238cdf0e10cSrcweir        Pos = MAP_APPFONT ( X4 , Y5+1  ) ;
239cdf0e10cSrcweir        Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ;
240cdf0e10cSrcweir        TabStop = TRUE ;
241cdf0e10cSrcweir        Text [ en-US ] = "Au~tomatic" ;
242cdf0e10cSrcweir    };
243cdf0e10cSrcweir    //---------------------------
244cdf0e10cSrcweir    FixedText TXT_STEP_HELP_COUNT
245cdf0e10cSrcweir    {
246cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y6  ) ;
247cdf0e10cSrcweir        Size = MAP_APPFONT ( LABELWIDTH , 8 ) ;
248cdf0e10cSrcweir        Text [ en-US ] = "Minor inter~val count" ;
249cdf0e10cSrcweir    };
250cdf0e10cSrcweir    FixedText TXT_STEP_HELP
251cdf0e10cSrcweir    {
252cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y7  ) ;
253cdf0e10cSrcweir        Size = MAP_APPFONT ( LABELWIDTH , 8 ) ;
254cdf0e10cSrcweir        Text [ en-US ] = "Minor inter~val" ;
255cdf0e10cSrcweir    };
256cdf0e10cSrcweir    MetricField MT_STEPHELP
257cdf0e10cSrcweir    {
258cdf0e10cSrcweir        HelpID = "chart2:MetricField:TP_SCALE:MT_STEPHELP";
259cdf0e10cSrcweir        Border = TRUE ;
260cdf0e10cSrcweir        Pos = MAP_APPFONT ( X3 , Y6-2  ) ;
261cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
262cdf0e10cSrcweir        TabStop = TRUE ;
263cdf0e10cSrcweir        Repeat = TRUE ;
264cdf0e10cSrcweir        Spin = TRUE ;
265cdf0e10cSrcweir        Minimum = 1 ;
266cdf0e10cSrcweir        Maximum = 100 ;
267cdf0e10cSrcweir        StrictFormat = TRUE ;
268cdf0e10cSrcweir        Unit = FUNIT_CUSTOM ;
269cdf0e10cSrcweir        First = 1 ;
270cdf0e10cSrcweir        Last = 100 ;
271cdf0e10cSrcweir        SpinSize = 1 ;
272cdf0e10cSrcweir    };
273cdf0e10cSrcweir    ListBox LB_HELP_TIME_UNIT
274cdf0e10cSrcweir    {
275cdf0e10cSrcweir        HelpID = "chart2:ListBox:TP_SCALE:LB_HELP_TIME_UNIT";
276cdf0e10cSrcweir        Border = TRUE ;
277cdf0e10cSrcweir        AutoHScroll = TRUE ;
278cdf0e10cSrcweir        Pos = MAP_APPFONT ( X5 , Y7-2  ) ;
279cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
280cdf0e10cSrcweir        TabStop = TRUE ;
281cdf0e10cSrcweir        Group = TRUE ;
282cdf0e10cSrcweir        DropDown=TRUE;
283cdf0e10cSrcweir        DDExtraWidth = TRUE ;
284cdf0e10cSrcweir
285cdf0e10cSrcweir        STR_LIST_TIME_UNIT
286cdf0e10cSrcweir    };
287cdf0e10cSrcweir    CheckBox CBX_AUTO_STEP_HELP
288cdf0e10cSrcweir    {
289cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_STEP_HELP";
290cdf0e10cSrcweir        Pos = MAP_APPFONT ( X4 , Y6+1  ) ;
291cdf0e10cSrcweir        Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ;
292cdf0e10cSrcweir        TabStop = TRUE ;
293cdf0e10cSrcweir        Text [ en-US ] = "Aut~omatic" ;
294cdf0e10cSrcweir    };
295cdf0e10cSrcweir    //---------------------------
296cdf0e10cSrcweir    FixedText TXT_ORIGIN
297cdf0e10cSrcweir    {
298cdf0e10cSrcweir        Pos = MAP_APPFONT ( X2 , Y7  ) ;
299cdf0e10cSrcweir        Size = MAP_APPFONT ( LABELWIDTH , 8 ) ;
300cdf0e10cSrcweir        Text [ en-US ] = "Re~ference value" ;
301cdf0e10cSrcweir    };
302cdf0e10cSrcweir    SpinField EDT_ORIGIN
303cdf0e10cSrcweir    {
304cdf0e10cSrcweir        HelpID = "chart2:SpinField:TP_SCALE:EDT_ORIGIN";
305cdf0e10cSrcweir        Border = TRUE ;
306cdf0e10cSrcweir        SVLook = TRUE ;
307cdf0e10cSrcweir        Pos = MAP_APPFONT ( X3 , Y7-2  ) ;
308cdf0e10cSrcweir        Size = MAP_APPFONT ( EDITWIDTH , 12 ) ;
309cdf0e10cSrcweir        TabStop = TRUE ;
310cdf0e10cSrcweir    };
311cdf0e10cSrcweir    CheckBox CBX_AUTO_ORIGIN
312cdf0e10cSrcweir    {
313cdf0e10cSrcweir        HelpID = "chart2:CheckBox:TP_SCALE:CBX_AUTO_ORIGIN";
314cdf0e10cSrcweir        Pos = MAP_APPFONT ( X4 , Y7+1  ) ;
315cdf0e10cSrcweir        Size = MAP_APPFONT ( AUTOCHECKWIDTH , 10 ) ;
316cdf0e10cSrcweir        TabStop = TRUE ;
317cdf0e10cSrcweir        Text [ en-US ] = "Automat~ic" ;
318cdf0e10cSrcweir    };
319cdf0e10cSrcweir    //---------------------------
320cdf0e10cSrcweir};
321