From bc55b6e101a03d091d5061aae6fcc8bb26950da1 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 2 Nov 2012 12:20:33 +0100 Subject: add the new conditional formats to the dialog Change-Id: Ia8c98626cf077abcf705e3d8e37478a32673622e --- sc/source/ui/condformat/condformatdlgentry.cxx | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'sc/source/ui/condformat') diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx index 97debc78dbf4..77f51d05f613 100644 --- a/sc/source/ui/condformat/condformatdlgentry.cxx +++ b/sc/source/ui/condformat/condformatdlgentry.cxx @@ -196,6 +196,24 @@ ScConditionFrmtEntry::ScConditionFrmtEntry( Window* pParent, ScDocument* pDoc, c assert(false); //maLbType.SelectEntryPos(2); break; + case SC_COND_TOP10: + maLbCondType.SelectEntryPos(10); + break; + case SC_COND_BOTTOM10: + maLbCondType.SelectEntryPos(11); + break; + case SC_COND_TOP_PERCENT: + maLbCondType.SelectEntryPos(12); + break; + case SC_COND_BOTTOM_PERCENT: + maLbCondType.SelectEntryPos(13); + break; + case SC_COND_ABOVE_AVERAGE: + maLbCondType.SelectEntryPos(14); + break; + case SC_COND_BELOW_AVERAGE: + maLbCondType.SelectEntryPos(15); + break; case SC_COND_NONE: break; } @@ -276,6 +294,24 @@ ScFormatEntry* ScConditionFrmtEntry::createConditionEntry() const case 9: eMode = SC_COND_NOTDUPLICATE; break; + case 10: + eMode = SC_COND_TOP10; + break; + case 11: + eMode = SC_COND_BOTTOM10; + break; + case 12: + eMode = SC_COND_TOP_PERCENT; + break; + case 13: + eMode = SC_COND_BOTTOM_PERCENT; + break; + case 14: + eMode = SC_COND_ABOVE_AVERAGE; + break; + case 15: + eMode = SC_COND_BELOW_AVERAGE; + break; default: assert(false); // this cannot happen return NULL; -- cgit