xref: /AOO41X/main/chart2/source/controller/dialogs/res_DataLabel_tmpl.hrc (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir#ifndef _CHART2_RESOURCE_DATALABEL_HXX
28*cdf0e10cSrcweir#define _CHART2_RESOURCE_DATALABEL_HXX
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#include "HelpIds.hrc"
31*cdf0e10cSrcweir#include "res_DataLabel_IDs.hrc"
32*cdf0e10cSrcweir
33*cdf0e10cSrcweir#define WORKAROUND  \
34*cdf0e10cSrcweir    StringList [ en-US ] = \
35*cdf0e10cSrcweir    { \
36*cdf0e10cSrcweir        "Best fit" ; \
37*cdf0e10cSrcweir        "Center" ; \
38*cdf0e10cSrcweir        "Above" ; \
39*cdf0e10cSrcweir        "Top left" ; \
40*cdf0e10cSrcweir        "Left" ; \
41*cdf0e10cSrcweir        "Bottom left" ; \
42*cdf0e10cSrcweir        "Below" ; \
43*cdf0e10cSrcweir        "Bottom right" ; \
44*cdf0e10cSrcweir        "Right" ; \
45*cdf0e10cSrcweir        "Top right" ; \
46*cdf0e10cSrcweir        "Inside" ; \
47*cdf0e10cSrcweir        "Outside" ; \
48*cdf0e10cSrcweir        "Near origin" ; \
49*cdf0e10cSrcweir    };
50*cdf0e10cSrcweir
51*cdf0e10cSrcweir
52*cdf0e10cSrcweir#define RESOURCE_DATALABEL( xpos, ypos ) \
53*cdf0e10cSrcweirCheckBox CB_VALUE_AS_NUMBER \
54*cdf0e10cSrcweir{ \
55*cdf0e10cSrcweir    HelpID = HID_SCH_DATALABEL_VALUE; \
56*cdf0e10cSrcweir	Pos = MAP_APPFONT ( xpos , ypos  ) ; \
57*cdf0e10cSrcweir	Size = MAP_APPFONT ( 136 , 10 ) ; \
58*cdf0e10cSrcweir	TabStop = TRUE ; \
59*cdf0e10cSrcweir	Text [ en-US ] = "Show value as ~number" ; \
60*cdf0e10cSrcweir};	 \
61*cdf0e10cSrcweirPushButton PB_NUMBERFORMAT \
62*cdf0e10cSrcweir{ \
63*cdf0e10cSrcweir    HelpID = HID_SCH_PB_NUMBERFORMAT; \
64*cdf0e10cSrcweir    TabStop = TRUE ; \
65*cdf0e10cSrcweir    Pos = MAP_APPFONT ( xpos+100 , ypos-3  ) ; \
66*cdf0e10cSrcweir    Size = MAP_APPFONT ( 100 , 14 ) ; \
67*cdf0e10cSrcweir    Text [ en-US ] = "Number ~format..." ; \
68*cdf0e10cSrcweir}; \
69*cdf0e10cSrcweirCheckBox CB_VALUE_AS_PERCENTAGE \
70*cdf0e10cSrcweir{ \
71*cdf0e10cSrcweir    HelpID = HID_SCH_DATALABEL_PERCENT; \
72*cdf0e10cSrcweir	Pos = MAP_APPFONT ( xpos , ypos+17  ) ; \
73*cdf0e10cSrcweir	Size = MAP_APPFONT ( 136 , 10 ) ; \
74*cdf0e10cSrcweir	TabStop = TRUE ; \
75*cdf0e10cSrcweir	Text [ en-US ] = "Show value as ~percentage" ; \
76*cdf0e10cSrcweir};	 \
77*cdf0e10cSrcweirPushButton PB_PERCENT_NUMBERFORMAT \
78*cdf0e10cSrcweir{ \
79*cdf0e10cSrcweir    HelpID = HID_SCH_PB_PERCENT_NUMBERFORMAT; \
80*cdf0e10cSrcweir    TabStop = TRUE ; \
81*cdf0e10cSrcweir    Pos = MAP_APPFONT ( xpos+100 , ypos+17-3  ) ; \
82*cdf0e10cSrcweir    Size = MAP_APPFONT ( 100 , 14 ) ; \
83*cdf0e10cSrcweir    Text [ en-US ] = "Percentage f~ormat..." ; \
84*cdf0e10cSrcweir}; \
85*cdf0e10cSrcweirCheckBox CB_CATEGORY \
86*cdf0e10cSrcweir{ \
87*cdf0e10cSrcweir    HelpID = HID_SCH_DATALABEL_TEXT; \
88*cdf0e10cSrcweir	Pos  = MAP_APPFONT ( xpos , ypos+33  ); \
89*cdf0e10cSrcweir	Size = MAP_APPFONT ( 254 , 10 ); \
90*cdf0e10cSrcweir    TabStop = TRUE; \
91*cdf0e10cSrcweir	Text [ en-US ] = "Show ~category"; \
92*cdf0e10cSrcweir}; \
93*cdf0e10cSrcweirCheckBox CB_SYMBOL \
94*cdf0e10cSrcweir{ \
95*cdf0e10cSrcweir    HelpID = HID_SCH_DATALABEL_SYMBOL; \
96*cdf0e10cSrcweir	Pos  = MAP_APPFONT ( xpos , ypos+49  ) ; \
97*cdf0e10cSrcweir	Size = MAP_APPFONT ( 254 , 10 ) ; \
98*cdf0e10cSrcweir    TabStop = TRUE ; \
99*cdf0e10cSrcweir	Text [ en-US ] = "Show ~legend key" ; \
100*cdf0e10cSrcweir}; \
101*cdf0e10cSrcweirFixedText FT_LABEL_PLACEMENT \
102*cdf0e10cSrcweir{ \
103*cdf0e10cSrcweir	Pos  = MAP_APPFONT ( xpos , ypos+84  ) ; \
104*cdf0e10cSrcweir	Size = MAP_APPFONT ( 182 , 10 ) ; \
105*cdf0e10cSrcweir	TabStop = FALSE ; \
106*cdf0e10cSrcweir	Text [ en-US ] = "Place~ment"; \
107*cdf0e10cSrcweir}; \
108*cdf0e10cSrcweirListBox LB_LABEL_PLACEMENT \
109*cdf0e10cSrcweir{ \
110*cdf0e10cSrcweir    HelpID = HID_SCH_DATALABEL_PLACEMENT; \
111*cdf0e10cSrcweir    Border = TRUE ; \
112*cdf0e10cSrcweir    AutoHScroll = TRUE ; \
113*cdf0e10cSrcweir    Pos = MAP_APPFONT ( xpos+100 , ypos+82 ) ; \
114*cdf0e10cSrcweir    Size = MAP_APPFONT ( 89 , 12 ) ; \
115*cdf0e10cSrcweir    TabStop = TRUE ; \
116*cdf0e10cSrcweir    Group = TRUE ; \
117*cdf0e10cSrcweir    DropDown=TRUE; \
118*cdf0e10cSrcweir    DDExtraWidth = TRUE ; \
119*cdf0e10cSrcweir    WORKAROUND          \
120*cdf0e10cSrcweir}; \
121*cdf0e10cSrcweirFixedLine FL_LABEL_ROTATE \
122*cdf0e10cSrcweir{ \
123*cdf0e10cSrcweir    Pos = MAP_APPFONT ( xpos, ypos+103 ) ; \
124*cdf0e10cSrcweir    Size = MAP_APPFONT ( 248, 8 ) ; \
125*cdf0e10cSrcweir    Text [ en-US ] = "Rotate Text" ; \
126*cdf0e10cSrcweir}; \
127*cdf0e10cSrcweirControl CT_LABEL_DIAL \
128*cdf0e10cSrcweir{ \
129*cdf0e10cSrcweir    HelpId = HID_SCH_DATALABEL_ROTATION_KNOB ; \
130*cdf0e10cSrcweir    Pos = MAP_APPFONT ( xpos+6 , ypos+116 ) ; \
131*cdf0e10cSrcweir    Size = MAP_APPFONT ( 43 , 43 ) ; \
132*cdf0e10cSrcweir    Text = "ABCD" ; \
133*cdf0e10cSrcweir}; \
134*cdf0e10cSrcweirFixedText FT_LABEL_DEGREES \
135*cdf0e10cSrcweir{ \
136*cdf0e10cSrcweir    Pos = MAP_APPFONT ( xpos+87 , ypos+133  ) ; \
137*cdf0e10cSrcweir    Size = MAP_APPFONT ( 46, 8 ) ; \
138*cdf0e10cSrcweir    Text [ en-US ] = "~Degrees" ; \
139*cdf0e10cSrcweir}; \
140*cdf0e10cSrcweirNumericField NF_LABEL_DEGREES \
141*cdf0e10cSrcweir{ \
142*cdf0e10cSrcweir    HelpId = HID_SCH_DATALABEL_ROTATION_EDIT ; \
143*cdf0e10cSrcweir    Pos = MAP_APPFONT ( xpos+55 , ypos+131 ) ; \
144*cdf0e10cSrcweir    Size = MAP_APPFONT ( 28 , 12 ) ; \
145*cdf0e10cSrcweir    Border = TRUE ; \
146*cdf0e10cSrcweir    TabStop = TRUE ; \
147*cdf0e10cSrcweir    Repeat = TRUE ; \
148*cdf0e10cSrcweir    Spin = TRUE ; \
149*cdf0e10cSrcweir    Minimum = 0 ; \
150*cdf0e10cSrcweir    Maximum = 359 ; \
151*cdf0e10cSrcweir    SpinSize = 5 ; \
152*cdf0e10cSrcweir}; \
153*cdf0e10cSrcweirFixedText FT_LABEL_TEXTDIR \
154*cdf0e10cSrcweir{ \
155*cdf0e10cSrcweir    Pos = MAP_APPFONT ( xpos , ypos+162 ) ; \
156*cdf0e10cSrcweir    Size = MAP_APPFONT ( 64 , 8 ) ; \
157*cdf0e10cSrcweir    Text [ en-US ] = "Te~xt direction" ; \
158*cdf0e10cSrcweir}; \
159*cdf0e10cSrcweirListBox LB_LABEL_TEXTDIR \
160*cdf0e10cSrcweir{ \
161*cdf0e10cSrcweir    HelpID = HID_SCH_TEXTDIRECTION; \
162*cdf0e10cSrcweir    Pos = MAP_APPFONT ( xpos+66 , ypos+160 ) ; \
163*cdf0e10cSrcweir    Size = MAP_APPFONT ( 170 , 100 ) ; \
164*cdf0e10cSrcweir    Border = TRUE; \
165*cdf0e10cSrcweir    TabStop = TRUE; \
166*cdf0e10cSrcweir    DropDown = TRUE; \
167*cdf0e10cSrcweir};
168*cdf0e10cSrcweir
169*cdf0e10cSrcweir#endif
170