30#include <unonames.hxx>
45 bool bShowDescription)
46 : OWizardPage(pPage, pController,
"modules/schart/ui/tp_ChartType.ui",
"tp_ChartType")
52 , m_xChartModel(
std::move( xChartModel ))
53 , m_aChartTypeDialogControllerList(0)
54 , m_pCurrentMainType(nullptr)
56 , m_aTimerTriggeredControllerLock( m_xChartModel )
57 , m_xFT_ChooseType(m_xBuilder->weld_label(
"FT_CAPTION_FOR_WIZARD"))
58 , m_xMainTypeList(m_xBuilder->weld_tree_view(
"charttype"))
59 , m_xSubTypeList(new
ValueSet(m_xBuilder->weld_scrolled_window(
"subtypewin", true)))
60 , m_xSubTypeListWin(new
weld::CustomWeld(*m_xBuilder,
"subtype", *m_xSubTypeList))
84 bool bEnableComplexChartTypes =
true;
90 xProps->getPropertyValue(
"EnableComplexChartTypes") >>= bEnableComplexChartTypes;
92 catch(
const uno::Exception& )
103 if (bEnableComplexChartTypes)
107 std::make_unique<BubbleChartDialogController>());
110 if (bEnableComplexChartTypes)
115 std::make_unique<CombiColumnLineChartDialogController>());
120 elem->setChangeListener(
this );
193 catch (
const uno::Exception& )
206 auto nM =
static_cast< std::vector< ChartTypeDialogController* >::size_type
>(
210 return pTypeController;
215 if( m_pCurrentMainType )
218 m_pCurrentMainType->adjustParameterToSubType( aParameter );
219 fillAllControls( aParameter,
false );
220 commitToModel( aParameter );
261 catch (
const uno::Exception& )
313 aTemplate = xDiagram->getTemplate( xChartTypeManager );
321 if( elem->isSubType(aServiceName) )
328 ChartTypeParameter aParameter = elem->getChartTypeParameterForService( aServiceName, xTemplateProps );
341 catch (
const uno::Exception&)
void SetPageTitle(const OUString &rPageTitle)
std::unique_ptr< weld::Builder > m_xBuilder
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
std::unique_ptr< Dim3DLookResourceGroup > m_pDim3DLookResourceGroup
std::unique_ptr< GeometryResourceGroup > m_pGeometryResourceGroup
std::unique_ptr< weld::CustomWeld > m_xSubTypeListWin
virtual ~ChartTypeTabPage() override
rtl::Reference<::chart::ChartModel > m_xChartModel
void commitToModel(const ChartTypeParameter &rParameter)
void fillAllControls(const ChartTypeParameter &rParameter, bool bAlsoResetSubTypeList=true)
std::unique_ptr< SplineResourceGroup > m_pSplineResourceGroup
virtual void initializePage() override
std::unique_ptr< SortByXValuesResourceGroup > m_pSortByXValuesResourceGroup
sal_Int32 m_nChangingCalls
std::unique_ptr< ValueSet > m_xSubTypeList
virtual void stateChanged() override
ChartTypeParameter getCurrentParamter() const
std::unique_ptr< weld::TreeView > m_xMainTypeList
virtual bool commitPage(::vcl::WizardTypes::CommitPageReason eReason) override
std::vector< std::unique_ptr< ChartTypeDialogController > > m_aChartTypeDialogControllerList
virtual rtl::Reference< ::chart::ChartTypeTemplate > getCurrentTemplate() const override
ChartTypeDialogController * m_pCurrentMainType
std::unique_ptr< StackingResourceGroup > m_pStackingResourceGroup
ChartTypeTabPage(weld::Container *pPage, weld::DialogController *pController, rtl::Reference<::chart::ChartModel > xChartModel, bool bShowDescription=true)
void showAllControls(ChartTypeDialogController &rTypeController)
TimerTriggeredControllerLock m_aTimerTriggeredControllerLock
ChartTypeDialogController * getSelectedMainType()
std::unique_ptr< weld::Label > m_xFT_ChooseType
#define TOOLS_WARN_EXCEPTION(area, stream)
#define DBG_UNHANDLED_EXCEPTION(...)
#define LINK(Instance, Class, Member)
@ ThreeDLookScheme_Unknown
@ ThreeDLookScheme_Realistic
OUString OOO_DLLPUBLIC_CHARTTOOLS SchResId(TranslateId aId)
IMPL_LINK_NOARG(SplinePropertiesDialog, SplineTypeListBoxHdl, weld::ComboBox &, void)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
rtl::Reference< ::chart::ChartTypeTemplate > xChartTypeTemplate
constexpr OUStringLiteral CHART_UNONAME_SORT_BY_XVALUES