LibreOffice Module chart2 (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
chart::sidebar::ChartTypePanel Class Reference

#include <ChartTypePanel.hxx>

Inheritance diagram for chart::sidebar::ChartTypePanel:
[legend]
Collaboration diagram for chart::sidebar::ChartTypePanel:
[legend]

Public Member Functions

virtual void DataChanged (const DataChangedEvent &rEvent) override
 
virtual void HandleContextChange (const vcl::EnumContext &rContext) override
 
 ChartTypePanel (weld::Widget *pParent, ::chart::ChartController *pController)
 
virtual ~ChartTypePanel () override
 
virtual void updateData () override
 
virtual void modelInvalid () override
 
virtual void updateModel (css::uno::Reference< css::frame::XModel > xModel) override
 
virtual rtl::Reference<::chart::ChartTypeTemplategetCurrentTemplate () const override
 
- Public Member Functions inherited from chart::ResourceChangeListener
virtual void stateChanged ()=0
 
virtual ~ResourceChangeListener ()
 
- Public Member Functions inherited from PanelLayout
 PanelLayout (weld::Widget *pParent, const OUString &rID, const OUString &rUIXMLDescription)
 
void SetPanel (sfx2::sidebar::Panel *pPanel)
 
virtual ~PanelLayout ()
 
Size get_preferred_size () const
 
void queue_resize ()
 
- Public Member Functions inherited from chart::sidebar::ChartSidebarModifyListenerParent
virtual ~ChartSidebarModifyListenerParent ()
 
virtual void updateData ()=0
 
virtual void modelInvalid ()=0
 
- Public Member Functions inherited from chart::ChartTypeTemplateProvider
virtual rtl::Reference<::chart::ChartTypeTemplategetCurrentTemplate () const =0
 
virtual ~ChartTypeTemplateProvider ()
 

Private Member Functions

ChartTypeDialogControllergetSelectedMainType ()
 
void showAllControls (ChartTypeDialogController &rTypeController)
 
void fillAllControls (const ChartTypeParameter &rParameter, bool bAlsoResetSubTypeList=true)
 
ChartTypeParameter getCurrentParameter () const
 
virtual void stateChanged () override
 
void commitToModel (const ChartTypeParameter &rParameter)
 
void selectMainType ()
 
 DECL_LINK (SelectMainTypeHdl, weld::ComboBox &, void)
 
 DECL_LINK (SelectSubTypeHdl, ValueSet *, void)
 
void Initialize ()
 
void doUpdateModel (rtl::Reference<::chart::ChartModel > xModel)
 

Private Attributes

vcl::EnumContext maContext
 
css::uno::Reference< css::util::XModifyListener > mxListener
 
bool mbModelValid
 
std::unique_ptr< Dim3DLookResourceGroupm_pDim3DLookResourceGroup
 
std::unique_ptr< StackingResourceGroupm_pStackingResourceGroup
 
std::unique_ptr< SplineResourceGroupm_pSplineResourceGroup
 
std::unique_ptr< GeometryResourceGroupm_pGeometryResourceGroup
 
std::unique_ptr< SortByXValuesResourceGroupm_pSortByXValuesResourceGroup
 
rtl::Reference<::chart::ChartModel > m_xChartModel
 
std::vector< std::unique_ptr< ChartTypeDialogController > > m_aChartTypeDialogControllerList
 
ChartTypeDialogControllerm_pCurrentMainType
 
sal_Int32 m_nChangingCalls
 
TimerTriggeredControllerLock m_aTimerTriggeredControllerLock
 
std::unique_ptr< weld::ComboBoxm_xMainTypeList
 
std::unique_ptr< ValueSetm_xSubTypeList
 
std::unique_ptr< weld::CustomWeldm_xSubTypeListWin
 

Additional Inherited Members

- Protected Member Functions inherited from PanelLayout
virtual void DataChanged (const DataChangedEvent &rEvent)
 
virtual void DumpAsPropertyTree (tools::JsonWriter &)
 
virtual weld::WindowGetFrameWeld () const
 
- Protected Attributes inherited from PanelLayout
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 
sfx2::sidebar::Panelm_pPanel
 

Detailed Description

Definition at line 52 of file ChartTypePanel.hxx.

Constructor & Destructor Documentation

◆ ChartTypePanel()

chart::sidebar::ChartTypePanel::ChartTypePanel ( weld::Widget pParent,
::chart::ChartController pController 
)

◆ ~ChartTypePanel()

chart::sidebar::ChartTypePanel::~ChartTypePanel ( )
overridevirtual

Member Function Documentation

◆ commitToModel()

void chart::sidebar::ChartTypePanel::commitToModel ( const ChartTypeParameter rParameter)
private

◆ DataChanged()

void chart::sidebar::ChartTypePanel::DataChanged ( const DataChangedEvent rEvent)
overridevirtual

Reimplemented from PanelLayout.

Definition at line 244 of file ChartTypePanel.cxx.

References PanelLayout::DataChanged(), and updateData().

◆ DECL_LINK() [1/2]

chart::sidebar::ChartTypePanel::DECL_LINK ( SelectMainTypeHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [2/2]

chart::sidebar::ChartTypePanel::DECL_LINK ( SelectSubTypeHdl  ,
ValueSet ,
void   
)
private

◆ doUpdateModel()

void chart::sidebar::ChartTypePanel::doUpdateModel ( rtl::Reference<::chart::ChartModel >  xModel)
private

Definition at line 264 of file ChartTypePanel.cxx.

References m_xChartModel, mbModelValid, mxListener, and xModel.

Referenced by updateModel(), and ~ChartTypePanel().

◆ fillAllControls()

void chart::sidebar::ChartTypePanel::fillAllControls ( const ChartTypeParameter rParameter,
bool  bAlsoResetSubTypeList = true 
)
private

◆ getCurrentParameter()

ChartTypeParameter chart::sidebar::ChartTypePanel::getCurrentParameter ( ) const
private

◆ getCurrentTemplate()

rtl::Reference<::chart::ChartTypeTemplate > chart::sidebar::ChartTypePanel::getCurrentTemplate ( ) const
overridevirtual

◆ getSelectedMainType()

ChartTypeDialogController * chart::sidebar::ChartTypePanel::getSelectedMainType ( )
private

Definition at line 300 of file ChartTypePanel.cxx.

References get(), m_aChartTypeDialogControllerList, and m_xMainTypeList.

Referenced by Initialize(), and selectMainType().

◆ HandleContextChange()

void chart::sidebar::ChartTypePanel::HandleContextChange ( const vcl::EnumContext rContext)
overridevirtual

Definition at line 250 of file ChartTypePanel.cxx.

References maContext, and updateData().

◆ Initialize()

void chart::sidebar::ChartTypePanel::Initialize ( )
private

◆ modelInvalid()

void chart::sidebar::ChartTypePanel::modelInvalid ( )
overridevirtual

Implements chart::sidebar::ChartSidebarModifyListenerParent.

Definition at line 262 of file ChartTypePanel.cxx.

References mbModelValid.

◆ selectMainType()

void chart::sidebar::ChartTypePanel::selectMainType ( )
private

◆ showAllControls()

void chart::sidebar::ChartTypePanel::showAllControls ( ChartTypeDialogController rTypeController)
private

◆ stateChanged()

void chart::sidebar::ChartTypePanel::stateChanged ( )
overrideprivatevirtual

◆ updateData()

void chart::sidebar::ChartTypePanel::updateData ( )
overridevirtual

◆ updateModel()

void chart::sidebar::ChartTypePanel::updateModel ( css::uno::Reference< css::frame::XModel >  xModel)
overridevirtual

Definition at line 280 of file ChartTypePanel.cxx.

References doUpdateModel(), and xModel.

Member Data Documentation

◆ m_aChartTypeDialogControllerList

std::vector<std::unique_ptr<ChartTypeDialogController> > chart::sidebar::ChartTypePanel::m_aChartTypeDialogControllerList
private

◆ m_aTimerTriggeredControllerLock

TimerTriggeredControllerLock chart::sidebar::ChartTypePanel::m_aTimerTriggeredControllerLock
private

Definition at line 112 of file ChartTypePanel.hxx.

Referenced by commitToModel().

◆ m_nChangingCalls

sal_Int32 chart::sidebar::ChartTypePanel::m_nChangingCalls
private

Definition at line 110 of file ChartTypePanel.hxx.

Referenced by fillAllControls(), and stateChanged().

◆ m_pCurrentMainType

ChartTypeDialogController* chart::sidebar::ChartTypePanel::m_pCurrentMainType
private

◆ m_pDim3DLookResourceGroup

std::unique_ptr<Dim3DLookResourceGroup> chart::sidebar::ChartTypePanel::m_pDim3DLookResourceGroup
private

◆ m_pGeometryResourceGroup

std::unique_ptr<GeometryResourceGroup> chart::sidebar::ChartTypePanel::m_pGeometryResourceGroup
private

◆ m_pSortByXValuesResourceGroup

std::unique_ptr<SortByXValuesResourceGroup> chart::sidebar::ChartTypePanel::m_pSortByXValuesResourceGroup
private

◆ m_pSplineResourceGroup

std::unique_ptr<SplineResourceGroup> chart::sidebar::ChartTypePanel::m_pSplineResourceGroup
private

◆ m_pStackingResourceGroup

std::unique_ptr<StackingResourceGroup> chart::sidebar::ChartTypePanel::m_pStackingResourceGroup
private

◆ m_xChartModel

rtl::Reference<::chart::ChartModel> chart::sidebar::ChartTypePanel::m_xChartModel
private

◆ m_xMainTypeList

std::unique_ptr<weld::ComboBox> chart::sidebar::ChartTypePanel::m_xMainTypeList
private

◆ m_xSubTypeList

std::unique_ptr<ValueSet> chart::sidebar::ChartTypePanel::m_xSubTypeList
private

◆ m_xSubTypeListWin

std::unique_ptr<weld::CustomWeld> chart::sidebar::ChartTypePanel::m_xSubTypeListWin
private

Definition at line 116 of file ChartTypePanel.hxx.

Referenced by ChartTypePanel(), and ~ChartTypePanel().

◆ maContext

vcl::EnumContext chart::sidebar::ChartTypePanel::maContext
private

Definition at line 90 of file ChartTypePanel.hxx.

Referenced by HandleContextChange().

◆ mbModelValid

bool chart::sidebar::ChartTypePanel::mbModelValid
private

Definition at line 94 of file ChartTypePanel.hxx.

Referenced by doUpdateModel(), and modelInvalid().

◆ mxListener

css::uno::Reference<css::util::XModifyListener> chart::sidebar::ChartTypePanel::mxListener
private

Definition at line 92 of file ChartTypePanel.hxx.

Referenced by doUpdateModel().


The documentation for this class was generated from the following files: