diff options
-rw-r--r-- | chart2/source/model/main/Legend.cxx | 10 | ||||
-rw-r--r-- | chart2/source/model/main/Title.cxx | 10 | ||||
-rw-r--r-- | chart2/source/view/main/VLegend.cxx | 11 |
3 files changed, 16 insertions, 15 deletions
diff --git a/chart2/source/model/main/Legend.cxx b/chart2/source/model/main/Legend.cxx index 097bb46b1707..63d542307125 100644 --- a/chart2/source/model/main/Legend.cxx +++ b/chart2/source/model/main/Legend.cxx @@ -2,9 +2,9 @@ * * $RCSfile: Legend.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: bm $ $Date: 2003-11-27 13:59:13 $ + * last change: $Author: bm $ $Date: 2003-12-04 14:07:33 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -90,8 +90,8 @@ #ifndef _DRAFTS_COM_SUN_STAR_CHART2_LEGENDEXPANSION_HPP_ #include <drafts/com/sun/star/chart2/LegendExpansion.hpp> #endif -#ifndef _DRAFTS_COM_SUN_STAR_LAYOUT_RELATIVEPOINT_HPP_ -#include <drafts/com/sun/star/layout/RelativePoint.hpp> +#ifndef _DRAFTS_COM_SUN_STAR_LAYOUT_RELATIVEPOSITION_HPP_ +#include <drafts/com/sun/star/layout/RelativePosition.hpp> #endif #include <algorithm> @@ -150,7 +150,7 @@ void lcl_AddPropertiesToVector( rOutProperties.push_back( Property( C2U( "RelativePosition" ), PROP_LEGEND_REL_POS, - ::getCppuType( reinterpret_cast< const layout::RelativePoint * >(0)), + ::getCppuType( reinterpret_cast< const layout::RelativePosition * >(0)), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::MAYBEVOID )); } diff --git a/chart2/source/model/main/Title.cxx b/chart2/source/model/main/Title.cxx index 85b678b65a27..62721be30b70 100644 --- a/chart2/source/model/main/Title.cxx +++ b/chart2/source/model/main/Title.cxx @@ -2,9 +2,9 @@ * * $RCSfile: Title.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: bm $ $Date: 2003-11-26 16:32:17 $ + * last change: $Author: bm $ $Date: 2003-12-04 14:07:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -81,8 +81,8 @@ #ifndef _COM_SUN_STAR_DRAWING_LINESTYLE_HPP_ #include <com/sun/star/drawing/LineStyle.hpp> #endif -#ifndef _DRAFTS_COM_SUN_STAR_LAYOUT_RELATIVEPOINT_HPP_ -#include <drafts/com/sun/star/layout/RelativePoint.hpp> +#ifndef _DRAFTS_COM_SUN_STAR_LAYOUT_RELATIVEPOSITION_HPP_ +#include <drafts/com/sun/star/layout/RelativePosition.hpp> #endif #ifndef _RTL_UUID_H_ @@ -191,7 +191,7 @@ void lcl_AddPropertiesToVector( rOutProperties.push_back( Property( C2U( "RelativePosition" ), PROP_TITLE_REL_POS, - ::getCppuType( reinterpret_cast< const layout::RelativePoint * >(0)), + ::getCppuType( reinterpret_cast< const layout::RelativePosition * >(0)), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::MAYBEVOID )); } diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx index fee7052cba68..929cd18821c7 100644 --- a/chart2/source/view/main/VLegend.cxx +++ b/chart2/source/view/main/VLegend.cxx @@ -2,9 +2,9 @@ * * $RCSfile: VLegend.cxx,v $ * - * $Revision: 1.26 $ + * $Revision: 1.27 $ * - * last change: $Author: bm $ $Date: 2003-11-27 14:00:35 $ + * last change: $Author: bm $ $Date: 2003-12-04 14:06:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -101,8 +101,8 @@ #ifndef _DRAFTS_COM_SUN_STAR_LAYOUT_ANCHORPOINT_HPP_ #include <drafts/com/sun/star/layout/AnchorPoint.hpp> #endif -#ifndef _DRAFTS_COM_SUN_STAR_LAYOUT_RELATIVEPOINT_HPP_ -#include <drafts/com/sun/star/layout/RelativePoint.hpp> +#ifndef _DRAFTS_COM_SUN_STAR_LAYOUT_RELATIVEPOSITION_HPP_ +#include <drafts/com/sun/star/layout/RelativePosition.hpp> #endif // header for class Matrix3D @@ -790,8 +790,9 @@ void VLegend::changePosition( layout::AnchorPoint aAnchor = lcl_getAnchorByAutoPos( ePos ); // shift legend about 2% into the primary direction - layout::RelativePoint aOffset( 0.02, 0.0 ); + layout::RelativePosition aOffset( 0.02, 0.0 ); + // rotate aOffset (out-param) helper::LayoutHelper::rotatePoint( aAnchor.EscapeDirection, aOffset.Primary, aOffset.Secondary ); sal_Int32 nOffsetX = static_cast< sal_Int32 >( |