Kaydet (Commit) bc55b6e1 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add the new conditional formats to the dialog

Change-Id: Ia8c98626cf077abcf705e3d8e37478a32673622e
üst 931d715d
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment