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_RESOURCE_TRENDLINE_HXX
24#define _CHART2_RESOURCE_TRENDLINE_HXX
25
26#include "res_Trendline_IDs.hrc"
27#include "HelpIds.hrc"
28
29#define RESOURCE_TRENDLINE(availablewidth, yoffset) \
30FixedLine FL_TYPE \
31{ \
32    Pos = MAP_APPFONT( 6 ,6  ); \
33    Size = MAP_APPFONT( availablewidth - 12 ,8 ); \
34    Text[ en-US ] = "Regression Type"; \
35}; \
36RadioButton RB_NONE \
37{ \
38    HelpId = HID_SCH_TRENDLINE_RB_NONE; \
39    Pos = MAP_APPFONT( 29, 22  ); \
40    Size = MAP_APPFONT( 100, 10 ); \
41    Text[ en-US ] = "~None"; \
42}; \
43RadioButton RB_LINEAR \
44{ \
45    HelpId = HID_SCH_TRENDLINE_RB_LINEAR; \
46    Pos = MAP_APPFONT( 29, 22 + yoffset ); \
47    Size = MAP_APPFONT( 100, 10 ); \
48    Text[ en-US ] = "~Linear"; \
49}; \
50RadioButton RB_LOGARITHMIC \
51{ \
52    HelpId = HID_SCH_TRENDLINE_RB_LOGARITHMIC; \
53    Pos = MAP_APPFONT( 29, 44  + yoffset ); \
54    Size = MAP_APPFONT( 100, 10 ); \
55    Text[ en-US ] = "L~ogarithmic"; \
56}; \
57RadioButton RB_EXPONENTIAL \
58{ \
59    HelpId = HID_SCH_TRENDLINE_RB_EXPONENTIAL; \
60    Pos = MAP_APPFONT( 29, 66 + yoffset  ); \
61    Size = MAP_APPFONT( 100, 10 ); \
62    Text[ en-US ] = "E~xponential"; \
63}; \
64RadioButton RB_POWER \
65{ \
66    HelpId = HID_SCH_TRENDLINE_RB_POWER; \
67    Pos = MAP_APPFONT( 29, 88 + yoffset ); \
68    Size = MAP_APPFONT( 100, 10 ); \
69    Text[ en-US ] = "~Power"; \
70}; \
71FixedImage FI_NONE \
72{ \
73    Pos = MAP_APPFONT( 10, 18 ); \
74    Size = MAP_APPFONT( 18, 18 ); \
75}; \
76FixedImage FI_LINEAR \
77{ \
78    Pos = MAP_APPFONT( 10, 18 + yoffset ); \
79    Size = MAP_APPFONT( 18, 18 ); \
80}; \
81FixedImage FI_LOGARITHMIC \
82{ \
83    Pos = MAP_APPFONT( 10, 40 + yoffset ); \
84    Size = MAP_APPFONT( 18, 18 ); \
85}; \
86FixedImage FI_EXPONENTIAL \
87{ \
88    Pos = MAP_APPFONT( 10, 62 + yoffset ); \
89    Size = MAP_APPFONT( 18, 18 ); \
90}; \
91FixedImage FI_POWER \
92{ \
93    Pos = MAP_APPFONT( 10, 84 + yoffset ); \
94    Size = MAP_APPFONT( 18, 18 ); \
95}; \
96FixedLine FL_EQUATION \
97{ \
98    Pos = MAP_APPFONT( 6, 108 + yoffset ); \
99    Size = MAP_APPFONT( availablewidth - 12, 8 ); \
100    Text[ en-US ] = "Equation"; \
101}; \
102CheckBox CB_SHOW_EQUATION \
103{ \
104    HelpId = HID_SCH_TRENDLINE_SHOW_EQUATION; \
105    Pos = MAP_APPFONT( 10, 120 + yoffset ); \
106    Size = MAP_APPFONT( availablewidth - 20, 10 ); \
107    TabStop = TRUE; \
108    Text[ en-US ] = "Show ~equation"; \
109}; \
110CheckBox CB_SHOW_CORRELATION_COEFF \
111{ \
112    HelpId = HID_SCH_TRENDLINE_SHOW_R_SQUARED; \
113    Pos = MAP_APPFONT( 10, 134 + yoffset ); \
114    Size = MAP_APPFONT( availablewidth - 20, 10 ); \
115    TabStop = TRUE; \
116    Text[ en-US ] = "Show ~coefficient of determination (R²)"; \
117};
118
119#endif
120