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_DATALABEL_HXX 24#define _CHART2_RESOURCE_DATALABEL_HXX 25 26#include "HelpIds.hrc" 27#include "res_DataLabel_IDs.hrc" 28 29#define WORKAROUND \ 30 StringList [ en-US ] = \ 31 { \ 32 "Best fit" ; \ 33 "Center" ; \ 34 "Above" ; \ 35 "Top left" ; \ 36 "Left" ; \ 37 "Bottom left" ; \ 38 "Below" ; \ 39 "Bottom right" ; \ 40 "Right" ; \ 41 "Top right" ; \ 42 "Inside" ; \ 43 "Outside" ; \ 44 "Near origin" ; \ 45 }; 46 47 48#define RESOURCE_DATALABEL( xpos, ypos ) \ 49CheckBox CB_VALUE_AS_NUMBER \ 50{ \ 51 HelpID = HID_SCH_DATALABEL_VALUE; \ 52 Pos = MAP_APPFONT ( xpos , ypos ) ; \ 53 Size = MAP_APPFONT ( 136 , 10 ) ; \ 54 TabStop = TRUE ; \ 55 Text [ en-US ] = "Show value as ~number" ; \ 56}; \ 57PushButton PB_NUMBERFORMAT \ 58{ \ 59 HelpID = HID_SCH_PB_NUMBERFORMAT; \ 60 TabStop = TRUE ; \ 61 Pos = MAP_APPFONT ( xpos+100 , ypos-3 ) ; \ 62 Size = MAP_APPFONT ( 100 , 14 ) ; \ 63 Text [ en-US ] = "Number ~format..." ; \ 64}; \ 65CheckBox CB_VALUE_AS_PERCENTAGE \ 66{ \ 67 HelpID = HID_SCH_DATALABEL_PERCENT; \ 68 Pos = MAP_APPFONT ( xpos , ypos+17 ) ; \ 69 Size = MAP_APPFONT ( 136 , 10 ) ; \ 70 TabStop = TRUE ; \ 71 Text [ en-US ] = "Show value as ~percentage" ; \ 72}; \ 73PushButton PB_PERCENT_NUMBERFORMAT \ 74{ \ 75 HelpID = HID_SCH_PB_PERCENT_NUMBERFORMAT; \ 76 TabStop = TRUE ; \ 77 Pos = MAP_APPFONT ( xpos+100 , ypos+17-3 ) ; \ 78 Size = MAP_APPFONT ( 100 , 14 ) ; \ 79 Text [ en-US ] = "Percentage f~ormat..." ; \ 80}; \ 81CheckBox CB_CATEGORY \ 82{ \ 83 HelpID = HID_SCH_DATALABEL_TEXT; \ 84 Pos = MAP_APPFONT ( xpos , ypos+33 ); \ 85 Size = MAP_APPFONT ( 254 , 10 ); \ 86 TabStop = TRUE; \ 87 Text [ en-US ] = "Show ~category"; \ 88}; \ 89CheckBox CB_SYMBOL \ 90{ \ 91 HelpID = HID_SCH_DATALABEL_SYMBOL; \ 92 Pos = MAP_APPFONT ( xpos , ypos+49 ) ; \ 93 Size = MAP_APPFONT ( 254 , 10 ) ; \ 94 TabStop = TRUE ; \ 95 Text [ en-US ] = "Show ~legend key" ; \ 96}; \ 97FixedText FT_LABEL_PLACEMENT \ 98{ \ 99 Pos = MAP_APPFONT ( xpos , ypos+84 ) ; \ 100 Size = MAP_APPFONT ( 182 , 10 ) ; \ 101 TabStop = FALSE ; \ 102 Text [ en-US ] = "Place~ment"; \ 103}; \ 104ListBox LB_LABEL_PLACEMENT \ 105{ \ 106 HelpID = HID_SCH_DATALABEL_PLACEMENT; \ 107 Border = TRUE ; \ 108 AutoHScroll = TRUE ; \ 109 Pos = MAP_APPFONT ( xpos+100 , ypos+82 ) ; \ 110 Size = MAP_APPFONT ( 89 , 12 ) ; \ 111 TabStop = TRUE ; \ 112 Group = TRUE ; \ 113 DropDown=TRUE; \ 114 DDExtraWidth = TRUE ; \ 115 WORKAROUND \ 116}; \ 117FixedLine FL_LABEL_ROTATE \ 118{ \ 119 Pos = MAP_APPFONT ( xpos, ypos+103 ) ; \ 120 Size = MAP_APPFONT ( 248, 8 ) ; \ 121 Text [ en-US ] = "Rotate Text" ; \ 122}; \ 123Control CT_LABEL_DIAL \ 124{ \ 125 HelpId = HID_SCH_DATALABEL_ROTATION_KNOB ; \ 126 Pos = MAP_APPFONT ( xpos+6 , ypos+116 ) ; \ 127 Size = MAP_APPFONT ( 43 , 43 ) ; \ 128 Text = "ABCD" ; \ 129}; \ 130FixedText FT_LABEL_DEGREES \ 131{ \ 132 Pos = MAP_APPFONT ( xpos+87 , ypos+133 ) ; \ 133 Size = MAP_APPFONT ( 46, 8 ) ; \ 134 Text [ en-US ] = "~Degrees" ; \ 135}; \ 136NumericField NF_LABEL_DEGREES \ 137{ \ 138 HelpId = HID_SCH_DATALABEL_ROTATION_EDIT ; \ 139 Pos = MAP_APPFONT ( xpos+55 , ypos+131 ) ; \ 140 Size = MAP_APPFONT ( 28 , 12 ) ; \ 141 Border = TRUE ; \ 142 TabStop = TRUE ; \ 143 Repeat = TRUE ; \ 144 Spin = TRUE ; \ 145 Minimum = 0 ; \ 146 Maximum = 359 ; \ 147 SpinSize = 5 ; \ 148}; \ 149FixedText FT_LABEL_TEXTDIR \ 150{ \ 151 Pos = MAP_APPFONT ( xpos , ypos+162 ) ; \ 152 Size = MAP_APPFONT ( 64 , 8 ) ; \ 153 Text [ en-US ] = "Te~xt direction" ; \ 154}; \ 155ListBox LB_LABEL_TEXTDIR \ 156{ \ 157 HelpID = HID_SCH_TEXTDIRECTION; \ 158 Pos = MAP_APPFONT ( xpos+66 , ypos+160 ) ; \ 159 Size = MAP_APPFONT ( 170 , 100 ) ; \ 160 Border = TRUE; \ 161 TabStop = TRUE; \ 162 DropDown = TRUE; \ 163}; 164 165#endif 166