14e8031e0SArmin Le Grand/**************************************************************
2*d1e7c34dSmseidel *
34e8031e0SArmin Le Grand * Licensed to the Apache Software Foundation (ASF) under one
44e8031e0SArmin Le Grand * or more contributor license agreements.  See the NOTICE file
54e8031e0SArmin Le Grand * distributed with this work for additional information
64e8031e0SArmin Le Grand * regarding copyright ownership.  The ASF licenses this file
74e8031e0SArmin Le Grand * to you under the Apache License, Version 2.0 (the
84e8031e0SArmin Le Grand * "License"); you may not use this file except in compliance
94e8031e0SArmin Le Grand * with the License.  You may obtain a copy of the License at
10*d1e7c34dSmseidel *
114e8031e0SArmin Le Grand *   http://www.apache.org/licenses/LICENSE-2.0
12*d1e7c34dSmseidel *
134e8031e0SArmin Le Grand * Unless required by applicable law or agreed to in writing,
144e8031e0SArmin Le Grand * software distributed under the License is distributed on an
154e8031e0SArmin Le Grand * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
164e8031e0SArmin Le Grand * KIND, either express or implied.  See the License for the
174e8031e0SArmin Le Grand * specific language governing permissions and limitations
184e8031e0SArmin Le Grand * under the License.
19*d1e7c34dSmseidel *
204e8031e0SArmin Le Grand *************************************************************/
214e8031e0SArmin Le Grand
22*d1e7c34dSmseidel
23*d1e7c34dSmseidel
244e8031e0SArmin Le Grand#include "NumberFormatPropertyPanel.hrc"
25d29c2fc2SAndre Fischer#include <sfx2/sidebar/ResourceDefinitions.hrc>
264e8031e0SArmin Le Grand#include "sc.hrc"
274e8031e0SArmin Le Grand#include "helpids.h"
284e8031e0SArmin Le Grand
294e8031e0SArmin Le GrandControl RID_PROPERTYPANEL_SC_NUMBERFORMAT
304e8031e0SArmin Le Grand{
31*d1e7c34dSmseidel	OutputSize = TRUE ;
32*d1e7c34dSmseidel	DialogControl = TRUE ;
33*d1e7c34dSmseidel	Border = FALSE ;
34*d1e7c34dSmseidel
35*d1e7c34dSmseidel	Size = MAP_APPFONT ( PROPERTYPAGE_WIDTH, PROPERTYPAGE_HEIGHT ) ;
36*d1e7c34dSmseidel	HelpID = HID_PROPERTYPANEL_SC_NUM_SECTION ;
37*d1e7c34dSmseidel	Text = "Number Format" ;
384e8031e0SArmin Le Grand
394e8031e0SArmin Le Grand	FixedText FT_CATEGORY
404e8031e0SArmin Le Grand	{
41*d1e7c34dSmseidel		Pos = MAP_APPFONT ( FT_CATEGORY_X, FT_CATEGORY_Y ) ;
42*d1e7c34dSmseidel		Size = MAP_APPFONT ( MBOX_WIDTH * 4, TEXT_HEIGHT ) ;
434e8031e0SArmin Le Grand		Text [ en-US ] = "~Category:" ;
444e8031e0SArmin Le Grand	};
454e8031e0SArmin Le Grand	ListBox LB_CATEGORY
464e8031e0SArmin Le Grand	{
474e8031e0SArmin Le Grand		Border = TRUE ;
48*d1e7c34dSmseidel		Pos = MAP_APPFONT ( LB_CATEGORY_X, LB_CATEGORY_Y ) ;
49*d1e7c34dSmseidel		Size = MAP_APPFONT ( MBOX_WIDTH * 2, MBOX_HEIGHT ) ;
50*d1e7c34dSmseidel		HelpID = HID_PROPERTY_PANEL_NUMFMT_LB_CATEGORY ;
51*d1e7c34dSmseidel		QuickHelpText [ en-US ] = "Select a category of contents." ;
52*d1e7c34dSmseidel		TabStop = TRUE ;
534e8031e0SArmin Le Grand		DropDown = TRUE ;
544e8031e0SArmin Le Grand		StringList [ en-US ] =
554e8031e0SArmin Le Grand		{
56*d1e7c34dSmseidel			< "General" ; Default ;	> ;
57*d1e7c34dSmseidel			< "Number" ;			> ;
58*d1e7c34dSmseidel			< "Percent" ;			> ;
59*d1e7c34dSmseidel			< "Currency" ;			> ;
60*d1e7c34dSmseidel			< "Date" ;				> ;
61*d1e7c34dSmseidel			< "Time" ;				> ;
62*d1e7c34dSmseidel			< "Scientific" ;		> ;
63*d1e7c34dSmseidel			< "Fraction" ;			> ;
64*d1e7c34dSmseidel			< "Boolean Value" ;		> ;
65*d1e7c34dSmseidel			< "Text" ;				> ;
664e8031e0SArmin Le Grand		};
674e8031e0SArmin Le Grand	};
684e8031e0SArmin Le Grand	ToolBox TBX_CATEGORY
694e8031e0SArmin Le Grand	{
70*d1e7c34dSmseidel		Pos = MAP_APPFONT ( TBX_CATEGORY_X, TBX_CATEGORY_Y ) ;
714e8031e0SArmin Le Grand		SVLook = TRUE ;
724e8031e0SArmin Le Grand		Border = FALSE ;
73*d1e7c34dSmseidel		HelpID = HID_PROPERTY_PANEL_NUMFMT_TBX_CATEGORY ;
74*d1e7c34dSmseidel		Text = "Format" ;
754e8031e0SArmin Le Grand		ItemList =
764e8031e0SArmin Le Grand		{
774e8031e0SArmin Le Grand			ToolBoxItem
784e8031e0SArmin Le Grand			{
794e8031e0SArmin Le Grand				Identifier = ID_NUMBER ;
80*d1e7c34dSmseidel				Text [ en-US ] = "Number" ;
81*d1e7c34dSmseidel				HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_NUMBER;
824e8031e0SArmin Le Grand			};
834e8031e0SArmin Le Grand			ToolBoxItem
844e8031e0SArmin Le Grand			{
854e8031e0SArmin Le Grand				Identifier = ID_PERCENT ;
86*d1e7c34dSmseidel				Text [ en-US ] = "Percent" ;
87*d1e7c34dSmseidel				HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_PERCENT ;
884e8031e0SArmin Le Grand			};
894e8031e0SArmin Le Grand			ToolBoxItem
904e8031e0SArmin Le Grand			{
914e8031e0SArmin Le Grand				Identifier = ID_CURRENCY ;
924e8031e0SArmin Le Grand				Text [ en-US ] = "Currency" ;
93*d1e7c34dSmseidel				HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_CURRENCY ;
944e8031e0SArmin Le Grand			};
954e8031e0SArmin Le Grand			ToolBoxItem
964e8031e0SArmin Le Grand			{
974e8031e0SArmin Le Grand				Identifier = ID_DATE ;
984e8031e0SArmin Le Grand				Text [ en-US ] = "Date" ;
99*d1e7c34dSmseidel				HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_DATE ;
1004e8031e0SArmin Le Grand			};
1014e8031e0SArmin Le Grand			ToolBoxItem
1024e8031e0SArmin Le Grand			{
1034e8031e0SArmin Le Grand				Identifier = ID_TEXT ;
1044e8031e0SArmin Le Grand				Text [ en-US ] = "Text" ;
105*d1e7c34dSmseidel				HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_TEXT ;
1064e8031e0SArmin Le Grand			};
1074e8031e0SArmin Le Grand		};
1084e8031e0SArmin Le Grand	};
1094e8031e0SArmin Le Grand	FixedText FT_DECIMALS
1104e8031e0SArmin Le Grand	{
111*d1e7c34dSmseidel		Pos = MAP_APPFONT ( FT_DECIMALS_X, FT_DECIMALS_Y ) ;
112*d1e7c34dSmseidel		Size = MAP_APPFONT ( MBOX_WIDTH * 2, TEXT_HEIGHT ) ;
1134e8031e0SArmin Le Grand		Text [ en-US ] = "~Decimal places:" ;
1144e8031e0SArmin Le Grand	};
1154e8031e0SArmin Le Grand	NumericField ED_DECIMALS
1164e8031e0SArmin Le Grand	{
1174e8031e0SArmin Le Grand		Border = TRUE ;
118*d1e7c34dSmseidel		Pos = MAP_APPFONT ( LB_DECIMALS_X, LB_DECIMALS_Y ) ;
119*d1e7c34dSmseidel		Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
120*d1e7c34dSmseidel		HelpID = HID_PROPERTY_PANEL_NUMFMT_ED_DECIMALS ;
121*d1e7c34dSmseidel		QuickHelpText [ en-US ] = "Enter the number of decimal places that you want to display." ;
1224e8031e0SArmin Le Grand		Spin = TRUE ;
1234e8031e0SArmin Le Grand		Maximum = 20 ;
1244e8031e0SArmin Le Grand		Last = 15 ;
1254e8031e0SArmin Le Grand		First = 0 ;
1264e8031e0SArmin Le Grand		StrictFormat = TRUE ;
1274e8031e0SArmin Le Grand		SpinSize = 1 ;
1284e8031e0SArmin Le Grand		Repeat = TRUE ;
1294e8031e0SArmin Le Grand	};
1304e8031e0SArmin Le Grand	FixedText FT_LEADZEROES
1314e8031e0SArmin Le Grand	{
132*d1e7c34dSmseidel		Pos = MAP_APPFONT ( FT_LEADZEROES_X, FT_LEADZEROES_Y ) ;
133*d1e7c34dSmseidel		Size = MAP_APPFONT (PROPERTYPAGE_WIDTH - MBOX_WIDTH * 2 - SECTIONPAGE_MARGIN_HORIZONTAL * 2, TEXT_HEIGHT ) ;
1344e8031e0SArmin Le Grand		Text [ en-US ] = "Leading ~zeroes:" ;
1354e8031e0SArmin Le Grand	};
1364e8031e0SArmin Le Grand	NumericField ED_LEADZEROES
1374e8031e0SArmin Le Grand	{
1384e8031e0SArmin Le Grand		Border = TRUE ;
139*d1e7c34dSmseidel		Pos = MAP_APPFONT ( LB_LEADZEROES_X, LB_LEADZEROES_Y ) ;
140*d1e7c34dSmseidel		Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
141*d1e7c34dSmseidel		HelpID = HID_PROPERTY_PANEL_NUMFMT_ED_LEADZEROES ;
142*d1e7c34dSmseidel		QuickHelpText [ en-US ] = "Enter the maximum number of zeroes to display before the decimal point." ;
1434e8031e0SArmin Le Grand		Spin = TRUE ;
1444e8031e0SArmin Le Grand		Maximum = 20 ;
1454e8031e0SArmin Le Grand		Last = 15 ;
1464e8031e0SArmin Le Grand		First = 0 ;
1474e8031e0SArmin Le Grand		StrictFormat = TRUE ;
1484e8031e0SArmin Le Grand		SpinSize = 1 ;
1494e8031e0SArmin Le Grand		Repeat = TRUE ;
1504e8031e0SArmin Le Grand	};
1514e8031e0SArmin Le Grand	CheckBox BTN_NEGRED
1524e8031e0SArmin Le Grand	{
153*d1e7c34dSmseidel		Pos = MAP_APPFONT ( BTN_NEGRED_X, BTN_NEGRED_Y ) ;
154*d1e7c34dSmseidel		Size = MAP_APPFONT ( 100, CHECKBOX_HEIGHT ) ;
155*d1e7c34dSmseidel		HelpID = HID_PROPERTY_PANEL_NUMFMT_BTN_NEGRED ;
156*d1e7c34dSmseidel		QuickHelpText [ en-US ] = "Changes the font color of negative numbers to red." ;
1574e8031e0SArmin Le Grand		Text [ en-US ] = "~Negative numbers red" ;
1584e8031e0SArmin Le Grand	};
1594e8031e0SArmin Le Grand	CheckBox BTN_THOUSAND
1604e8031e0SArmin Le Grand	{
161*d1e7c34dSmseidel		Pos = MAP_APPFONT ( BTN_THOUSAND_X, BTN_THOUSAND_Y ) ;
162*d1e7c34dSmseidel		Size = MAP_APPFONT ( 100, CHECKBOX_HEIGHT ) ;
163*d1e7c34dSmseidel		HelpID = HID_PROPERTY_PANEL_NUMFMT_BTN_THOUSAND ;
164*d1e7c34dSmseidel		QuickHelpText [ en-US ] = "Inserts a separator between thousands." ;
1654e8031e0SArmin Le Grand		Text [ en-US ] = "~Thousands separator" ;
1664e8031e0SArmin Le Grand	};
1674e8031e0SArmin Le Grand};
1684e8031e0SArmin Le Grand
169*d1e7c34dSmseidel// ********************************************************************** EOF
170