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

#include <tp_DataSource.hxx>

Inheritance diagram for chart::DataSourceTabPage:
[legend]
Collaboration diagram for chart::DataSourceTabPage:
[legend]

Public Member Functions

 DataSourceTabPage (weld::Container *pPage, weld::DialogController *pController, DialogModel &rDialogModel, ChartTypeTemplateProvider *pTemplateProvider, bool bHideDescription=false)
 
virtual ~DataSourceTabPage () override
 
virtual void Activate () override
 
void commitPage ()
 
- Public Member Functions inherited from vcl::OWizardPage
 OWizardPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID)
 
virtual ~OWizardPage () override
 
virtual void initializePage () override
 
virtual bool commitPage (WizardTypes::CommitPageReason _eReason) override
 
virtual bool canAdvance () const override
 
- Public Member Functions inherited from BuilderPage
 BuilderPage (weld::Widget *pParent, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, bool bIsMobile=false)
 
virtual ~BuilderPage () COVERITY_NOEXCEPT_FALSE
 
void SetPageTitle (const OUString &rPageTitle)
 
const OUString & GetPageTitle () const
 
virtual void Activate ()
 
virtual void Deactivate ()
 
void SetHelpId (const OUString &rHelpId)
 
OUString GetHelpId () const
 
virtual void listeningFinished (const OUString &rNewRange)=0
 
virtual void disposingRangeSelection ()=0
 

Private Member Functions

virtual bool commitPage (::vcl::WizardTypes::CommitPageReason eReason) override
 
virtual void Deactivate () override
 
virtual void initializePage () override
 
 DECL_LINK (SeriesSelectionChangedHdl, weld::TreeView &, void)
 
 DECL_LINK (RoleSelectionChangedHdl, weld::TreeView &, void)
 
 DECL_LINK (MainRangeButtonClickedHdl, weld::Button &, void)
 
 DECL_LINK (CategoriesRangeButtonClickedHdl, weld::Button &, void)
 
 DECL_LINK (AddButtonClickedHdl, weld::Button &, void)
 
 DECL_LINK (RemoveButtonClickedHdl, weld::Button &, void)
 
 DECL_LINK (RangeModifiedHdl, weld::Entry &, void)
 
 DECL_LINK (UpButtonClickedHdl, weld::Button &, void)
 
 DECL_LINK (DownButtonClickedHdl, weld::Button &, void)
 
virtual void listeningFinished (const OUString &rNewRange) override
 
virtual void disposingRangeSelection () override
 
void InsertRoleLBEntry (const OUString &rRole, const OUString &rRange)
 
void updateControlState ()
 
bool updateModelFromControl (const weld::Entry *pField=nullptr)
 updates the internal data according to the content of the given edit field. More...
 
bool isRangeFieldContentValid (weld::Entry &rEdit)
 
bool isValid ()
 
void setDirty ()
 
void updateControlsFromDialogModel ()
 
void fillSeriesListBox ()
 
void fillRoleListBox ()
 

Private Attributes

std::vector< std::unique_ptr< SeriesEntry > > m_aEntries
 
OUString m_aFixedTextRange
 
ChartTypeTemplateProviderm_pTemplateProvider
 
DialogModelm_rDialogModel
 
weld::Entrym_pCurrentRangeChoosingField
 
bool m_bIsDirty
 
TabPageNotifiable * m_pTabPageNotifiable
 
std::unique_ptr< weld::Labelm_xFT_CAPTION
 
std::unique_ptr< weld::Labelm_xFT_SERIES
 
std::unique_ptr< weld::TreeViewm_xLB_SERIES
 
std::unique_ptr< weld::Buttonm_xBTN_ADD
 
std::unique_ptr< weld::Buttonm_xBTN_REMOVE
 
std::unique_ptr< weld::Buttonm_xBTN_UP
 
std::unique_ptr< weld::Buttonm_xBTN_DOWN
 
std::unique_ptr< weld::Labelm_xFT_ROLE
 
std::unique_ptr< weld::TreeViewm_xLB_ROLE
 
std::unique_ptr< weld::Labelm_xFT_RANGE
 
std::unique_ptr< weld::Entrym_xEDT_RANGE
 
std::unique_ptr< weld::Buttonm_xIMB_RANGE_MAIN
 
std::unique_ptr< weld::Labelm_xFT_CATEGORIES
 
std::unique_ptr< weld::Labelm_xFT_DATALABELS
 
std::unique_ptr< weld::Entrym_xEDT_CATEGORIES
 
std::unique_ptr< weld::Buttonm_xIMB_RANGE_CAT
 

Additional Inherited Members

- Protected Member Functions inherited from vcl::OWizardPage
virtual void Activate () override
 
void updateDialogTravelUI ()
 
- Protected Member Functions inherited from chart::RangeSelectionListenerParent
 ~RangeSelectionListenerParent ()
 
- Protected Attributes inherited from BuilderPage
weld::DialogControllerm_pDialogController
 
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 52 of file tp_DataSource.hxx.

Constructor & Destructor Documentation

◆ DataSourceTabPage()

chart::DataSourceTabPage::DataSourceTabPage ( weld::Container pPage,
weld::DialogController pController,
DialogModel rDialogModel,
ChartTypeTemplateProvider pTemplateProvider,
bool  bHideDescription = false 
)
explicit

◆ ~DataSourceTabPage()

chart::DataSourceTabPage::~DataSourceTabPage ( )
overridevirtual

Definition at line 234 of file tp_DataSource.cxx.

Member Function Documentation

◆ Activate()

void chart::DataSourceTabPage::Activate ( )
overridevirtual

Reimplemented from vcl::OWizardPage.

Definition at line 238 of file tp_DataSource.cxx.

References m_xLB_SERIES, and updateControlsFromDialogModel().

◆ commitPage() [1/2]

void chart::DataSourceTabPage::commitPage ( )

Definition at line 255 of file tp_DataSource.cxx.

References commitPage().

Referenced by commitPage(), and Deactivate().

◆ commitPage() [2/2]

bool chart::DataSourceTabPage::commitPage ( ::vcl::WizardTypes::CommitPageReason  eReason)
overrideprivatevirtual

Definition at line 260 of file tp_DataSource.cxx.

References isValid(), and updateModelFromControl().

◆ Deactivate()

void chart::DataSourceTabPage::Deactivate ( )
overrideprivatevirtual

Reimplemented from BuilderPage.

Definition at line 249 of file tp_DataSource.cxx.

References commitPage(), and BuilderPage::Deactivate().

◆ DECL_LINK() [1/9]

chart::DataSourceTabPage::DECL_LINK ( AddButtonClickedHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/9]

chart::DataSourceTabPage::DECL_LINK ( CategoriesRangeButtonClickedHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/9]

chart::DataSourceTabPage::DECL_LINK ( DownButtonClickedHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/9]

chart::DataSourceTabPage::DECL_LINK ( MainRangeButtonClickedHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [5/9]

chart::DataSourceTabPage::DECL_LINK ( RangeModifiedHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [6/9]

chart::DataSourceTabPage::DECL_LINK ( RemoveButtonClickedHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [7/9]

chart::DataSourceTabPage::DECL_LINK ( RoleSelectionChangedHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [8/9]

chart::DataSourceTabPage::DECL_LINK ( SeriesSelectionChangedHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [9/9]

chart::DataSourceTabPage::DECL_LINK ( UpButtonClickedHdl  ,
weld::Button ,
void   
)
private

◆ disposingRangeSelection()

void chart::DataSourceTabPage::disposingRangeSelection ( )
overrideprivatevirtual

◆ fillRoleListBox()

void chart::DataSourceTabPage::fillRoleListBox ( )
private

◆ fillSeriesListBox()

void chart::DataSourceTabPage::fillSeriesListBox ( )
private

◆ initializePage()

void chart::DataSourceTabPage::initializePage ( )
overrideprivatevirtual

Reimplemented from vcl::OWizardPage.

Definition at line 245 of file tp_DataSource.cxx.

◆ InsertRoleLBEntry()

void chart::DataSourceTabPage::InsertRoleLBEntry ( const OUString &  rRole,
const OUString &  rRange 
)
private

◆ isRangeFieldContentValid()

bool chart::DataSourceTabPage::isRangeFieldContentValid ( weld::Entry rEdit)
private
Returns
</sal_True>, if the edit field contains a valid range entry. If no XCellRangesAccess can be obtained, </sal_False> is returned.

Definition at line 272 of file tp_DataSource.cxx.

References weld::Error, weld::Entry::get_text(), chart::DialogModel::getRangeSelectionHelper(), m_rDialogModel, weld::Normal, and weld::Entry::set_message_type().

Referenced by isValid().

◆ isValid()

bool chart::DataSourceTabPage::isValid ( )
private
Returns
</sal_True>, if the tab-page is in a consistent (committable) state

Definition at line 281 of file tp_DataSource.cxx.

References isRangeFieldContentValid(), m_pTabPageNotifiable, m_xEDT_CATEGORIES, m_xEDT_RANGE, and m_xLB_SERIES.

Referenced by commitPage(), and updateControlState().

◆ listeningFinished()

void chart::DataSourceTabPage::listeningFinished ( const OUString &  rNewRange)
overrideprivatevirtual

◆ setDirty()

void chart::DataSourceTabPage::setDirty ( )
private

Definition at line 304 of file tp_DataSource.cxx.

References m_bIsDirty.

Referenced by listeningFinished().

◆ updateControlsFromDialogModel()

void chart::DataSourceTabPage::updateControlsFromDialogModel ( )
private

◆ updateControlState()

void chart::DataSourceTabPage::updateControlState ( )
private

◆ updateModelFromControl()

bool chart::DataSourceTabPage::updateModelFromControl ( const weld::Entry pField = nullptr)
private

Member Data Documentation

◆ m_aEntries

std::vector<std::unique_ptr<SeriesEntry> > chart::DataSourceTabPage::m_aEntries
private

Definition at line 118 of file tp_DataSource.hxx.

Referenced by fillSeriesListBox(), and InsertRoleLBEntry().

◆ m_aFixedTextRange

OUString chart::DataSourceTabPage::m_aFixedTextRange
private

Definition at line 120 of file tp_DataSource.hxx.

Referenced by DataSourceTabPage().

◆ m_bIsDirty

bool chart::DataSourceTabPage::m_bIsDirty
private

Definition at line 125 of file tp_DataSource.hxx.

Referenced by setDirty(), and updateModelFromControl().

◆ m_pCurrentRangeChoosingField

weld::Entry* chart::DataSourceTabPage::m_pCurrentRangeChoosingField
private

Definition at line 124 of file tp_DataSource.hxx.

Referenced by listeningFinished().

◆ m_pTabPageNotifiable

TabPageNotifiable* chart::DataSourceTabPage::m_pTabPageNotifiable
private

Definition at line 127 of file tp_DataSource.hxx.

Referenced by isValid().

◆ m_pTemplateProvider

ChartTypeTemplateProvider* chart::DataSourceTabPage::m_pTemplateProvider
private

Definition at line 122 of file tp_DataSource.hxx.

◆ m_rDialogModel

DialogModel& chart::DataSourceTabPage::m_rDialogModel
private

◆ m_xBTN_ADD

std::unique_ptr<weld::Button> chart::DataSourceTabPage::m_xBTN_ADD
private

Definition at line 132 of file tp_DataSource.hxx.

Referenced by DataSourceTabPage(), and updateControlState().

◆ m_xBTN_DOWN

std::unique_ptr<weld::Button> chart::DataSourceTabPage::m_xBTN_DOWN
private

Definition at line 135 of file tp_DataSource.hxx.

Referenced by DataSourceTabPage(), and updateControlState().

◆ m_xBTN_REMOVE

std::unique_ptr<weld::Button> chart::DataSourceTabPage::m_xBTN_REMOVE
private

Definition at line 133 of file tp_DataSource.hxx.

Referenced by DataSourceTabPage(), and updateControlState().

◆ m_xBTN_UP

std::unique_ptr<weld::Button> chart::DataSourceTabPage::m_xBTN_UP
private

Definition at line 134 of file tp_DataSource.hxx.

Referenced by DataSourceTabPage(), and updateControlState().

◆ m_xEDT_CATEGORIES

std::unique_ptr<weld::Entry> chart::DataSourceTabPage::m_xEDT_CATEGORIES
private

◆ m_xEDT_RANGE

std::unique_ptr<weld::Entry> chart::DataSourceTabPage::m_xEDT_RANGE
private

◆ m_xFT_CAPTION

std::unique_ptr<weld::Label> chart::DataSourceTabPage::m_xFT_CAPTION
private

Definition at line 129 of file tp_DataSource.hxx.

Referenced by DataSourceTabPage().

◆ m_xFT_CATEGORIES

std::unique_ptr<weld::Label> chart::DataSourceTabPage::m_xFT_CATEGORIES
private

Definition at line 141 of file tp_DataSource.hxx.

Referenced by updateControlState().

◆ m_xFT_DATALABELS

std::unique_ptr<weld::Label> chart::DataSourceTabPage::m_xFT_DATALABELS
private

Definition at line 142 of file tp_DataSource.hxx.

Referenced by updateControlState().

◆ m_xFT_RANGE

std::unique_ptr<weld::Label> chart::DataSourceTabPage::m_xFT_RANGE
private

Definition at line 138 of file tp_DataSource.hxx.

Referenced by DataSourceTabPage(), and updateControlState().

◆ m_xFT_ROLE

std::unique_ptr<weld::Label> chart::DataSourceTabPage::m_xFT_ROLE
private

Definition at line 136 of file tp_DataSource.hxx.

Referenced by updateControlState().

◆ m_xFT_SERIES

std::unique_ptr<weld::Label> chart::DataSourceTabPage::m_xFT_SERIES
private

Definition at line 130 of file tp_DataSource.hxx.

Referenced by updateControlState().

◆ m_xIMB_RANGE_CAT

std::unique_ptr<weld::Button> chart::DataSourceTabPage::m_xIMB_RANGE_CAT
private

Definition at line 144 of file tp_DataSource.hxx.

Referenced by DataSourceTabPage(), and updateControlState().

◆ m_xIMB_RANGE_MAIN

std::unique_ptr<weld::Button> chart::DataSourceTabPage::m_xIMB_RANGE_MAIN
private

Definition at line 140 of file tp_DataSource.hxx.

Referenced by DataSourceTabPage(), and updateControlState().

◆ m_xLB_ROLE

std::unique_ptr<weld::TreeView> chart::DataSourceTabPage::m_xLB_ROLE
private

◆ m_xLB_SERIES

std::unique_ptr<weld::TreeView> chart::DataSourceTabPage::m_xLB_SERIES
private

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