LibreOffice Module sd (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
sd::presenter::PresenterPreviewCache::PresenterCacheContext Class Reference
Inheritance diagram for sd::presenter::PresenterPreviewCache::PresenterCacheContext:
[legend]
Collaboration diagram for sd::presenter::PresenterPreviewCache::PresenterCacheContext:
[legend]

Public Member Functions

 PresenterCacheContext ()
 
void SetDocumentSlides (const Reference< container::XIndexAccess > &rxSlides, const Reference< XInterface > &rxDocument)
 
void SetVisibleSlideRange (const sal_Int32 nFirstVisibleSlideIndex, const sal_Int32 nLastVisibleSlideIndex)
 
const SdrPageGetPage (const sal_Int32 nSlideIndex) const
 
void AddPreviewCreationNotifyListener (const Reference< drawing::XSlidePreviewCacheListener > &rxListener)
 
void RemovePreviewCreationNotifyListener (const Reference< drawing::XSlidePreviewCacheListener > &rxListener)
 
virtual void NotifyPreviewCreation (CacheKey aKey) override
 
virtual bool IsIdle () override
 
virtual bool IsVisible (CacheKey aKey) override
 
virtual const SdrPageGetPage (CacheKey aKey) override
 
virtual std::shared_ptr< std::vector< CacheKey > > GetEntryList (bool bVisible) override
 
virtual sal_Int32 GetPriority (CacheKey aKey) override
 
virtual css::uno::Reference< css::uno::XInterface > GetModel () override
 

Private Types

typedef ::std::vector< css::uno::Reference< css::drawing::XSlidePreviewCacheListener > > ListenerContainer
 

Private Member Functions

void CallListeners (const sal_Int32 nSlideIndex)
 

Private Attributes

Reference< container::XIndexAccess > mxSlides
 
Reference< XInterfacemxDocument
 
sal_Int32 mnFirstVisibleSlideIndex
 
sal_Int32 mnLastVisibleSlideIndex
 
ListenerContainer maListeners
 

Detailed Description

Definition at line 39 of file PresenterPreviewCache.cxx.

Member Typedef Documentation

◆ ListenerContainer

typedef ::std::vector<css::uno::Reference<css::drawing::XSlidePreviewCacheListener> > sd::presenter::PresenterPreviewCache::PresenterCacheContext::ListenerContainer
private

Definition at line 68 of file PresenterPreviewCache.cxx.

Constructor & Destructor Documentation

◆ PresenterCacheContext()

sd::presenter::PresenterPreviewCache::PresenterCacheContext::PresenterCacheContext ( )

Definition at line 203 of file PresenterPreviewCache.cxx.

Member Function Documentation

◆ AddPreviewCreationNotifyListener()

void sd::presenter::PresenterPreviewCache::PresenterCacheContext::AddPreviewCreationNotifyListener ( const Reference< drawing::XSlidePreviewCacheListener > &  rxListener)

Definition at line 237 of file PresenterPreviewCache.cxx.

◆ CallListeners()

void sd::presenter::PresenterPreviewCache::PresenterCacheContext::CallListeners ( const sal_Int32  nSlideIndex)
private

Definition at line 345 of file PresenterPreviewCache.cxx.

References aListeners, and nIndex.

◆ GetEntryList()

std::shared_ptr< std::vector< CacheKey > > sd::presenter::PresenterPreviewCache::PresenterCacheContext::GetEntryList ( bool  bVisible)
overridevirtual

Definition at line 288 of file PresenterPreviewCache.cxx.

References bVisible, and nIndex.

◆ GetModel()

Reference< XInterface > sd::presenter::PresenterPreviewCache::PresenterCacheContext::GetModel ( )
overridevirtual

Definition at line 327 of file PresenterPreviewCache.cxx.

◆ GetPage() [1/2]

const SdrPage * sd::presenter::PresenterPreviewCache::PresenterCacheContext::GetPage ( CacheKey  aKey)
overridevirtual

Definition at line 282 of file PresenterPreviewCache.cxx.

◆ GetPage() [2/2]

const SdrPage * sd::presenter::PresenterPreviewCache::PresenterCacheContext::GetPage ( const sal_Int32  nSlideIndex) const

Definition at line 332 of file PresenterPreviewCache.cxx.

References SdPage::getImplementation().

◆ GetPriority()

sal_Int32 sd::presenter::PresenterPreviewCache::PresenterCacheContext::GetPriority ( CacheKey  aKey)
overridevirtual

Definition at line 309 of file PresenterPreviewCache.cxx.

References nCount, and nIndex.

◆ IsIdle()

bool sd::presenter::PresenterPreviewCache::PresenterCacheContext::IsIdle ( )
overridevirtual

Definition at line 264 of file PresenterPreviewCache.cxx.

◆ IsVisible()

bool sd::presenter::PresenterPreviewCache::PresenterCacheContext::IsVisible ( CacheKey  aKey)
overridevirtual

Definition at line 269 of file PresenterPreviewCache.cxx.

References nIndex.

◆ NotifyPreviewCreation()

void sd::presenter::PresenterPreviewCache::PresenterCacheContext::NotifyPreviewCreation ( CacheKey  aKey)
overridevirtual

Definition at line 253 of file PresenterPreviewCache.cxx.

References nCount, and nIndex.

◆ RemovePreviewCreationNotifyListener()

void sd::presenter::PresenterPreviewCache::PresenterCacheContext::RemovePreviewCreationNotifyListener ( const Reference< drawing::XSlidePreviewCacheListener > &  rxListener)

Definition at line 243 of file PresenterPreviewCache.cxx.

◆ SetDocumentSlides()

void sd::presenter::PresenterPreviewCache::PresenterCacheContext::SetDocumentSlides ( const Reference< container::XIndexAccess > &  rxSlides,
const Reference< XInterface > &  rxDocument 
)

Definition at line 209 of file PresenterPreviewCache.cxx.

◆ SetVisibleSlideRange()

void sd::presenter::PresenterPreviewCache::PresenterCacheContext::SetVisibleSlideRange ( const sal_Int32  nFirstVisibleSlideIndex,
const sal_Int32  nLastVisibleSlideIndex 
)

Definition at line 219 of file PresenterPreviewCache.cxx.

Member Data Documentation

◆ maListeners

ListenerContainer sd::presenter::PresenterPreviewCache::PresenterCacheContext::maListeners
private

Definition at line 69 of file PresenterPreviewCache.cxx.

◆ mnFirstVisibleSlideIndex

sal_Int32 sd::presenter::PresenterPreviewCache::PresenterCacheContext::mnFirstVisibleSlideIndex
private

Definition at line 66 of file PresenterPreviewCache.cxx.

◆ mnLastVisibleSlideIndex

sal_Int32 sd::presenter::PresenterPreviewCache::PresenterCacheContext::mnLastVisibleSlideIndex
private

Definition at line 67 of file PresenterPreviewCache.cxx.

◆ mxDocument

Reference<XInterface> sd::presenter::PresenterPreviewCache::PresenterCacheContext::mxDocument
private

Definition at line 65 of file PresenterPreviewCache.cxx.

◆ mxSlides

Reference<container::XIndexAccess> sd::presenter::PresenterPreviewCache::PresenterCacheContext::mxSlides
private

Definition at line 64 of file PresenterPreviewCache.cxx.


The documentation for this class was generated from the following file: