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

Show the master pages currently used by a SdDrawDocument. More...

#include <CurrentMasterPagesSelector.hxx>

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

Public Member Functions

 CurrentMasterPagesSelector (weld::Widget *pParent, SdDrawDocument &rDocument, ViewShellBase &rBase, const std::shared_ptr< MasterPageContainer > &rpContainer, const css::uno::Reference< css::ui::XSidebar > &rxSidebar)
 
virtual ~CurrentMasterPagesSelector () override
 
void UpdateSelection ()
 Set the selection so that the master page is selected that is used by the currently selected page of the document in the center pane. More...
 
virtual void Fill (ItemList &rItemList) override
 Copy all master pages that are to be shown into the given list. More...
 
void Fill ()
 
virtual void Fill (ItemList &rItemList)=0
 
- 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 ()
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Static Public Member Functions

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

Protected Member Functions

virtual OUString GetContextMenuUIFile () const override
 Give derived classes the opportunity to provide their own context menu. More...
 
virtual void ProcessPopupMenu (weld::Menu &rMenu) override
 
virtual void ExecuteCommand (const OUString &rIdent) override
 
- 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
 

Private Member Functions

virtual void LateInit () override
 
 DECL_LINK (EventMultiplexerListener, sd::tools::EventMultiplexerEvent &, void)
 

Friends

class VclPtrInstance< CurrentMasterPagesSelector >
 

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 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 master pages currently used by a SdDrawDocument.

Definition at line 32 of file CurrentMasterPagesSelector.hxx.

Constructor & Destructor Documentation

◆ CurrentMasterPagesSelector()

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

◆ ~CurrentMasterPagesSelector()

sd::sidebar::CurrentMasterPagesSelector::~CurrentMasterPagesSelector ( )
overridevirtual

Member Function Documentation

◆ Create()

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

◆ DECL_LINK()

sd::sidebar::CurrentMasterPagesSelector::DECL_LINK ( EventMultiplexerListener  ,
sd::tools::EventMultiplexerEvent ,
void   
)
private

◆ ExecuteCommand()

void sd::sidebar::CurrentMasterPagesSelector::ExecuteCommand ( const OUString &  rIdent)
overrideprotectedvirtual

◆ Fill() [1/3]

void sd::sidebar::MasterPagesSelector::Fill ( )

Definition at line 144 of file MasterPagesSelector.cxx.

◆ Fill() [2/3]

void sd::sidebar::CurrentMasterPagesSelector::Fill ( ItemList rItemList)
overridevirtual

◆ Fill() [3/3]

virtual void sd::sidebar::MasterPagesSelector::Fill ( ItemList rItemList)
virtual

◆ GetContextMenuUIFile()

OUString sd::sidebar::CurrentMasterPagesSelector::GetContextMenuUIFile ( ) const
overrideprotectedvirtual

Give derived classes the opportunity to provide their own context menu.

If they do then they probably have to provide their own Execute() and GetState() methods as well.

Reimplemented from sd::sidebar::MasterPagesSelector.

Definition at line 143 of file CurrentMasterPagesSelector.cxx.

◆ LateInit()

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

◆ ProcessPopupMenu()

void sd::sidebar::CurrentMasterPagesSelector::ProcessPopupMenu ( weld::Menu rMenu)
overrideprotectedvirtual

◆ UpdateSelection()

void sd::sidebar::CurrentMasterPagesSelector::UpdateSelection ( )

Set the selection so that the master page is selected that is used by the currently selected page of the document in the center pane.

Definition at line 148 of file CurrentMasterPagesSelector.cxx.

References GetName(), SdDrawDocument::GetSdPage(), SdDrawDocument::GetSdPageCount(), SdPage::IsSelected(), sd::sidebar::MasterPagesSelector::mrDocument, sd::sidebar::MasterPagesSelector::mxPreviewValueSet, nIndex, sName, Standard, SdrPage::TRG_GetMasterPage(), and SdrPage::TRG_HasMasterPage().

Friends And Related Function Documentation

◆ VclPtrInstance< CurrentMasterPagesSelector >

Definition at line 1 of file CurrentMasterPagesSelector.hxx.


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