diff options
author | Rishabh Kumar <kris.kr296@gmail.com> | 2016-07-04 14:52:00 +0530 |
---|---|---|
committer | Rishabh Kumar <kris.kr296@yahoo.in> | 2016-07-04 12:35:02 +0000 |
commit | d92b41ce9c87547fde5c43b3bea05b3be79a63f6 (patch) | |
tree | 0ce1f198bf28469f514f078116b8d5025adcf6c9 /svx | |
parent | 4e3ed5aeb5c998ee4077138fe802b471bea9fcb2 (diff) |
Make hatch UI bitmap resizable
Change-Id: I34e1db1f462c87d7b3a2ff9531189bea189b2ce8
Reviewed-on: https://gerrit.libreoffice.org/26894
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Rishabh Kumar <kris.kr296@yahoo.in>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/xoutdev/xtabhtch.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/svx/source/xoutdev/xtabhtch.cxx b/svx/source/xoutdev/xtabhtch.cxx index bb66f709ed75..78869c87d5fa 100644 --- a/svx/source/xoutdev/xtabhtch.cxx +++ b/svx/source/xoutdev/xtabhtch.cxx @@ -80,7 +80,7 @@ bool XHatchList::Create() return true; } -Bitmap XHatchList::CreateBitmapForUI( long nIndex ) +Bitmap XHatchList::CreateBitmap( long nIndex, const Size& rSize) const { Bitmap aRetval; OSL_ENSURE(nIndex < Count(), "OOps, access out of range (!)"); @@ -88,7 +88,6 @@ Bitmap XHatchList::CreateBitmapForUI( long nIndex ) if(nIndex < Count()) { const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); - const Size& rSize = rStyleSettings.GetListBoxPreviewDefaultPixelSize(); // prepare polygon geometry for rectangle const basegfx::B2DPolygon aRectangle( @@ -186,4 +185,17 @@ Bitmap XHatchList::CreateBitmapForUI( long nIndex ) return aRetval; } +Bitmap XHatchList::CreateBitmapForUI(long nIndex) +{ + const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); + const Size& rSize = rStyleSettings.GetListBoxPreviewDefaultPixelSize(); + Bitmap aRetVal = CreateBitmap(nIndex, rSize); + return aRetVal; +} + +Bitmap XHatchList::GetBitmapForPreview(long nIndex, const Size& rSize) +{ + return CreateBitmap(nIndex, rSize); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |