diff options
Diffstat (limited to 'plugins/NewStory/src/history_array.h')
| -rw-r--r-- | plugins/NewStory/src/history_array.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_array.h b/plugins/NewStory/src/history_array.h index cfefca9612..151ff568ca 100644 --- a/plugins/NewStory/src/history_array.h +++ b/plugins/NewStory/src/history_array.h @@ -8,12 +8,13 @@ enum GROUPING_ITEM = 2, }; +CMStringW TplFormatString(int tpl, MCONTACT hContact, ItemData *item); + struct ItemData { MCONTACT hContact; MEVENT hEvent; - bool m_bRtf; bool m_bSelected, m_bHighlighted; bool m_bLoaded, m_bIsResult; bool m_bOfflineFile, m_bOfflineDownloaded; @@ -25,7 +26,7 @@ struct ItemData wchar_t *wtext; wchar_t *wszNick; - HANDLE data; + HText data; ItemData(); ~ItemData(); @@ -43,6 +44,10 @@ struct ItemData int getCopyTemplate() const; void getFontColor(int &fontId, int &colorId) const; + CMStringA formatRtf(); + CMStringW formatString() { return TplFormatString(getTemplate(), hContact, this); } + CMStringW formatStringEx(int tpl, wchar_t *sztpl); + inline wchar_t *getWBuf() { load(true); |
