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