LibreOffice Module sd (master) 1
|
Show the master pages currently used by a SdDrawDocument. More...
#include <CurrentMasterPagesSelector.hxx>
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 |
![]() | |
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 () |
![]() | |
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 |
SfxBroadcaster * | GetBroadcasterJOE (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< PanelLayout > | Create (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 |
![]() | |
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 | |
virtual void | LateInit () override |
DECL_LINK (EventMultiplexerListener, sd::tools::EventMultiplexerEvent &, void) | |
Friends | |
class | VclPtrInstance< CurrentMasterPagesSelector > |
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 the master pages currently used by a SdDrawDocument.
Definition at line 32 of file CurrentMasterPagesSelector.hxx.
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 | ||
) |
Definition at line 64 of file CurrentMasterPagesSelector.cxx.
References sd::ViewShellBase::GetEventMultiplexer(), and LINK.
|
overridevirtual |
Definition at line 76 of file CurrentMasterPagesSelector.cxx.
References SfxListener::EndListening(), SdDrawDocument::GetDocSh(), sd::ViewShellBase::GetEventMultiplexer(), LINK, sd::sidebar::MasterPagesSelector::mrBase, and sd::sidebar::MasterPagesSelector::mrDocument.
|
static |
Definition at line 41 of file CurrentMasterPagesSelector.cxx.
References sd::ViewShellBase::GetDocument(), and HID_SD_TASK_PANE_PREVIEW_CURRENT.
Referenced by sd::sidebar::PanelFactory::createUIElement().
|
private |
|
overrideprotectedvirtual |
Reimplemented from sd::sidebar::MasterPagesSelector.
Definition at line 192 of file CurrentMasterPagesSelector.cxx.
References sd::sidebar::MasterPagesSelector::ExecuteCommand(), SdDrawDocument::GetMasterPageUserCount(), sd::sidebar::MasterPagesSelector::GetSelectedMasterPage(), sd::sidebar::MasterPagesSelector::mrDocument, SdDrawDocument::RemoveUnnecessaryMasterPages(), and SdPage::SetPrecious().
void sd::sidebar::MasterPagesSelector::Fill | ( | ) |
Definition at line 144 of file MasterPagesSelector.cxx.
|
overridevirtual |
Copy all master pages that are to be shown into the given list.
Implements sd::sidebar::MasterPagesSelector.
Definition at line 105 of file CurrentMasterPagesSelector.cxx.
References SdDrawDocument::GetMasterSdPage(), SdDrawDocument::GetMasterSdPageCount(), SdPage::GetName(), SdPage::IsPrecious(), sd::sidebar::MasterPageContainer::MASTERPAGE, sd::sidebar::MasterPagesSelector::mpContainer, sd::sidebar::MasterPagesSelector::mrDocument, sd::sidebar::MasterPageContainer::NIL_TOKEN, nIndex, sName, and Standard.
|
virtual |
Implements sd::sidebar::MasterPagesSelector.
|
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.
|
overrideprivatevirtual |
Reimplemented from sd::sidebar::MasterPagesSelector.
Definition at line 91 of file CurrentMasterPagesSelector.cxx.
References sd::sidebar::MasterPagesSelector::Fill(), SdDrawDocument::GetDocSh(), sd::sidebar::MasterPagesSelector::LateInit(), sd::sidebar::MasterPagesSelector::mrDocument, and SfxListener::StartListening().
|
overrideprotectedvirtual |
Reimplemented from sd::sidebar::MasterPagesSelector.
Definition at line 212 of file CurrentMasterPagesSelector.cxx.
References sd::ViewShellBase::GetMainViewShell(), SdDrawDocument::GetMasterPageUserCount(), sd::sidebar::MasterPagesSelector::GetSelectedMasterPage(), MasterPage, sd::sidebar::MasterPagesSelector::mrBase, sd::sidebar::MasterPagesSelector::mrDocument, sd::sidebar::MasterPagesSelector::ProcessPopupMenu(), and weld::Menu::set_sensitive().
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().
|
friend |
Definition at line 1 of file CurrentMasterPagesSelector.hxx.