diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-15 11:14:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-15 21:02:23 +0200 |
commit | ec548bce309d965a25e807ae79432114926e06f3 (patch) | |
tree | 525284db036785ff1e606e65edcc75a66ede4d3d /chart2/source/controller/dialogs/res_BarGeometry.cxx | |
parent | m_pLine is always unset (diff) | |
download | core-ec548bce309d965a25e807ae79432114926e06f3.tar.gz core-ec548bce309d965a25e807ae79432114926e06f3.zip |
weld ChartTypeDialog and SchLayoutTabPage
Change-Id: I101c56b855d0bdc43559ca4561d298fa4ad92572
Reviewed-on: https://gerrit.libreoffice.org/61797
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2/source/controller/dialogs/res_BarGeometry.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/res_BarGeometry.cxx | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/chart2/source/controller/dialogs/res_BarGeometry.cxx b/chart2/source/controller/dialogs/res_BarGeometry.cxx index 3e3fd52be485..25ab3ac063c5 100644 --- a/chart2/source/controller/dialogs/res_BarGeometry.cxx +++ b/chart2/source/controller/dialogs/res_BarGeometry.cxx @@ -22,42 +22,39 @@ namespace chart { -BarGeometryResources::BarGeometryResources(VclBuilderContainer* pWindow) +BarGeometryResources::BarGeometryResources(weld::Builder* pBuilder) + : m_xFT_Geometry(pBuilder->weld_label("shapeft")) + , m_xLB_Geometry(pBuilder->weld_tree_view("shape")) { - pWindow->get(m_pFT_Geometry, "shapeft"); - pWindow->get(m_pLB_Geometry, "shape"); + m_xLB_Geometry->set_size_request(-1, m_xLB_Geometry->get_height_rows(4)); } -void BarGeometryResources::SetSelectHdl( const Link<ListBox&,void>& rLink ) +void BarGeometryResources::connect_changed(const Link<weld::TreeView&,void>& rLink) { - m_pLB_Geometry->SetSelectHdl( rLink ); + m_xLB_Geometry->connect_changed(rLink); } -void BarGeometryResources::Show( bool bShow ) +void BarGeometryResources::show( bool bShow ) { - m_pFT_Geometry->Show( bShow ); - m_pLB_Geometry->Show( bShow ); -} -void BarGeometryResources::Enable( bool bEnable ) -{ - m_pFT_Geometry->Enable( bEnable ); - m_pLB_Geometry->Enable( bEnable ); + m_xFT_Geometry->show( bShow ); + m_xLB_Geometry->show( bShow ); } -sal_Int32 BarGeometryResources::GetSelectedEntryCount() const +void BarGeometryResources::set_sensitive( bool bEnable ) { - return m_pLB_Geometry->GetSelectedEntryCount(); + m_xFT_Geometry->set_sensitive( bEnable ); + m_xLB_Geometry->set_sensitive( bEnable ); } -sal_Int32 BarGeometryResources::GetSelectedEntryPos() const +sal_Int32 BarGeometryResources::get_selected_index() const { - return m_pLB_Geometry->GetSelectedEntryPos(); + return m_xLB_Geometry->get_selected_index(); } -void BarGeometryResources::SelectEntryPos(sal_Int32 nPos) +void BarGeometryResources::select(sal_Int32 nPos) { - if( nPos < m_pLB_Geometry->GetEntryCount() ) - m_pLB_Geometry->SelectEntryPos( nPos ); + if (nPos < m_xLB_Geometry->n_children()) + m_xLB_Geometry->select(nPos); } } //namespace chart |