summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_control.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-22 17:35:26 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-22 17:35:26 +0300
commit6826bf257d23a3847246aa26d220889386affb49 (patch)
tree59c663002120be387aa9b2e5f77472a01c6c4843 /plugins/NewStory/src/history_control.h
parentf796b157ac5cc978825d24fa7ccdae1a3501d782 (diff)
for #4289 - fix for a font mappings
Diffstat (limited to 'plugins/NewStory/src/history_control.h')
-rw-r--r--plugins/NewStory/src/history_control.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/NewStory/src/history_control.h b/plugins/NewStory/src/history_control.h
index 41ee67ed1c..a7ff76727c 100644
--- a/plugins/NewStory/src/history_control.h
+++ b/plugins/NewStory/src/history_control.h
@@ -5,25 +5,24 @@
struct NewstoryListData;
-class NSWebPage : public windows_container
+class NSWebPage : public gdiplus_container
{
+ typedef gdiplus_container CSuper;
+
NewstoryListData &ctrl;
- cairo_images_cache m_images;
- cairo_surface_t *get_image(const std::string &url) override;
litehtml::string resolve_color(const litehtml::string &color) const;
void get_client_rect(litehtml::position &client) const override;
+ uint_ptr get_image(LPCWSTR url_or_path, bool redraw_on_ready) override;
void import_css(litehtml::string &text, const litehtml::string &url, litehtml::string &baseurl) override;
- void load_image(const char *src, const char *baseurl, bool redraw_on_ready) override;
+ void make_url(LPCWSTR url, LPCWSTR basepath, std::wstring &out) override;
void on_anchor_click(const char *url, const litehtml::element::ptr &el) override;
void set_base_url(const char *base_url) override;
void set_caption(const char *caption) override;
void set_clip(const litehtml::position &pos, const litehtml::border_radiuses &bdr_radius) override;
void set_cursor(const char *cursor) override;
- void on_image_loaded(const wchar_t *file, const wchar_t *url, bool redraw_only);
-
public:
NSWebPage(NewstoryListData &_1) :
ctrl(_1)
@@ -108,7 +107,7 @@ struct NewstoryListData : public MZeroedObject
void OpenFolder();
void PageUp();
void PageDown();
- void Paint(simpledib::dib &dib, RECT *rcDraw);
+ void Paint(simpledib::dib &dib);
void Quote();
void RecalcScrollBar();
void Reply();