diff options
Diffstat (limited to 'svtools/source/graphic/grfcache.hxx')
-rw-r--r-- | svtools/source/graphic/grfcache.hxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/svtools/source/graphic/grfcache.hxx b/svtools/source/graphic/grfcache.hxx index 99df81b1d32e..0885667aa2b7 100644 --- a/svtools/source/graphic/grfcache.hxx +++ b/svtools/source/graphic/grfcache.hxx @@ -47,12 +47,12 @@ private: Timer maReleaseTimer; List maGraphicCache; List maDisplayCache; - sal_uIntPtr mnReleaseTimeoutSeconds; - sal_uIntPtr mnMaxDisplaySize; - sal_uIntPtr mnMaxObjDisplaySize; - sal_uIntPtr mnUsedDisplaySize; + sal_uLong mnReleaseTimeoutSeconds; + sal_uLong mnMaxDisplaySize; + sal_uLong mnMaxObjDisplaySize; + sal_uLong mnUsedDisplaySize; - sal_Bool ImplFreeDisplayCacheSpace( sal_uIntPtr nSizeToFree ); + sal_Bool ImplFreeDisplayCacheSpace( sal_uLong nSizeToFree ); GraphicCacheEntry* ImplGetCacheEntry( const GraphicObject& rObj ); @@ -61,8 +61,8 @@ private: public: GraphicCache( GraphicManager& rMgr, - sal_uIntPtr nDisplayCacheSize = 10000000UL, - sal_uIntPtr nMaxObjDisplayCacheSize = 2400000UL ); + sal_uLong nDisplayCacheSize = 10000000UL, + sal_uLong nMaxObjDisplayCacheSize = 2400000UL ); ~GraphicCache(); public: @@ -79,17 +79,17 @@ public: public: - void SetMaxDisplayCacheSize( sal_uIntPtr nNewCacheSize ); - sal_uIntPtr GetMaxDisplayCacheSize() const { return mnMaxDisplaySize; }; + void SetMaxDisplayCacheSize( sal_uLong nNewCacheSize ); + sal_uLong GetMaxDisplayCacheSize() const { return mnMaxDisplaySize; }; - void SetMaxObjDisplayCacheSize( sal_uIntPtr nNewMaxObjSize, sal_Bool bDestroyGreaterCached = sal_False ); - sal_uIntPtr GetMaxObjDisplayCacheSize() const { return mnMaxObjDisplaySize; } + void SetMaxObjDisplayCacheSize( sal_uLong nNewMaxObjSize, sal_Bool bDestroyGreaterCached = sal_False ); + sal_uLong GetMaxObjDisplayCacheSize() const { return mnMaxObjDisplaySize; } - sal_uIntPtr GetUsedDisplayCacheSize() const { return mnUsedDisplaySize; } - sal_uIntPtr GetFreeDisplayCacheSize() const { return( mnMaxDisplaySize - mnUsedDisplaySize ); } + sal_uLong GetUsedDisplayCacheSize() const { return mnUsedDisplaySize; } + sal_uLong GetFreeDisplayCacheSize() const { return( mnMaxDisplaySize - mnUsedDisplaySize ); } - void SetCacheTimeout( sal_uIntPtr nTimeoutSeconds ); - sal_uIntPtr GetCacheTimeout() const { return mnReleaseTimeoutSeconds; } + void SetCacheTimeout( sal_uLong nTimeoutSeconds ); + sal_uLong GetCacheTimeout() const { return mnReleaseTimeoutSeconds; } void ClearDisplayCache(); sal_Bool IsDisplayCacheable( OutputDevice* pOut, const Point& rPt, const Size& rSz, |