xref: /trunk/main/sc/source/ui/sidebar/NumberFormatPropertyPanel.src (revision 872b2513907e4389be70e2d9b563f47e0d2c5a9f)
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 "NumberFormatPropertyPanel.hrc"
25#include <sfx2/sidebar/ResourceDefinitions.hrc>
26#include "sc.hrc"
27#include "helpids.h"
28
29Control RID_PROPERTYPANEL_SC_NUMBERFORMAT
30{
31    OutputSize = TRUE ;
32    DialogControl = TRUE ;
33    Border = FALSE ;
34
35    Size = MAP_APPFONT ( PROPERTYPAGE_WIDTH, PROPERTYPAGE_HEIGHT ) ;
36    HelpID = HID_PROPERTYPANEL_SC_NUM_SECTION ;
37    Text = "Number Format" ;
38
39    FixedText FT_CATEGORY
40    {
41        Pos = MAP_APPFONT ( FT_CATEGORY_X, FT_CATEGORY_Y ) ;
42        Size = MAP_APPFONT ( MBOX_WIDTH * 4, TEXT_HEIGHT ) ;
43        Text [ en-US ] = "~Category:" ;
44    };
45    ListBox LB_CATEGORY
46    {
47        Border = TRUE ;
48        Pos = MAP_APPFONT ( LB_CATEGORY_X, LB_CATEGORY_Y ) ;
49        Size = MAP_APPFONT ( MBOX_WIDTH * 2, MBOX_HEIGHT ) ;
50        HelpID = HID_PROPERTY_PANEL_NUMFMT_LB_CATEGORY ;
51        QuickHelpText [ en-US ] = "Select a category of contents." ;
52        TabStop = TRUE ;
53        DropDown = TRUE ;
54        StringList [ en-US ] =
55        {
56            < "General" ; Default ; > ;
57            < "Number" ;            > ;
58            < "Percent" ;           > ;
59            < "Currency" ;          > ;
60            < "Date" ;              > ;
61            < "Time" ;              > ;
62            < "Scientific" ;        > ;
63            < "Fraction" ;          > ;
64            < "Boolean Value" ;     > ;
65            < "Text" ;              > ;
66        };
67    };
68    ToolBox TBX_CATEGORY
69    {
70        Pos = MAP_APPFONT ( TBX_CATEGORY_X, TBX_CATEGORY_Y ) ;
71        SVLook = TRUE ;
72        Border = FALSE ;
73        HelpID = HID_PROPERTY_PANEL_NUMFMT_TBX_CATEGORY ;
74        Text = "Format" ;
75        ItemList =
76        {
77            ToolBoxItem
78            {
79                Identifier = ID_NUMBER ;
80                Text [ en-US ] = "Number" ;
81                HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_NUMBER;
82            };
83            ToolBoxItem
84            {
85                Identifier = ID_PERCENT ;
86                Text [ en-US ] = "Percent" ;
87                HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_PERCENT ;
88            };
89            ToolBoxItem
90            {
91                Identifier = ID_CURRENCY ;
92                Text [ en-US ] = "Currency" ;
93                HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_CURRENCY ;
94            };
95            ToolBoxItem
96            {
97                Identifier = ID_DATE ;
98                Text [ en-US ] = "Date" ;
99                HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_DATE ;
100            };
101            ToolBoxItem
102            {
103                Identifier = ID_TEXT ;
104                Text [ en-US ] = "Text" ;
105                HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_TEXT ;
106            };
107        };
108    };
109    FixedText FT_DECIMALS
110    {
111        Pos = MAP_APPFONT ( FT_DECIMALS_X, FT_DECIMALS_Y ) ;
112        Size = MAP_APPFONT ( MBOX_WIDTH * 2, TEXT_HEIGHT ) ;
113        Text [ en-US ] = "~Decimal places:" ;
114    };
115    NumericField ED_DECIMALS
116    {
117        Border = TRUE ;
118        Pos = MAP_APPFONT ( LB_DECIMALS_X, LB_DECIMALS_Y ) ;
119        Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
120        HelpID = HID_PROPERTY_PANEL_NUMFMT_ED_DECIMALS ;
121        QuickHelpText [ en-US ] = "Enter the number of decimal places that you want to display." ;
122        Spin = TRUE ;
123        Maximum = 20 ;
124        Last = 15 ;
125        First = 0 ;
126        StrictFormat = TRUE ;
127        SpinSize = 1 ;
128        Repeat = TRUE ;
129    };
130    FixedText FT_LEADZEROES
131    {
132        Pos = MAP_APPFONT ( FT_LEADZEROES_X, FT_LEADZEROES_Y ) ;
133        Size = MAP_APPFONT (PROPERTYPAGE_WIDTH - MBOX_WIDTH * 2 - SECTIONPAGE_MARGIN_HORIZONTAL * 2, TEXT_HEIGHT ) ;
134        Text [ en-US ] = "Leading ~zeroes:" ;
135    };
136    NumericField ED_LEADZEROES
137    {
138        Border = TRUE ;
139        Pos = MAP_APPFONT ( LB_LEADZEROES_X, LB_LEADZEROES_Y ) ;
140        Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
141        HelpID = HID_PROPERTY_PANEL_NUMFMT_ED_LEADZEROES ;
142        QuickHelpText [ en-US ] = "Enter the maximum number of zeroes to display before the decimal point." ;
143        Spin = TRUE ;
144        Maximum = 20 ;
145        Last = 15 ;
146        First = 0 ;
147        StrictFormat = TRUE ;
148        SpinSize = 1 ;
149        Repeat = TRUE ;
150    };
151    CheckBox BTN_NEGRED
152    {
153        Pos = MAP_APPFONT ( BTN_NEGRED_X, BTN_NEGRED_Y ) ;
154        Size = MAP_APPFONT ( 100, CHECKBOX_HEIGHT ) ;
155        HelpID = HID_PROPERTY_PANEL_NUMFMT_BTN_NEGRED ;
156        QuickHelpText [ en-US ] = "Changes the font color of negative numbers to red." ;
157        Text [ en-US ] = "~Negative numbers red" ;
158    };
159    CheckBox BTN_THOUSAND
160    {
161        Pos = MAP_APPFONT ( BTN_THOUSAND_X, BTN_THOUSAND_Y ) ;
162        Size = MAP_APPFONT ( 100, CHECKBOX_HEIGHT ) ;
163        HelpID = HID_PROPERTY_PANEL_NUMFMT_BTN_THOUSAND ;
164        QuickHelpText [ en-US ] = "Inserts a separator between thousands." ;
165        Text [ en-US ] = "~Thousands separator" ;
166    };
167};
168
169// ********************************************************************** EOF
170