LibreOffice Module sd (master) 1
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
sd::sidebar::MasterPageContainer::Implementation Class Reference

Inner implementation class of the MasterPageContainer. More...

Inheritance diagram for sd::sidebar::MasterPageContainer::Implementation:
[legend]
Collaboration diagram for sd::sidebar::MasterPageContainer::Implementation:
[legend]

Classes

class  Deleter
 

Public Member Functions

void LateInit ()
 
void AddChangeListener (const Link< MasterPageContainerChangeEvent &, void > &rLink)
 
void RemoveChangeListener (const Link< MasterPageContainerChangeEvent &, void > &rLink)
 
void UpdatePreviewSizePixel ()
 
const SizeGetPreviewSizePixel (PreviewSize eSize) const
 
bool HasToken (Token aToken) const
 
SharedMasterPageDescriptor GetDescriptor (MasterPageContainer::Token aToken) const
 
virtual Token PutMasterPage (const SharedMasterPageDescriptor &rDescriptor) override
 
void InvalidatePreview (Token aToken)
 
Image GetPreviewForToken (Token aToken, PreviewSize ePreviewSize)
 
PreviewState GetPreviewState (Token aToken) const
 
bool RequestPreview (Token aToken)
 
Reference< frame::XModel > GetModel ()
 
SdDrawDocumentGetDocument ()
 
void FireContainerChange (MasterPageContainerChangeEvent::EventType eType, Token aToken)
 
virtual bool UpdateDescriptor (const SharedMasterPageDescriptor &rpDescriptor, bool bForcePageObject, bool bForcePreview, bool bSendEvents) override
 
void ReleaseDescriptor (Token aToken)
 
virtual void FillingDone () override
 Called by the MasterPageContainerFiller to notify that all master pages from template documents have been added. More...
 
- Public Member Functions inherited from sd::SdGlobalResource
virtual ~SdGlobalResource () COVERITY_NOEXCEPT_FALSE
 
virtual MasterPageContainer::Token PutMasterPage (const SharedMasterPageDescriptor &rpDescriptor)=0
 
virtual void FillingDone ()=0
 This method is called when all Impress templates have been added to the container via the PutMasterPage() method. More...
 
virtual bool UpdateDescriptor (const SharedMasterPageDescriptor &rpDescriptor, bool bForcePageObject, bool bForcePreview, bool bSendEvents)=0
 

Static Public Member Functions

static std::shared_ptr< ImplementationInstance ()
 

Public Attributes

mutable::osl::Mutex maMutex
 
MasterPageContainerType maContainer
 

Static Public Attributes

static std::weak_ptr< ImplementationmpInstance
 

Private Types

enum class  InitializationState {
  NotInitialized ,
  Initializing ,
  Initialized
}
 

Private Member Functions

 Implementation ()
 
virtual ~Implementation () override
 
Image GetPreviewSubstitution (TranslateId pId, PreviewSize ePreviewSize)
 
void CleanContainer ()
 

Private Attributes

InitializationState meInitializationState
 
std::unique_ptr< MasterPageContainerQueuempRequestQueue
 
css::uno::Reference< css::frame::XModel > mxModel
 
SdDrawDocumentmpDocument
 
PreviewRenderer maPreviewRenderer
 
bool mbFirstPageObjectSeen
 Remember whether the first page object has already been used to determine the correct size ratio. More...
 
Image maLargePreviewBeingCreated
 This substitution of page preview shows "Preparing preview" and is shown as long as the actual previews are not being present. More...
 
Image maSmallPreviewBeingCreated
 
Image maLargePreviewNotAvailable
 This substitution of page preview is shown when a preview can not be created and thus is not available. More...
 
Image maSmallPreviewNotAvailable
 
::std::vector< Link< MasterPageContainerChangeEvent &, void > > maChangeListeners
 
std::weak_ptr< sd::tools::TimerBasedTaskExecutionmpFillerTask
 
Size maSmallPreviewSizePixel
 
Size maLargePreviewSizePixel
 

Static Private Attributes

static const int SMALL_PREVIEW_WIDTH = 72 + 2
 
static const int LARGE_PREVIEW_WIDTH = 2*72 + 2
 

Friends

class Deleter
 

Additional Inherited Members

- Protected Member Functions inherited from sd::sidebar::MasterPageContainerFiller::ContainerAdapter
 ~ContainerAdapter ()
 
- Protected Member Functions inherited from sd::sidebar::MasterPageContainerQueue::ContainerAdapter
 ~ContainerAdapter ()
 

Detailed Description

Inner implementation class of the MasterPageContainer.

Definition at line 63 of file MasterPageContainer.cxx.

Member Enumeration Documentation

◆ InitializationState

Enumerator
NotInitialized 
Initializing 
Initialized 

