summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-07 14:25:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 20:26:52 +0200
commitb14830db341ef1a136bf9f5e5ba3c7ea521bea48 (patch)
tree561e469edbecddb882ae8a8ff522cbc539960995 /include/vcl
parent707ad218ce5b446312a1d2fb18b18ab13364c5f7 (diff)
utility constructor for Image "private:graphicrepository" urls
Change-Id: I118039f4e47818a43da9302ce3550ea800522675 Reviewed-on: https://gerrit.libreoffice.org/64765 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins Reviewed-on: https://gerrit.libreoffice.org/64803 Tested-by: Michael Meeks <michael.meeks@collabora.com> (cherry picked from commit 408d190f399724b4928624acc7beda50191269fd) Reviewed-on: https://gerrit.libreoffice.org/79843 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/image.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/image.hxx b/include/vcl/image.hxx
index 862f1806296c..8ee5faff27a7 100644
--- a/include/vcl/image.hxx
+++ b/include/vcl/image.hxx
@@ -49,6 +49,8 @@ namespace vcl
#define IMAGELIST_IMAGE_NOTFOUND (sal_uInt16(0xFFFF))
+enum class StockImage { Yes };
+
class SAL_WARN_UNUSED VCL_DLLPUBLIC Image
{
friend class ::OutputDevice;
@@ -57,6 +59,7 @@ public:
explicit Image( const BitmapEx& rBitmapEx );
explicit Image( const css::uno::Reference< css::graphic::XGraphic >& rxGraphic );
explicit Image( const OUString &rPNGFileUrl );
+ explicit Image( StockImage, const OUString &rPNGFilePath );
Size GetSizePixel() const;