summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-10-18 16:28:20 +0200
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-10-19 11:45:36 +0200
commit4b313fd5661ca5ac096e60d46691b1a9857877d9 (patch)
tree59ba989a24fe1d21562f9a3c8a465b124028c62a /chart2/source
parentd47508e036fd30f410798f37d25039bb25528f60 (diff)
Merge SvListEntry and SvLBoxEntry into SvTreeListEntry.
Change-Id: I89cfc8c1288c00674fe64e791c149743d377d5ee
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/dialogs/tp_DataSource.cxx20
-rw-r--r--chart2/source/controller/dialogs/tp_DataSourceControls.cxx2
-rw-r--r--chart2/source/controller/dialogs/tp_DataSourceControls.hxx4
3 files changed, 13 insertions, 13 deletions
diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx
index 080ad76c8f24..bb5ef2ae63a2 100644
--- a/chart2/source/controller/dialogs/tp_DataSource.cxx
+++ b/chart2/source/controller/dialogs/tp_DataSource.cxx
@@ -77,7 +77,7 @@ void lcl_UpdateCurrentRange(
SvTabListBox & rOutListBox,
const OUString & rRole, const OUString & rRange )
{
- SvLBoxEntry * pEntry = rOutListBox.FirstSelected();
+ SvTreeListEntry * pEntry = rOutListBox.FirstSelected();
if( pEntry )
rOutListBox.SetEntryText( lcl_GetRoleLBEntry( rRole, rRange ), pEntry );
}
@@ -106,7 +106,7 @@ bool lcl_UpdateCurrentSeriesName(
OUString lcl_GetSelectedRole( const SvTabListBox & rRoleListBox, bool bUITranslated = false )
{
OUString aResult;
- SvLBoxEntry * pEntry = rRoleListBox.FirstSelected();
+ SvTreeListEntry * pEntry = rRoleListBox.FirstSelected();
if( pEntry )
aResult = OUString( rRoleListBox.GetEntryText( pEntry,
bUITranslated ? 1 : 0 ));
@@ -116,7 +116,7 @@ OUString lcl_GetSelectedRole( const SvTabListBox & rRoleListBox, bool bUITransla
OUString lcl_GetSelectedRolesRange( const SvTabListBox & rRoleListBox )
{
OUString aResult;
- SvLBoxEntry * pEntry = rRoleListBox.FirstSelected();
+ SvTreeListEntry * pEntry = rRoleListBox.FirstSelected();
if( pEntry )
aResult = OUString( rRoleListBox.GetEntryText( pEntry, 2 ));
return aResult;
@@ -459,7 +459,7 @@ void DataSourceTabPage::fillSeriesListBox()
xSelected.set( pEntry->m_xDataSeries );
bool bHasSelectedEntry = (pEntry != 0);
- SvLBoxEntry * pSelectedEntry = 0;
+ SvTreeListEntry * pSelectedEntry = 0;
m_apLB_SERIES->Clear();
::std::vector< DialogModel::tSeriesWithChartTypeByName > aSeries(
@@ -511,7 +511,7 @@ void DataSourceTabPage::fillRoleListBox()
SeriesEntry * pSeriesEntry = dynamic_cast< SeriesEntry * >( m_apLB_SERIES->FirstSelected());
bool bHasSelectedEntry = (pSeriesEntry != 0);
- SvLBoxEntry * pRoleEntry = m_aLB_ROLE.FirstSelected();
+ SvTreeListEntry * pRoleEntry = m_aLB_ROLE.FirstSelected();
sal_uLong nRoleIndex = SAL_MAX_UINT32;
if( pRoleEntry )
nRoleIndex = m_aLB_ROLE.GetModel()->GetAbsPos( pRoleEntry );
@@ -549,14 +549,14 @@ void DataSourceTabPage::fillRoleListBox()
void DataSourceTabPage::updateControlState()
{
- SvLBoxEntry * pSeriesEntry = m_apLB_SERIES->FirstSelected();
+ SvTreeListEntry * pSeriesEntry = m_apLB_SERIES->FirstSelected();
bool bHasSelectedSeries = (pSeriesEntry != 0);
bool bHasValidRole = false;
bool bHasRangeChooser = m_rDialogModel.getRangeSelectionHelper()->hasRangeSelection();
if( bHasSelectedSeries )
{
- SvLBoxEntry * pRoleEntry = m_aLB_ROLE.FirstSelected();
+ SvTreeListEntry * pRoleEntry = m_aLB_ROLE.FirstSelected();
bHasValidRole = (pRoleEntry != 0);
}
@@ -601,7 +601,7 @@ IMPL_LINK_NOARG(DataSourceTabPage, SeriesSelectionChangedHdl)
IMPL_LINK_NOARG(DataSourceTabPage, RoleSelectionChangedHdl)
{
m_rDialogModel.startControllerLockTimer();
- SvLBoxEntry * pEntry = m_aLB_ROLE.FirstSelected();
+ SvTreeListEntry * pEntry = m_aLB_ROLE.FirstSelected();
if( pEntry )
{
OUString aRange( m_aEDT_RANGE.GetText());
@@ -712,10 +712,10 @@ IMPL_LINK_NOARG(DataSourceTabPage, AddButtonClickedHdl)
fillSeriesListBox();
// note the box was cleared and refilled, so pEntry is invalid now
- SvLBoxEntry * pSelEntry = m_apLB_SERIES->FirstSelected();
+ SvTreeListEntry * pSelEntry = m_apLB_SERIES->FirstSelected();
if( pSelEntry )
{
- SvLBoxEntry * pNextEntry = m_apLB_SERIES->Next( pSelEntry );
+ SvTreeListEntry * pNextEntry = m_apLB_SERIES->Next( pSelEntry );
if( pNextEntry )
m_apLB_SERIES->Select( pNextEntry );
}
diff --git a/chart2/source/controller/dialogs/tp_DataSourceControls.cxx b/chart2/source/controller/dialogs/tp_DataSourceControls.cxx
index fe1f1fd07e20..602831e464ce 100644
--- a/chart2/source/controller/dialogs/tp_DataSourceControls.cxx
+++ b/chart2/source/controller/dialogs/tp_DataSourceControls.cxx
@@ -39,7 +39,7 @@ SeriesListBox::SeriesListBox( Window* pParent, const ResId & rResId ) :
SeriesListBox::~SeriesListBox()
{}
-SvLBoxEntry* SeriesListBox::CreateEntry() const
+SvTreeListEntry* SeriesListBox::CreateEntry() const
{
return new SeriesEntry();
}
diff --git a/chart2/source/controller/dialogs/tp_DataSourceControls.hxx b/chart2/source/controller/dialogs/tp_DataSourceControls.hxx
index c2f0b798aaf0..47142817410f 100644
--- a/chart2/source/controller/dialogs/tp_DataSourceControls.hxx
+++ b/chart2/source/controller/dialogs/tp_DataSourceControls.hxx
@@ -31,7 +31,7 @@
namespace chart
{
-class SeriesEntry : public ::SvLBoxEntry
+class SeriesEntry : public ::SvTreeListEntry
{
public:
virtual ~SeriesEntry();
@@ -53,7 +53,7 @@ public:
explicit SeriesListBox( Window* pParent, const ResId & rResId );
~SeriesListBox( );
- virtual SvLBoxEntry* CreateEntry() const;
+ virtual SvTreeListEntry* CreateEntry() const;
};
} // namespace chart