From 210010f8ec3aaa180d29937ca22119fba5ecaeed Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Mar 2024 17:15:58 +0300 Subject: NewStory: first html-based version which looks more or less like RTF version --- plugins/NewStory/src/history_array.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'plugins/NewStory/src/history_array.h') diff --git a/plugins/NewStory/src/history_array.h b/plugins/NewStory/src/history_array.h index 00482f76c2..f5a39ba5bd 100644 --- a/plugins/NewStory/src/history_array.h +++ b/plugins/NewStory/src/history_array.h @@ -26,29 +26,28 @@ struct ItemData wchar_t *wszNick; struct NewstoryListData *pOwner; - HText data; + litehtml::document::ptr m_doc; ItemData(); ~ItemData(); - ItemData* checkNext(ItemData *pPrev, HWND hwnd); - ItemData* checkPrev(ItemData *pPrev, HWND hwnd); - ItemData* checkPrevGC(ItemData *pPrev, HWND hwnd); - void checkCreate(HWND hwnd); - void setText(HWND hwnd); + ItemData* checkNext(ItemData *pPrev); + ItemData* checkPrev(ItemData *pPrev); + ItemData* checkPrevGC(ItemData *pPrev); + void checkCreate(); + int calcHeight(int top, int width, POINT *pPos = nullptr); bool completed() const { return m_bOfflineDownloaded == 100; } bool fetch(void); void fill(int tmpl); void load(bool bLoad = false); - bool isLink(HWND, POINT pt, CMStringW *url = nullptr) const; - bool isLinkChar(HWND, int idx) const; + void setText(); int getTemplate() const; int getCopyTemplate() const; void getFontColor(int &fontId, int &colorId) const; - CMStringA formatRtf(const wchar_t *pwszStr = 0); + CMStringA formatHtml(const wchar_t *pwszStr = 0); CMStringW formatString() { return TplFormatString(getTemplate(), hContact, this); } CMStringW formatStringEx(wchar_t *sztpl); -- cgit v1.2.3