Objects of this class are sent to listeners of the MasterPageObserver singleton when the list of mast...
MasterPageObserverEvent(EventType eType, const OUString &rMasterPageName)
const OUString & mrMasterPageName
@ ET_MASTER_PAGE_EXISTS
Master page already exists when document is registered.
@ ET_MASTER_PAGE_ADDED
Master page has been added to a document.
@ ET_MASTER_PAGE_REMOVED
Master page has been removed from to a document.
This singleton observes all registered documents for changes in the used master pages and in turn inf...
::std::unique_ptr< Implementation > mpImpl
void UnregisterDocument(SdDrawDocument &rDocument)
The master page observer will stop to listen to events of this document.
MasterPageObserver & operator=(const MasterPageObserver &)=delete
::std::set< OUString > MasterPageNameSet
void AddEventListener(const Link< MasterPageObserverEvent &, void > &rEventListener)
Add a listener that is informed of master pages that are newly assigned to slides or become unassigne...
static MasterPageObserver & Instance()
Return the single instance of this class.
virtual ~MasterPageObserver() override
void RemoveEventListener(const Link< MasterPageObserverEvent &, void > &rEventListener)
Remove the given listener from the list of listeners.
void RegisterDocument(SdDrawDocument &rDocument)
The master page observer will listen to events of this document and detect changes of the use of mast...
MasterPageObserver(const MasterPageObserver &)=delete