35 switch (rpDescriptor->GetURLClassification())
37 case MasterPageDescriptor::URLCLASS_USER: nPriority = 0;
break;
38 case MasterPageDescriptor::URLCLASS_LAYOUT: nPriority = 1;
break;
39 case MasterPageDescriptor::URLCLASS_PRESENTATION: nPriority = 2;
break;
40 case MasterPageDescriptor::URLCLASS_OTHER: nPriority = 3;
break;
41 case MasterPageDescriptor::URLCLASS_UNKNOWN: nPriority = 4;
break;
43 case MasterPageDescriptor::URLCLASS_UNDETERMINED: nPriority = 5;
break;
48class MasterPageDescriptorOrder
55 if (rp1->meOrigin == MasterPageContainer::DEFAULT)
57 else if (rp2->meOrigin == MasterPageContainer::DEFAULT)
59 else if (rp1->GetURLClassification() == rp2->GetURLClassification())
60 return rp1->mnTemplateIndex < rp2->mnTemplateIndex;
62 return GetURLPriority(rp1) < GetURLPriority(rp2);
71 :
public ::std::set<SharedMasterPageDescriptor,MasterPageDescriptorOrder>
80 const css::uno::Reference<css::ui::XSidebar>& rxSidebar)
83 if (pDocument ==
nullptr)
86 auto pContainer = std::make_shared<MasterPageContainer>();
88 auto xSelector(std::make_unique<AllMasterPagesSelector>(
94 xSelector->LateInit();
104 const std::shared_ptr<MasterPageContainer>& rpContainer,
105 const css::uno::Reference<css::ui::XSidebar>& rxSidebar)
106 :
MasterPagesSelector(pParent, rDocument, rBase, rpContainer, rxSidebar,
"modules/simpress/ui/masterpagepanelall.ui",
"allvalueset"),
148 for (
int i=0;
i<nTokenCount;
i++)
163 if (
mpContainer->GetTemplateIndexForToken(aToken) >= 0)
175 rItemList.push_back(rxDescriptor->maToken);
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
SdDrawDocument * GetDocument() const
constexpr OUStringLiteral HID_SD_TASK_PANE_PREVIEW_ALL