summaryrefslogtreecommitdiff
path: root/sc/source/ui/condformat
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-02 12:20:33 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-02 14:58:12 +0100
commitbc55b6e101a03d091d5061aae6fcc8bb26950da1 (patch)
tree60da28b0d0ffadcf036ee49695d9bcfe0a40939d /sc/source/ui/condformat
parent931d715de533f0b4712eb2d7420359548b6f7c64 (diff)
add the new conditional formats to the dialog
Change-Id: Ia8c98626cf077abcf705e3d8e37478a32673622e
Diffstat (limited to 'sc/source/ui/condformat')
-rw-r--r--sc/source/ui/condformat/condformatdlgentry.cxx36
1 files changed, 36 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;