46 for (
const auto&
i : pExtension)
51 i.Value >>= aAddonNotebookBarItem.
sLabel;
53 i.Value >>= aAddonNotebookBarItem.
sContext;
55 i.Value >>= aAddonNotebookBarItem.
sTarget;
59 i.Value >>= aAddonNotebookBarItem.
nWidth;
61 i.Value >>= aAddonNotebookBarItem.
sStyle;
66 const css::uno::Reference<css::frame::XFrame>& m_xFrame,
68 const std::vector<Image>& aImageVec,
const tools::ULong nIter)
83 if (nIter < aImageVec.size())
85 sImage = aImageVec[nIter];
108 const css::uno::Reference<css::frame::XFrame>& m_xFrame,
112 std::vector<Image> aImageVec = aNotebookBarAddonsItem.
aImageValues;
114 sal_uInt16 nPriorityIdx = aImageVec.size();
115 css::uno::Sequence<css::uno::Sequence<css::beans::PropertyValue>> aExtension;
116 for (std::size_t nIdx = 0; nIdx < aNotebookBarAddonsItem.
aAddonValues.size(); nIdx++)
120 for (
const css::uno::Sequence<css::beans::PropertyValue>& pExtension :
121 std::as_const(aExtension))
125 pOptionalParent->
Show();
127 vcl::IPrioritable* pPrioritable
128 =
dynamic_cast<vcl::IPrioritable*
>(pOptionalParent.
get());
130 pPrioritable->SetPriority(nPriorityIdx - nIter);
133 pFunction(pNotebookbarToolBox, pOptionalParent, rMap);
148 std::vector<Image> aImageVec = aNotebookBarAddonsItem.
aImageValues;
150 css::uno::Sequence<css::uno::Sequence<css::beans::PropertyValue>> aExtension;
151 for (std::size_t nIdx = 0; nIdx < aNotebookBarAddonsItem.
aAddonValues.size(); nIdx++)
155 for (
int nSecIdx = 0; nSecIdx < aExtension.getLength(); nSecIdx++)
160 const css::uno::Sequence<css::beans::PropertyValue> pExtension = aExtension[nSecIdx];
164 pPopupMenu->
InsertItem(nItemId, aAddonNotebookBarItem.
sLabel, nBits, sItemIdName);
167 if (nIter < aImageVec.size())
169 sImage = aImageVec[nIter];
174 if (nSecIdx == aExtension.getLength() - 1)
const char MERGE_NOTEBOOKBAR_TARGET[]
const char MERGE_NOTEBOOKBAR_CONTEXT[]
const char MERGE_NOTEBOOKBAR_WIDTH[]
const char MERGE_NOTEBOOKBAR_STYLE[]
static void GetAddonNotebookBarItem(const css::uno::Sequence< css::beans::PropertyValue > &pExtension, AddonNotebookBarItem &aAddonNotebookBarItem)
const char MERGE_NOTEBOOKBAR_TITLE[]
static void CreateNotebookBarToolBox(vcl::Window *pNotebookbarToolBox, const css::uno::Reference< css::frame::XFrame > &m_xFrame, const AddonNotebookBarItem &aAddonNotebookBarItem, const std::vector< Image > &aImageVec, const tools::ULong nIter)
const char MERGE_NOTEBOOKBAR_CONTROLTYPE[]
const char MERGE_NOTEBOOKBAR_URL[]
css::uno::Reference< css::lang::XComponent > m_xFrame
void(* customMakeWidget)(VclPtr< vcl::Window > &rRet, const VclPtr< vcl::Window > &pParent, stringmap &rVec)
These functions create a new widget with parent pParent and return it in rRet.
std::map< OUString, OUString > stringmap
reference_type * get() const
Get the body.
static VclPtr< reference_type > Create(Arg &&... arg)
A construction helper for VclPtr.
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
void MergeNotebookBarAddons(vcl::Window *pParent, const VclBuilder::customMakeWidget &pFunction, const css::uno::Reference< css::frame::XFrame > &m_xFrame, const NotebookBarAddonsItem &aNotebookBarAddonsItem, VclBuilder::stringmap &rMap)
void MergeNotebookBarMenuAddons(Menu *pPopupMenu, sal_Int16 nItemId, const OUString &sItemIdName, NotebookBarAddonsItem &aNotebookBarAddonsItem)
Image GetImageForCommand(const OUString &rsCommandName, const Reference< frame::XFrame > &rxFrame, vcl::ImageType eImageType)
std::vector< Image > aImageValues
std::vector< css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > > aAddonValues