xref: /AOO41X/main/sc/source/ui/sidebar/NumberFormatPropertyPanel.src (revision 3ce09a58b0d6873449cda31e55c66dba2dbc8f7f)
14e8031e0SArmin Le Grand/**************************************************************
24e8031e0SArmin Le Grand *
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
104e8031e0SArmin Le Grand *
114e8031e0SArmin Le Grand *   http://www.apache.org/licenses/LICENSE-2.0
124e8031e0SArmin Le Grand *
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.
194e8031e0SArmin Le Grand *
204e8031e0SArmin Le Grand *************************************************************/
214e8031e0SArmin Le Grand
224e8031e0SArmin Le Grand#include "NumberFormatPropertyPanel.hrc"
23*d29c2fc2SAndre Fischer#include <sfx2/sidebar/ResourceDefinitions.hrc>
244e8031e0SArmin Le Grand#include "sc.hrc"
254e8031e0SArmin Le Grand#include "helpids.h"
264e8031e0SArmin Le Grand
274e8031e0SArmin Le GrandControl RID_PROPERTYPANEL_SC_NUMBERFORMAT
284e8031e0SArmin Le Grand{
294e8031e0SArmin Le Grand	OutputSize = TRUE;
304e8031e0SArmin Le Grand	DialogControl = TRUE;
314e8031e0SArmin Le Grand	Border = FALSE;
324e8031e0SArmin Le Grand
334e8031e0SArmin Le Grand	Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PROPERTYPAGE_HEIGHT );
344e8031e0SArmin Le Grand	HelpID = HID_PROPERTYPANEL_SC_NUM_SECTION ;
354e8031e0SArmin Le Grand	Text = "Number Format";
364e8031e0SArmin Le Grand
374e8031e0SArmin Le Grand	FixedText FT_CATEGORY
384e8031e0SArmin Le Grand	{
394e8031e0SArmin Le Grand		Pos = MAP_APPFONT ( FT_CATEGORY_X , FT_CATEGORY_Y ) ;
404e8031e0SArmin Le Grand		Size = MAP_APPFONT ( MBOX_WIDTH*4 , TEXT_HEIGHT ) ;
414e8031e0SArmin Le Grand		Text [ en-US ] = "~Category:" ;
424e8031e0SArmin Le Grand	};
434e8031e0SArmin Le Grand	ListBox LB_CATEGORY
444e8031e0SArmin Le Grand	{
454e8031e0SArmin Le Grand		Border = TRUE ;
464e8031e0SArmin Le Grand        Pos = MAP_APPFONT ( LB_CATEGORY_X , LB_CATEGORY_Y ) ;
474e8031e0SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH *2 , MBOX_HEIGHT ) ;
484e8031e0SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_NUMFMT_LB_CATEGORY;
494e8031e0SArmin Le Grand        QuickHelpText [ en-US ] = "Select a category of contents.";
504e8031e0SArmin Le Grand        TabStop = TRUE ;
514e8031e0SArmin Le Grand		DropDown = TRUE ;
524e8031e0SArmin Le Grand		StringList [ en-US ] =
534e8031e0SArmin Le Grand		{
544e8031e0SArmin Le Grand			< "General" ; Default ; > ;
55df46ddf6SArmin Le Grand			< "Number" ;> ;
56df46ddf6SArmin Le Grand			< "Percent" ;> ;
57df46ddf6SArmin Le Grand			< "Currency" ;> ;
58df46ddf6SArmin Le Grand			< "Date" ;> ;
59df46ddf6SArmin Le Grand			< "Time" ;> ;
60df46ddf6SArmin Le Grand			< "Scientific" ;> ;
61df46ddf6SArmin Le Grand			< "Fraction" ;> ;
62df46ddf6SArmin Le Grand			< "Boolean Value" ;> ;
63df46ddf6SArmin Le Grand			< "Text" ;> ;
644e8031e0SArmin Le Grand		};
654e8031e0SArmin Le Grand	};
664e8031e0SArmin Le Grand	ToolBox TBX_CATEGORY
674e8031e0SArmin Le Grand	{
684e8031e0SArmin Le Grand        Pos = MAP_APPFONT ( TBX_CATEGORY_X , TBX_CATEGORY_Y );
694e8031e0SArmin Le Grand		SVLook = TRUE ;
704e8031e0SArmin Le Grand		Border = FALSE ;
714e8031e0SArmin Le Grand		HelpID = HID_PROPERTY_PANEL_NUMFMT_TBX_CATEGORY;
724e8031e0SArmin Le Grand		Text = "Format";
734e8031e0SArmin Le Grand		ItemList =
744e8031e0SArmin Le Grand		{
754e8031e0SArmin Le Grand			ToolBoxItem
764e8031e0SArmin Le Grand			{
774e8031e0SArmin Le Grand				Identifier = ID_NUMBER ;
784e8031e0SArmin Le Grand				Text [ en-US ] = "Number" ;
794e8031e0SArmin Le Grand				HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_NUMBER;
804e8031e0SArmin Le Grand			};
814e8031e0SArmin Le Grand			ToolBoxItem
824e8031e0SArmin Le Grand			{
834e8031e0SArmin Le Grand				Identifier = ID_PERCENT ;
844e8031e0SArmin Le Grand				Text [ en-US ] = "Percent" ;
854e8031e0SArmin Le Grand				HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_PERCENT;
864e8031e0SArmin Le Grand			};
874e8031e0SArmin Le Grand			ToolBoxItem
884e8031e0SArmin Le Grand			{
894e8031e0SArmin Le Grand				Identifier = ID_CURRENCY ;
904e8031e0SArmin Le Grand				Text [ en-US ] = "Currency" ;
914e8031e0SArmin Le Grand				HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_CURRENCY;
924e8031e0SArmin Le Grand			};
934e8031e0SArmin Le Grand			ToolBoxItem
944e8031e0SArmin Le Grand			{
954e8031e0SArmin Le Grand				Identifier = ID_DATE ;
964e8031e0SArmin Le Grand				Text [ en-US ] = "Date" ;
974e8031e0SArmin Le Grand				HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_DATE;
984e8031e0SArmin Le Grand			};
994e8031e0SArmin Le Grand			ToolBoxItem
1004e8031e0SArmin Le Grand			{
1014e8031e0SArmin Le Grand				Identifier = ID_TEXT ;
1024e8031e0SArmin Le Grand				Text [ en-US ] = "Text" ;
1034e8031e0SArmin Le Grand				HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_TEXT;
1044e8031e0SArmin Le Grand			};
1054e8031e0SArmin Le Grand		};
1064e8031e0SArmin Le Grand	};
1074e8031e0SArmin Le Grand	FixedText FT_DECIMALS
1084e8031e0SArmin Le Grand	{
1094e8031e0SArmin Le Grand        Pos = MAP_APPFONT ( FT_DECIMALS_X , FT_DECIMALS_Y ) ;
1104e8031e0SArmin Le Grand		Size = MAP_APPFONT ( MBOX_WIDTH *2, TEXT_HEIGHT ) ;
1114e8031e0SArmin Le Grand		Text [ en-US ] = "~Decimal places:" ;
1124e8031e0SArmin Le Grand	};
1134e8031e0SArmin Le Grand	NumericField ED_DECIMALS
1144e8031e0SArmin Le Grand	{
1154e8031e0SArmin Le Grand		Border = TRUE ;
1164e8031e0SArmin Le Grand        Pos = MAP_APPFONT ( LB_DECIMALS_X , LB_DECIMALS_Y ) ;
1174e8031e0SArmin Le Grand		Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
1184e8031e0SArmin Le Grand		HelpID = HID_PROPERTY_PANEL_NUMFMT_ED_DECIMALS;
1194e8031e0SArmin Le Grand		QuickHelpText [ en-US ] = "Enter the number of decimal places that you want to display.";
1204e8031e0SArmin Le Grand		Spin = TRUE ;
1214e8031e0SArmin Le Grand		Maximum = 20 ;
1224e8031e0SArmin Le Grand		Last = 15 ;
1234e8031e0SArmin Le Grand		First = 0 ;
1244e8031e0SArmin Le Grand		StrictFormat = TRUE ;
1254e8031e0SArmin Le Grand		SpinSize = 1 ;
1264e8031e0SArmin Le Grand		Repeat = TRUE ;
1274e8031e0SArmin Le Grand	};
1284e8031e0SArmin Le Grand	FixedText FT_LEADZEROES
1294e8031e0SArmin Le Grand	{
1304e8031e0SArmin Le Grand        Pos = MAP_APPFONT ( FT_LEADZEROES_X , FT_LEADZEROES_Y ) ;
1314e8031e0SArmin Le Grand		Size = MAP_APPFONT (PROPERTYPAGE_WIDTH -  MBOX_WIDTH *2 - SECTIONPAGE_MARGIN_HORIZONTAL * 2, TEXT_HEIGHT ) ; //
1324e8031e0SArmin Le Grand		Text [ en-US ] = "Leading ~zeroes:" ;
1334e8031e0SArmin Le Grand	};
1344e8031e0SArmin Le Grand	NumericField ED_LEADZEROES
1354e8031e0SArmin Le Grand	{
1364e8031e0SArmin Le Grand		Border = TRUE ;
1374e8031e0SArmin Le Grand        Pos = MAP_APPFONT ( LB_LEADZEROES_X , LB_LEADZEROES_Y ) ;
1384e8031e0SArmin Le Grand		Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
1394e8031e0SArmin Le Grand		HelpID = HID_PROPERTY_PANEL_NUMFMT_ED_LEADZEROES;
1404e8031e0SArmin Le Grand		QuickHelpText [ en-US ] = "Enter the maximum number of zeroes to display before the decimal point.";
1414e8031e0SArmin Le Grand		Spin = TRUE ;
1424e8031e0SArmin Le Grand		Maximum = 20 ;
1434e8031e0SArmin Le Grand		Last = 15 ;
1444e8031e0SArmin Le Grand		First = 0 ;
1454e8031e0SArmin Le Grand		StrictFormat = TRUE ;
1464e8031e0SArmin Le Grand		SpinSize = 1 ;
1474e8031e0SArmin Le Grand		Repeat = TRUE ;
1484e8031e0SArmin Le Grand	};
1494e8031e0SArmin Le Grand	CheckBox BTN_NEGRED
1504e8031e0SArmin Le Grand	{
1514e8031e0SArmin Le Grand        Pos = MAP_APPFONT ( BTN_NEGRED_X , BTN_NEGRED_Y ) ;
1524e8031e0SArmin Le Grand		Size = MAP_APPFONT ( 100 , CHECKBOX_HEIGHT ) ;
1534e8031e0SArmin Le Grand		HelpID = HID_PROPERTY_PANEL_NUMFMT_BTN_NEGRED;
1544e8031e0SArmin Le Grand		QuickHelpText [ en-US ] = "Changes the font color of negative numbers to red.";
1554e8031e0SArmin Le Grand		Text [ en-US ] = "~Negative numbers red" ;
1564e8031e0SArmin Le Grand	};
1574e8031e0SArmin Le Grand	CheckBox BTN_THOUSAND
1584e8031e0SArmin Le Grand	{
1594e8031e0SArmin Le Grand        Pos = MAP_APPFONT ( BTN_THOUSAND_X , BTN_THOUSAND_Y ) ;
1604e8031e0SArmin Le Grand		Size = MAP_APPFONT ( 100 , CHECKBOX_HEIGHT ) ;
1614e8031e0SArmin Le Grand		HelpID = HID_PROPERTY_PANEL_NUMFMT_BTN_THOUSAND;
1624e8031e0SArmin Le Grand		QuickHelpText [ en-US ] = "Inserts a separator between thousands.";
1634e8031e0SArmin Le Grand		Text [ en-US ] = "~Thousands separator" ;
1644e8031e0SArmin Le Grand	};
1654e8031e0SArmin Le Grand};
1664e8031e0SArmin Le Grand
1674e8031e0SArmin Le Grand// eof
168