20#include <com/sun/star/chart2/XChartDocument.hpp>
35using namespace ::
chart;
42class DocumentChartTypeTemplateProvider :
public ChartTypeTemplateProvider
45 explicit DocumentChartTypeTemplateProvider(
57DocumentChartTypeTemplateProvider::DocumentChartTypeTemplateProvider(
66 Diagram::tTemplateWithServiceName aResult(
67 xDia->getTemplate( xDoc->getTypeManager() ));
81 : GenericDialogController(pParent,
"modules/schart/ui/datarangedialog.ui",
83 , m_apDocTemplateProvider(new DocumentChartTypeTemplateProvider(xChartDocument))
85 , m_bRangeChooserTabIsValid(true)
86 , m_bDataSourceTabIsValid(true)
87 , m_bTogglingEnabled(true)
88 , m_xTabControl(m_xBuilder->weld_notebook(
"tabcontrol"))
89 , m_xBtnOK(m_xBuilder->weld_button(
"ok"))
116 short nResult = GenericDialogController::run();
129 if (rPage ==
"range")
130 m_xRangeChooserTabPage->Activate();
131 else if (rPage ==
"series")
132 m_xDataSourceTabPage->Activate();
138 return m_bTogglingEnabled;
virtual short run() override
bool m_bDataSourceTabIsValid
std::unique_ptr< weld::Button > m_xBtnOK
std::unique_ptr< weld::Notebook > m_xTabControl
virtual void setInvalidPage(BuilderPage *pTabPage) override
bool m_bRangeChooserTabIsValid
std::unique_ptr< DataSourceTabPage > m_xDataSourceTabPage
std::unique_ptr< ChartTypeTemplateProvider > m_apDocTemplateProvider
static sal_uInt16 m_nLastPageId
std::unique_ptr< DialogModel > m_apDialogModel
virtual ~DataSourceDialog() override
DataSourceDialog(weld::Window *pParent, const rtl::Reference<::chart::ChartModel > &xChartDocument)
std::unique_ptr< RangeChooserTabPage > m_xRangeChooserTabPage
virtual void setValidPage(BuilderPage *pTabPage) override
rtl::Reference< ::chart::ChartTypeTemplate > m_xTemplate
#define LINK(Instance, Class, Member)
IMPL_LINK(StackingResourceGroup, StackingChangeHdl, weld::Toggleable &, rRadio, void)
IMPL_LINK_NOARG(SplinePropertiesDialog, SplineTypeListBoxHdl, weld::ComboBox &, void)