LibreOffice Module sd (master) 1
|
Show a list of all available master pages so that the user can assign them to the document. More...
#include <AllMasterPagesSelector.hxx>
Classes | |
class | SortedMasterPageDescriptorList |
Public Member Functions | |
AllMasterPagesSelector (weld::Widget *pParent, SdDrawDocument &rDocument, ViewShellBase &rBase, const std::shared_ptr< MasterPageContainer > &rpContainer, const css::uno::Reference< css::ui::XSidebar > &rxSidebar) | |
virtual | ~AllMasterPagesSelector () override |
virtual void | Fill (ItemList &rItemList) override |
Scan the set of templates for the ones whose first master pages are shown by this control and store them in the MasterPageContainer. More... | |
![]() | |
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 |
![]() | |
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< PanelLayout > | Create (weld::Widget *pParent, ViewShellBase &rViewShellBase, const css::uno::Reference< css::ui::XSidebar > &rxSidebar) |
Protected Member Functions | |
virtual void | NotifyContainerChangeEvent (const MasterPageContainerChangeEvent &rEvent) override |
![]() | |
SdPage * | GetSelectedMasterPage () |
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) |
UserData * | GetUserData (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) |
![]() | |
virtual void | DataChanged (const DataChangedEvent &rEvent) |
virtual void | DumpAsPropertyTree (tools::JsonWriter &) |
virtual weld::Window * | GetFrameWeld () const |
Private Member Functions | |
void | AddItem (MasterPageContainer::Token aToken) |
void | UpdatePageSet (ItemList &rItemList) |
Add all items in the internal master page list into the given list. More... | |
void | UpdateMasterPageList () |
Update the internal list of master pages that are to show in the control. More... | |
void | Fill () |
virtual void | Fill (ItemList &rItemList)=0 |
Private Attributes | |
::std::unique_ptr< SortedMasterPageDescriptorList > | mpSortedMasterPages |
Friends | |
class | VclPtrInstance< AllMasterPagesSelector > |
Additional Inherited Members | |
![]() | |
typedef ::std::pair< int, MasterPageContainer::Token > | UserData |
typedef ::std::vector< MasterPageContainer::Token > | ItemList |
typedef ::std::map< MasterPageContainer::Token, sal_Int32 > | TokenToValueSetIndex |
![]() | |
mutable::osl::Mutex | maMutex |
std::shared_ptr< MasterPageContainer > | mpContainer |
std::unique_ptr< PreviewValueSet > | mxPreviewValueSet |
std::unique_ptr< weld::CustomWeld > | mxPreviewValueSetWin |
SdDrawDocument & | mrDocument |
ViewShellBase & | mrBase |
ItemList | maCurrentItemList |
TokenToValueSetIndex | maTokenToValueSetIndex |
ItemList | maLockedMasterPages |
![]() | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Container > | m_xContainer |
sfx2::sidebar::Panel * | m_pPanel |
Show a list of all available master pages so that the user can assign them to the document.
Definition at line 31 of file AllMasterPagesSelector.hxx.
sd::sidebar::AllMasterPagesSelector::AllMasterPagesSelector | ( | weld::Widget * | pParent, |
SdDrawDocument & | rDocument, | ||
ViewShellBase & | rBase, | ||
const std::shared_ptr< MasterPageContainer > & | rpContainer, | ||
const css::uno::Reference< css::ui::XSidebar > & | rxSidebar | ||
) |
Definition at line 100 of file AllMasterPagesSelector.cxx.
References sd::sidebar::MasterPagesSelector::Fill().
|
overridevirtual |
Definition at line 112 of file AllMasterPagesSelector.cxx.
|
private |
Definition at line 152 of file AllMasterPagesSelector.cxx.
References sd::sidebar::MasterPageContainer::DEFAULT, sd::sidebar::MasterPagesSelector::mpContainer, mpSortedMasterPages, and sd::sidebar::MasterPageContainer::TEMPLATE.
Referenced by NotifyContainerChangeEvent(), and UpdateMasterPageList().
|
static |
Definition at line 77 of file AllMasterPagesSelector.cxx.
References sd::ViewShellBase::GetDocument(), and HID_SD_TASK_PANE_PREVIEW_ALL.
Referenced by sd::sidebar::PanelFactory::createUIElement().
|
private |
Definition at line 144 of file MasterPagesSelector.cxx.
|
overridevirtual |
Scan the set of templates for the ones whose first master pages are shown by this control and store them in the MasterPageContainer.
Implements sd::sidebar::MasterPagesSelector.
Definition at line 116 of file AllMasterPagesSelector.cxx.
References mpSortedMasterPages, UpdateMasterPageList(), and UpdatePageSet().
|
privatevirtual |
Implements sd::sidebar::MasterPagesSelector.
|
overrideprotectedvirtual |
Reimplemented from sd::sidebar::MasterPagesSelector.
Definition at line 123 of file AllMasterPagesSelector.cxx.
References AddItem(), sd::sidebar::MasterPageContainerChangeEvent::CHILD_ADDED, sd::sidebar::MasterPagesSelector::Fill(), sd::sidebar::MasterPageContainerChangeEvent::INDEX_CHANGED, sd::sidebar::MasterPageContainerChangeEvent::maChildToken, sd::sidebar::MasterPageContainerChangeEvent::meEventType, mpSortedMasterPages, and sd::sidebar::MasterPagesSelector::NotifyContainerChangeEvent().
|
private |
Update the internal list of master pages that are to show in the control.
Definition at line 144 of file AllMasterPagesSelector.cxx.
References AddItem(), i, sd::sidebar::MasterPagesSelector::mpContainer, and mpSortedMasterPages.
Referenced by Fill().
|
private |
Add all items in the internal master page list into the given list.
Definition at line 172 of file AllMasterPagesSelector.cxx.
References mpSortedMasterPages.
Referenced by Fill().
|
friend |
Definition at line 1 of file AllMasterPagesSelector.hxx.
|
private |
Definition at line 62 of file AllMasterPagesSelector.hxx.
Referenced by AddItem(), Fill(), NotifyContainerChangeEvent(), UpdateMasterPageList(), and UpdatePageSet().