Lines 159-164
Link Here
|
159 |
#define SC_AUTOFILTER_ALL 0 |
159 |
#define SC_AUTOFILTER_ALL 0 |
160 |
#define SC_AUTOFILTER_CUSTOM 1 |
160 |
#define SC_AUTOFILTER_CUSTOM 1 |
161 |
#define SC_AUTOFILTER_TOP10 2 |
161 |
#define SC_AUTOFILTER_TOP10 2 |
|
|
162 |
#define SC_AUTOFILTER_EMPTY 3 |
163 |
#define SC_AUTOFILTER_NOTEMPTY 4 |
162 |
|
164 |
|
163 |
// Modi fuer die FilterListBox |
165 |
// Modi fuer die FilterListBox |
164 |
enum ScFilterBoxMode |
166 |
enum ScFilterBoxMode |
Lines 711-717
Link Here
|
711 |
long nMaxText = 0; |
713 |
long nMaxText = 0; |
712 |
|
714 |
|
713 |
// default entries |
715 |
// default entries |
714 |
static const USHORT nDefIDs[] = { SCSTR_ALL, SCSTR_STDFILTER, SCSTR_TOP10FILTER }; |
716 |
static const USHORT nDefIDs[] = { SCSTR_ALL, SCSTR_STDFILTER, SCSTR_TOP10FILTER, SCSTR_EMPTY, SCSTR_NOTEMPTY }; |
715 |
const USHORT nDefCount = sizeof(nDefIDs) / sizeof(USHORT); |
717 |
const USHORT nDefCount = sizeof(nDefIDs) / sizeof(USHORT); |
716 |
for (i=0; i<nDefCount; i++) |
718 |
for (i=0; i<nDefCount; i++) |
717 |
{ |
719 |
{ |
Lines 1087-1092
Link Here
|
1087 |
rNewEntry.eOp = SC_TOPVAL; |
1089 |
rNewEntry.eOp = SC_TOPVAL; |
1088 |
*rNewEntry.pStr = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("10")); |
1090 |
*rNewEntry.pStr = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("10")); |
1089 |
} |
1091 |
} |
|
|
1092 |
else if (nSel == SC_AUTOFILTER_EMPTY) |
1093 |
{ |
1094 |
rNewEntry.pStr->Erase(); |
1095 |
rNewEntry.bQueryByString = FALSE; |
1096 |
rNewEntry.eOp = SC_EQUAL; |
1097 |
rNewEntry.nVal = SC_EMPTYFIELDS; |
1098 |
|
1099 |
} |
1100 |
else if (nSel == SC_AUTOFILTER_NOTEMPTY) |
1101 |
{ |
1102 |
rNewEntry.pStr->Erase(); |
1103 |
rNewEntry.bQueryByString = FALSE; |
1104 |
rNewEntry.eOp = SC_EQUAL; |
1105 |
rNewEntry.nVal = SC_NONEMPTYFIELDS; |
1106 |
} |
1090 |
else |
1107 |
else |
1091 |
{ |
1108 |
{ |
1092 |
rNewEntry.eOp = SC_EQUAL; |
1109 |
rNewEntry.eOp = SC_EQUAL; |