Definition at line 121 of file MasterPageContainer.cxx.

Constructor & Destructor Documentation

◆ Implementation()

sd::sidebar::MasterPageContainer::Implementation::Implementation ( )
private

Definition at line 470 of file MasterPageContainer.cxx.

References UpdatePreviewSizePixel().

◆ ~Implementation()

sd::sidebar::MasterPageContainer::Implementation::~Implementation ( )
overrideprivatevirtual

Member Function Documentation

◆ AddChangeListener()

void sd::sidebar::MasterPageContainer::Implementation::AddChangeListener ( const Link< MasterPageContainerChangeEvent &, void > &  rLink)

Definition at line 521 of file MasterPageContainer.cxx.

References maMutex.

◆ CleanContainer()

void sd::sidebar::MasterPageContainer::Implementation::CleanContainer ( )
private

Definition at line 869 of file MasterPageContainer.cxx.

References nIndex.

◆ FillingDone()

void sd::sidebar::MasterPageContainer::Implementation::FillingDone ( )
overridevirtual

Called by the MasterPageContainerFiller to notify that all master pages from template documents have been added.

Implements sd::sidebar::MasterPageContainerFiller::ContainerAdapter.

Definition at line 951 of file MasterPageContainer.cxx.

◆ FireContainerChange()

void sd::sidebar::MasterPageContainer::Implementation::FireContainerChange ( MasterPageContainerChangeEvent::EventType  eType,
Token  aToken 
)

Definition at line 880 of file MasterPageContainer.cxx.

References aEvent, and eType.

◆ GetDescriptor()

SharedMasterPageDescriptor sd::sidebar::MasterPageContainer::Implementation::GetDescriptor ( MasterPageContainer::Token  aToken) const

Definition at line 670 of file MasterPageContainer.cxx.

References o3tl::make_unsigned().

◆ GetDocument()

SdDrawDocument * sd::sidebar::MasterPageContainer::Implementation::GetDocument ( )

Definition at line 825 of file MasterPageContainer.cxx.

◆ GetModel()

Reference< frame::XModel > sd::sidebar::MasterPageContainer::Implementation::GetModel ( )

Definition at line 781 of file MasterPageContainer.cxx.

References Any, AUTOLAYOUT_TITLE, createInstance(), maMutex, and mxModel.

◆ GetPreviewForToken()

Image sd::sidebar::MasterPageContainer::Implementation::GetPreviewForToken ( MasterPageContainer::Token  aToken,
PreviewSize  ePreviewSize 
)

◆ GetPreviewSizePixel()

const Size & sd::sidebar::MasterPageContainer::Implementation::GetPreviewSizePixel ( PreviewSize  eSize) const

Definition at line 583 of file MasterPageContainer.cxx.

References sd::sidebar::MasterPageContainer::SMALL.

◆ GetPreviewState()

MasterPageContainer::PreviewState sd::sidebar::MasterPageContainer::Implementation::GetPreviewState ( Token  aToken) const

◆ GetPreviewSubstitution()

Image sd::sidebar::MasterPageContainer::Implementation::GetPreviewSubstitution ( TranslateId  pId,
PreviewSize  ePreviewSize 
)
private

◆ HasToken()

bool sd::sidebar::MasterPageContainer::Implementation::HasToken ( Token  aToken) const

Definition at line 663 of file MasterPageContainer.cxx.

References o3tl::make_unsigned().

◆ Instance()

std::shared_ptr< MasterPageContainer::Implementation > sd::sidebar::MasterPageContainer::Implementation::Instance ( )
static

◆ InvalidatePreview()

void sd::sidebar::MasterPageContainer::Implementation::InvalidatePreview ( Token  aToken)

◆ LateInit()

void sd::sidebar::MasterPageContainer::Implementation::LateInit ( )

◆ PutMasterPage()

MasterPageContainer::Token sd::sidebar::MasterPageContainer::Implementation::PutMasterPage ( const SharedMasterPageDescriptor rDescriptor)
overridevirtual

◆ ReleaseDescriptor()

void sd::sidebar::MasterPageContainer::Implementation::ReleaseDescriptor ( Token  aToken)

Definition at line 943 of file MasterPageContainer.cxx.

References o3tl::make_unsigned().

◆ RemoveChangeListener()

void sd::sidebar::MasterPageContainer::Implementation::RemoveChangeListener ( const Link< MasterPageContainerChangeEvent &, void > &  rLink)

Definition at line 532 of file MasterPageContainer.cxx.

References maMutex.

◆ RequestPreview()

bool sd::sidebar::MasterPageContainer::Implementation::RequestPreview ( Token  aToken)

Definition at line 772 of file MasterPageContainer.cxx.

◆ UpdateDescriptor()

bool sd::sidebar::MasterPageContainer::Implementation::UpdateDescriptor ( const SharedMasterPageDescriptor rpDescriptor,
bool  bForcePageObject,
bool  bForcePreview,
bool  bSendEvents 
)
overridevirtual

◆ UpdatePreviewSizePixel()

void sd::sidebar::MasterPageContainer::Implementation::UpdatePreviewSizePixel ( )

Friends And Related Function Documentation

◆ Deleter

friend class Deleter
friend

Definition at line 119 of file MasterPageContainer.cxx.

Member Data Documentation

◆ LARGE_PREVIEW_WIDTH

const int sd::sidebar::MasterPageContainer::Implementation::LARGE_PREVIEW_WIDTH = 2*72 + 2
staticprivate

Definition at line 136 of file MasterPageContainer.cxx.

◆ maChangeListeners

::std::vector<Link<MasterPageContainerChangeEvent&,void> > sd::sidebar::MasterPageContainer::Implementation::maChangeListeners
private

Definition at line 150 of file MasterPageContainer.cxx.

◆ maContainer

MasterPageContainerType sd::sidebar::MasterPageContainer::Implementation::maContainer

Definition at line 72 of file MasterPageContainer.cxx.

◆ maLargePreviewBeingCreated

Image sd::sidebar::MasterPageContainer::Implementation::maLargePreviewBeingCreated
private

This substitution of page preview shows "Preparing preview" and is shown as long as the actual previews are not being present.

Definition at line 141 of file MasterPageContainer.cxx.

◆ maLargePreviewNotAvailable

Image sd::sidebar::MasterPageContainer::Implementation::maLargePreviewNotAvailable
private

This substitution of page preview is shown when a preview can not be created and thus is not available.

Definition at line 147 of file MasterPageContainer.cxx.

◆ maLargePreviewSizePixel

Size sd::sidebar::MasterPageContainer::Implementation::maLargePreviewSizePixel
private

Definition at line 158 of file MasterPageContainer.cxx.

◆ maMutex

mutable::osl::Mutex sd::sidebar::MasterPageContainer::Implementation::maMutex

Definition at line 69 of file MasterPageContainer.cxx.

◆ maPreviewRenderer

PreviewRenderer sd::sidebar::MasterPageContainer::Implementation::maPreviewRenderer
private

Definition at line 127 of file MasterPageContainer.cxx.

◆ maSmallPreviewBeingCreated

Image sd::sidebar::MasterPageContainer::Implementation::maSmallPreviewBeingCreated
private

Definition at line 142 of file MasterPageContainer.cxx.

◆ maSmallPreviewNotAvailable

Image sd::sidebar::MasterPageContainer::Implementation::maSmallPreviewNotAvailable
private

Definition at line 148 of file MasterPageContainer.cxx.

◆ maSmallPreviewSizePixel

Size sd::sidebar::MasterPageContainer::Implementation::maSmallPreviewSizePixel
private

Definition at line 157 of file MasterPageContainer.cxx.

◆ mbFirstPageObjectSeen

bool sd::sidebar::MasterPageContainer::Implementation::mbFirstPageObjectSeen
private

Remember whether the first page object has already been used to determine the correct size ratio.

Definition at line 131 of file MasterPageContainer.cxx.

◆ meInitializationState

InitializationState sd::sidebar::MasterPageContainer::Implementation::meInitializationState
private

Definition at line 122 of file MasterPageContainer.cxx.

◆ mpDocument

SdDrawDocument* sd::sidebar::MasterPageContainer::Implementation::mpDocument
private

Definition at line 126 of file MasterPageContainer.cxx.

◆ mpFillerTask

std::weak_ptr<sd::tools::TimerBasedTaskExecution> sd::sidebar::MasterPageContainer::Implementation::mpFillerTask
private

Definition at line 155 of file MasterPageContainer.cxx.

◆ mpInstance

std::weak_ptr< MasterPageContainer::Implementation > sd::sidebar::MasterPageContainer::Implementation::mpInstance
static

Definition at line 71 of file MasterPageContainer.cxx.

Referenced by Instance().

◆ mpRequestQueue

std::unique_ptr<MasterPageContainerQueue> sd::sidebar::MasterPageContainer::Implementation::mpRequestQueue
private

Definition at line 124 of file MasterPageContainer.cxx.

◆ mxModel

css::uno::Reference<css::frame::XModel> sd::sidebar::MasterPageContainer::Implementation::mxModel
private

Definition at line 125 of file MasterPageContainer.cxx.

◆ SMALL_PREVIEW_WIDTH

const int sd::sidebar::MasterPageContainer::Implementation::SMALL_PREVIEW_WIDTH = 72 + 2
staticprivate

Definition at line 135 of file MasterPageContainer.cxx.


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