This interface allows the individualisation of different instances of the PreviewCache.
The cache context for the SlideSorter as used by Draw and Impress.
model::SharedPageDescriptor GetDescriptor(cache::CacheKey aKey)
SlideSorter & mrSlideSorter
virtual ~ViewCacheContext() override
virtual const SdrPage * GetPage(cache::CacheKey aKey) override
Return the page associated with the given key.
virtual void NotifyPreviewCreation(cache::CacheKey aKey) override
This method is called when the asynchronous creation of a preview has been finished.
model::SlideSorterModel & mrModel
ViewCacheContext(SlideSorter &rSlideSorter)
virtual bool IsVisible(cache::CacheKey aKey) override
This method is used to determine whether a page is currently visible or not.
virtual css::uno::Reference< css::uno::XInterface > GetModel() override
Return the model to which the pages belong for which the called cache manages the previews.
virtual sal_Int32 GetPriority(cache::CacheKey aKey) override
Return the priority that defines the order in which previews are created for different keys/pages.
virtual std::shared_ptr< std::vector< cache::CacheKey > > GetEntryList(bool bVisible) override
This method is used when the request queue is filled.
virtual bool IsIdle() override
Called to determine whether the system is idle and a preview can be created without annoying the user...