summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-03-31 17:27:01 +0900
committerTomaž Vajngerl <quikee@gmail.com>2018-04-10 08:33:55 +0200
commitea3d755ac949c1b6dada5c341e018f8c23f5d395 (patch)
tree086b3573d3e2f64fd918df4996d1f00ad9aa863b /sw
parent94185507ed11bf6e2e2e9fa47c247680ae1edb36 (diff)
vcl: detach usage and remove GraphicManager and GraphicCache
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 <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/notxtfrm.cxx23
1 files changed, 1 insertions, 22 deletions
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<SwGrfNode*>( 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;