diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-01 16:37:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-21 08:19:31 +0200 |
commit | ec665e3e898e733c9f602b21046079e569b58568 (patch) | |
tree | d557ec77afb9c7a19c4edf46325a403ef1a05d10 /svx/source | |
parent | 30d5569dcf46ddd84a85eb9bd38e18e59cfd2c9d (diff) |
use more OutputDevice::GetBitmapEx
instead of GetBitmap
Change-Id: Ib43cfaf3c91968d623e5a24f44539368da28d36f
Reviewed-on: https://gerrit.libreoffice.org/55190
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/dialog/frmsel.cxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 4 | ||||
-rw-r--r-- | svx/source/tbxctrls/colrctrl.cxx | 2 | ||||
-rw-r--r-- | svx/source/tbxctrls/fontworkgallery.cxx | 2 | ||||
-rw-r--r-- | svx/source/tbxctrls/itemwin.cxx | 2 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 2 | ||||
-rw-r--r-- | svx/source/unodraw/UnoGraphicExporter.cxx | 2 | ||||
-rw-r--r-- | svx/source/xoutdev/xattrbmp.cxx | 2 | ||||
-rw-r--r-- | svx/source/xoutdev/xtabbtmp.cxx | 2 | ||||
-rw-r--r-- | svx/source/xoutdev/xtabdash.cxx | 2 | ||||
-rw-r--r-- | svx/source/xoutdev/xtabgrdt.cxx | 2 | ||||
-rw-r--r-- | svx/source/xoutdev/xtabhtch.cxx | 2 | ||||
-rw-r--r-- | svx/source/xoutdev/xtablend.cxx | 2 | ||||
-rw-r--r-- | svx/source/xoutdev/xtabptrn.cxx | 2 |
14 files changed, 16 insertions, 14 deletions
diff --git a/svx/source/dialog/frmsel.cxx b/svx/source/dialog/frmsel.cxx index d18462934d09..2d08e49fb5a7 100644 --- a/svx/source/dialog/frmsel.cxx +++ b/svx/source/dialog/frmsel.cxx @@ -705,7 +705,7 @@ void FrameSelectorImpl::CopyVirDevToControl(vcl::RenderContext& rRenderContext) { if (mbFullRepaint) DrawVirtualDevice(); - rRenderContext.DrawBitmap(maVirDevPos, mpVirDev->GetBitmap(Point(0, 0), mpVirDev->GetOutputSizePixel())); + rRenderContext.DrawBitmapEx(maVirDevPos, mpVirDev->GetBitmapEx(Point(0, 0), mpVirDev->GetOutputSizePixel())); } void FrameSelectorImpl::DrawAllTrackingRects() diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index 35efe327c090..40cf9e9ed43f 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -3372,9 +3372,11 @@ void SvxRuler::Command( const CommandEvent& rCommandEvent ) sal_uInt16 nStyle = bRTL ? i|RULER_TAB_RTL : i; nStyle |= static_cast<sal_uInt16>(bHorz ? WB_HORZ : WB_VERT); DrawTab(*pDev, aFillColor, aPt, nStyle); + BitmapEx aItemBitmapEx(pDev->GetBitmapEx(Point(), aSz)); + aItemBitmapEx.Replace(COL_WHITE, COL_TRANSPARENT); aMenu->InsertItem(i + 1, SvxResId(RID_SVXSTR_RULER_TAB[i]), - Image(BitmapEx(pDev->GetBitmap(Point(), aSz), COL_WHITE))); + Image(aItemBitmapEx)); aMenu->CheckItem(i + 1, i == mpTabs[mxRulerImpl->nIdx + TAB_GAP].nStyle); pDev->SetOutputSize(aSz); // delete device } diff --git a/svx/source/tbxctrls/colrctrl.cxx b/svx/source/tbxctrls/colrctrl.cxx index c07f74952e0d..34e403b7cf11 100644 --- a/svx/source/tbxctrls/colrctrl.cxx +++ b/svx/source/tbxctrls/colrctrl.cxx @@ -277,7 +277,7 @@ void SvxColorDockingWindow::FillValueSet() pVD->DrawLine( Point(), Point( nPtX, nPtY ) ); pVD->DrawLine( Point( 0, nPtY ), Point( nPtX, 0 ) ); - BitmapEx aBmp( pVD->GetBitmap( Point(), aColorSize ) ); + BitmapEx aBmp( pVD->GetBitmapEx( Point(), aColorSize ) ); aColorSet->InsertItem( sal_uInt16(1), Image(aBmp), SvxResId( RID_SVXSTR_INVISIBLE ) ); diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx index 1c2d236d69ad..26d68f321830 100644 --- a/svx/source/tbxctrls/fontworkgallery.cxx +++ b/svx/source/tbxctrls/fontworkgallery.cxx @@ -137,7 +137,7 @@ void FontWorkGalleryDialog::initFavorites(sal_uInt16 nThemeId) pVDev->DrawCheckered(aNull, aSize, nLen, aW, aG); pVDev->DrawBitmapEx(aNull, aThumb); - maFavoritesHorizontal.emplace_back(pVDev->GetBitmap(aNull, aSize)); + maFavoritesHorizontal.emplace_back(pVDev->GetBitmapEx(aNull, aSize)); } } diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx index 1f9f2fd31497..550d916eafea 100644 --- a/svx/source/tbxctrls/itemwin.cxx +++ b/svx/source/tbxctrls/itemwin.cxx @@ -608,7 +608,7 @@ namespace } } - rBitmapEx = pVirtualDevice->GetBitmap(Point(0, 0), rSize); + rBitmapEx = pVirtualDevice->GetBitmapEx(Point(0, 0), rSize); } } } // end of anonymous namespace diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index cd6cd4a2e5ad..7842897b42fa 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -3350,7 +3350,7 @@ void SvxColorListBox::ShowPreview(const NamedColor &rColor) xDevice->SetLineColor(rStyleSettings.GetDisableColor()); xDevice->DrawRect(aRect); - BitmapEx aBitmap(xDevice->GetBitmap(Point(0, 0), xDevice->GetOutputSize())); + BitmapEx aBitmap(xDevice->GetBitmapEx(Point(0, 0), xDevice->GetOutputSize())); SetImageAlign(ImageAlign::Left); SetModeImage(Image(aBitmap)); SetText(rColor.second); diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx index 52b7eb7db319..ffb4675e6500 100644 --- a/svx/source/unodraw/UnoGraphicExporter.cxx +++ b/svx/source/unodraw/UnoGraphicExporter.cxx @@ -705,7 +705,7 @@ bool GraphicExporter::GetGraphic( ExportSettings const & rSettings, Graphic& aGr if( pVDev ) { - aGraphic = pVDev->GetBitmap( Point(), pVDev->GetOutputSize() ); + aGraphic = pVDev->GetBitmapEx( Point(), pVDev->GetOutputSize() ); aGraphic.SetPrefMapMode( aMap ); aGraphic.SetPrefSize( aSize ); } diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx index a25c5d41faf4..2e9269857935 100644 --- a/svx/source/xoutdev/xattrbmp.cxx +++ b/svx/source/xoutdev/xattrbmp.cxx @@ -125,7 +125,7 @@ void XOBitmap::Array2Bitmap() } } - xGraphicObject.reset(new GraphicObject(pVDev->GetBitmap(Point(), Size(nLines, nLines)))); + xGraphicObject.reset(new GraphicObject(pVDev->GetBitmapEx(Point(), Size(nLines, nLines)))); bGraphicDirty = false; } diff --git a/svx/source/xoutdev/xtabbtmp.cxx b/svx/source/xoutdev/xtabbtmp.cxx index 48e35946b790..5123a0cf72f6 100644 --- a/svx/source/xoutdev/xtabbtmp.cxx +++ b/svx/source/xoutdev/xtabbtmp.cxx @@ -96,7 +96,7 @@ BitmapEx XBitmapList::CreateBitmap( long nIndex, const Size& rSize ) const } } } - rBitmapEx = pVirtualDevice->GetBitmap(Point(0, 0), rSize); + rBitmapEx = pVirtualDevice->GetBitmapEx(Point(0, 0), rSize); return rBitmapEx; } else diff --git a/svx/source/xoutdev/xtabdash.cxx b/svx/source/xoutdev/xtabdash.cxx index 72687605b11d..2b890ca5b198 100644 --- a/svx/source/xoutdev/xtabdash.cxx +++ b/svx/source/xoutdev/xtabdash.cxx @@ -168,7 +168,7 @@ BitmapEx XDashList::ImpCreateBitmapForXDash(const XDash* pDash) } // get result bitmap and scale - BitmapEx aRetval(pVirtualDevice->GetBitmap(Point(0, 0), pVirtualDevice->GetOutputSizePixel())); + BitmapEx aRetval(pVirtualDevice->GetBitmapEx(Point(0, 0), pVirtualDevice->GetOutputSizePixel())); if(1 != nFactor) { diff --git a/svx/source/xoutdev/xtabgrdt.cxx b/svx/source/xoutdev/xtabgrdt.cxx index f9e3f0b0ced9..c9b538920c68 100644 --- a/svx/source/xoutdev/xtabgrdt.cxx +++ b/svx/source/xoutdev/xtabgrdt.cxx @@ -200,7 +200,7 @@ BitmapEx XGradientList::CreateBitmap( long nIndex, const Size& rSize ) const } // get result bitmap and scale - aRetval = pVirtualDevice->GetBitmap(Point(0, 0), pVirtualDevice->GetOutputSizePixel()); + aRetval = pVirtualDevice->GetBitmapEx(Point(0, 0), pVirtualDevice->GetOutputSizePixel()); } return aRetval; diff --git a/svx/source/xoutdev/xtabhtch.cxx b/svx/source/xoutdev/xtabhtch.cxx index 41eda4885fea..fe4e48362a84 100644 --- a/svx/source/xoutdev/xtabhtch.cxx +++ b/svx/source/xoutdev/xtabhtch.cxx @@ -175,7 +175,7 @@ BitmapEx XHatchList::CreateBitmap( long nIndex, const Size& rSize) const } // get result bitmap and scale - aRetval = pVirtualDevice->GetBitmap(Point(0, 0), pVirtualDevice->GetOutputSizePixel()); + aRetval = pVirtualDevice->GetBitmapEx(Point(0, 0), pVirtualDevice->GetOutputSizePixel()); } return aRetval; diff --git a/svx/source/xoutdev/xtablend.cxx b/svx/source/xoutdev/xtablend.cxx index ccf9aba113eb..e70016af4149 100644 --- a/svx/source/xoutdev/xtablend.cxx +++ b/svx/source/xoutdev/xtablend.cxx @@ -157,7 +157,7 @@ BitmapEx XLineEndList::CreateBitmapForUI( long nIndex ) } // get result bitmap and scale - aRetval = pVirtualDevice->GetBitmap(Point(0, 0), pVirtualDevice->GetOutputSizePixel()); + aRetval = pVirtualDevice->GetBitmapEx(Point(0, 0), pVirtualDevice->GetOutputSizePixel()); } return aRetval; diff --git a/svx/source/xoutdev/xtabptrn.cxx b/svx/source/xoutdev/xtabptrn.cxx index 1395fdc12d7d..853fd24a819e 100644 --- a/svx/source/xoutdev/xtabptrn.cxx +++ b/svx/source/xoutdev/xtabptrn.cxx @@ -132,7 +132,7 @@ BitmapEx XPatternList::CreateBitmap( long nIndex, const Size& rSize ) const } } } - rBitmapEx = pVirtualDevice->GetBitmap(Point(0, 0), rSize); + rBitmapEx = pVirtualDevice->GetBitmapEx(Point(0, 0), rSize); return rBitmapEx; } else |