diff options
Diffstat (limited to 'chart2/source/model/main/Title.cxx')
-rw-r--r-- | chart2/source/model/main/Title.cxx | 60 |
1 files changed, 24 insertions, 36 deletions
diff --git a/chart2/source/model/main/Title.cxx b/chart2/source/model/main/Title.cxx index d1f052418173..2504de8c2555 100644 --- a/chart2/source/model/main/Title.cxx +++ b/chart2/source/model/main/Title.cxx @@ -68,89 +68,77 @@ enum void lcl_AddPropertiesToVector( std::vector< Property > & rOutProperties ) { - rOutProperties.push_back( - Property( "ParaAdjust", + rOutProperties.emplace_back( "ParaAdjust", PROP_TITLE_PARA_ADJUST, cppu::UnoType<css::style::ParagraphAdjust>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEDEFAULT )); + | beans::PropertyAttribute::MAYBEDEFAULT ); - rOutProperties.push_back( - Property( "ParaLastLineAdjust", + rOutProperties.emplace_back( "ParaLastLineAdjust", PROP_TITLE_PARA_LAST_LINE_ADJUST, cppu::UnoType<sal_Int16>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEDEFAULT )); + | beans::PropertyAttribute::MAYBEDEFAULT ); - rOutProperties.push_back( - Property( "ParaLeftMargin", + rOutProperties.emplace_back( "ParaLeftMargin", PROP_TITLE_PARA_LEFT_MARGIN, cppu::UnoType<sal_Int32>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEDEFAULT )); + | beans::PropertyAttribute::MAYBEDEFAULT ); - rOutProperties.push_back( - Property( "ParaRightMargin", + rOutProperties.emplace_back( "ParaRightMargin", PROP_TITLE_PARA_RIGHT_MARGIN, cppu::UnoType<sal_Int32>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEDEFAULT )); + | beans::PropertyAttribute::MAYBEDEFAULT ); - rOutProperties.push_back( - Property( "ParaTopMargin", + rOutProperties.emplace_back( "ParaTopMargin", PROP_TITLE_PARA_TOP_MARGIN, cppu::UnoType<sal_Int32>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEDEFAULT )); + | beans::PropertyAttribute::MAYBEDEFAULT ); - rOutProperties.push_back( - Property( "ParaBottomMargin", + rOutProperties.emplace_back( "ParaBottomMargin", PROP_TITLE_PARA_BOTTOM_MARGIN, cppu::UnoType<sal_Int32>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEDEFAULT )); + | beans::PropertyAttribute::MAYBEDEFAULT ); - rOutProperties.push_back( - Property( "ParaIsHyphenation", + rOutProperties.emplace_back( "ParaIsHyphenation", PROP_TITLE_PARA_IS_HYPHENATION, cppu::UnoType<bool>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEDEFAULT )); + | beans::PropertyAttribute::MAYBEDEFAULT ); - rOutProperties.push_back( - Property( "Visible", + rOutProperties.emplace_back( "Visible", PROP_TITLE_VISIBLE, cppu::UnoType<bool>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEDEFAULT )); + | beans::PropertyAttribute::MAYBEDEFAULT ); - rOutProperties.push_back( - Property( "TextRotation", + rOutProperties.emplace_back( "TextRotation", PROP_TITLE_TEXT_ROTATION, cppu::UnoType<double>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEDEFAULT )); - rOutProperties.push_back( - Property( "StackCharacters", + | beans::PropertyAttribute::MAYBEDEFAULT ); + rOutProperties.emplace_back( "StackCharacters", PROP_TITLE_TEXT_STACKED, cppu::UnoType<bool>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEDEFAULT )); + | beans::PropertyAttribute::MAYBEDEFAULT ); - rOutProperties.push_back( - Property( "RelativePosition", + rOutProperties.emplace_back( "RelativePosition", PROP_TITLE_REL_POS, cppu::UnoType<chart2::RelativePosition>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEVOID )); + | beans::PropertyAttribute::MAYBEVOID ); - rOutProperties.push_back( - Property( "ReferencePageSize", + rOutProperties.emplace_back( "ReferencePageSize", PROP_TITLE_REF_PAGE_SIZE, cppu::UnoType<awt::Size>::get(), beans::PropertyAttribute::BOUND - | beans::PropertyAttribute::MAYBEVOID )); + | beans::PropertyAttribute::MAYBEVOID ); } struct StaticTitleDefaults_Initializer |