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 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{ 314e8031e0SArmin Le Grand OutputSize = TRUE ; 324e8031e0SArmin Le Grand DialogControl = TRUE ; 334e8031e0SArmin Le Grand Border = FALSE ; 344e8031e0SArmin Le Grand 354e8031e0SArmin Le Grand Size = MAP_APPFONT ( PROPERTYPAGE_WIDTH, PROPERTYPAGE_HEIGHT ) ; 364e8031e0SArmin Le Grand HelpID = HID_PROPERTYPANEL_SC_NUM_SECTION ; 374e8031e0SArmin Le Grand Text = "Number Format" ; 384e8031e0SArmin Le Grand 394e8031e0SArmin Le Grand FixedText FT_CATEGORY 404e8031e0SArmin Le Grand { 414e8031e0SArmin Le Grand Pos = MAP_APPFONT ( FT_CATEGORY_X, FT_CATEGORY_Y ) ; 424e8031e0SArmin Le Grand 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 ; 484e8031e0SArmin Le Grand Pos = MAP_APPFONT ( LB_CATEGORY_X, LB_CATEGORY_Y ) ; 494e8031e0SArmin Le Grand Size = MAP_APPFONT ( MBOX_WIDTH * 2, MBOX_HEIGHT ) ; 504e8031e0SArmin Le Grand HelpID = HID_PROPERTY_PANEL_NUMFMT_LB_CATEGORY ; 514e8031e0SArmin Le Grand QuickHelpText [ en-US ] = "Select a category of contents." ; 524e8031e0SArmin Le Grand TabStop = TRUE ; 534e8031e0SArmin Le Grand DropDown = TRUE ; 544e8031e0SArmin Le Grand StringList [ en-US ] = 554e8031e0SArmin Le Grand { 564e8031e0SArmin Le Grand < "General" ; Default ; > ; 57df46ddf6SArmin Le Grand < "Number" ; > ; 58df46ddf6SArmin Le Grand < "Percent" ; > ; 59df46ddf6SArmin Le Grand < "Currency" ; > ; 60df46ddf6SArmin Le Grand < "Date" ; > ; 61df46ddf6SArmin Le Grand < "Time" ; > ; 62df46ddf6SArmin Le Grand < "Scientific" ; > ; 63df46ddf6SArmin Le Grand < "Fraction" ; > ; 64df46ddf6SArmin Le Grand < "Boolean Value" ; > ; 65df46ddf6SArmin Le Grand < "Text" ; > ; 664e8031e0SArmin Le Grand }; 674e8031e0SArmin Le Grand }; 684e8031e0SArmin Le Grand ToolBox TBX_CATEGORY 694e8031e0SArmin Le Grand { 704e8031e0SArmin Le Grand Pos = MAP_APPFONT ( TBX_CATEGORY_X, TBX_CATEGORY_Y ) ; 714e8031e0SArmin Le Grand SVLook = TRUE ; 724e8031e0SArmin Le Grand Border = FALSE ; 734e8031e0SArmin Le Grand HelpID = HID_PROPERTY_PANEL_NUMFMT_TBX_CATEGORY ; 744e8031e0SArmin Le Grand Text = "Format" ; 754e8031e0SArmin Le Grand ItemList = 764e8031e0SArmin Le Grand { 774e8031e0SArmin Le Grand ToolBoxItem 784e8031e0SArmin Le Grand { 794e8031e0SArmin Le Grand Identifier = ID_NUMBER ; 804e8031e0SArmin Le Grand Text [ en-US ] = "Number" ; 814e8031e0SArmin Le Grand HelpID = HID_PROPERTY_PANEL_NUMFMT_ID_NUMBER; 824e8031e0SArmin Le Grand }; 834e8031e0SArmin Le Grand ToolBoxItem 844e8031e0SArmin Le Grand { 854e8031e0SArmin Le Grand Identifier = ID_PERCENT ; 864e8031e0SArmin Le Grand Text [ en-US ] = "Percent" ; 874e8031e0SArmin Le Grand 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" ; 934e8031e0SArmin Le Grand 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" ; 994e8031e0SArmin Le Grand 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" ; 1054e8031e0SArmin Le Grand 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 { 1114e8031e0SArmin Le Grand Pos = MAP_APPFONT ( FT_DECIMALS_X, FT_DECIMALS_Y ) ; 1124e8031e0SArmin Le Grand 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 ; 1184e8031e0SArmin Le Grand Pos = MAP_APPFONT ( LB_DECIMALS_X, LB_DECIMALS_Y ) ; 1194e8031e0SArmin Le Grand Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ; 1204e8031e0SArmin Le Grand HelpID = HID_PROPERTY_PANEL_NUMFMT_ED_DECIMALS ; 1214e8031e0SArmin Le Grand 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 { 1324e8031e0SArmin Le Grand 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 ; 1394e8031e0SArmin Le Grand Pos = MAP_APPFONT ( LB_LEADZEROES_X, LB_LEADZEROES_Y ) ; 1404e8031e0SArmin Le Grand Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ; 1414e8031e0SArmin Le Grand HelpID = HID_PROPERTY_PANEL_NUMFMT_ED_LEADZEROES ; 1424e8031e0SArmin Le Grand 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 { 1534e8031e0SArmin Le Grand Pos = MAP_APPFONT ( BTN_NEGRED_X, BTN_NEGRED_Y ) ; 1544e8031e0SArmin Le Grand Size = MAP_APPFONT ( 100, CHECKBOX_HEIGHT ) ; 1554e8031e0SArmin Le Grand HelpID = HID_PROPERTY_PANEL_NUMFMT_BTN_NEGRED ; 1564e8031e0SArmin Le Grand 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 { 1614e8031e0SArmin Le Grand Pos = MAP_APPFONT ( BTN_THOUSAND_X, BTN_THOUSAND_Y ) ; 1624e8031e0SArmin Le Grand Size = MAP_APPFONT ( 100, CHECKBOX_HEIGHT ) ; 1634e8031e0SArmin Le Grand HelpID = HID_PROPERTY_PANEL_NUMFMT_BTN_THOUSAND ; 1644e8031e0SArmin Le Grand 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