21#include <com/sun/star/lang/IllegalArgumentException.hpp>
32 css::uno::Reference<css::frame::XFrame> xFrame)
33 :
PanelLayout(pParent,
"DefaultShapesPanel",
"svx/ui/defaultshapespanel.ui")
34 , mxLineArrowSet(new
ValueSet(nullptr))
35 , mxLineArrowSetWin(new
weld::CustomWeld(*m_xBuilder,
"LinesArrows", *mxLineArrowSet))
37 , mxCurveSetWin(new
weld::CustomWeld(*m_xBuilder,
"Curves", *mxCurveSet))
38 , mxConnectorSet(new
ValueSet(nullptr))
39 , mxConnectorSetWin(new
weld::CustomWeld(*m_xBuilder,
"Connectors", *mxConnectorSet))
40 , mxBasicShapeSet(new
ValueSet(nullptr))
41 , mxBasicShapeSetWin(new
weld::CustomWeld(*m_xBuilder,
"BasicShapes", *mxBasicShapeSet))
42 , mxSymbolShapeSet(new
ValueSet(nullptr))
43 , mxSymbolShapeSetWin(new
weld::CustomWeld(*m_xBuilder,
"SymbolShapes", *mxSymbolShapeSet))
44 , mxBlockArrowSet(new
ValueSet(nullptr))
45 , mxBlockArrowSetWin(new
weld::CustomWeld(*m_xBuilder,
"BlockArrows", *mxBlockArrowSet))
46 , mxFlowchartSet(new
ValueSet(nullptr))
47 , mxFlowchartSetWin(new
weld::CustomWeld(*m_xBuilder,
"Flowcharts", *mxFlowchartSet))
48 , mxCalloutSet(new
ValueSet(nullptr))
49 , mxCalloutSetWin(new
weld::CustomWeld(*m_xBuilder,
"Callouts", *mxCalloutSet))
51 , mxStarSetWin(new
weld::CustomWeld(*m_xBuilder,
"Stars", *mxStarSet))
52 , mx3DObjectSet(new
ValueSet(nullptr))
53 , mx3DObjectSetWin(new
weld::CustomWeld(*m_xBuilder,
"3DObjects", *mx3DObjectSet))
63 const Reference< XFrame >& rxFrame)
65 if (pParent ==
nullptr)
66 throw lang::IllegalArgumentException(
"no parent Window given to DefaultShapesPanel::Create",
nullptr, 0);
68 throw lang::IllegalArgumentException(
"no XFrame given to DefaultShapesPanel::Create",
nullptr, 1);
70 return std::make_unique<DefaultShapesPanel>(pParent, rxFrame);
122 for(
auto& aSetMap : mpShapesSetMap)
124 if(rValueSet == aSetMap.first)
126 sal_uInt16 nSelectionId = aSetMap.first->GetSelectedItemId();
130 aSetMap.first->SetNoSelection();
136 OUString sSlotStr, sLabel;
140 aSet.first->SetColCount(6);
141 for(std::map<sal_uInt16, OUString>::size_type
i = 0;
i < aSet.second.size();
i++)
143 sSlotStr = aSet.second[
i];
148 sal_uInt16 nSelectionId =
i + 1;
149 aSet.first->InsertItem(nSelectionId, aSlotImage, sLabel);
PropertiesInfo aProperties
static const AllSettings & GetSettings()
std::unique_ptr< weld::Container > m_xContainer
#define LINK(Instance, Class, Member)
bool dispatchCommand(const OUString &rCommand, const uno::Reference< css::frame::XFrame > &rFrame, const css::uno::Sequence< css::beans::PropertyValue > &rArguments, const uno::Reference< css::frame::XDispatchResultListener > &rListener)
Sequence< beans::PropertyValue > GetCommandProperties(const OUString &rsCommandName, const OUString &rsModuleName)
OUString GetTooltipForCommand(const OUString &rsCommandName, const css::uno::Sequence< css::beans::PropertyValue > &rProperties, const Reference< frame::XFrame > &rxFrame)
OUString GetModuleIdentifier(const Reference< frame::XFrame > &rxFrame)
Image GetImageForCommand(const OUString &rsCommandName, const Reference< frame::XFrame > &rxFrame, vcl::ImageType eImageType)
Reference< XFrame > xFrame