forked from amazingfate/loongoffice
Allow empty cells on Criteria tab of Validity dialog Suggest By: joropo<joropo@pioneerwireless.net> (cherry picked from commit b363d736060a8ebe2117a37e0dfbd2e164f31db7) Change-Id: I76eb3bb567bb24498f987d62dd970731faff4b83
162 lines
5.3 KiB
Plaintext
162 lines
5.3 KiB
Plaintext
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* This file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
*/
|
|
|
|
#include <sfx2/tabpage.hrc>
|
|
|
|
#include "validate.hrc"
|
|
|
|
#define OFFSET_X 30
|
|
|
|
TabPage TP_VALIDATION_VALUES
|
|
{
|
|
HelpID = "sc:TabPage:TP_VALIDATION_VALUES";
|
|
Hide = TRUE ;
|
|
SVLook = TRUE ;
|
|
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
|
|
Text [ en-US ] = "Values" ;
|
|
FixedText FT_ALLOW
|
|
{
|
|
Pos = MAP_APPFONT ( 6 , 16 ) ;
|
|
Size = MAP_APPFONT ( 70 - OFFSET_X , 8 ) ;
|
|
Text [ en-US ] = "~Allow" ;
|
|
};
|
|
ListBox LB_ALLOW
|
|
{
|
|
HelpID = "sc:ListBox:TP_VALIDATION_VALUES:LB_ALLOW";
|
|
Border = TRUE ;
|
|
Pos = MAP_APPFONT ( 80 - OFFSET_X , 14 ) ;
|
|
Size = MAP_APPFONT ( 90 , 80 ) ;
|
|
TabStop = TRUE ;
|
|
DropDown = TRUE ;
|
|
StringList [ en-US ] =
|
|
{
|
|
< "All values" ; SC_VALIDDLG_ALLOW_ANY ; > ;
|
|
< "Whole Numbers" ; SC_VALIDDLG_ALLOW_WHOLE ; > ;
|
|
< "Decimal" ; SC_VALIDDLG_ALLOW_DECIMAL ; > ;
|
|
< "Date" ; SC_VALIDDLG_ALLOW_DATE ; > ;
|
|
< "Time" ; SC_VALIDDLG_ALLOW_TIME ; > ;
|
|
< "Cell range" ; SC_VALIDDLG_ALLOW_RANGE ; > ;
|
|
< "List" ; SC_VALIDDLG_ALLOW_LIST ; > ;
|
|
< "Text length" ; SC_VALIDDLG_ALLOW_TEXTLEN ; > ;
|
|
};
|
|
};
|
|
FixedText FT_VALUE
|
|
{
|
|
Pos = MAP_APPFONT ( 6 , 58 ) ;
|
|
Size = MAP_APPFONT ( 70 - OFFSET_X , 8 ) ;
|
|
Text [ en-US ] = "~Data" ;
|
|
};
|
|
ListBox LB_VALUE
|
|
{
|
|
HelpID = "sc:ListBox:TP_VALIDATION_VALUES:LB_VALUE";
|
|
Border = TRUE ;
|
|
Pos = MAP_APPFONT ( 80 - OFFSET_X , 56 ) ;
|
|
Size = MAP_APPFONT ( 90 , 90 ) ;
|
|
TabStop = TRUE ;
|
|
DropDown = TRUE ;
|
|
// Reihenfolge entspricht enum ScConditionMode
|
|
StringList [ en-US ] =
|
|
{
|
|
< "equal" ; SC_VALIDDLG_DATA_EQUAL ; > ;
|
|
< "less than" ; SC_VALIDDLG_DATA_LESS ; > ;
|
|
< "greater than" ; SC_VALIDDLG_DATA_GREATER ; > ;
|
|
< "less than or equal" ; SC_VALIDDLG_DATA_EQLESS ; > ;
|
|
< "greater than or equal to" ; SC_VALIDDLG_DATA_EQGREATER ; > ;
|
|
< "not equal" ; SC_VALIDDLG_DATA_NOTEQUAL ; > ;
|
|
< "valid range" ; SC_VALIDDLG_DATA_VALIDRANGE ; > ;
|
|
< "invalid range" ; SC_VALIDDLG_DATA_INVALIDRANGE ; > ;
|
|
};
|
|
};
|
|
FixedText FT_MIN
|
|
{
|
|
Pos = MAP_APPFONT ( 6 , 76 ) ;
|
|
Size = MAP_APPFONT ( 70 - OFFSET_X , 8 ) ;
|
|
Text [ en-US ] = "~Minimum" ;
|
|
};
|
|
Edit EDT_MIN
|
|
{
|
|
HelpID = "sc:Edit:TP_VALIDATION_VALUES:EDT_MIN";
|
|
Border = TRUE ;
|
|
Pos = MAP_APPFONT ( 80 - OFFSET_X , 74 ) ;
|
|
Size = MAP_APPFONT ( 90 , 12 ) ;
|
|
TabStop = TRUE ;
|
|
};
|
|
MultiLineEdit EDT_LIST
|
|
{
|
|
HelpID = "sc:MultiLineEdit:TP_VALIDATION_VALUES:EDT_LIST";
|
|
Border = TRUE ;
|
|
Pos = MAP_APPFONT ( 80 - OFFSET_X , 74 ) ;
|
|
Size = MAP_APPFONT ( 174 + OFFSET_X , 105 ) ;
|
|
VScroll = TRUE ;
|
|
IgnoreTab = TRUE ;
|
|
};
|
|
FixedText FT_MAX
|
|
{
|
|
Pos = MAP_APPFONT ( 6 , 92 ) ;
|
|
Size = MAP_APPFONT ( 70 - OFFSET_X , 8 ) ;
|
|
Text [ en-US ] = "Ma~ximum" ;
|
|
};
|
|
Edit EDT_MAX
|
|
{
|
|
HelpID = "sc:Edit:TP_VALIDATION_VALUES:EDT_MAX";
|
|
Border = TRUE ;
|
|
Pos = MAP_APPFONT ( 80 - OFFSET_X , 90 ) ;
|
|
Size = MAP_APPFONT ( 90 , 12 ) ;
|
|
TabStop = TRUE ;
|
|
};
|
|
CheckBox TSB_ALLOW_BLANKS
|
|
{
|
|
Pos = MAP_APPFONT ( 80 - OFFSET_X , 30 ) ;
|
|
Size = MAP_APPFONT ( 174 , 10 ) ;
|
|
TabStop = TRUE ;
|
|
Text [ en-US ] = "Allow ~empty cells" ;
|
|
};
|
|
CheckBox CB_SHOWLIST
|
|
{
|
|
Pos = MAP_APPFONT ( 80 - OFFSET_X , 44 ) ;
|
|
Size = MAP_APPFONT ( 174 , 10 ) ;
|
|
TabStop = TRUE ;
|
|
Text [ en-US ] = "Show selection ~list" ;
|
|
};
|
|
CheckBox CB_SORTLIST
|
|
{
|
|
Pos = MAP_APPFONT ( 90 - OFFSET_X , 58 ) ;
|
|
Size = MAP_APPFONT ( 164 , 10 ) ;
|
|
TabStop = TRUE ;
|
|
Text [ en-US ] = "Sor~t entries ascending" ;
|
|
};
|
|
FixedText FT_SOURCEHINT
|
|
{
|
|
Pos = MAP_APPFONT ( 80 , 90 ) ;
|
|
Size = MAP_APPFONT ( 174 , 64 ) ;
|
|
WordBreak = TRUE ;
|
|
Text [ en-US ] = "A valid source can only consist of a contiguous selection of rows and columns, or a formula that results in an area or array.";
|
|
};
|
|
ImageButton RB_VALIDITY_REF
|
|
{
|
|
HelpID = "sc:ImageButton:TP_VALIDATION_VALUES:RB_VALIDITY_REF";
|
|
Pos = MAP_APPFONT ( 142 , 73 ) ;
|
|
Size = MAP_APPFONT ( 13 , 14 ) ;
|
|
TabStop = TRUE ;
|
|
QuickHelpText [ en-US ] = "Shrink" ;
|
|
};
|
|
};
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|