sc/qa/unit/ucalc.cxx | 1 + sc/source/ui/src/scfuncs.src | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+)
New commits: commit b9f89eea4e1c58a21767a219ac673befc2fe1b9a Author: Eike Rathke <[email protected]> Date: Mon Jan 11 18:06:20 2016 +0100 add WEEKNUM_OOO hidden function resource Not displayed in the Function Wizard's function list, unless used then displayed when travelling through the formula expression. Change-Id: I7489ce1eb9197a84c64c5293321553430baadebb diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 7435c54..cbd3193 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -2401,6 +2401,7 @@ void Test::testFunctionLists() "TODAY", "WEEKDAY", "WEEKNUM", + "WEEKNUM_OOO", "WEEKS", "WEEKSINYEAR", "WORKDAY.INTL", diff --git a/sc/source/ui/src/scfuncs.src b/sc/source/ui/src/scfuncs.src index 632cd43..59b4cec 100644 --- a/sc/source/ui/src/scfuncs.src +++ b/sc/source/ui/src/scfuncs.src @@ -1218,6 +1218,37 @@ Resource RID_SC_FUNCTION_DESCRIPTIONS1 Text [ en-US ] = "The internal number of the date." ; }; }; + Resource SC_OPCODE_WEEKNUM_OOO + { + String 1 // Description + { + Text [ en-US ] = "Calculates the calendar week corresponding to the given date.\nThis function only provides interoperability with %PRODUCTNAME 5.0 and earlier and OpenOffice.org." ; + }; + ExtraData = + { + 2; + ID_FUNCTION_GRP_DATETIME; + U2S( HID_FUNC_WEEKNUM_OOO ); + 2; 0; 0; + 0; + }; + String 2 // Name of Parameter 1 + { + Text [ en-US ] = "Number" ; + }; + String 3 // Description of Parameter 1 + { + Text [ en-US ] = "The internal number of the date." ; + }; + String 4 // Name of Parameter 2 + { + Text [ en-US ] = "mode" ; + }; + String 5 // Description of Parameter 2 + { + Text [ en-US ] = "Indicates the first day of the week (1 = Sunday, other values = Monday)." ; + }; + }; // -=*# Resource for function EASTERSUNDAY #*=- Resource SC_OPCODE_EASTERSUNDAY { _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
