32#include <unonames.hxx>
38using namespace css::uno;
43 :
PanelLayout(pParent,
"ChartTypePanel",
"modules/schart/ui/sidebartype.ui")
48 , m_pSplineResourceGroup(
52 , m_xChartModel(pController->getChartModel())
53 , m_aChartTypeDialogControllerList(0)
54 , m_pCurrentMainType(nullptr)
56 , m_aTimerTriggeredControllerLock(m_xChartModel)
57 , m_xMainTypeList(m_xBuilder->weld_combo_box(
"cmb_chartType"))
58 , m_xSubTypeList(new
ValueSet(m_xBuilder->weld_scrolled_window(
"subtypewin", true)))
59 , m_xSubTypeListWin(new
weld::CustomWeld(*m_xBuilder,
"subtype", *m_xSubTypeList))
73 bool bEnableComplexChartTypes =
true;
80 xProps->getPropertyValue(
"EnableComplexChartTypes") >>= bEnableComplexChartTypes;
82 catch (
const uno::Exception&)
93 if (bEnableComplexChartTypes)
99 if (bEnableComplexChartTypes)
104 std::make_unique<CombiColumnLineChartDialogController>());
109 elem->setChangeListener(
this);
146 if (m_pCurrentMainType)
149 m_pCurrentMainType->adjustParameterToSubType(aParameter);
150 fillAllControls(aParameter,
false);
151 commitToModel(aParameter);
163 aTemplate = xDiagram->getTemplate(xChartTypeManager);
171 if (elem->isSubType(aServiceName))
181 = elem->getChartTypeParameterForService(aServiceName, xTemplateProps);
195 catch (
const uno::Exception&)
228 aTemplate = xDiagram->getTemplate(xChartTypeManager);
234 if (elem->isSubType(aServiceName))
282 ::chart::ChartModel* pModel =
dynamic_cast<::chart::ChartModel*
>(
xModel.get());
283 assert(!
xModel || pModel);
303 auto nM =
static_cast<std::vector<ChartTypeDialogController*>::size_type
>(
307 return pTypeController;
329 bool bAlsoResetSubTypeList)
378 catch (
const uno::Exception&)
426 catch (
const uno::Exception&)
std::unique_ptr< weld::Builder > m_xBuilder
virtual void DataChanged(const DataChangedEvent &rEvent)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
virtual void fillExtraControls(const rtl::Reference<::chart::ChartModel > &xChartModel, const css::uno::Reference< css::beans::XPropertySet > &xTemplateProps) const
virtual void fillSubTypeList(ValueSet &rSubTypeList, const ChartTypeParameter &rParameter)
virtual void hideExtraControls() const
void commitToModel(const ChartTypeParameter &rParameter, const rtl::Reference<::chart::ChartModel > &xChartModel)
virtual bool shouldShow_GeometryControl() const
virtual bool shouldShow_StackingControl() const
virtual bool shouldShow_SplineControl() const
virtual bool shouldShow_SortByXValuesResourceGroup() const
virtual bool shouldShow_3DLookControl() const
rtl::Reference<::chart::ChartTypeTemplate > getCurrentTemplate(const ChartTypeParameter &rParameter, const rtl::Reference<::chart::ChartTypeManager > &xTemplateManager) const
virtual void showExtraControls(weld::Builder *pBuilder)
virtual void adjustParameterToSubType(ChartTypeParameter &rParameter)
virtual void adjustSubTypeAndEnableControls(ChartTypeParameter &rParameter)
virtual void adjustParameterToMainType(ChartTypeParameter &rParameter)
ThreeDLookScheme eThreeDLookScheme
#define TOOLS_WARN_EXCEPTION(area, stream)
#define DBG_UNHANDLED_EXCEPTION(...)
Reference< script::XScriptListener > mxListener
#define LINK(Instance, Class, Member)
@ ThreeDLookScheme_Realistic
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
rtl::Reference< ::chart::ChartTypeTemplate > xChartTypeTemplate
Reference< XModel > xModel
constexpr OUStringLiteral CHART_UNONAME_SORT_BY_XVALUES