1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: res_Trendline_tmpl.hrc,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _CHART2_RESOURCE_TRENDLINE_HXX
31 #define _CHART2_RESOURCE_TRENDLINE_HXX
33 #include "res_Trendline_IDs.hrc"
34 #include "HelpIds.hrc"
36 #define RESOURCE_TRENDLINE(availablewidth, yoffset) \
39 Pos = MAP_APPFONT( 6 ,6 ); \
40 Size = MAP_APPFONT( availablewidth - 12 ,8 ); \
41 Text[ en-US ] = "Regression Type"; \
45 HelpId = HID_SCH_TRENDLINE_RB_NONE; \
46 Pos = MAP_APPFONT( 29, 22 ); \
47 Size = MAP_APPFONT( 100, 10 ); \
48 Text[ en-US ] = "~None"; \
50 RadioButton RB_LINEAR \
52 HelpId = HID_SCH_TRENDLINE_RB_LINEAR; \
53 Pos = MAP_APPFONT( 29, 22 + yoffset ); \
54 Size = MAP_APPFONT( 100, 10 ); \
55 Text[ en-US ] = "~Linear"; \
57 RadioButton RB_LOGARITHMIC \
59 HelpId = HID_SCH_TRENDLINE_RB_LOGARITHMIC; \
60 Pos = MAP_APPFONT( 29, 44 + yoffset ); \
61 Size = MAP_APPFONT( 100, 10 ); \
62 Text[ en-US ] = "L~ogarithmic"; \
64 RadioButton RB_EXPONENTIAL \
66 HelpId = HID_SCH_TRENDLINE_RB_EXPONENTIAL; \
67 Pos = MAP_APPFONT( 29, 66 + yoffset ); \
68 Size = MAP_APPFONT( 100, 10 ); \
69 Text[ en-US ] = "E~xponential"; \
71 RadioButton RB_POWER \
73 HelpId = HID_SCH_TRENDLINE_RB_POWER; \
74 Pos = MAP_APPFONT( 29, 88 + yoffset ); \
75 Size = MAP_APPFONT( 100, 10 ); \
76 Text[ en-US ] = "~Power"; \
80 Pos = MAP_APPFONT( 10, 18 ); \
81 Size = MAP_APPFONT( 18, 18 ); \
83 FixedImage FI_LINEAR \
85 Pos = MAP_APPFONT( 10, 18 + yoffset ); \
86 Size = MAP_APPFONT( 18, 18 ); \
88 FixedImage FI_LOGARITHMIC \
90 Pos = MAP_APPFONT( 10, 40 + yoffset ); \
91 Size = MAP_APPFONT( 18, 18 ); \
93 FixedImage FI_EXPONENTIAL \
95 Pos = MAP_APPFONT( 10, 62 + yoffset ); \
96 Size = MAP_APPFONT( 18, 18 ); \
100 Pos = MAP_APPFONT( 10, 84 + yoffset ); \
101 Size = MAP_APPFONT( 18, 18 ); \
103 FixedLine FL_EQUATION \
105 Pos = MAP_APPFONT( 6, 108 + yoffset ); \
106 Size = MAP_APPFONT( availablewidth - 12, 8 ); \
107 Text[ en-US ] = "Equation"; \
109 CheckBox CB_SHOW_EQUATION \
111 HelpId = HID_SCH_TRENDLINE_SHOW_EQUATION; \
112 Pos = MAP_APPFONT( 10, 120 + yoffset ); \
113 Size = MAP_APPFONT( availablewidth - 20, 10 ); \
115 Text[ en-US ] = "Show ~equation"; \
117 CheckBox CB_SHOW_CORRELATION_COEFF \
119 HelpId = HID_SCH_TRENDLINE_SHOW_R_SQUARED; \
120 Pos = MAP_APPFONT( 10, 134 + yoffset ); \
121 Size = MAP_APPFONT( availablewidth - 20, 10 ); \
123 Text[ en-US ] = "Show ~coefficient of determination (R²)"; \