summaryrefslogtreecommitdiff
path: root/chart2/source/view
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2010-04-01 14:26:26 +0200
committerIngrid Halama <iha@openoffice.org>2010-04-01 14:26:26 +0200
commit06e2110957f0515ce075a83a41ea5556c2c32ea3 (patch)
tree2a39300575ce320b906fbcd84d8f3e0f83239343 /chart2/source/view
parent3031bc2b4f85a211f026408e84a174e6aecdd91b (diff)
chartpositioning: #i100778# changed default to exclude axes
Diffstat (limited to 'chart2/source/view')
-rw-r--r--chart2/source/view/main/ChartView.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index 3505ef92c793..b67af5fd7716 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -1612,7 +1612,11 @@ awt::Rectangle ChartView::impl_createDiagramAndContent( SeriesPlotterContainer&
{
awt::Point aPos(rAvailablePos);
awt::Size aSize(rAvailableSize);
- if( bUseFixedInnerSize )
+ bool bPosSizeExcludeAxesProperty = true;
+ uno::Reference< beans::XPropertySet > xDiaProps( xDiagram, uno::UNO_QUERY_THROW );
+ if( xDiaProps.is() )
+ xDiaProps->getPropertyValue(C2U("PosSizeExcludeAxes")) >>= bPosSizeExcludeAxesProperty;
+ if( bUseFixedInnerSize || bPosSizeExcludeAxesProperty )
{
aPos = awt::Point( m_aResultingDiagramRectangleExcludingAxes.X, m_aResultingDiagramRectangleExcludingAxes.Y );
aSize = awt::Size( m_aResultingDiagramRectangleExcludingAxes.Width, m_aResultingDiagramRectangleExcludingAxes.Height );