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