---------------------------------------------------------------------------
| 87 | } |
| 88 | //--------------------------------------------------------------------------- |
| 89 | TMessStyle * TMessHighlightList::FindStyleForMessage(TSyslogMessage * p) |
| 90 | { |
| 91 | TMessHighlight * mh; |
| 92 | for(int i=0; i<Count; i++) |
| 93 | { |
| 94 | mh = (TMessHighlight *)Items[i]; |
| 95 | if( mh->bEnable ) |
| 96 | if( mh->Match.Match(p) ) |
| 97 | return &(mh->Style); |
| 98 | } |
| 99 | return NULL; |
| 100 | } |
| 101 | //--------------------------------------------------------------------------- |
| 102 | void TMessHighlightList::Save(XMLElementEx * p) |
| 103 | { |