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_ERRORBARS_HXX 24#define _CHART2_RESOURCE_ERRORBARS_HXX 25 26#include "res_ErrorBar_IDs.hrc" 27#define WORKAROUND \ 28StringList [ en-US ] = \ 29 { \ 30 < "Standard Error" ; CHART_LB_FUNCTION_STD_ERROR ; >; \ 31 < "Standard Deviation" ; CHART_LB_FUNCTION_STD_DEV ; >; \ 32 < "Variance" ; CHART_LB_FUNCTION_VARIANCE ; >; \ 33 < "Error Margin" ; CHART_LB_FUNCTION_ERROR_MARGIN ; >; \ 34 }; 35 36 37#define RESOURCE_ERRORBARS(availablewidth, yoffset) \ 38FixedLine FL_ERROR \ 39{ \ 40 Pos = MAP_APPFONT ( 6 , 6 ) ; \ 41 Size = MAP_APPFONT ( 116 , 8 ) ; \ 42 Text [ en-US ] = "Error Category" ; \ 43}; \ 44RadioButton RB_NONE \ 45{ \ 46 HelpID = HID_SCH_STATISTIK_NO_ERROR; \ 47 Pos = MAP_APPFONT ( 12 , 20 ) ; \ 48 Size = MAP_APPFONT ( 110 , 10 ) ; \ 49 Text [ en-US ] = "~None" ; \ 50 TabStop = TRUE ; \ 51}; \ 52RadioButton RB_CONST \ 53{ \ 54 HelpID = HID_SCH_STATISTIK_CONSTERROR; \ 55 Pos = MAP_APPFONT ( 12 , 20 + yoffset ) ; \ 56 Size = MAP_APPFONT ( 110 , 10 ) ; \ 57 Text [ en-US ] = "~Constant Value" ; \ 58 TabStop = TRUE ; \ 59}; \ 60RadioButton RB_PERCENT \ 61{ \ 62 HelpID = HID_SCH_STATISTIK_PERCENT; \ 63 Pos = MAP_APPFONT ( 12 , 34 + yoffset ) ; \ 64 Size = MAP_APPFONT ( 110 , 10 ) ; \ 65 Text [ en-US ] = "~Percentage" ; \ 66 TabStop = TRUE ; \ 67}; \ 68RadioButton RB_FUNCTION \ 69{ \ 70 HelpID = HID_SCH_STATISTIK_FUNCTION; \ 71 Pos = MAP_APPFONT ( 12 , 48 + yoffset ) ; \ 72 Size = MAP_APPFONT ( 12 , 10 ) ; \ 73 Text [ en-US ] = "" ; \ 74 TabStop = TRUE ; \ 75}; \ 76RadioButton RB_RANGE \ 77{ \ 78 HelpID = HID_SCH_STATISTIK_RANGE; \ 79 Pos = MAP_APPFONT( 12, 62 + yoffset ) ; \ 80 Size = MAP_APPFONT( 110, 10 ) ; \ 81 Text [ en-US ] = "Cell ~Range" ; \ 82 TabStop = TRUE ; \ 83}; \ 84ListBox LB_FUNCTION \ 85{ \ 86 HelpID = HID_SCH_STATISTIK_FUNCTION_LB; \ 87 Pos = MAP_APPFONT ( 22 , 46 + yoffset ) ; \ 88 Size = MAP_APPFONT ( 94 , 59 ) ; \ 89 DropDown = TRUE; \ 90 Border = TRUE; \ 91 WORKAROUND\ 92}; \ 93FixedLine FL_PARAMETERS \ 94{ \ 95 Pos = MAP_APPFONT ( 6 , 82 + yoffset ) ; \ 96 Size = MAP_APPFONT ( availablewidth - 12, 8 ) ; \ 97 Text [ en-US ] = "Parameters" ; \ 98}; \ 99FixedText FT_POSITIVE \ 100{ \ 101 Pos = MAP_APPFONT ( 12 , 94 + yoffset ) ; \ 102 Size = MAP_APPFONT ( 46 , 8 ) ; \ 103 Text [ en-US ] = "P~ositive (+)"; \ 104}; \ 105MetricField MF_POSITIVE \ 106{ \ 107 HelpID = HID_SCH_STATISTIK_POSITIVE_VALUE; \ 108 Border = TRUE ; \ 109 Pos = MAP_APPFONT ( 60 , 92 + yoffset ) ; \ 110 Size = MAP_APPFONT ( 56 , 12 ) ; \ 111 TabStop = TRUE ; \ 112 Repeat = TRUE ; \ 113 Spin = TRUE ; \ 114 Minimum = 0 ; \ 115 StrictFormat = TRUE ; \ 116 Unit = FUNIT_CUSTOM ; \ 117 SpinSize = 100 ; \ 118 DecimalDigits = 2 ; \ 119}; \ 120Edit ED_RANGE_POSITIVE \ 121{ \ 122 HelpID = HID_SCH_STATISTIK_POSITIVE_RANGE; \ 123 Border = TRUE ; \ 124 Hide = TRUE; \ 125 Pos = MAP_APPFONT ( 60 , 92 + yoffset ) ; \ 126 Size = MAP_APPFONT ( 90 , 12 ) ; \ 127}; \ 128ImageButton IB_RANGE_POSITIVE \ 129{ \ 130 HelpID = HID_SCH_STATISTIK_POSITIVE_RANGE_CHOOSER; \ 131 Hide = TRUE; \ 132 Pos = MAP_APPFONT ( 152 , 91 + yoffset ) ; \ 133 Size = MAP_APPFONT ( 14 , 14 ) ; \ 134 TabStop = TRUE ; \ 135}; \ 136FixedText FT_NEGATIVE \ 137{ \ 138 Pos = MAP_APPFONT ( 12 , 110 + yoffset ) ; \ 139 Size = MAP_APPFONT ( 46 , 8 ) ; \ 140 Text [ en-US ] = "~Negative (-)"; \ 141}; \ 142MetricField MF_NEGATIVE \ 143{ \ 144 HelpID = HID_SCH_STATISTIK_NEGATIVE_VALUE; \ 145 Border = TRUE ; \ 146 Pos = MAP_APPFONT ( 60 , 108 + yoffset ) ; \ 147 Size = MAP_APPFONT ( 56 , 12 ) ; \ 148 TabStop = TRUE ; \ 149 Repeat = TRUE ; \ 150 Spin = TRUE ; \ 151 Minimum = 0 ; \ 152 StrictFormat = TRUE ; \ 153 Unit = FUNIT_CUSTOM ; \ 154 SpinSize = 100 ; \ 155 DecimalDigits = 2 ; \ 156}; \ 157Edit ED_RANGE_NEGATIVE \ 158{ \ 159 HelpID = HID_SCH_STATISTIK_NEGATIVE_RANGE; \ 160 Border = TRUE ; \ 161 Hide = TRUE; \ 162 Pos = MAP_APPFONT ( 60 , 108 + yoffset ) ; \ 163 Size = MAP_APPFONT ( 90 , 12 ) ; \ 164}; \ 165ImageButton IB_RANGE_NEGATIVE \ 166{ \ 167 HelpID = HID_SCH_STATISTIK_NEGATIVE_RANGE_CHOOSER; \ 168 Hide = TRUE; \ 169 Pos = MAP_APPFONT ( 152 , 107 + yoffset ) ; \ 170 Size = MAP_APPFONT ( 14 , 14 ) ; \ 171 TabStop = TRUE ; \ 172}; \ 173CheckBox CB_SYN_POS_NEG \ 174{ \ 175 HelpID = HID_SCH_STATISTIK_SAME_FOR_BOTH; \ 176 Pos = MAP_APPFONT ( 12 , 126 + yoffset ); \ 177 Size = MAP_APPFONT ( availablewidth - 12 , 10 ); \ 178 TabStop = TRUE; \ 179 Text[ en-US ] = "Same value for both"; \ 180}; \ 181FixedLine FL_INDICATE \ 182{ \ 183 Pos = MAP_APPFONT ( 130 , 6 ) ; \ 184 Size = MAP_APPFONT ( availablewidth - 136 , 8 ) ; \ 185 Text [ en-US ] = "Error Indicator" ; \ 186}; \ 187RadioButton RB_BOTH \ 188{ \ 189 HelpID = HID_SCH_STATISTIK_SHOW_BOTH; \ 190 Pos = MAP_APPFONT ( 154 , 22 ); \ 191 Size = MAP_APPFONT ( 90 , 10 ); \ 192 Text[ en-US ] = "Positive ~and Negative"; \ 193}; \ 194RadioButton RB_POSITIVE \ 195{ \ 196 HelpID = HID_SCH_STATISTIK_SHOW_POSITIVE; \ 197 Pos = MAP_APPFONT ( 154 , 43 ); \ 198 Size = MAP_APPFONT ( 90 , 10 ); \ 199 Text[ en-US ] = "Pos~itive"; \ 200}; \ 201RadioButton RB_NEGATIVE \ 202{ \ 203 HelpID = HID_SCH_STATISTIK_SHOW_NEGATIVE; \ 204 Pos = MAP_APPFONT ( 154 , 64 ); \ 205 Size = MAP_APPFONT ( 90 , 10 ); \ 206 Text[ en-US ] = "Ne~gative"; \ 207}; \ 208FixedImage FI_BOTH \ 209{ \ 210 Pos = MAP_APPFONT ( 134 , 18 ); \ 211 Size = MAP_APPFONT ( 18 , 18 ); \ 212}; \ 213FixedImage FI_POSITIVE \ 214{ \ 215 Pos = MAP_APPFONT ( 134 , 39 ); \ 216 Size = MAP_APPFONT ( 18 , 18 ); \ 217}; \ 218FixedImage FI_NEGATIVE \ 219{ \ 220 Pos = MAP_APPFONT ( 134 , 60 ); \ 221 Size = MAP_APPFONT ( 18 , 18 ); \ 222}; 223 224#endif 225