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