36 :
mrModel(rSlideSorter.GetModel()),
80 auto pKeys = std::make_shared<std::vector<cache::CacheKey>>();
87 while (aPageEnumeration.HasMoreElements())
90 pKeys->push_back(pDescriptor->GetPage());
103 sal_uInt16 nPageIndex ((aKey->
GetPageNum() - 1) / 2);
SlideSorter & mrSlideSorter
css::uno::Reference< css::uno::XInterface > const & getUnoModel()
sal_uInt16 GetPageNum() const
Show previews for all the slides in a document and allow the user to insert or delete slides and modi...
const VclPtr< sd::Window > & GetContentWindow() const
Return the content window.
view::SlideSorterView & GetView() const
static PageEnumeration CreateAllPagesEnumeration(const SlideSorterModel &rModel)
The returned enumeration of slides iterates over all slides of the given model.
static PageEnumeration CreateVisiblePagesEnumeration(const SlideSorterModel &rModel)
The returned enumeration of slides iterates over the slides (partially) inside the visible area.
Public class of page enumerations that delegates its calls to an implementation object that can filte...
SdDrawDocument * GetDocument()
This method is present to let the view create a ShowView for displaying slides.
SharedPageDescriptor GetPageDescriptor(const sal_Int32 nPageIndex, const bool bCreate=true) const
Return a page descriptor for the page with the specified index.
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...
std::shared_ptr< PageDescriptor > SharedPageDescriptor