diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2015-07-07 14:55:06 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-09 22:46:40 +0000 |
commit | 701e21b25dda87a3f1feca1137c6ceab8a5363ab (patch) | |
tree | 2a273cb842a16f1069d7e1d9154fc28b6c960cd4 /chart2 | |
parent | ebdc15f93587b59a79a5104f8358841a28940a82 (diff) |
tdf#91725: Use lighter default colour for minor grid lines
Change-Id: I4be2adac1004ad4ace474c9a271cf8e21986da07
Reviewed-on: https://gerrit.libreoffice.org/16819
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/inc/LinePropertiesHelper.hxx | 2 | ||||
-rw-r--r-- | chart2/source/model/main/Axis.cxx | 1 | ||||
-rw-r--r-- | chart2/source/tools/LinePropertiesHelper.cxx | 17 |
3 files changed, 20 insertions, 0 deletions
diff --git a/chart2/source/inc/LinePropertiesHelper.hxx b/chart2/source/inc/LinePropertiesHelper.hxx index c765cd1cb4c5..a5fd2b93c482 100644 --- a/chart2/source/inc/LinePropertiesHelper.hxx +++ b/chart2/source/inc/LinePropertiesHelper.hxx @@ -56,6 +56,8 @@ namespace LinePropertiesHelper ::com::sun::star::beans::XPropertySet >& xLineProperties ); void SetLineInvisible( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xLineProperties ); + void SetLineColor( const ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet >& xGridProperties, sal_Int32 nColor ); } } // namespace chart diff --git a/chart2/source/model/main/Axis.cxx b/chart2/source/model/main/Axis.cxx index b187dd34bb0e..7fcaaec81eef 100644 --- a/chart2/source/model/main/Axis.cxx +++ b/chart2/source/model/main/Axis.cxx @@ -436,6 +436,7 @@ void Axis::AllocateSubGrids() { m_aSubGridProperties[ i ] = new GridProperties(); LinePropertiesHelper::SetLineInvisible( m_aSubGridProperties[ i ] ); + LinePropertiesHelper::SetLineColor( m_aSubGridProperties[ i ], static_cast<sal_Int32>(0xdddddd) ); //gray2 aNewBroadcasters.push_back( m_aSubGridProperties[ i ] ); } } diff --git a/chart2/source/tools/LinePropertiesHelper.cxx b/chart2/source/tools/LinePropertiesHelper.cxx index 8ec3a58202b6..41aa01d6bf68 100644 --- a/chart2/source/tools/LinePropertiesHelper.cxx +++ b/chart2/source/tools/LinePropertiesHelper.cxx @@ -168,6 +168,23 @@ void LinePropertiesHelper::SetLineInvisible( const ::com::sun::star::uno::Refere } } +void LinePropertiesHelper::SetLineColor( const ::com::sun::star::uno::Reference< + ::com::sun::star::beans::XPropertySet >& xLineProperties, sal_Int32 nColor ) +{ + try + { + if( xLineProperties.is() ) + { + xLineProperties->setPropertyValue( "LineColor", uno::makeAny( nColor ) ); + } + } + catch( const uno::Exception & ex ) + { + ASSERT_EXCEPTION( ex ); + } +} + + } // namespace chart /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |