[Libreoffice-commits] core.git: chart2/source
Katarina Behrens
Katarina.Behrens at cib.de
Thu Jul 9 15:47:02 PDT 2015
chart2/source/inc/LinePropertiesHelper.hxx | 2 ++
chart2/source/model/main/Axis.cxx | 1 +
chart2/source/tools/LinePropertiesHelper.cxx | 17 +++++++++++++++++
3 files changed, 20 insertions(+)
New commits:
commit 701e21b25dda87a3f1feca1137c6ceab8a5363ab
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date: Tue Jul 7 14:55:06 2015 +0200
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 at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/chart2/source/inc/LinePropertiesHelper.hxx b/chart2/source/inc/LinePropertiesHelper.hxx
index c765cd1..a5fd2b9 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 b187dd3..7fcaaec 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 8ec3a58..41aa01d 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: */
More information about the Libreoffice-commits
mailing list