From 04716690f6c5193f15868bc71e7d17c53e085a54 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 4 Jun 2021 15:58:01 +0200 Subject: sw HTML export: allow custom DPI for the bitmaps of shapes But leave the CSS pixel size of them unchanged in the HTML markup. Also add some documentation on the various options, so one doesn't have to dig them out from testcases. Change-Id: I6c6ee4e9c98d674f44e7c5835f2e6a6737e13f34 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116722 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- svx/source/svdraw/svdxcgv.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'svx') diff --git a/svx/source/svdraw/svdxcgv.cxx b/svx/source/svdraw/svdxcgv.cxx index 7d52431cd2b7..af4e41734db8 100644 --- a/svx/source/svdraw/svdxcgv.cxx +++ b/svx/source/svdraw/svdxcgv.cxx @@ -425,7 +425,7 @@ void SdrExchangeView::ImpPasteObject(SdrObject* pObj, SdrObjList& rLst, const Po } } -BitmapEx SdrExchangeView::GetMarkedObjBitmapEx(bool bNoVDevIfOneBmpMarked) const +BitmapEx SdrExchangeView::GetMarkedObjBitmapEx(bool bNoVDevIfOneBmpMarked, const std::optional& rTargetDPI) const { BitmapEx aBmp; @@ -503,7 +503,8 @@ BitmapEx SdrExchangeView::GetMarkedObjBitmapEx(bool bNoVDevIfOneBmpMarked) const xPrimitives, aRange, /*nMaximumQuadraticPixels=*/ 500000, - eRangeUnit); + eRangeUnit, + rTargetDPI); } } } -- cgit