diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/condformat/condformatdlgentry.cxx | 36 | ||||
-rw-r--r-- | sc/source/ui/src/condformatdlg.src | 6 |
2 files changed, 42 insertions, 0 deletions
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; diff --git a/sc/source/ui/src/condformatdlg.src b/sc/source/ui/src/condformatdlg.src index 5bd45a05d6ef..51c791ad68d8 100644 --- a/sc/source/ui/src/condformatdlg.src +++ b/sc/source/ui/src/condformatdlg.src @@ -141,6 +141,12 @@ Control RID_COND_ENTRY "not between"; "duplicate"; "not duplicate"; + "top 10 elements"; + "bottom 10 elements"; + "top 10 percent"; + "bottom 10 percent"; + "above average"; + "below average"; }; }; Edit ED_VAL1 |