LibreOffice Module sd (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Friends | List of all members
sd::sidebar::RecentMasterPagesSelector Class Referencefinal

Show the recently used master pages (that are not currently used). More...

#include <RecentMasterPagesSelector.hxx>

Inheritance diagram for sd::sidebar::RecentMasterPagesSelector:
[legend]
Collaboration diagram for sd::sidebar::RecentMasterPagesSelector:
[legend]

Public Member Functions

 RecentMasterPagesSelector (weld::Widget *pParent, SdDrawDocument &rDocument, ViewShellBase &rBase, const std::shared_ptr< MasterPageContainer > &rpContainer, const css::uno::Reference< css::ui::XSidebar > &rxSidebar)
 
virtual ~RecentMasterPagesSelector () override
 
- Public Member Functions inherited from sd::sidebar::MasterPagesSelector
 MasterPagesSelector (weld::Widget *pParent, SdDrawDocument &rDocument, ViewShellBase &rBase, std::shared_ptr< MasterPageContainer > pContainer, css::uno::Reference< css::ui::XSidebar > xSidebar, const OUString &rUIFileName, const OUString &rValueSetName)
 
virtual ~MasterPagesSelector () override
 
virtual void LateInit ()
 
sal_Int32 GetPreferredHeight (sal_Int32 nWidth)
 
void ClearPageSet ()
 Make the selector empty. More...
 
void SetHelpId (const OUString &aId)
 
void InvalidatePreview (const SdPage *pPage)
 Mark the preview that belongs to the given index as not up-to-date anymore with respect to page content or preview size. More...
 
void UpdateAllPreviews ()
 
void ShowContextMenu (const Point *pPos)
 
virtual css::ui::LayoutSize GetHeightForWidth (const sal_Int32 nWidth) override
 
- Public Member Functions inherited from PanelLayout
 PanelLayout (weld::Widget *pParent, const OUString &rID, const OUString &rUIXMLDescription)
 
void SetPanel (sfx2::sidebar::Panel *pPanel)
 
virtual ~PanelLayout ()
 
Size get_preferred_size () const
 
void queue_resize ()
 

Static Public Member Functions

static std::unique_ptr< PanelLayoutCreate (weld::Widget *pParent, ViewShellBase &rViewShellBase, const css::uno::Reference< css::ui::XSidebar > &rxSidebar)
 

Private Member Functions

 DECL_LINK (MasterPageListListener, LinkParamNone *, void)
 
virtual void Fill (ItemList &rItemList) override
 
virtual void AssignMasterPageToPageList (SdPage *pMasterPage, const std::shared_ptr< std::vector< SdPage * > > &rpPageList) override
 Forward this call to the base class but save and restore the currently selected item. More...
 
virtual void LateInit () override
 

Friends

class VclPtrInstance< RecentMasterPagesSelector >
 

Additional Inherited Members

- Protected Types inherited from sd::sidebar::MasterPagesSelector
typedef ::std::pair< int, MasterPageContainer::TokenUserData
 
typedef ::std::vector< MasterPageContainer::TokenItemList
 
typedef ::std::map< MasterPageContainer::Token, sal_Int32 > TokenToValueSetIndex
 
- Protected Member Functions inherited from sd::sidebar::MasterPagesSelector
SdPageGetSelectedMasterPage ()
 
void AssignMasterPageToAllSlides (SdPage *pMasterPage)
 Assign the given master page to all slides of the document. More...
 
void AssignMasterPageToSelectedSlides (SdPage *pMasterPage)
 Assign the given master page to all slides that are selected in a slide sorter that is displayed in the lef or center pane. More...
 
virtual void AssignMasterPageToPageList (SdPage *pMasterPage, const std::shared_ptr< std::vector< SdPage * > > &rPageList)
 
virtual void NotifyContainerChangeEvent (const MasterPageContainerChangeEvent &rEvent)
 
UserDataGetUserData (int nIndex) const
 
void SetUserData (int nIndex, std::unique_ptr< UserData > pData)
 
sal_Int32 GetIndexForToken (MasterPageContainer::Token aToken) const
 
void UpdateItemList (::std::unique_ptr< ItemList > &&pList)
 
void Clear ()
 
void InvalidateItem (MasterPageContainer::Token aToken)
 Invalidate the specified item so that on the next Fill() this item is updated. More...
 
void UpdateLocks (const ItemList &rItemList)
 Lock master pages in the given list and release locks that were previously acquired. More...
 
void Fill ()
 
virtual void Fill (ItemList &rItemList)=0
 
virtual OUString GetContextMenuUIFile () const
 Give derived classes the opportunity to provide their own context menu. More...
 
virtual void ProcessPopupMenu (weld::Menu &rMenu)
 
virtual void ExecuteCommand (const OUString &rIdent)
 
- Protected Member Functions inherited from PanelLayout
virtual void DataChanged (const DataChangedEvent &rEvent)
 
virtual void DumpAsPropertyTree (tools::JsonWriter &)
 
virtual weld::WindowGetFrameWeld () const
 
- Protected Attributes inherited from sd::sidebar::MasterPagesSelector
mutable::osl::Mutex maMutex
 
std::shared_ptr< MasterPageContainermpContainer
 
std::unique_ptr< PreviewValueSetmxPreviewValueSet
 
std::unique_ptr< weld::CustomWeldmxPreviewValueSetWin
 
SdDrawDocumentmrDocument
 
ViewShellBasemrBase
 
ItemList maCurrentItemList
 
TokenToValueSetIndex maTokenToValueSetIndex
 
ItemList maLockedMasterPages
 
- Protected Attributes inherited from PanelLayout
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 
sfx2::sidebar::Panelm_pPanel
 

Detailed Description

Show the recently used master pages (that are not currently used).

Definition at line 28 of file RecentMasterPagesSelector.hxx.

Constructor & Destructor Documentation

◆ RecentMasterPagesSelector()

sd::sidebar::RecentMasterPagesSelector::RecentMasterPagesSelector ( weld::Widget pParent,
SdDrawDocument rDocument,
ViewShellBase rBase,
const std::shared_ptr< MasterPageContainer > &  rpContainer,
const css::uno::Reference< css::ui::XSidebar > &  rxSidebar 
)

Definition at line 54 of file RecentMasterPagesSelector.cxx.

◆ ~RecentMasterPagesSelector()

sd::sidebar::RecentMasterPagesSelector::~RecentMasterPagesSelector ( )
overridevirtual

Member Function Documentation

◆ AssignMasterPageToPageList()

void sd::sidebar::RecentMasterPagesSelector::AssignMasterPageToPageList ( SdPage pMasterPage,
const std::shared_ptr< std::vector< SdPage * > > &  rpPageList 
)
overrideprivatevirtual

Forward this call to the base class but save and restore the currently selected item.

Assign the given master page to the list of pages.

Parameters
pMasterPageThis master page will usually be a member of the list of all available master pages as provided by the MasterPageContainer.
rPageListThe pages to which to assign the master page. These pages may be slides or master pages themselves.

Reimplemented from sd::sidebar::MasterPagesSelector.

Definition at line 118 of file RecentMasterPagesSelector.cxx.

References sd::sidebar::MasterPagesSelector::AssignMasterPageToPageList(), and sd::sidebar::MasterPagesSelector::mxPreviewValueSet.

◆ Create()

std::unique_ptr< PanelLayout > sd::sidebar::RecentMasterPagesSelector::Create ( weld::Widget pParent,
ViewShellBase rViewShellBase,
const css::uno::Reference< css::ui::XSidebar > &  rxSidebar 
)
static

◆ DECL_LINK()

sd::sidebar::RecentMasterPagesSelector::DECL_LINK ( MasterPageListListener  ,
LinkParamNone ,
void   
)
private

◆ Fill()

void sd::sidebar::RecentMasterPagesSelector::Fill ( ItemList rItemList)
overrideprivatevirtual

◆ LateInit()

void sd::sidebar::RecentMasterPagesSelector::LateInit ( )
overrideprivatevirtual

Friends And Related Function Documentation

◆ VclPtrInstance< RecentMasterPagesSelector >

friend class VclPtrInstance< RecentMasterPagesSelector >
friend

Definition at line 28 of file RecentMasterPagesSelector.hxx.


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