summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-02 14:18:08 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-02 14:58:12 +0100
commitf4cac2d83bec0d3dc6aa8227db2c29ed9b658581 (patch)
treec954f432a450f5048fcc25d8297265d028e4a263 /sc
parentbc55b6e101a03d091d5061aae6fcc8bb26950da1 (diff)
also add the new conditional formats to the manage cond format dlg
Change-Id: I4275ca59917d7dc5cd36f948ab28e564bb9bfb56
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/globstr.hrc10
-rw-r--r--sc/source/ui/condformat/condformathelper.cxx14
-rw-r--r--sc/source/ui/src/globstr.src24
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!";