1*e38fe63cSAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*e38fe63cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*e38fe63cSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*e38fe63cSAndrew Rist * distributed with this work for additional information 6*e38fe63cSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*e38fe63cSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*e38fe63cSAndrew Rist * "License"); you may not use this file except in compliance 9*e38fe63cSAndrew Rist * with the License. You may obtain a copy of the License at 10*e38fe63cSAndrew Rist * 11*e38fe63cSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*e38fe63cSAndrew Rist * 13*e38fe63cSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*e38fe63cSAndrew Rist * software distributed under the License is distributed on an 15*e38fe63cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*e38fe63cSAndrew Rist * KIND, either express or implied. See the License for the 17*e38fe63cSAndrew Rist * specific language governing permissions and limitations 18*e38fe63cSAndrew Rist * under the License. 19*e38fe63cSAndrew Rist * 20*e38fe63cSAndrew Rist *************************************************************/ 21*e38fe63cSAndrew Rist 22*e38fe63cSAndrew Rist 23cdf0e10cSrcweir#ifndef _CHART2_RESOURCE_ERRORBARS_HXX 24cdf0e10cSrcweir#define _CHART2_RESOURCE_ERRORBARS_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir#include "res_ErrorBar_IDs.hrc" 27cdf0e10cSrcweir#define WORKAROUND \ 28cdf0e10cSrcweirStringList [ en-US ] = \ 29cdf0e10cSrcweir { \ 30cdf0e10cSrcweir < "Standard Error" ; CHART_LB_FUNCTION_STD_ERROR ; >; \ 31cdf0e10cSrcweir < "Standard Deviation" ; CHART_LB_FUNCTION_STD_DEV ; >; \ 32cdf0e10cSrcweir < "Variance" ; CHART_LB_FUNCTION_VARIANCE ; >; \ 33cdf0e10cSrcweir < "Error Margin" ; CHART_LB_FUNCTION_ERROR_MARGIN ; >; \ 34cdf0e10cSrcweir }; 35cdf0e10cSrcweir 36cdf0e10cSrcweir 37cdf0e10cSrcweir#define RESOURCE_ERRORBARS(availablewidth, yoffset) \ 38cdf0e10cSrcweirFixedLine FL_ERROR \ 39cdf0e10cSrcweir{ \ 40cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 6 ) ; \ 41cdf0e10cSrcweir Size = MAP_APPFONT ( 116 , 8 ) ; \ 42cdf0e10cSrcweir Text [ en-US ] = "Error Category" ; \ 43cdf0e10cSrcweir}; \ 44cdf0e10cSrcweirRadioButton RB_NONE \ 45cdf0e10cSrcweir{ \ 46cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_NO_ERROR; \ 47cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 20 ) ; \ 48cdf0e10cSrcweir Size = MAP_APPFONT ( 110 , 10 ) ; \ 49cdf0e10cSrcweir Text [ en-US ] = "~None" ; \ 50cdf0e10cSrcweir TabStop = TRUE ; \ 51cdf0e10cSrcweir}; \ 52cdf0e10cSrcweirRadioButton RB_CONST \ 53cdf0e10cSrcweir{ \ 54cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_CONSTERROR; \ 55cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 20 + yoffset ) ; \ 56cdf0e10cSrcweir Size = MAP_APPFONT ( 110 , 10 ) ; \ 57cdf0e10cSrcweir Text [ en-US ] = "~Constant Value" ; \ 58cdf0e10cSrcweir TabStop = TRUE ; \ 59cdf0e10cSrcweir}; \ 60cdf0e10cSrcweirRadioButton RB_PERCENT \ 61cdf0e10cSrcweir{ \ 62cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_PERCENT; \ 63cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 34 + yoffset ) ; \ 64cdf0e10cSrcweir Size = MAP_APPFONT ( 110 , 10 ) ; \ 65cdf0e10cSrcweir Text [ en-US ] = "~Percentage" ; \ 66cdf0e10cSrcweir TabStop = TRUE ; \ 67cdf0e10cSrcweir}; \ 68cdf0e10cSrcweirRadioButton RB_FUNCTION \ 69cdf0e10cSrcweir{ \ 70cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_FUNCTION; \ 71cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 48 + yoffset ) ; \ 72cdf0e10cSrcweir Size = MAP_APPFONT ( 12 , 10 ) ; \ 73cdf0e10cSrcweir Text [ en-US ] = "" ; \ 74cdf0e10cSrcweir TabStop = TRUE ; \ 75cdf0e10cSrcweir}; \ 76cdf0e10cSrcweirRadioButton RB_RANGE \ 77cdf0e10cSrcweir{ \ 78cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_RANGE; \ 79cdf0e10cSrcweir Pos = MAP_APPFONT( 12, 62 + yoffset ) ; \ 80cdf0e10cSrcweir Size = MAP_APPFONT( 110, 10 ) ; \ 81cdf0e10cSrcweir Text [ en-US ] = "Cell ~Range" ; \ 82cdf0e10cSrcweir TabStop = TRUE ; \ 83cdf0e10cSrcweir}; \ 84cdf0e10cSrcweirListBox LB_FUNCTION \ 85cdf0e10cSrcweir{ \ 86cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_FUNCTION_LB; \ 87cdf0e10cSrcweir Pos = MAP_APPFONT ( 22 , 46 + yoffset ) ; \ 88cdf0e10cSrcweir Size = MAP_APPFONT ( 94 , 59 ) ; \ 89cdf0e10cSrcweir DropDown = TRUE; \ 90cdf0e10cSrcweir Border = TRUE; \ 91cdf0e10cSrcweir WORKAROUND\ 92cdf0e10cSrcweir}; \ 93cdf0e10cSrcweirFixedLine FL_PARAMETERS \ 94cdf0e10cSrcweir{ \ 95cdf0e10cSrcweir Pos = MAP_APPFONT ( 6 , 82 + yoffset ) ; \ 96cdf0e10cSrcweir Size = MAP_APPFONT ( availablewidth - 12, 8 ) ; \ 97cdf0e10cSrcweir Text [ en-US ] = "Parameters" ; \ 98cdf0e10cSrcweir}; \ 99cdf0e10cSrcweirFixedText FT_POSITIVE \ 100cdf0e10cSrcweir{ \ 101cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 94 + yoffset ) ; \ 102cdf0e10cSrcweir Size = MAP_APPFONT ( 46 , 8 ) ; \ 103cdf0e10cSrcweir Text [ en-US ] = "P~ositive (+)"; \ 104cdf0e10cSrcweir}; \ 105cdf0e10cSrcweirMetricField MF_POSITIVE \ 106cdf0e10cSrcweir{ \ 107cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_POSITIVE_VALUE; \ 108cdf0e10cSrcweir Border = TRUE ; \ 109cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 92 + yoffset ) ; \ 110cdf0e10cSrcweir Size = MAP_APPFONT ( 56 , 12 ) ; \ 111cdf0e10cSrcweir TabStop = TRUE ; \ 112cdf0e10cSrcweir Repeat = TRUE ; \ 113cdf0e10cSrcweir Spin = TRUE ; \ 114cdf0e10cSrcweir Minimum = 0 ; \ 115cdf0e10cSrcweir StrictFormat = TRUE ; \ 116cdf0e10cSrcweir Unit = FUNIT_CUSTOM ; \ 117cdf0e10cSrcweir SpinSize = 100 ; \ 118cdf0e10cSrcweir DecimalDigits = 2 ; \ 119cdf0e10cSrcweir}; \ 120cdf0e10cSrcweirEdit ED_RANGE_POSITIVE \ 121cdf0e10cSrcweir{ \ 122cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_POSITIVE_RANGE; \ 123cdf0e10cSrcweir Border = TRUE ; \ 124cdf0e10cSrcweir Hide = TRUE; \ 125cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 92 + yoffset ) ; \ 126cdf0e10cSrcweir Size = MAP_APPFONT ( 90 , 12 ) ; \ 127cdf0e10cSrcweir}; \ 128cdf0e10cSrcweirImageButton IB_RANGE_POSITIVE \ 129cdf0e10cSrcweir{ \ 130cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_POSITIVE_RANGE_CHOOSER; \ 131cdf0e10cSrcweir Hide = TRUE; \ 132cdf0e10cSrcweir Pos = MAP_APPFONT ( 152 , 91 + yoffset ) ; \ 133cdf0e10cSrcweir Size = MAP_APPFONT ( 14 , 14 ) ; \ 134cdf0e10cSrcweir TabStop = TRUE ; \ 135cdf0e10cSrcweir}; \ 136cdf0e10cSrcweirFixedText FT_NEGATIVE \ 137cdf0e10cSrcweir{ \ 138cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 110 + yoffset ) ; \ 139cdf0e10cSrcweir Size = MAP_APPFONT ( 46 , 8 ) ; \ 140cdf0e10cSrcweir Text [ en-US ] = "~Negative (-)"; \ 141cdf0e10cSrcweir}; \ 142cdf0e10cSrcweirMetricField MF_NEGATIVE \ 143cdf0e10cSrcweir{ \ 144cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_NEGATIVE_VALUE; \ 145cdf0e10cSrcweir Border = TRUE ; \ 146cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 108 + yoffset ) ; \ 147cdf0e10cSrcweir Size = MAP_APPFONT ( 56 , 12 ) ; \ 148cdf0e10cSrcweir TabStop = TRUE ; \ 149cdf0e10cSrcweir Repeat = TRUE ; \ 150cdf0e10cSrcweir Spin = TRUE ; \ 151cdf0e10cSrcweir Minimum = 0 ; \ 152cdf0e10cSrcweir StrictFormat = TRUE ; \ 153cdf0e10cSrcweir Unit = FUNIT_CUSTOM ; \ 154cdf0e10cSrcweir SpinSize = 100 ; \ 155cdf0e10cSrcweir DecimalDigits = 2 ; \ 156cdf0e10cSrcweir}; \ 157cdf0e10cSrcweirEdit ED_RANGE_NEGATIVE \ 158cdf0e10cSrcweir{ \ 159cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_NEGATIVE_RANGE; \ 160cdf0e10cSrcweir Border = TRUE ; \ 161cdf0e10cSrcweir Hide = TRUE; \ 162cdf0e10cSrcweir Pos = MAP_APPFONT ( 60 , 108 + yoffset ) ; \ 163cdf0e10cSrcweir Size = MAP_APPFONT ( 90 , 12 ) ; \ 164cdf0e10cSrcweir}; \ 165cdf0e10cSrcweirImageButton IB_RANGE_NEGATIVE \ 166cdf0e10cSrcweir{ \ 167cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_NEGATIVE_RANGE_CHOOSER; \ 168cdf0e10cSrcweir Hide = TRUE; \ 169cdf0e10cSrcweir Pos = MAP_APPFONT ( 152 , 107 + yoffset ) ; \ 170cdf0e10cSrcweir Size = MAP_APPFONT ( 14 , 14 ) ; \ 171cdf0e10cSrcweir TabStop = TRUE ; \ 172cdf0e10cSrcweir}; \ 173cdf0e10cSrcweirCheckBox CB_SYN_POS_NEG \ 174cdf0e10cSrcweir{ \ 175cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_SAME_FOR_BOTH; \ 176cdf0e10cSrcweir Pos = MAP_APPFONT ( 12 , 126 + yoffset ); \ 177cdf0e10cSrcweir Size = MAP_APPFONT ( availablewidth - 12 , 10 ); \ 178cdf0e10cSrcweir TabStop = TRUE; \ 179cdf0e10cSrcweir Text[ en-US ] = "Same value for both"; \ 180cdf0e10cSrcweir}; \ 181cdf0e10cSrcweirFixedLine FL_INDICATE \ 182cdf0e10cSrcweir{ \ 183cdf0e10cSrcweir Pos = MAP_APPFONT ( 130 , 6 ) ; \ 184cdf0e10cSrcweir Size = MAP_APPFONT ( availablewidth - 136 , 8 ) ; \ 185cdf0e10cSrcweir Text [ en-US ] = "Error Indicator" ; \ 186cdf0e10cSrcweir}; \ 187cdf0e10cSrcweirRadioButton RB_BOTH \ 188cdf0e10cSrcweir{ \ 189cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_SHOW_BOTH; \ 190cdf0e10cSrcweir Pos = MAP_APPFONT ( 154 , 22 ); \ 191cdf0e10cSrcweir Size = MAP_APPFONT ( 90 , 10 ); \ 192cdf0e10cSrcweir Text[ en-US ] = "Positive ~and Negative"; \ 193cdf0e10cSrcweir}; \ 194cdf0e10cSrcweirRadioButton RB_POSITIVE \ 195cdf0e10cSrcweir{ \ 196cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_SHOW_POSITIVE; \ 197cdf0e10cSrcweir Pos = MAP_APPFONT ( 154 , 43 ); \ 198cdf0e10cSrcweir Size = MAP_APPFONT ( 90 , 10 ); \ 199cdf0e10cSrcweir Text[ en-US ] = "Pos~itive"; \ 200cdf0e10cSrcweir}; \ 201cdf0e10cSrcweirRadioButton RB_NEGATIVE \ 202cdf0e10cSrcweir{ \ 203cdf0e10cSrcweir HelpID = HID_SCH_STATISTIK_SHOW_NEGATIVE; \ 204cdf0e10cSrcweir Pos = MAP_APPFONT ( 154 , 64 ); \ 205cdf0e10cSrcweir Size = MAP_APPFONT ( 90 , 10 ); \ 206cdf0e10cSrcweir Text[ en-US ] = "Ne~gative"; \ 207cdf0e10cSrcweir}; \ 208cdf0e10cSrcweirFixedImage FI_BOTH \ 209cdf0e10cSrcweir{ \ 210cdf0e10cSrcweir Pos = MAP_APPFONT ( 134 , 18 ); \ 211cdf0e10cSrcweir Size = MAP_APPFONT ( 18 , 18 ); \ 212cdf0e10cSrcweir}; \ 213cdf0e10cSrcweirFixedImage FI_POSITIVE \ 214cdf0e10cSrcweir{ \ 215cdf0e10cSrcweir Pos = MAP_APPFONT ( 134 , 39 ); \ 216cdf0e10cSrcweir Size = MAP_APPFONT ( 18 , 18 ); \ 217cdf0e10cSrcweir}; \ 218cdf0e10cSrcweirFixedImage FI_NEGATIVE \ 219cdf0e10cSrcweir{ \ 220cdf0e10cSrcweir Pos = MAP_APPFONT ( 134 , 60 ); \ 221cdf0e10cSrcweir Size = MAP_APPFONT ( 18 , 18 ); \ 222cdf0e10cSrcweir}; 223cdf0e10cSrcweir 224cdf0e10cSrcweir#endif 225