summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_array.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-20 17:15:58 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-20 17:15:58 +0300
commit210010f8ec3aaa180d29937ca22119fba5ecaeed (patch)
treeeca09f815f62d61de722b5084a1b631abb615a0b /plugins/NewStory/src/history_array.h
parent78b05a9a69927af0bcad6d88036bc8b9d58dc152 (diff)
NewStory: first html-based version which looks more or less like RTF version
Diffstat (limited to 'plugins/NewStory/src/history_array.h')
-rw-r--r--plugins/NewStory/src/history_array.h17
1 files changed, 8 insertions, 9 deletions
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);