[Libreoffice-commits] core.git: chart2/source
Feyza Yavuz
feyzaayavuz at gmail.com
Sat Apr 30 13:04:30 UTC 2016
chart2/source/model/main/Title.cxx | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit 783b02de3bc75cd0be1a6e919d4755a297fe7a84
Author: Feyza Yavuz <feyzaayavuz at gmail.com>
Date: Sat Apr 30 15:47:20 2016 +0300
tdf#92768 Support hiding title objects
Change-Id: I34723ab353fbced5eb339fb0afbcb0677b3eadd4
Reviewed-on: https://gerrit.libreoffice.org/24517
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/chart2/source/model/main/Title.cxx b/chart2/source/model/main/Title.cxx
index 9b620c0..06a03e1 100644
--- a/chart2/source/model/main/Title.cxx
+++ b/chart2/source/model/main/Title.cxx
@@ -58,6 +58,7 @@ enum
PROP_TITLE_PARA_TOP_MARGIN,
PROP_TITLE_PARA_BOTTOM_MARGIN,
PROP_TITLE_PARA_IS_HYPHENATION,
+ PROP_TITLE_VISIBLE,
PROP_TITLE_TEXT_ROTATION,
PROP_TITLE_TEXT_STACKED,
@@ -118,6 +119,14 @@ void lcl_AddPropertiesToVector(
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
+
+ rOutProperties.push_back(
+ Property( "Visible",
+ PROP_TITLE_VISIBLE,
+ cppu::UnoType<bool>::get(),
+ beans::PropertyAttribute::BOUND
+ | beans::PropertyAttribute::MAYBEDEFAULT ));
+
rOutProperties.push_back(
Property( "TextRotation",
PROP_TITLE_TEXT_ROTATION,
@@ -170,6 +179,7 @@ private:
::chart::PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_TITLE_PARA_TOP_MARGIN, 0 );
::chart::PropertyHelper::setPropertyValueDefault< sal_Int32 >( rOutMap, PROP_TITLE_PARA_BOTTOM_MARGIN, 0 );
::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_TITLE_PARA_IS_HYPHENATION, true );
+ ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, PROP_TITLE_VISIBLE, true );
// own properties
::chart::PropertyHelper::setPropertyValueDefault< double >( rOutMap, PROP_TITLE_TEXT_ROTATION, 0.0 );
More information about the Libreoffice-commits
mailing list