22#include <com/sun/star/awt/XTopWindow.hpp>
23#include <com/sun/star/chart2/data/XDataProvider.hpp>
30using ::com::sun::star::uno::Reference;
31using ::com::sun::star::uno::Sequence;
38 m_xChartDocument(
std::move( xChartDocument ))
57 if( xDataProvider.is())
60 catch(
const uno::Exception & )
87 uno::UNO_QUERY_THROW );
92 catch(
const uno::Exception & )
99 const OUString & aCurrentRange,
100 const OUString & aUIString,
114 beans::PropertyValue(
115 "InitialValue", -1,
uno::Any( aCurrentRange ),
116 beans::PropertyState_DIRECT_VALUE ),
117 beans::PropertyValue(
120 beans::PropertyState_DIRECT_VALUE ),
121 beans::PropertyValue(
122 "CloseOnMouseRelease", -1,
uno::Any(
true ),
123 beans::PropertyState_DIRECT_VALUE ),
124 beans::PropertyValue(
125 "MultiSelectionMode", -1,
uno::Any(
true ),
126 beans::PropertyState_DIRECT_VALUE )
134 xRangeSel->startRangeSelection( aArgs );
137 catch(
const uno::Exception & )
148 if( bRemoveListener &&
161 if( ! xDataProvider.is())
164 return xDataProvider->createDataSequenceByRangeRepresentationPossible( rRangeStr );
170 if( ! xDataProvider.is())
173 return xDataProvider->createDataSourcePossible( rArguments );
This guard calls lockControllers at the given Model in the CTOR and unlockControllers in the DTOR.
rtl::Reference<::chart::ChartModel > m_xChartDocument
bool chooseRange(const OUString &aCurrentRange, const OUString &aUIString, RangeSelectionListenerParent &rListenerParent)
void stopRangeListening(bool bRemoveListener=true)
css::uno::Reference< css::sheet::XRangeSelectionListener > m_xRangeSelectionListener
bool verifyCellRange(const OUString &rRangeStr)
void raiseRangeSelectionDocument()
css::uno::Reference< css::sheet::XRangeSelection > m_xRangeSelection
css::uno::Reference< css::sheet::XRangeSelection > const & getRangeSelection()
RangeSelectionHelper(rtl::Reference<::chart::ChartModel > xChartDocument)
bool verifyArguments(const css::uno::Sequence< css::beans::PropertyValue > &rArguments)
#define DBG_UNHANDLED_EXCEPTION(...)
Reference< XFrame > xFrame