12#include <com/sun/star/frame/XFrame.hpp>
13#include <com/sun/star/frame/XDispatch.hpp>
14#include <com/sun/star/frame/XFramesSupplier.hpp>
24 for (
const auto& rProperty : rProperties)
26 css::beans::PropertyValue aPropValue;
27 rProperty >>= aPropValue;
28 if (aPropValue.Name ==
"Frame")
46 css::uno::Reference<css::frame::XFrame> xActiveFrame =
mxFramesSupplier->getActiveFrame();
47 if (!xActiveFrame.is())
50 css::uno::Reference<css::frame::XController> xActiveController = xActiveFrame->getController();
51 if (!xActiveController.is())
54 css::uno::Reference<css::frame::XDispatch>
xDispatch(xActiveController, css::uno::UNO_QUERY);
59 aURL.Path =
"FormatSelection";
60 xDispatch->dispatch(
aURL, css::uno::Sequence<css::beans::PropertyValue>());
65 SAL_INFO(
"chart2",
"double clicked");
71 return css::uno::Reference<css::awt::XWindow>();
75 const css::uno::Reference<css::awt::XWindow>& )
77 return css::uno::Reference<css::awt::XWindow>();
100 return "org.libreoffice.chart2.Chart2ToolboxController";
110 return {
"com.sun.star.frame.ToolbarController" };
115extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
118 return cppu::acquire(new ::chart::ChartToolbarController(rProperties));
Reference< XDispatch > xDispatch
#define SAL_INFO(area, stream)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)