From ea3d755ac949c1b6dada5c341e018f8c23f5d395 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Sat, 31 Mar 2018 17:27:01 +0900 Subject: vcl: detach usage and remove GraphicManager and GraphicCache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also remove some GraphicObjectTest because they call into GraphicManager which now doesn't exist anymore. Change-Id: Ia434736d8611df629af3e897c878a7fb8bbe4706 Reviewed-on: https://gerrit.libreoffice.org/52243 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- sw/source/core/doc/notxtfrm.cxx | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'sw') diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx index 4aae97a40690..6d503dce45fa 100644 --- a/sw/source/core/doc/notxtfrm.cxx +++ b/sw/source/core/doc/notxtfrm.cxx @@ -743,29 +743,8 @@ void SwNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNew ) case RES_GRF_REREAD_AND_INCACHE: if( SwNodeType::Grf == GetNode()->GetNodeType() ) { + // TODO: Remove - due to GraphicObject refactoring bComplete = false; - SwGrfNode* pNd = static_cast( GetNode()); - - SwViewShell* pVSh = pNd->GetDoc()->getIDocumentLayoutAccess().GetCurrentViewShell(); - if( pVSh ) - { - GraphicAttr aAttr; - if( pNd->GetGrfObj().IsCached( pVSh->GetOut(), - getFramePrintArea().SSize(), &pNd->GetGraphicAttr( aAttr, this ) )) - { - for(SwViewShell& rShell : pVSh->GetRingContainer()) - { - SET_CURR_SHELL( &rShell ); - if( rShell.GetWin() ) - { - if( rShell.IsPreview() ) - ::RepaintPagePreview( &rShell, getFrameArea().SVRect() ); - else - rShell.GetWin()->Invalidate( getFrameArea().SVRect() ); - } - } - } - } } break; -- cgit