diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-11-02 12:20:33 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-11-02 14:58:12 +0100 |
commit | bc55b6e101a03d091d5061aae6fcc8bb26950da1 (patch) | |
tree | 60da28b0d0ffadcf036ee49695d9bcfe0a40939d /sc | |
parent | 931d715de533f0b4712eb2d7420359548b6f7c64 (diff) |
add the new conditional formats to the dialog
Change-Id: Ia8c98626cf077abcf705e3d8e37478a32673622e
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 |