diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-30 13:02:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-31 14:08:44 +0200 |
commit | d4442ac1ac9aae36dbc08fda8154d71ea0f81708 (patch) | |
tree | 62fdc7419391dbf8c1cd92872ba2c9e12df2c4b6 /cui | |
parent | b7939ff897a173086643819451c7b2b4553c11c3 (diff) |
drop Graphic::GetBitmap
so that we flush out various code using Bitmap, in favour of using
BitmapEx.
This is part of the process of making Bitmap largely an internal detail
of vcl
Change-Id: Iaf2ead5e3d9960838723fb55b812b97108093d74
Reviewed-on: https://gerrit.libreoffice.org/55062
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/personalization.cxx | 6 | ||||
-rw-r--r-- | cui/source/tabpages/backgrnd.cxx | 8 | ||||
-rw-r--r-- | cui/source/tabpages/grfpage.cxx | 6 | ||||
-rw-r--r-- | cui/source/tabpages/numpages.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/tpline.cxx | 2 |
5 files changed, 11 insertions, 13 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index d05775e93a53..a4ab78bed8a6 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -436,7 +436,7 @@ void SvxPersonalizationTabPage::LoadDefaultImages() INetURLObject aURLObj( gallery + aPreviewFile ); aFilter.ImportGraphic( aGraphic, aURLObj ); - Bitmap aBmp = aGraphic.GetBitmap(); + BitmapEx aBmp = aGraphic.GetBitmapEx(); m_vDefaultPersonaImages[nIndex]->Show(); m_vDefaultPersonaImages[nIndex++]->SetModeImage( Image( aBmp ) ); } @@ -531,7 +531,7 @@ IMPL_LINK_NOARG( SvxPersonalizationTabPage, SelectInstalledPersona, ListBox&, vo Graphic aGraphic; INetURLObject aURLObj( aPreviewFile ); aFilter.ImportGraphic( aGraphic, aURLObj ); - Bitmap aBmp = aGraphic.GetBitmap(); + BitmapEx aBmp = aGraphic.GetBitmapEx(); m_pExtensionPersonaPreview->SetModeImage( Image( aBmp ) ); } @@ -781,7 +781,7 @@ void SearchAndParseThread::execute() // for VCL to be able to create bitmaps / do visual changes in the thread SolarMutexGuard aGuard; aFilter.ImportGraphic( aGraphic, aURLObj ); - Bitmap aBmp = aGraphic.GetBitmap(); + BitmapEx aBmp = aGraphic.GetBitmapEx(); if( !m_bExecute ) return; diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx index 8e7243a98220..6ad1cb6cc74a 100644 --- a/cui/source/tabpages/backgrnd.cxx +++ b/cui/source/tabpages/backgrnd.cxx @@ -685,7 +685,7 @@ bool SvxBackgroundTabPage::FillItemSet( SfxItemSet* rCoreSet ) { const Graphic* pGraphic = rOldItem.GetGraphic(); if (pGraphic) - bModifyBrush = pGraphic->GetBitmap() != aBgdGraphic.GetBitmap(); + bModifyBrush = pGraphic->GetBitmapEx() != aBgdGraphic.GetBitmapEx(); } if (bModifyBrush) { @@ -1100,7 +1100,7 @@ IMPL_LINK( SvxBackgroundTabPage, FileClickHdl_Impl, Button*, pBox, void ) if ( bIsGraphicValid ) { - Bitmap aBmp = aBgdGraphic.GetBitmap(); + Bitmap aBmp = aBgdGraphic.GetBitmapEx().GetBitmap(); m_pPreviewWin2->NotifyChange( &aBmp ); } else @@ -1208,7 +1208,7 @@ IMPL_LINK( SvxBackgroundTabPage, LoadIdleHdl_Impl, Timer*, pIdle, void ) if ( m_pBtnPreview->IsChecked() && bIsGraphicValid ) { - Bitmap aBmp = aBgdGraphic.GetBitmap(); + Bitmap aBmp = aBgdGraphic.GetBitmapEx().GetBitmap(); m_pPreviewWin2->NotifyChange( &aBmp ); } else @@ -1415,7 +1415,7 @@ void SvxBackgroundTabPage::FillControls_Impl( const SvxBrushItem& rBgdAttr, if ( m_pBtnPreview->IsChecked() && bIsGraphicValid ) { - Bitmap aBmp = aBgdGraphic.GetBitmap(); + Bitmap aBmp = aBgdGraphic.GetBitmapEx().GetBitmap(); m_pPreviewWin2->NotifyChange( &aBmp ); } else diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx index 6b148013bb00..0d1b9c8af88c 100644 --- a/cui/source/tabpages/grfpage.cxx +++ b/cui/source/tabpages/grfpage.cxx @@ -236,8 +236,7 @@ void SvxGrfCropPage::Reset( const SfxItemSet *rSet ) aOrigSize = GetGrfOrigSize( *pGrf ); if (pGrf->GetType() == GraphicType::Bitmap && aOrigSize.Width() && aOrigSize.Height()) { - Bitmap aBitmap = pGrf->GetBitmap(); - aOrigPixelSize = aBitmap.GetSizePixel(); + aOrigPixelSize = pGrf->GetSizePixel(); } if( aOrigSize.Width() && aOrigSize.Height() ) @@ -386,8 +385,7 @@ void SvxGrfCropPage::ActivatePage(const SfxItemSet& rSet) m_pExampleWN->SetGraphic( *pGrf ); aOrigSize = GetGrfOrigSize( *pGrf ); if (pGrf->GetType() == GraphicType::Bitmap && aOrigSize.Width() > 1 && aOrigSize.Height() > 1) { - Bitmap aBitmap = pGrf->GetBitmap(); - aOrigPixelSize = aBitmap.GetSizePixel(); + aOrigPixelSize = pGrf->GetSizePixel(); } m_pExampleWN->SetFrameSize(aOrigSize); GraphicHasChanged( aOrigSize.Width() && aOrigSize.Height() ); diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index 3c31e11d4a4b..439f1db1b656 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -2007,7 +2007,7 @@ IMPL_LINK_NOARG(SvxNumOptionsTabPage, PopupActivateHdl_Impl, MenuButton *, void) if(GalleryExplorer::GetGraphicObj( GALLERY_THEME_BULLETS, i, &aGraphic)) { - Bitmap aBitmap(aGraphic.GetBitmap()); + BitmapEx aBitmap(aGraphic.GetBitmapEx()); Size aSize(aBitmap.GetSizePixel()); if(aSize.Width() > MAX_BMP_WIDTH || aSize.Height() > MAX_BMP_HEIGHT) diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx index c855a9c13437..9c2249310ffc 100644 --- a/cui/source/tabpages/tpline.cxx +++ b/cui/source/tabpages/tpline.cxx @@ -310,7 +310,7 @@ void SvxLineTabPage::InitSymbols(MenuButton const * pButton) if(pGraphic) { - Bitmap aBitmap(pGraphic->GetBitmap()); + BitmapEx aBitmap(pGraphic->GetBitmapEx()); Size aSize(aBitmap.GetSizePixel()); if(aSize.Width() > MAX_BMP_WIDTH || aSize.Height() > MAX_BMP_HEIGHT) { |