1*b1cdbd2cSJim Jagielski/************************************************************** 2*b1cdbd2cSJim Jagielski * 3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski * distributed with this work for additional information 6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski * 11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski * 13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski * under the License. 19*b1cdbd2cSJim Jagielski * 20*b1cdbd2cSJim Jagielski *************************************************************/ 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski#ifndef _CHART2_RESOURCE_TRENDLINE_HXX 24*b1cdbd2cSJim Jagielski#define _CHART2_RESOURCE_TRENDLINE_HXX 25*b1cdbd2cSJim Jagielski 26*b1cdbd2cSJim Jagielski#include "res_Trendline_IDs.hrc" 27*b1cdbd2cSJim Jagielski#include "HelpIds.hrc" 28*b1cdbd2cSJim Jagielski 29*b1cdbd2cSJim Jagielski#define RESOURCE_TRENDLINE(availablewidth, yoffset) \ 30*b1cdbd2cSJim JagielskiFixedLine FL_TYPE \ 31*b1cdbd2cSJim Jagielski{ \ 32*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6 ,6 ); \ 33*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( availablewidth - 12 ,8 ); \ 34*b1cdbd2cSJim Jagielski Text[ en-US ] = "Regression Type"; \ 35*b1cdbd2cSJim Jagielski}; \ 36*b1cdbd2cSJim JagielskiRadioButton RB_NONE \ 37*b1cdbd2cSJim Jagielski{ \ 38*b1cdbd2cSJim Jagielski HelpId = HID_SCH_TRENDLINE_RB_NONE; \ 39*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 29, 22 ); \ 40*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 100, 10 ); \ 41*b1cdbd2cSJim Jagielski Text[ en-US ] = "~None"; \ 42*b1cdbd2cSJim Jagielski}; \ 43*b1cdbd2cSJim JagielskiRadioButton RB_LINEAR \ 44*b1cdbd2cSJim Jagielski{ \ 45*b1cdbd2cSJim Jagielski HelpId = HID_SCH_TRENDLINE_RB_LINEAR; \ 46*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 29, 22 + yoffset ); \ 47*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 100, 10 ); \ 48*b1cdbd2cSJim Jagielski Text[ en-US ] = "~Linear"; \ 49*b1cdbd2cSJim Jagielski}; \ 50*b1cdbd2cSJim JagielskiRadioButton RB_LOGARITHMIC \ 51*b1cdbd2cSJim Jagielski{ \ 52*b1cdbd2cSJim Jagielski HelpId = HID_SCH_TRENDLINE_RB_LOGARITHMIC; \ 53*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 29, 44 + yoffset ); \ 54*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 100, 10 ); \ 55*b1cdbd2cSJim Jagielski Text[ en-US ] = "L~ogarithmic"; \ 56*b1cdbd2cSJim Jagielski}; \ 57*b1cdbd2cSJim JagielskiRadioButton RB_EXPONENTIAL \ 58*b1cdbd2cSJim Jagielski{ \ 59*b1cdbd2cSJim Jagielski HelpId = HID_SCH_TRENDLINE_RB_EXPONENTIAL; \ 60*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 29, 66 + yoffset ); \ 61*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 100, 10 ); \ 62*b1cdbd2cSJim Jagielski Text[ en-US ] = "E~xponential"; \ 63*b1cdbd2cSJim Jagielski}; \ 64*b1cdbd2cSJim JagielskiRadioButton RB_POWER \ 65*b1cdbd2cSJim Jagielski{ \ 66*b1cdbd2cSJim Jagielski HelpId = HID_SCH_TRENDLINE_RB_POWER; \ 67*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 29, 88 + yoffset ); \ 68*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 100, 10 ); \ 69*b1cdbd2cSJim Jagielski Text[ en-US ] = "~Power"; \ 70*b1cdbd2cSJim Jagielski}; \ 71*b1cdbd2cSJim JagielskiFixedImage FI_NONE \ 72*b1cdbd2cSJim Jagielski{ \ 73*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 10, 18 ); \ 74*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 18, 18 ); \ 75*b1cdbd2cSJim Jagielski}; \ 76*b1cdbd2cSJim JagielskiFixedImage FI_LINEAR \ 77*b1cdbd2cSJim Jagielski{ \ 78*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 10, 18 + yoffset ); \ 79*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 18, 18 ); \ 80*b1cdbd2cSJim Jagielski}; \ 81*b1cdbd2cSJim JagielskiFixedImage FI_LOGARITHMIC \ 82*b1cdbd2cSJim Jagielski{ \ 83*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 10, 40 + yoffset ); \ 84*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 18, 18 ); \ 85*b1cdbd2cSJim Jagielski}; \ 86*b1cdbd2cSJim JagielskiFixedImage FI_EXPONENTIAL \ 87*b1cdbd2cSJim Jagielski{ \ 88*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 10, 62 + yoffset ); \ 89*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 18, 18 ); \ 90*b1cdbd2cSJim Jagielski}; \ 91*b1cdbd2cSJim JagielskiFixedImage FI_POWER \ 92*b1cdbd2cSJim Jagielski{ \ 93*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 10, 84 + yoffset ); \ 94*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( 18, 18 ); \ 95*b1cdbd2cSJim Jagielski}; \ 96*b1cdbd2cSJim JagielskiFixedLine FL_EQUATION \ 97*b1cdbd2cSJim Jagielski{ \ 98*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 6, 108 + yoffset ); \ 99*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( availablewidth - 12, 8 ); \ 100*b1cdbd2cSJim Jagielski Text[ en-US ] = "Equation"; \ 101*b1cdbd2cSJim Jagielski}; \ 102*b1cdbd2cSJim JagielskiCheckBox CB_SHOW_EQUATION \ 103*b1cdbd2cSJim Jagielski{ \ 104*b1cdbd2cSJim Jagielski HelpId = HID_SCH_TRENDLINE_SHOW_EQUATION; \ 105*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 10, 120 + yoffset ); \ 106*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( availablewidth - 20, 10 ); \ 107*b1cdbd2cSJim Jagielski TabStop = TRUE; \ 108*b1cdbd2cSJim Jagielski Text[ en-US ] = "Show ~equation"; \ 109*b1cdbd2cSJim Jagielski}; \ 110*b1cdbd2cSJim JagielskiCheckBox CB_SHOW_CORRELATION_COEFF \ 111*b1cdbd2cSJim Jagielski{ \ 112*b1cdbd2cSJim Jagielski HelpId = HID_SCH_TRENDLINE_SHOW_R_SQUARED; \ 113*b1cdbd2cSJim Jagielski Pos = MAP_APPFONT( 10, 134 + yoffset ); \ 114*b1cdbd2cSJim Jagielski Size = MAP_APPFONT( availablewidth - 20, 10 ); \ 115*b1cdbd2cSJim Jagielski TabStop = TRUE; \ 116*b1cdbd2cSJim Jagielski Text[ en-US ] = "Show ~coefficient of determination (R²)"; \ 117*b1cdbd2cSJim Jagielski}; 118*b1cdbd2cSJim Jagielski 119*b1cdbd2cSJim Jagielski#endif 120