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