diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-06 15:30:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-06 19:29:51 +0000 |
commit | 353ede41b97729a98ac090f89889a055051db98c (patch) | |
tree | 81ca62be616da3e8f79f4de4f04eae7d90850b8a /vcl | |
parent | a70ad1568ea0fb5b4d7f888fb56fcee130afc433 (diff) |
add Assistant::set_page_side_image
Change-Id: I70685a74ebed465771473ce885f4f29af209cda6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143737
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/wizdlg.hxx | 1 | ||||
-rw-r--r-- | vcl/source/app/salvtables.cxx | 5 | ||||
-rw-r--r-- | vcl/source/control/roadmapwizard.cxx | 5 | ||||
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 5 |
4 files changed, 16 insertions, 0 deletions
diff --git a/vcl/inc/wizdlg.hxx b/vcl/inc/wizdlg.hxx index da3ff4d1af3a..31bd376168b6 100644 --- a/vcl/inc/wizdlg.hxx +++ b/vcl/inc/wizdlg.hxx @@ -134,6 +134,7 @@ namespace vcl const Size& GetPageSizePixel() const { return maPageSize; } void SetRoadmapHelpId( const OString& _rId ); + void SetRoadmapBitmap( const BitmapEx& maBitmap ); void InsertRoadmapItem(int nIndex, const OUString& rLabel, int nId, bool bEnabled); void DeleteRoadmapItems(); diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 7af5cccb4e6b..39ee33de947f 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -2157,6 +2157,11 @@ public: m_xWizard->SetRoadmapHelpId(rHelpId); } + virtual void set_page_side_image(const OUString& rImage) override + { + m_xWizard->SetRoadmapBitmap(createImage(rImage).GetBitmapEx()); + } + weld::Button* weld_widget_for_response(int nResponse) override; virtual ~SalInstanceAssistant() override diff --git a/vcl/source/control/roadmapwizard.cxx b/vcl/source/control/roadmapwizard.cxx index b1738d5bef83..fe4c53b92e02 100644 --- a/vcl/source/control/roadmapwizard.cxx +++ b/vcl/source/control/roadmapwizard.cxx @@ -228,6 +228,11 @@ namespace vcl m_xRoadmapImpl->pRoadmap->SetHelpId( _rId ); } + void RoadmapWizard::SetRoadmapBitmap(const BitmapEx& rBmp) + { + m_xRoadmapImpl->pRoadmap->SetRoadmapBitmap(rBmp); + } + void RoadmapWizardMachine::SetRoadmapHelpId(const OString& rId) { m_xAssistant->set_page_side_help_id(rId); diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index dce54e17d693..e523e871290d 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -7735,6 +7735,11 @@ public: return pButton; } + virtual void set_page_side_image(const OUString& /*rImage*/) override + { + // Since GTK+ 3.2, sidebar images are not shown anymore + } + virtual ~GtkInstanceAssistant() override { if (m_nButtonPressSignalId) |