diff options
-rw-r--r-- | sc/inc/globstr.hrc | 10 | ||||
-rw-r--r-- | sc/source/ui/condformat/condformathelper.cxx | 14 | ||||
-rw-r--r-- | sc/source/ui/src/globstr.src | 24 |
3 files changed, 46 insertions, 2 deletions
diff --git a/sc/inc/globstr.hrc b/sc/inc/globstr.hrc index 9887d8e6ac8a..2f2fb63c2089 100644 --- a/sc/inc/globstr.hrc +++ b/sc/inc/globstr.hrc @@ -600,9 +600,15 @@ #define STR_COND_NOTBETWEEN 475 #define STR_COND_UNIQUE 476 #define STR_COND_DUPLICATE 477 +#define STR_COND_TOP10 478 +#define STR_COND_BOTTOM10 479 +#define STR_COND_TOP_PERCENT 480 +#define STR_COND_BOTTOM_PERCENT 481 +#define STR_COND_ABOVE_AVERAGE 482 +#define STR_COND_BELOW_AVERAGE 483 -#define STR_ERR_CONDFORMAT_PROTECTED 478 +#define STR_ERR_CONDFORMAT_PROTECTED 484 -#define STR_COUNT 479 +#define STR_COUNT 485 #endif diff --git a/sc/source/ui/condformat/condformathelper.cxx b/sc/source/ui/condformat/condformathelper.cxx index 2180d5169bc1..c6b3ecdbdb6b 100644 --- a/sc/source/ui/condformat/condformathelper.cxx +++ b/sc/source/ui/condformat/condformathelper.cxx @@ -58,6 +58,20 @@ rtl::OUString getExpression(sal_Int32 nIndex) return ScGlobal::GetRscString(STR_COND_DUPLICATE); case 9: return ScGlobal::GetRscString(STR_COND_UNIQUE); + case 10: + assert(false); + case 11: + return ScGlobal::GetRscString(STR_COND_TOP10); + case 12: + return ScGlobal::GetRscString(STR_COND_BOTTOM10); + case 13: + return ScGlobal::GetRscString(STR_COND_TOP_PERCENT); + case 14: + return ScGlobal::GetRscString(STR_COND_BOTTOM_PERCENT); + case 15: + return ScGlobal::GetRscString(STR_COND_ABOVE_AVERAGE); + case 16: + return ScGlobal::GetRscString(STR_COND_BELOW_AVERAGE); } return rtl::OUString(); } diff --git a/sc/source/ui/src/globstr.src b/sc/source/ui/src/globstr.src index 5091477a5351..bbb89a9cb398 100644 --- a/sc/source/ui/src/globstr.src +++ b/sc/source/ui/src/globstr.src @@ -1899,6 +1899,30 @@ Resource RID_GLOBSTR { Text [ en-US ] = "Formula is"; }; + String STR_COND_TOP10 + { + Text [ en-US ] = "Top Elements"; + }; + String STR_COND_BOTTOM10 + { + Text [ en-US ] = "Bottom Elements"; + }; + String STR_COND_TOP_PERCENT + { + Text [ en-US ] = "Top Percent"; + }; + String STR_COND_BOTTOM_PERCENT + { + Text [ en-US ] = "Bottom Percent"; + }; + String STR_COND_ABOVE_AVERAGE + { + Text [ en-US ] = "Above Average"; + }; + String STR_COND_BELOW_AVERAGE + { + Text [ en-US ] = "Below Average"; + }; String STR_ERR_CONDFORMAT_PROTECTED { Text [ en-US ] = "Conditional Formats can not be created, deleted or changed in protected sheets!"; |