summaryrefslogtreecommitdiff
path: root/chart2/source/model/main/Legend.cxx
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2010-11-16 15:03:23 +0100
committerIngrid Halama <iha@openoffice.org>2010-11-16 15:03:23 +0100
commitdf5e24fa7d085508a0929c9213a515af344485e2 (patch)
treee65511bfaa823e2e1d71a339ab781f97fba3624b /chart2/source/model/main/Legend.cxx
parent0e5566e9ff510bedc9837e12ee37103c553897da (diff)
chart52: #28670# make the legend within charts resizeable - part 1 - patch from hackfest2010
Diffstat (limited to 'chart2/source/model/main/Legend.cxx')
-rw-r--r--chart2/source/model/main/Legend.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/chart2/source/model/main/Legend.cxx b/chart2/source/model/main/Legend.cxx
index c1143ecdf77a..9949f768a642 100644
--- a/chart2/source/model/main/Legend.cxx
+++ b/chart2/source/model/main/Legend.cxx
@@ -42,6 +42,7 @@
#include <com/sun/star/chart2/LegendPosition.hpp>
#include <com/sun/star/chart2/LegendExpansion.hpp>
#include <com/sun/star/chart2/RelativePosition.hpp>
+#include <com/sun/star/chart2/RelativeSize.hpp>
#include <algorithm>
@@ -66,7 +67,8 @@ enum
PROP_LEGEND_PREFERRED_EXPANSION,
PROP_LEGEND_SHOW,
PROP_LEGEND_REF_PAGE_SIZE,
- PROP_LEGEND_REL_POS
+ PROP_LEGEND_REL_POS,
+ PROP_LEGEND_REL_SIZE
};
void lcl_AddPropertiesToVector(
@@ -105,6 +107,15 @@ void lcl_AddPropertiesToVector(
::getCppuType( reinterpret_cast< const chart2::RelativePosition * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
+
+
+ rOutProperties.push_back(
+ Property( C2U( "RelativeSize" ),
+ PROP_LEGEND_REL_SIZE,
+ ::getCppuType( reinterpret_cast< const chart2::RelativeSize * >(0)),
+ beans::PropertyAttribute::BOUND
+ | beans::PropertyAttribute::MAYBEVOID ));
+
}
void lcl_AddDefaultsToMap(