diff options
author | Alfonso Eusebio <alfonso_eusebio@yahoo.co.uk> | 2011-01-25 15:04:20 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-01-25 15:04:20 +0000 |
commit | b83d973a49ada877c21ad76e410af82fdade5cc1 (patch) | |
tree | 005c02f31ff48f6ad70abc4460a2aee502ad5d96 /chart2/source/view/main | |
parent | 8cef84d41d28ceb698cf4d35ba2a8f3a43384b37 (diff) |
emoved lines of code that were commented out.
Diffstat (limited to 'chart2/source/view/main')
-rw-r--r-- | chart2/source/view/main/VLegend.cxx | 19 | ||||
-rw-r--r-- | chart2/source/view/main/VTitle.cxx | 8 |
2 files changed, 0 insertions, 27 deletions
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx index c6d7557ff34e..48397464676f 100644 --- a/chart2/source/view/main/VLegend.cxx +++ b/chart2/source/view/main/VLegend.cxx @@ -88,25 +88,6 @@ double lcl_CalcViewFontSize( if( (xProp->getPropertyValue( C2U( "ReferencePageSize" )) >>= aPropRefSize) && (aPropRefSize.Height > 0)) { - // todo: find out if asian text is really used -// Reference< beans::XPropertySetInfo >xInfo( xProp, uno::UNO_QUERY ); -// float fFontHeight2 = fFontHeight; -// if( xInfo.is() && -// xInfo->hasPropertyByName(C2U("CharHeightAsian")) && -// (xProp->getPropertyValue(C2U("CharHeightAsian")) >>= fFontHeight2) && -// fFontHeight2 > fFontHeight ) -// { -// fFontHeight = fFontHeight2; -// } - -// if( xInfo.is() && -// xInfo->hasPropertyByName(C2U("CharHeightComplex")) && -// (xProp->getPropertyValue(C2U("CharHeightComplex")) >>= fFontHeight2) && -// fFontHeight2 > fFontHeight ) -// { -// fFontHeight = fFontHeight2; -// } - fResult = ::chart::RelativeSizeHelper::calculate( fFontHeight, aPropRefSize, rReferenceSize ); } } diff --git a/chart2/source/view/main/VTitle.cxx b/chart2/source/view/main/VTitle.cxx index 7723b802a537..b9b1d18b3c5b 100644 --- a/chart2/source/view/main/VTitle.cxx +++ b/chart2/source/view/main/VTitle.cxx @@ -162,17 +162,12 @@ void VTitle::createShapes( { drawing::TextHorizontalAdjust eHorizontalAdjust = drawing::TextHorizontalAdjust_CENTER; drawing::TextVerticalAdjust eVerticalAdjust = drawing::TextVerticalAdjust_CENTER; - //text::WritingMode eWritingMode = text::WritingMode_LR_TB;//@todo get correct one aValueMap.insert( tPropertyNameValueMap::value_type( C2U("TextHorizontalAdjust"), uno::makeAny(eHorizontalAdjust) ) ); // drawing::TextHorizontalAdjust aValueMap.insert( tPropertyNameValueMap::value_type( C2U("TextVerticalAdjust"), uno::makeAny(eVerticalAdjust) ) ); //drawing::TextVerticalAdjust - //aValueMap.insert( tPropertyNameValueMap::value_type( C2U("TextWritingMode"), uno::makeAny(eWritingMode) ) ); //text::WritingMode aValueMap.insert( tPropertyNameValueMap::value_type( C2U("TextAutoGrowHeight"), uno::makeAny(sal_True) ) ); // sal_Bool aValueMap.insert( tPropertyNameValueMap::value_type( C2U("TextAutoGrowWidth"), uno::makeAny(sal_True) ) ); // sal_Bool - ////aValueMap.insert( tPropertyNameValueMap::value_type( C2U("TextMaximumFrameWidth"), uno::makeAny(rSize.Width) ) ); //sal_Int32 - ////aValueMap.insert( tPropertyNameValueMap::value_type( C2U("TextMaximumFrameHeight"), uno::makeAny(rSize.Height) ) ); //sal_Int32 - //set name/classified ObjectID (CID) if( m_aCID.getLength() ) aValueMap.insert( tPropertyNameValueMap::value_type( C2U("Name"), uno::makeAny( m_aCID ) ) ); //CID rtl::OUString @@ -237,11 +232,8 @@ void VTitle::createShapes( bool bHasRefPageSize = ( xTitleProperties->getPropertyValue( C2U("ReferencePageSize")) >>= aOldRefSize ); - //for( nN=0; nN<aStringList.getLength();nN++ ) //portion wise fromatting does not work still if( aStringList.getLength()>0 ) { - //uno::Reference< beans::XPropertySet > xTargetProps( aCursorList[nN], uno::UNO_QUERY ); - //uno::Reference< beans::XPropertySet > xSourceProps( aStringList[nN], uno::UNO_QUERY ); uno::Reference< beans::XPropertySet > xTargetProps( xShape, uno::UNO_QUERY ); uno::Reference< beans::XPropertySet > xSourceProps( aStringList[0], uno::UNO_QUERY ); PropertyMapper::setMappedProperties( xTargetProps, xSourceProps, PropertyMapper::getPropertyNameMapForCharacterProperties() ); |