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