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_LEGEND_HXX
24#define _CHART2_RESOURCE_LEGEND_HXX
25
26#include "HelpIds.hrc"
27#include "res_LegendPosition_IDs.hrc"
28
29#define RESOURCE_LEGENDDISPLAY( xpos , ypos ) \
30CheckBox CBX_SHOWLEGEND \
31{ \
32    HelpID = HID_SCH_LEGEND_SHOW ; \
33    Pos = MAP_APPFONT ( xpos , ypos  ) ; \
34	Size = MAP_APPFONT ( 95 , 12 ) ; \
35	Text [ en-US ] = "~Display legend" ; \
36	TabStop = TRUE ; \
37};
38
39#define RESOURCE_LEGENDPOSITION( xpos , ypos ) \
40RadioButton RBT_LEFT \
41{ \
42    HelpID = HID_SCH_LEGEND_POS_LEFT ; \
43	Pos = MAP_APPFONT ( xpos , ypos  ) ; \
44	Size = MAP_APPFONT ( 75 , 10 ) ; \
45	Text [ en-US ] = "~Left" ; \
46	TabStop = TRUE ; \
47}; \
48RadioButton RBT_RIGHT \
49{ \
50    HelpID = HID_SCH_LEGEND_POS_RIGHT ; \
51	Pos = MAP_APPFONT ( xpos , ypos+14  ) ; \
52	Size = MAP_APPFONT ( 75 , 10 ) ; \
53	Text [ en-US ] = "~Right" ; \
54	TabStop = TRUE ; \
55}; \
56RadioButton RBT_TOP \
57{ \
58    HelpID = HID_SCH_LEGEND_POS_TOP ; \
59	Pos = MAP_APPFONT ( xpos , ypos+28  ) ; \
60	Size = MAP_APPFONT ( 75 , 10 ) ; \
61	Text [ en-US ] = "~Top" ; \
62	TabStop = TRUE ; \
63}; \
64RadioButton RBT_BOTTOM \
65{ \
66    HelpID = HID_SCH_LEGEND_POS_BOTTOM ; \
67	Pos = MAP_APPFONT ( xpos , ypos+42  ) ; \
68	Size = MAP_APPFONT ( 75 , 10 ) ; \
69	Text [ en-US ] = "~Bottom" ; \
70	TabStop = TRUE ; \
71};
72
73// height of RESOURCE_LEGENDPOSITION - don't forget to update when this is changed
74#define RESOURCE_LEGENDPOSITION_HEIGHT 52
75
76#endif
77