Files
libreoffice/chart2/source/controller/chartapiwrapper/LegendWrapper.cxx

461 lines
17 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2003-12-18 12:50:56 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2003-12-18 12:50:56 +00:00
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
2003-12-18 12:50:56 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
2003-12-18 12:50:56 +00:00
*
* This file is part of OpenOffice.org.
2003-12-18 12:50:56 +00:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2003-12-18 12:50:56 +00:00
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2003-12-18 12:50:56 +00:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2003-12-18 12:50:56 +00:00
*
************************************************************************/
2003-12-18 12:50:56 +00:00
#include "LegendWrapper.hxx"
#include "macros.hxx"
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
#include "Chart2ModelContact.hxx"
#include "LegendHelper.hxx"
#include "ContainerHelper.hxx"
#include <comphelper/InlineContainer.hxx>
2003-12-18 12:50:56 +00:00
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/chart2/XTitled.hpp>
2003-12-18 12:50:56 +00:00
#include <com/sun/star/chart/ChartLegendPosition.hpp>
#include <com/sun/star/chart2/LegendPosition.hpp>
#include <com/sun/star/chart/ChartLegendExpansion.hpp>
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
#include <com/sun/star/chart2/RelativePosition.hpp>
#include <com/sun/star/drawing/FillStyle.hpp>
2003-12-18 12:50:56 +00:00
#include "CharacterProperties.hxx"
#include "LineProperties.hxx"
#include "FillProperties.hxx"
#include "UserDefinedProperties.hxx"
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
#include "WrappedCharacterHeightProperty.hxx"
#include "PositionAndSizeHelper.hxx"
#include "WrappedDirectStateProperty.hxx"
2008-10-01 07:35:04 +00:00
#include "WrappedAutomaticPositionProperties.hxx"
#include "WrappedScaleTextProperties.hxx"
2003-12-18 12:50:56 +00:00
#include <algorithm>
#include <rtl/ustrbuf.hxx>
using namespace ::com::sun::star;
using ::com::sun::star::beans::Property;
using ::osl::MutexGuard;
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
using ::com::sun::star::uno::Any;
using ::com::sun::star::uno::Reference;
using ::com::sun::star::uno::Sequence;
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
//-----------------------------------------------------------------------------
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
namespace chart
2003-12-18 12:50:56 +00:00
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
class WrappedLegendAlignmentProperty : public WrappedProperty
{
public:
WrappedLegendAlignmentProperty();
virtual ~WrappedLegendAlignmentProperty();
virtual void setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& xInnerPropertySet ) const
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException);
virtual Any getPropertyValue( const Reference< beans::XPropertySet >& xInnerPropertySet ) const
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException);
protected:
virtual Any convertInnerToOuterValue( const Any& rInnerValue ) const;
virtual Any convertOuterToInnerValue( const Any& rOuterValue ) const;
2003-12-18 12:50:56 +00:00
};
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
WrappedLegendAlignmentProperty::WrappedLegendAlignmentProperty()
2012-04-08 10:48:08 -04:30
: ::chart::WrappedProperty( "Alignment", "AnchorPosition" )
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
{
}
WrappedLegendAlignmentProperty::~WrappedLegendAlignmentProperty()
{
}
Any WrappedLegendAlignmentProperty::getPropertyValue( const Reference< beans::XPropertySet >& xInnerPropertySet ) const
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
Any aRet;
if( xInnerPropertySet.is() )
{
sal_Bool bShowLegend = sal_True;
2012-04-08 10:48:08 -04:30
xInnerPropertySet->getPropertyValue( "Show" ) >>= bShowLegend;
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
if(!bShowLegend)
{
aRet = uno::makeAny( ::com::sun::star::chart::ChartLegendPosition_NONE );
}
else
{
aRet = xInnerPropertySet->getPropertyValue( m_aInnerName );
aRet = this->convertInnerToOuterValue( aRet );
}
}
return aRet;
}
void WrappedLegendAlignmentProperty::setPropertyValue( const Any& rOuterValue, const Reference< beans::XPropertySet >& xInnerPropertySet ) const
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
if(xInnerPropertySet.is())
{
sal_Bool bNewShowLegend = sal_True;
sal_Bool bOldShowLegend = sal_True;
{
::com::sun::star::chart::ChartLegendPosition eOuterPos(::com::sun::star::chart::ChartLegendPosition_NONE);
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
if( (rOuterValue >>= eOuterPos) && eOuterPos == ::com::sun::star::chart::ChartLegendPosition_NONE )
bNewShowLegend = sal_False;
2012-04-08 10:48:08 -04:30
xInnerPropertySet->getPropertyValue( "Show" ) >>= bOldShowLegend;
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
}
if(bNewShowLegend!=bOldShowLegend)
{
2012-04-08 10:48:08 -04:30
xInnerPropertySet->setPropertyValue( "Show", uno::makeAny(bNewShowLegend) );
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
}
if(!bNewShowLegend)
return;
//set corresponding LegendPosition
Any aInnerValue = this->convertOuterToInnerValue( rOuterValue );
xInnerPropertySet->setPropertyValue( m_aInnerName, aInnerValue );
//correct LegendExpansion
chart2::LegendPosition eNewInnerPos(chart2::LegendPosition_LINE_END);
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
if( aInnerValue >>= eNewInnerPos )
{
::com::sun::star::chart::ChartLegendExpansion eNewExpansion =
( eNewInnerPos == chart2::LegendPosition_LINE_END ||
eNewInnerPos == chart2::LegendPosition_LINE_START )
? ::com::sun::star::chart::ChartLegendExpansion_HIGH
: ::com::sun::star::chart::ChartLegendExpansion_WIDE;
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
::com::sun::star::chart::ChartLegendExpansion eOldExpansion( ::com::sun::star::chart::ChartLegendExpansion_HIGH );
bool bExpansionWasSet(
2012-04-08 10:48:08 -04:30
xInnerPropertySet->getPropertyValue( "Expansion" ) >>= eOldExpansion );
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
if( !bExpansionWasSet || (eOldExpansion != eNewExpansion))
2012-04-08 10:48:08 -04:30
xInnerPropertySet->setPropertyValue( "Expansion", uno::makeAny( eNewExpansion ));
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
}
//correct RelativePosition
2012-04-08 10:48:08 -04:30
Any aRelativePosition( xInnerPropertySet->getPropertyValue("RelativePosition") );
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
if(aRelativePosition.hasValue())
{
2012-04-08 10:48:08 -04:30
xInnerPropertySet->setPropertyValue( "RelativePosition", Any() );
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
}
}
}
Any WrappedLegendAlignmentProperty::convertInnerToOuterValue( const Any& rInnerValue ) const
{
::com::sun::star::chart::ChartLegendPosition ePos = ::com::sun::star::chart::ChartLegendPosition_NONE;
chart2::LegendPosition eNewPos;
if( rInnerValue >>= eNewPos )
{
switch( eNewPos )
{
case chart2::LegendPosition_LINE_START:
ePos = ::com::sun::star::chart::ChartLegendPosition_LEFT;
break;
case chart2::LegendPosition_LINE_END:
ePos = ::com::sun::star::chart::ChartLegendPosition_RIGHT;
break;
case chart2::LegendPosition_PAGE_START:
ePos = ::com::sun::star::chart::ChartLegendPosition_TOP;
break;
case chart2::LegendPosition_PAGE_END:
ePos = ::com::sun::star::chart::ChartLegendPosition_BOTTOM;
break;
default:
ePos = ::com::sun::star::chart::ChartLegendPosition_NONE;
break;
}
}
return uno::makeAny( ePos );
}
Any WrappedLegendAlignmentProperty::convertOuterToInnerValue( const Any& rOuterValue ) const
{
chart2::LegendPosition eNewPos = chart2::LegendPosition_LINE_END;
::com::sun::star::chart::ChartLegendPosition ePos;
if( rOuterValue >>= ePos )
{
switch( ePos )
{
case ::com::sun::star::chart::ChartLegendPosition_LEFT:
eNewPos = chart2::LegendPosition_LINE_START;
break;
case ::com::sun::star::chart::ChartLegendPosition_RIGHT:
eNewPos = chart2::LegendPosition_LINE_END;
break;
case ::com::sun::star::chart::ChartLegendPosition_TOP:
eNewPos = chart2::LegendPosition_PAGE_START;
break;
case ::com::sun::star::chart::ChartLegendPosition_BOTTOM:
eNewPos = chart2::LegendPosition_PAGE_END;
break;
default: // NONE
break;
}
}
return uno::makeAny( eNewPos );
}
}
//-----------------------------------------------------------------------------
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
namespace
2003-12-18 12:50:56 +00:00
{
2012-04-08 10:48:08 -04:30
static const ::rtl::OUString lcl_aServiceName("com.sun.star.comp.chart.Legend");
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
enum
{
PROP_LEGEND_ALIGNMENT,
PROP_LEGEND_EXPANSION
2003-12-18 12:50:56 +00:00
};
void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
2012-04-08 10:48:08 -04:30
Property( "Alignment",
2003-12-18 12:50:56 +00:00
PROP_LEGEND_ALIGNMENT,
::getCppuType( reinterpret_cast< const ::com::sun::star::chart::ChartLegendPosition * >(0)),
//#i111967# no PropertyChangeEvent is fired on change so far
beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
2012-04-08 10:48:08 -04:30
Property( "Expansion",
PROP_LEGEND_EXPANSION,
::getCppuType( reinterpret_cast< const ::com::sun::star::chart::ChartLegendExpansion * >(0)),
//#i111967# no PropertyChangeEvent is fired on change so far
beans::PropertyAttribute::MAYBEDEFAULT ));
2003-12-18 12:50:56 +00:00
}
struct StaticLegendWrapperPropertyArray_Initializer
2003-12-18 12:50:56 +00:00
{
Sequence< Property >* operator()()
{
static Sequence< Property > aPropSeq( lcl_GetPropertySequence() );
return &aPropSeq;
}
2003-12-18 12:50:56 +00:00
private:
Sequence< Property > lcl_GetPropertySequence()
2003-12-18 12:50:56 +00:00
{
::std::vector< ::com::sun::star::beans::Property > aProperties;
lcl_AddPropertiesToVector( aProperties );
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
::chart::CharacterProperties::AddPropertiesToVector( aProperties );
::chart::LineProperties::AddPropertiesToVector( aProperties );
::chart::FillProperties::AddPropertiesToVector( aProperties );
2003-12-18 12:50:56 +00:00
::chart::UserDefinedProperties::AddPropertiesToVector( aProperties );
2008-10-01 07:35:04 +00:00
::chart::wrapper::WrappedAutomaticPositionProperties::addProperties( aProperties );
::chart::wrapper::WrappedScaleTextProperties::addProperties( aProperties );
2003-12-18 12:50:56 +00:00
::std::sort( aProperties.begin(), aProperties.end(),
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
::chart::PropertyNameLess() );
2003-12-18 12:50:56 +00:00
return ::chart::ContainerHelper::ContainerToSequence( aProperties );
2003-12-18 12:50:56 +00:00
}
};
struct StaticLegendWrapperPropertyArray : public rtl::StaticAggregate< Sequence< Property >, StaticLegendWrapperPropertyArray_Initializer >
{
};
2003-12-18 12:50:56 +00:00
} // anonymous namespace
// --------------------------------------------------------------------------------
namespace chart
{
namespace wrapper
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
LegendWrapper::LegendWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact ) :
m_spChart2ModelContact( spChart2ModelContact ),
m_aEventListenerContainer( m_aMutex )
2003-12-18 12:50:56 +00:00
{
}
LegendWrapper::~LegendWrapper()
{
}
// ____ XShape ____
awt::Point SAL_CALL LegendWrapper::getPosition()
throw (uno::RuntimeException)
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
return m_spChart2ModelContact->GetLegendPosition();
2003-12-18 12:50:56 +00:00
}
void SAL_CALL LegendWrapper::setPosition( const awt::Point& aPosition )
throw (uno::RuntimeException)
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
Reference< beans::XPropertySet > xProp( this->getInnerPropertySet() );
if( xProp.is() )
{
awt::Size aPageSize( m_spChart2ModelContact->GetPageSize() );
chart2::RelativePosition aRelativePosition;
aRelativePosition.Anchor = drawing::Alignment_TOP_LEFT;
aRelativePosition.Primary = double(aPosition.X)/double(aPageSize.Width);
aRelativePosition.Secondary = double(aPosition.Y)/double(aPageSize.Height);
2012-04-08 10:48:08 -04:30
xProp->setPropertyValue( "RelativePosition", uno::makeAny(aRelativePosition) );
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
}
2003-12-18 12:50:56 +00:00
}
awt::Size SAL_CALL LegendWrapper::getSize()
throw (uno::RuntimeException)
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
return m_spChart2ModelContact->GetLegendSize();
2003-12-18 12:50:56 +00:00
}
void SAL_CALL LegendWrapper::setSize( const awt::Size& aSize )
throw (beans::PropertyVetoException,
uno::RuntimeException)
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
Reference< beans::XPropertySet > xProp( this->getInnerPropertySet() );
if( xProp.is() )
{
awt::Size aPageSize( m_spChart2ModelContact->GetPageSize() );
awt::Rectangle aPageRectangle( 0,0,aPageSize.Width,aPageSize.Height);
awt::Point aPos( this->getPosition() );
awt::Rectangle aNewPositionAndSize(aPos.X,aPos.Y,aSize.Width,aSize.Height);
PositionAndSizeHelper::moveObject( OBJECTTYPE_LEGEND
, xProp, aNewPositionAndSize, aPageRectangle );
}
2003-12-18 12:50:56 +00:00
}
// ____ XShapeDescriptor (base of XShape) ____
::rtl::OUString SAL_CALL LegendWrapper::getShapeType()
throw (uno::RuntimeException)
{
2012-04-08 10:48:08 -04:30
return rtl::OUString( "com.sun.star.chart.ChartLegend" );
2003-12-18 12:50:56 +00:00
}
// ____ XComponent ____
void SAL_CALL LegendWrapper::dispose()
throw (uno::RuntimeException)
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
Reference< uno::XInterface > xSource( static_cast< ::cppu::OWeakObject* >( this ) );
m_aEventListenerContainer.disposeAndClear( lang::EventObject( xSource ) );
2003-12-18 12:50:56 +00:00
MutexGuard aGuard( GetMutex());
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
clearWrappedPropertySet();
2003-12-18 12:50:56 +00:00
}
void SAL_CALL LegendWrapper::addEventListener(
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
const Reference< lang::XEventListener >& xListener )
2003-12-18 12:50:56 +00:00
throw (uno::RuntimeException)
{
m_aEventListenerContainer.addInterface( xListener );
}
void SAL_CALL LegendWrapper::removeEventListener(
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
const Reference< lang::XEventListener >& aListener )
2003-12-18 12:50:56 +00:00
throw (uno::RuntimeException)
{
m_aEventListenerContainer.removeInterface( aListener );
}
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
// ================================================================================
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
//ReferenceSizePropertyProvider
2008-10-01 07:35:04 +00:00
void LegendWrapper::updateReferenceSize()
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
{
Reference< beans::XPropertySet > xProp( this->getInnerPropertySet(), uno::UNO_QUERY );
if( xProp.is() )
2008-10-01 07:35:04 +00:00
{
2012-04-08 10:48:08 -04:30
if( xProp->getPropertyValue( "ReferencePageSize" ).hasValue() )
xProp->setPropertyValue( "ReferencePageSize", uno::makeAny(
2008-10-01 07:35:04 +00:00
m_spChart2ModelContact->GetPageSize() ));
}
2003-12-18 12:50:56 +00:00
}
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
Any LegendWrapper::getReferenceSize()
2003-12-18 12:50:56 +00:00
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
Any aRet;
Reference< beans::XPropertySet > xProp( this->getInnerPropertySet(), uno::UNO_QUERY );
if( xProp.is() )
2012-04-08 10:48:08 -04:30
aRet = xProp->getPropertyValue( "ReferencePageSize" );
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
return aRet;
2003-12-18 12:50:56 +00:00
}
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
awt::Size LegendWrapper::getCurrentSizeForReference()
2003-12-18 12:50:56 +00:00
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
return m_spChart2ModelContact->GetPageSize();
2003-12-18 12:50:56 +00:00
}
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
// ================================================================================
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
// WrappedPropertySet
Reference< beans::XPropertySet > LegendWrapper::getInnerPropertySet()
2003-12-18 12:50:56 +00:00
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
Reference< beans::XPropertySet > xRet;
Reference< chart2::XDiagram > xDiagram( m_spChart2ModelContact->getChart2Diagram() );
if( xDiagram.is() )
xRet.set( xDiagram->getLegend(), uno::UNO_QUERY );
OSL_ENSURE(xRet.is(),"LegendWrapper::getInnerPropertySet() is NULL");
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
return xRet;
2003-12-18 12:50:56 +00:00
}
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
const Sequence< beans::Property >& LegendWrapper::getPropertySequence()
2003-12-18 12:50:56 +00:00
{
return *StaticLegendWrapperPropertyArray::get();
2003-12-18 12:50:56 +00:00
}
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
const std::vector< WrappedProperty* > LegendWrapper::createWrappedProperties()
2003-12-18 12:50:56 +00:00
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
::std::vector< ::chart::WrappedProperty* > aWrappedProperties;
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
aWrappedProperties.push_back( new WrappedLegendAlignmentProperty() );
2012-04-08 10:48:08 -04:30
aWrappedProperties.push_back( new WrappedProperty( "Expansion", "Expansion"));
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
WrappedCharacterHeightProperty::addWrappedProperties( aWrappedProperties, this );
//same problem as for wall: thje defaults ion the old chart are different for different charttypes, so we need to export explicitly
2012-04-08 10:48:08 -04:30
aWrappedProperties.push_back( new WrappedDirectStateProperty("FillStyle", "FillStyle"));
aWrappedProperties.push_back( new WrappedDirectStateProperty("FillColor", "FillColor"));
2008-10-01 07:35:04 +00:00
WrappedAutomaticPositionProperties::addWrappedProperties( aWrappedProperties );
WrappedScaleTextProperties::addWrappedProperties( aWrappedProperties, m_spChart2ModelContact );
2003-12-18 12:50:56 +00:00
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
return aWrappedProperties;
2003-12-18 12:50:56 +00:00
}
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
// ================================================================================
Sequence< ::rtl::OUString > LegendWrapper::getSupportedServiceNames_Static()
2003-12-18 12:50:56 +00:00
{
INTEGRATION: CWS chart2mst3 (1.2.4); FILE MERGED 2006/10/25 21:51:55 iha 1.2.4.28: cope with context dependent defaults from old chart 2006/10/25 17:52:28 iha 1.2.4.27: cope with context dependent defaults from old chart 2006/10/18 17:02:59 bm 1.2.4.26: RESYNC: (1.3-1.4); FILE MERGED 2006/03/14 19:05:37 iha 1.2.4.25: #i63008# crash leaving inplace mode while having subtitlesx 2006/03/12 00:53:47 iha 1.2.4.24: merged ChartAPIValueProvider with Chart2ModelContact 2006/02/17 20:57:41 iha 1.2.4.23: enlarge validity of api wrapper objects to lifetime of new chartmodel 2006/01/27 09:51:16 bm 1.2.4.22: InlineContainer.hxx moved to comphelper 2005/11/15 15:30:04 bm 1.2.4.21: garbage collection, disposing, reference release issues 2005/10/07 11:10:02 bm 1.2.4.20: RESYNC: (1.2-1.3); FILE MERGED 2005/08/18 15:20:39 bm 1.2.4.19: (gs)etDiagram -> (gs)etFirstDiagram to avoid name clashes with old API 2005/08/03 16:36:13 bm 1.2.4.18: algohelper.hxx split up into CommonFunctors.hxx ContainerHelper.hxx CloneHelper.hxx 2005/07/14 12:45:39 iha 1.2.4.17: remove unused parameter 'bIncludeStyleProperties' from characterproperties 2005/07/14 12:32:46 iha 1.2.4.16: remove unused parameter 'bIncludeStyleProperties' 2005/07/12 12:56:55 bm 1.2.4.15: use named properties for gradients etc. in chart model 2005/07/07 12:09:22 bm 1.2.4.14: some defaults are different in old chart 2005/05/31 19:07:15 iha 1.2.4.13: create old api without controller 2005/04/19 17:28:39 iha 1.2.4.12: improved old api support (introduced wrappedpropertyset ...) 2004/09/27 17:16:28 iha 1.2.4.11: replaced getInfoHelper().fillPropertyMembersByHandle by NamedFillProperties::GetPropertyNameForHandle 2004/09/27 14:39:05 iha 1.2.4.10: save - old api - get correct state and value for list element names (like gradients) 2004/09/23 09:16:38 iha 1.2.4.9: save - old api - legend property states 2004/08/25 16:36:28 iha 1.2.4.8: View independent loading - relative position with dynamic anchor point 2004/08/24 11:22:36 iha 1.2.4.7: corrected service implementation name 2004/06/04 07:56:54 bm 1.2.4.6: use named properties 2004/04/26 19:02:08 iha 1.2.4.5: #i27367# use simpler interface to move objects at PositionAndSizeHelper 2004/04/26 17:38:06 iha 1.2.4.4: #i27367# implemented setSize/Position 2004/04/26 11:41:08 iha 1.2.4.3: #i27367# get size and position from ChartAPIValueProvider 2004/03/24 10:45:24 bm 1.2.4.2: some improvements of old API 2004/02/13 16:51:15 bm 1.2.4.1: join from changes on branch bm_post_chart01
2007-05-22 16:18:34 +00:00
Sequence< ::rtl::OUString > aServices( 4 );
2012-04-08 10:48:08 -04:30
aServices[ 0 ] = "com.sun.star.chart.ChartLegend";
aServices[ 1 ] = "com.sun.star.drawing.Shape";
aServices[ 2 ] = "com.sun.star.xml.UserDefinedAttributeSupplier";
aServices[ 3 ] = "com.sun.star.style.CharacterProperties";
2003-12-18 12:50:56 +00:00
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( LegendWrapper, lcl_aServiceName );
} // namespace wrapper
} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */