summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs/res_ErrorBar.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-24 13:24:34 +0200
committerNoel Grandin <noel@peralex.com>2016-08-25 08:40:00 +0200
commit9781212b55a3a8afd3e00cd0400725e38babfbdf (patch)
treeb65506153d36ae1eb08466029f14af40dc870ece /chart2/source/controller/dialogs/res_ErrorBar.cxx
parent2927a5c1c70b66062cc2b60f6f4eb7cf6c727d2c (diff)
convert SvxChartIndicate to scoped enum
Change-Id: I65183bd4ce21544608397164fc2660830378d975
Diffstat (limited to 'chart2/source/controller/dialogs/res_ErrorBar.cxx')
-rw-r--r--chart2/source/controller/dialogs/res_ErrorBar.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/chart2/source/controller/dialogs/res_ErrorBar.cxx b/chart2/source/controller/dialogs/res_ErrorBar.cxx
index 1ed9bb5e8933..8e354871768e 100644
--- a/chart2/source/controller/dialogs/res_ErrorBar.cxx
+++ b/chart2/source/controller/dialogs/res_ErrorBar.cxx
@@ -82,7 +82,7 @@ ErrorBarResources::ErrorBarResources( VclBuilderContainer* pParent, Dialog * pPa
const SfxItemSet& rInAttrs, bool bNoneAvailable,
tErrorBarType eType /* = ERROR_BAR_Y */ ) :
m_eErrorKind( CHERROR_NONE ),
- m_eIndicate( CHINDICATE_BOTH ),
+ m_eIndicate( SvxChartIndicate::Both ),
m_bErrorKindUnique( true ),
m_bIndicatorUnique( true ),
m_bPlusUnique( true ),
@@ -427,11 +427,11 @@ IMPL_LINK_NOARG_TYPED(ErrorBarResources, IndicatorChanged, Button*, void)
{
m_bIndicatorUnique = true;
if( m_pRbBoth->IsChecked())
- m_eIndicate = CHINDICATE_BOTH;
+ m_eIndicate = SvxChartIndicate::Both;
else if( m_pRbPositive->IsChecked())
- m_eIndicate = CHINDICATE_UP;
+ m_eIndicate = SvxChartIndicate::Up;
else if( m_pRbNegative->IsChecked())
- m_eIndicate = CHINDICATE_DOWN;
+ m_eIndicate = SvxChartIndicate::Down;
else
m_bIndicatorUnique = false;
@@ -560,15 +560,15 @@ void ErrorBarResources::Reset(const SfxItemSet& rInAttrs)
{
switch( m_eIndicate )
{
- case CHINDICATE_NONE :
+ case SvxChartIndicate::NONE :
// no longer used, use both as default
- m_eIndicate = CHINDICATE_BOTH;
+ m_eIndicate = SvxChartIndicate::Both;
SAL_FALLTHROUGH; // to BOTH
- case CHINDICATE_BOTH :
+ case SvxChartIndicate::Both :
m_pRbBoth->Check(); break;
- case CHINDICATE_UP :
+ case SvxChartIndicate::Up :
m_pRbPositive->Check(); break;
- case CHINDICATE_DOWN :
+ case SvxChartIndicate::Down :
m_pRbNegative->Check(); break;
}
}