xref: /trunk/main/cui/source/tabpages/numfmt.src (revision d8dff77764cb74143fabc617dc8ee25d946bae78)
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
24// include ---------------------------------------------------------------
25#include <cuires.hrc>
26#include "helpid.hrc"
27#include "numfmt.hrc"
28#include <svx/dialogs.hrc>
29
30// RID_SVXPAGE_NUMBERFORMAT ----------------------------------------------
31TabPage RID_SVXPAGE_NUMBERFORMAT
32{
33    HelpId = HID_NUMBERFORMAT ;
34    Hide = TRUE ;
35    Text [ en-US ] = "Number Format" ;
36    Size = MAP_APPFONT ( 260, 185 ) ;
37    FixedText FT_CATEGORY
38    {
39        Pos = MAP_APPFONT ( 6, 3 ) ;
40        Size = MAP_APPFONT ( 70, 8 ) ;
41        Text [ en-US ] = "~Category" ;
42    };
43    ListBox LB_CATEGORY
44    {
45        HelpID = "cui:ListBox:RID_SVXPAGE_NUMBERFORMAT:LB_CATEGORY" ;
46        Border = TRUE ;
47        Pos = MAP_APPFONT ( 6, 14 ) ;
48        Size = MAP_APPFONT ( 70, 71 ) ;
49        AutoHScroll = TRUE ;
50        StringList [ en-US ] =
51        {
52            < "All" ; Default ;             > ;
53            < "User-defined" ; Default ;    > ;
54            < "Number" ; Default ;          > ;
55            < "Percent" ; Default ;         > ;
56            < "Currency" ; Default ;        > ;
57            < "Date" ; Default ;            > ;
58            < "Time" ; Default ;            > ;
59            < "Scientific" ; Default ;      > ;
60            < "Fraction" ; Default ;        > ;
61            < "Boolean Value" ; Default ;   > ;
62            < "Text" ; Default ;            > ;
63        };
64    };
65    FixedText FT_EDFORMAT
66    {
67        Pos = MAP_APPFONT ( 6, 136 ) ;
68        Size = MAP_APPFONT ( 248, 8 ) ;
69        Text [ en-US ] = "~Format code" ;
70    };
71    Edit ED_FORMAT
72    {
73        HelpID = "cui:Edit:RID_SVXPAGE_NUMBERFORMAT:ED_FORMAT" ;
74        Border = TRUE ;
75        Pos = MAP_APPFONT ( 6, 147 ) ;
76        Size = MAP_APPFONT ( 200, 12 ) ;
77    };
78    FixedText FT_COMMENT
79    {
80        Pos = MAP_APPFONT ( 6, 163 ) ;
81        Size = MAP_APPFONT ( 248, 16 ) ;
82        WordBreak = TRUE ;
83        NoLabel = TRUE ;
84    };
85    Edit ED_COMMENT
86    {
87        HelpID = "cui:Edit:RID_SVXPAGE_NUMBERFORMAT:ED_COMMENT" ;
88        Hide = TRUE ;
89        Border = TRUE ;
90        Pos = MAP_APPFONT ( 6, 163 ) ;
91        Size = MAP_APPFONT ( 248, 12 ) ;
92    };
93    FixedText FT_FORMAT
94    {
95        Pos = MAP_APPFONT ( 82, 3 ) ;
96        Size = MAP_APPFONT ( 90, 8 ) ;
97        Text [ en-US ] = "F~ormat" ;
98    };
99
100    ListBox LB_CURRENCY
101    {
102        HelpID = "cui:ListBox:RID_SVXPAGE_NUMBERFORMAT:LB_CURRENCY" ;
103        Border = TRUE ;
104        Pos = MAP_APPFONT ( 82, 14 ) ;
105        Size = MAP_APPFONT ( 90, 71 ) ;
106        DropDown = TRUE ;
107        TabStop = TRUE ;
108        StringList [ en-US ] =
109        {
110            < "Automatically" ; Default ;   > ;
111        };
112    };
113
114    Control LB_FORMAT
115    {
116        HelpId = HID_NUMBERFORMAT_LB_FORMAT ;
117        Border = TRUE ;
118        Pos = MAP_APPFONT ( 82, 27 ) ;
119        Size = MAP_APPFONT ( 90, 58 ) ;
120        TabStop = TRUE ;
121    };
122
123    FixedText FT_DECIMALS
124    {
125        Pos = MAP_APPFONT ( 12, 104 ) ;
126        Size = MAP_APPFONT ( 69, 8 ) ;
127        Text [ en-US ] = "~Decimal places" ;
128    };
129    NumericField ED_DECIMALS
130    {
131        HelpID = "cui:NumericField:RID_SVXPAGE_NUMBERFORMAT:ED_DECIMALS" ;
132        Border = TRUE ;
133        Pos = MAP_APPFONT ( 84, 102 ) ;
134        Size = MAP_APPFONT ( 24, 12 ) ;
135        Spin = TRUE ;
136        Maximum = 20 ;
137        Last = 15 ;
138        First = 0 ;
139        StrictFormat = TRUE ;
140        SpinSize = 1 ;
141        Repeat = TRUE ;
142    };
143    FixedText FT_LEADZEROES
144    {
145        Pos = MAP_APPFONT ( 12, 120 ) ;
146        Size = MAP_APPFONT ( 69, 8 ) ;
147        Text [ en-US ] = "Leading ~zeroes" ;
148    };
149    NumericField ED_LEADZEROES
150    {
151        HelpID = "cui:NumericField:RID_SVXPAGE_NUMBERFORMAT:ED_LEADZEROES" ;
152        Border = TRUE ;
153        Pos = MAP_APPFONT ( 84, 118 ) ;
154        Size = MAP_APPFONT ( 24, 12 ) ;
155        Spin = TRUE ;
156        Maximum = 20 ;
157        Last = 15 ;
158        First = 0 ;
159        StrictFormat = TRUE ;
160        SpinSize = 1 ;
161        Repeat = TRUE ;
162    };
163    CheckBox BTN_NEGRED
164    {
165        HelpID = "cui:CheckBox:RID_SVXPAGE_NUMBERFORMAT:BTN_NEGRED" ;
166        Pos = MAP_APPFONT ( 133, 104 ) ;
167        Size = MAP_APPFONT ( 100, 10 ) ;
168        Text [ en-US ] = "~Negative numbers red" ;
169    };
170    CheckBox BTN_THOUSAND
171    {
172        HelpID = "cui:CheckBox:RID_SVXPAGE_NUMBERFORMAT:BTN_THOUSAND" ;
173        Pos = MAP_APPFONT ( 133, 120 ) ;
174        Size = MAP_APPFONT ( 100, 10 ) ;
175        Text [ en-US ] = "~Thousands separator" ;
176    };
177    FixedLine FL_OPTIONS
178    {
179        Pos = MAP_APPFONT ( 6, 91 ) ;
180        Size = MAP_APPFONT ( 248, 8 ) ;
181        Text [ en-US ] = "Options" ;
182    };
183    FixedText FT_LANGUAGE
184    {
185        Pos = MAP_APPFONT ( 178, 3 ) ;
186        Size = MAP_APPFONT ( 76, 8 ) ;
187        Text [ en-US ] = "~Language" ;
188    };
189    ListBox LB_LANGUAGE
190    {
191        HelpID = "cui:ListBox:RID_SVXPAGE_NUMBERFORMAT:LB_LANGUAGE" ;
192        Border = TRUE ;
193        Sort = TRUE ;
194        Pos = MAP_APPFONT ( 178, 14 ) ;
195        Size = MAP_APPFONT ( 76, 71 ) ;
196        DropDown = TRUE ;
197    };
198    CheckBox CB_SOURCEFORMAT
199    {
200        HelpID = "cui:CheckBox:RID_SVXPAGE_NUMBERFORMAT:CB_SOURCEFORMAT" ;
201        Pos = MAP_APPFONT ( 178, 42 ) ;
202        Size = MAP_APPFONT ( 76, 10 ) ;
203        Text [ en-US ] = "So~urce format" ;
204    };
205    Window WND_NUMBER_PREVIEW
206    {
207        Border = TRUE ;
208        SVLook = TRUE ;
209        Pos = MAP_APPFONT ( 178, 67 ) ;
210        Size = MAP_APPFONT ( 76, 18 ) ;
211        HelpId = HID_NUMBERFORMAT_WND_NUMBER_PREVIEW ;
212    };
213    ImageButton IB_ADD
214    {
215        SVLook = TRUE ;
216        Pos = MAP_APPFONT ( 208, 146 ) ;
217        Size = MAP_APPFONT ( 14, 14 ) ;
218        HelpId = HID_NUMBERFORMAT_TBI_ADD ;
219        QuickHelpText [ en-US ] = "Add" ;
220    };
221    ImageButton IB_REMOVE
222    {
223        SVLook = TRUE ;
224        Pos = MAP_APPFONT ( 240, 146 ) ;
225        Size = MAP_APPFONT ( 14, 14 ) ;
226        HelpId = HID_NUMBERFORMAT_TBI_REMOVE ;
227        QuickHelpText [ en-US ] = "Remove" ;
228    };
229    ImageButton IB_INFO
230    {
231        SVLook = TRUE ;
232        Pos = MAP_APPFONT ( 224, 146 ) ;
233        Size = MAP_APPFONT ( 14, 14 ) ;
234        HelpId = HID_NUMBERFORMAT_TBI_INFO ;
235        QuickHelpText [ en-US ] = "Edit Comment" ;
236    };
237    ImageList IL_ICON
238    {
239        Prefix = "nu" ;
240        MaskColor = Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; };
241        IdList =
242        {
243            IID_ADD ;
244            IID_REMOVE ;
245            IID_INFO ;
246        };
247        IdCount = { 3 ; };
248    };
249    ImageList IL_ICON_HC
250    {
251        Prefix = "nuh" ;
252        MaskColor = Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; };
253        IdList =
254        {
255            IID_ADD ;
256            IID_REMOVE ;
257            IID_INFO ;
258        };
259        IdCount = { 3 ; };
260    };
261
262    String STR_AUTO_ENTRY
263    {
264        Text [ en-US ] = "Automatic" ;
265    };
266
267};
268
269// ********************************************************************** EOF
270