summaryrefslogtreecommitdiff
path: root/vcl/inc/salvtables.hxx
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2024-06-27 11:11:13 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2024-07-09 07:50:31 +0200
commitfcad7309358bc66dd37f37b64d30be841bd61832 (patch)
treef2862c58c1d2771db7ddb0ca67759e1c4a406b5b /vcl/inc/salvtables.hxx
parent2e25618fe7370e9f378da0b03bca8fac471f01f3 (diff)
jsdialog: support on demand rendering for icon view
- rename action: rendered_combobox_entry -> rendered_entry - change generic get json property callback to more specialized image getter as it wasn't used anywhere apart of that and we need image enceded as base64 only not JSON - add to the full update of icon view "ondemand" property to the entries with images so LOK client will know it has to download the render - it will be possible to support HiDPI renders in the future: added TODO Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: I83a6e91133f8f9cb03e0bc794b51e1947435fa90 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169622 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170160 Tested-by: Jenkins
Diffstat (limited to 'vcl/inc/salvtables.hxx')
-rw-r--r--vcl/inc/salvtables.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx
index 47c692793001..708e4753fd89 100644
--- a/vcl/inc/salvtables.hxx
+++ b/vcl/inc/salvtables.hxx
@@ -1920,10 +1920,12 @@ public:
class SalInstanceIconView : public SalInstanceWidget, public virtual weld::IconView
{
+protected:
+ VclPtr<::IconView> m_xIconView;
+
private:
// owner for UserData
std::vector<std::unique_ptr<OUString>> m_aUserData;
- VclPtr<::IconView> m_xIconView;
DECL_LINK(SelectHdl, SvTreeListBox*, void);
DECL_LINK(DeSelectHdl, SvTreeListBox*, void);
@@ -1931,7 +1933,7 @@ private:
DECL_LINK(CommandHdl, const CommandEvent&, bool);
DECL_LINK(TooltipHdl, SvTreeListEntry*, OUString);
DECL_LINK(EntryAccessibleDescriptionHdl, SvTreeListEntry*, OUString);
- DECL_LINK(DumpElemToPropertyTreeHdl, const ::IconView::json_prop_query&, bool);
+ DECL_LINK(DumpImageHdl, const ::IconView::encoded_image_query&, bool);
public:
SalInstanceIconView(::IconView* pIconView, SalInstanceBuilder* pBuilder, bool bTakeOwnership);
@@ -1954,7 +1956,7 @@ public:
virtual void connect_query_tooltip(const Link<const weld::TreeIter&, OUString>& rLink) override;
virtual void
- connect_get_property_tree_elem(const Link<const weld::json_prop_query&, bool>& rLink) override;
+ connect_get_image(const Link<const weld::encoded_image_query&, bool>& rLink) override;
virtual OUString get_selected_id() const override;