diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 07:35:04 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 07:35:04 +0000 |
commit | 70346a32723a3f3c1cbfedd2c6096152260ef9f7 (patch) | |
tree | cdadef43a660b956867d0d9a0562160ec3069429 /chart2/source/view/main/LabelPositionHelper.cxx | |
parent | ff916ccce1527b63aad17bbae0ad02a834cd31d6 (diff) |
CWS-TOOLING: integrate CWS chart30
Diffstat (limited to 'chart2/source/view/main/LabelPositionHelper.cxx')
-rw-r--r-- | chart2/source/view/main/LabelPositionHelper.cxx | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/chart2/source/view/main/LabelPositionHelper.cxx b/chart2/source/view/main/LabelPositionHelper.cxx index 3fba99fe2f76..b5bf518770fa 100644 --- a/chart2/source/view/main/LabelPositionHelper.cxx +++ b/chart2/source/view/main/LabelPositionHelper.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: LabelPositionHelper.cxx,v $ - * $Revision: 1.7 $ + * $Revision: 1.7.44.2 $ * * This file is part of OpenOffice.org. * @@ -70,22 +70,6 @@ awt::Point LabelPositionHelper::transformSceneToScreenPosition( const drawing::P rScenePosition3D, m_xLogicTarget, m_pShapeFactory, m_nDimensionCount ); } -awt::Point LabelPositionHelper::transformScaledLogicToScreenPosition( const drawing::Position3D& rLogicPosition3D ) const -{ - drawing::Position3D aScenePosition3D( SequenceToPosition3D( - m_pPosHelper->getTransformationScaledLogicToScene()->transform( - Position3DToSequence(rLogicPosition3D) ) ) ); - /* - if(3==m_nDimensionCount) - { - drawing::Position3D aScenePosition3D_rotated( aScenePosition3D.PositionX, -aScenePosition3D.PositionZ, aScenePosition3D.PositionY ); - aScenePosition3D = aScenePosition3D_rotated; - } - */ - awt::Point aScreenPosition2D( this->transformSceneToScreenPosition( aScenePosition3D ) ); - return aScreenPosition2D; -} - //static void LabelPositionHelper::changeTextAdjustment( tAnySequence& rPropValues, const tNameSequence& rPropNames, LabelAlignment eAlignment) { @@ -136,7 +120,7 @@ void LabelPositionHelper::doDynamicFontResize( tAnySequence& rPropValues //------------------------- //handle dynamic font resize: awt::Size aOldReferenceSize; - if( xAxisModelProps->getPropertyValue( C2U("ReferenceDiagramSize")) >>= aOldReferenceSize ) + if( xAxisModelProps->getPropertyValue( C2U("ReferencePageSize")) >>= aOldReferenceSize ) { uno::Any* pAOldAndNewFontHeightAny = PropertyMapper::getValuePointer( rPropValues, rPropNames, C2U("CharHeight") ); lcl_doDynamicFontResize( pAOldAndNewFontHeightAny, aOldReferenceSize, rNewReferenceSize ); |