Commits

Anonymous committed 17427df

cws swcoreseparation: #i117814#: move static function to clear the grfcache into the class SwGrfNode

Comments (0)

Files changed (4)

sw/inc/mdiexp.hxx

 
 void RepaintPagePreview( ViewShell* pVwSh, const SwRect& rRect );
 
-// ndgrf.cxx
-// alle QuickDraw-Bitmaps des speziellen Docs loeschen
-void DelAllGrfCacheEntries( SwDoc* pDoc );
-
 sal_Bool JumpToSwMark( ViewShell* pVwSh, const UniString& rMark );
 
 
 	GraphicAttr& GetGraphicAttr( GraphicAttr&, const SwFrm* pFrm ) const;
 
 #endif
-    // --> OD 2007-01-18 #i73788#
     boost::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer > GetThreadConsumer();
     bool IsLinkedInputStreamReady() const;
     void TriggerAsyncRetrieveInputStream();
         com::sun::star::uno::Reference<com::sun::star::io::XInputStream> xInputStream,
         const sal_Bool bIsStreamReadOnly );
     void UpdateLinkWithInputStream();
-    // <--
-    // --> OD 2008-07-21 #i90395#
     bool IsAsyncRetrieveInputStreamPossible() const;
-    // <--
+    static void DelAllGrfCacheEntries( SwDoc* pDoc );
 };
 
 

sw/source/core/graphic/ndgrf.cxx

 
 
 // alle QuickDraw-Bitmaps eines speziellen Docs loeschen
-void DelAllGrfCacheEntries( SwDoc* pDoc )
+void SwGrfNode::DelAllGrfCacheEntries( SwDoc* pDoc )
 {
 	if( pDoc )
 	{

sw/source/ui/app/docsh.cxx

 #include <cmdid.h>
 #include <globals.hrc>
 #include <app.hrc>
-
+#include <ndgrf.hxx>
 #include <cfgid.h>
 #include <unotools/moduleoptions.hxx>
 #include <unotools/fltrcfg.hxx>
 
 void SwDocShell::PrepareReload()
 {
-	::DelAllGrfCacheEntries( pDoc );
+	SwGrfNode::DelAllGrfCacheEntries( pDoc );
 }
 
 // --> OD 2006-11-07 #i59688#