34 const css::uno::Reference<css::ui::XSidebar>& rxSidebar)
37 if (pDocument ==
nullptr)
40 auto pContainer = std::make_shared<MasterPageContainer>();
42 auto xSelector(std::make_unique<RecentMasterPagesSelector>(
48 xSelector->LateInit();
58 const std::shared_ptr<MasterPageContainer>& rpContainer,
59 const css::uno::Reference<css::ui::XSidebar>& rxSidebar)
60 :
MasterPagesSelector (pParent, rDocument, rBase, rpContainer, rxSidebar,
"modules/simpress/ui/masterpagepanelrecent.ui",
"recentvalueset")
92 if (pMasterPage !=
nullptr)
93 aCurrentNames.insert (pMasterPage->
GetName());
108 OUString sStyleName (
mpContainer->GetStyleNameForToken(aToken));
109 if (sStyleName.isEmpty()
110 || aCurrentNames.find(sStyleName) == aCurrentNames.end())
112 rItemList.push_back(aToken);
120 const std::shared_ptr<std::vector<SdPage*> >& rpPageList)
sal_uInt16 GetMasterSdPageCount(PageKind ePgKind) const
SdPage * GetMasterSdPage(sal_uInt16 nPgNum, PageKind ePgKind)
const OUString & GetName() const
::std::set< OUString > MasterPageNameSet
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
SdDrawDocument * GetDocument() const
constexpr OUStringLiteral HID_SD_TASK_PANE_PREVIEW_RECENT
#define LINK(Instance, Class, Member)