12#include <com/sun/star/view/XSelectionSupplier.hpp>
13#include <com/sun/star/frame/XController.hpp>
46 bool bCorrectObjectSelected =
false;
48 css::uno::Reference<css::frame::XController>
xController(rEvent.Source, css::uno::UNO_QUERY);
51 css::uno::Reference<css::view::XSelectionSupplier> xSelectionSupplier(
xController, css::uno::UNO_QUERY);
52 if (xSelectionSupplier.is())
54 css::uno::Any aAny = xSelectionSupplier->getSelection();
60 bCorrectObjectSelected = std::any_of(
maTypes.begin(),
maTypes.end(),
61 [
eType](
const ObjectType& eTypeInVector) { return eType == eTypeInVector; });
ObjectType getObjectType() const
RegionData_Impl * mpParent
Reference< XController > xController