summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2015-07-07 14:55:06 +0200
committerAndras Timar <andras.timar@collabora.com>2015-08-06 12:56:00 +0200
commitadb841792031b59703b67c92a7d2f66085ca4640 (patch)
tree4e640fc091d260b358c612138613d18781e00d82 /chart2
parentbump product version to 5.0.1.0.0+ (diff)
downloadcore-adb841792031b59703b67c92a7d2f66085ca4640.tar.gz
core-adb841792031b59703b67c92a7d2f66085ca4640.zip
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> (cherry picked from commit 701e21b25dda87a3f1feca1137c6ceab8a5363ab) Signed-off-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/inc/LinePropertiesHelper.hxx2
-rw-r--r--chart2/source/model/main/Axis.cxx1
-rw-r--r--chart2/source/tools/LinePropertiesHelper.cxx17
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: */