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