Files
libreoffice/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx

784 lines
30 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
2003-10-06 08:58:36 +00:00
#include "GraphicPropertyItemConverter.hxx"
#include "SchWhichPairs.hxx"
#include "macros.hxx"
#include "ItemPropertyMap.hxx"
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
#include "PropertyHelper.hxx"
#include "CommonConverters.hxx"
#include <editeng/memberids.hrc>
2003-10-06 08:58:36 +00:00
#include <svx/xflclit.hxx>
#include <svx/xlnclit.hxx>
#include <svx/xflbmtit.hxx>
#include <svx/xflbstit.hxx>
#include <svx/xbtmpit.hxx>
#include <svx/xflftrit.hxx>
#include <svx/xlndsit.hxx>
#include <svx/xflhtit.hxx>
#include <svx/xflgrit.hxx>
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
#include <svx/xfltrit.hxx>
#include <svx/xlntrit.hxx>
#include <editeng/eeitem.hxx>
2003-10-06 08:58:36 +00:00
// for SfxBoolItem
#include <svl/eitem.hxx>
2003-10-06 08:58:36 +00:00
// for XFillGradientStepCountItem
#include <svx/xgrscit.hxx>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/chart2/FillBitmap.hpp>
2003-10-06 08:58:36 +00:00
#include <com/sun/star/awt/Gradient.hpp>
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
#include <com/sun/star/container/XNameAccess.hpp>
2003-10-06 08:58:36 +00:00
using namespace ::com::sun::star;
namespace
{
::comphelper::ItemPropertyMapType & lcl_GetDataPointFilledPropertyMap()
2003-10-06 08:58:36 +00:00
{
static ::comphelper::ItemPropertyMapType aDataPointPropertyFilledMap(
::comphelper::MakeItemPropertyMap
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
IPM_MAP_ENTRY( XATTR_FILLSTYLE, "FillStyle", 0 )
IPM_MAP_ENTRY( XATTR_FILLCOLOR, "Color", 0 )
IPM_MAP_ENTRY( XATTR_LINECOLOR, "BorderColor", 0 )
IPM_MAP_ENTRY( XATTR_LINESTYLE, "BorderStyle", 0 )
IPM_MAP_ENTRY( XATTR_LINEWIDTH, "BorderWidth", 0 )
IPM_MAP_ENTRY( XATTR_FILLBACKGROUND, "FillBackground", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_POS, "FillBitmapRectanglePoint", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_SIZEX, "FillBitmapSizeX", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_SIZEY, "FillBitmapSizeY", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_SIZELOG, "FillBitmapLogicalSize", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_TILEOFFSETX, "FillBitmapOffsetX", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_TILEOFFSETY, "FillBitmapOffsetY", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_POSOFFSETX, "FillBitmapPositionOffsetX", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_POSOFFSETY, "FillBitmapPositionOffsetY", 0 )
2003-10-06 08:58:36 +00:00
);
return aDataPointPropertyFilledMap;
}
::comphelper::ItemPropertyMapType & lcl_GetDataPointLinePropertyMap()
2003-10-06 08:58:36 +00:00
{
static ::comphelper::ItemPropertyMapType aDataPointPropertyLineMap(
::comphelper::MakeItemPropertyMap
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
IPM_MAP_ENTRY( XATTR_LINECOLOR, "Color", 0 )
IPM_MAP_ENTRY( XATTR_LINESTYLE, "LineStyle", 0 )
IPM_MAP_ENTRY( XATTR_LINEWIDTH, "LineWidth", 0 )
2003-10-06 08:58:36 +00:00
);
return aDataPointPropertyLineMap;
}
::comphelper::ItemPropertyMapType & lcl_GetLinePropertyMap()
2003-10-06 08:58:36 +00:00
{
static ::comphelper::ItemPropertyMapType aLinePropertyMap(
::comphelper::MakeItemPropertyMap
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
IPM_MAP_ENTRY( XATTR_LINESTYLE, "LineStyle", 0 )
IPM_MAP_ENTRY( XATTR_LINEWIDTH, "LineWidth", 0 )
IPM_MAP_ENTRY( XATTR_LINECOLOR, "LineColor", 0 )
IPM_MAP_ENTRY( XATTR_LINEJOINT, "LineJoint", 0 )
2003-10-06 08:58:36 +00:00
);
return aLinePropertyMap;
}
::comphelper::ItemPropertyMapType & lcl_GetFillPropertyMap()
2003-10-06 08:58:36 +00:00
{
static ::comphelper::ItemPropertyMapType aFillPropertyMap(
::comphelper::MakeItemPropertyMap
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
IPM_MAP_ENTRY( XATTR_FILLSTYLE, "FillStyle", 0 )
IPM_MAP_ENTRY( XATTR_FILLCOLOR, "FillColor", 0 )
IPM_MAP_ENTRY( XATTR_FILLBACKGROUND, "FillBackground", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_POS, "FillBitmapRectanglePoint", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_SIZEX, "FillBitmapSizeX", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_SIZEY, "FillBitmapSizeY", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_SIZELOG, "FillBitmapLogicalSize", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_TILEOFFSETX, "FillBitmapOffsetX", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_TILEOFFSETY, "FillBitmapOffsetY", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_POSOFFSETX, "FillBitmapPositionOffsetX", 0 )
IPM_MAP_ENTRY( XATTR_FILLBMP_POSOFFSETY, "FillBitmapPositionOffsetY", 0 )
2003-10-06 08:58:36 +00:00
);
return aFillPropertyMap;
}
bool lcl_supportsFillProperties( ::chart::wrapper::GraphicPropertyItemConverter::eGraphicObjectType eType )
{
return ( eType == ::chart::wrapper::GraphicPropertyItemConverter::FILLED_DATA_POINT ||
eType == ::chart::wrapper::GraphicPropertyItemConverter::FILL_PROPERTIES ||
eType == ::chart::wrapper::GraphicPropertyItemConverter::LINE_AND_FILL_PROPERTIES );
}
bool lcl_supportsLineProperties( ::chart::wrapper::GraphicPropertyItemConverter::eGraphicObjectType eType )
{
return ( eType != ::chart::wrapper::GraphicPropertyItemConverter::FILL_PROPERTIES );
}
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
bool lcl_SetContentForNamedProperty(
const uno::Reference< lang::XMultiServiceFactory > & xFactory,
const OUString & rTableName,
NameOrIndex & rItem, sal_uInt8 nMemberId )
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
{
bool bResult = false;
if( xFactory.is())
{
OUString aPropertyValue( rItem.GetName());
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
uno::Reference< container::XNameAccess > xNameAcc(
xFactory->createInstance( rTableName ),
uno::UNO_QUERY );
if( xNameAcc.is() &&
xNameAcc->hasByName( aPropertyValue ))
{
rItem.PutValue( xNameAcc->getByName( aPropertyValue ), nMemberId );
bResult = true;
}
}
return bResult;
}
2003-10-06 08:58:36 +00:00
} // anonymous namespace
// ========================================
namespace chart
{
namespace wrapper
{
GraphicPropertyItemConverter::GraphicPropertyItemConverter(
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
const uno::Reference<
beans::XPropertySet > & rPropertySet,
2003-10-06 08:58:36 +00:00
SfxItemPool& rItemPool,
SdrModel& rDrawModel,
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
const uno::Reference< lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
2003-10-06 08:58:36 +00:00
eGraphicObjectType eObjectType /* = FILL_PROPERTIES */ ) :
ItemConverter( rPropertySet, rItemPool ),
m_eGraphicObjectType( eObjectType ),
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
m_rDrawModel( rDrawModel ),
m_xNamedPropertyTableFactory( xNamedPropertyContainerFactory )
2003-10-06 08:58:36 +00:00
{}
GraphicPropertyItemConverter::~GraphicPropertyItemConverter()
{}
const sal_uInt16 * GraphicPropertyItemConverter::GetWhichPairs() const
2003-10-06 08:58:36 +00:00
{
const sal_uInt16 * pResult = NULL;
2003-10-06 08:58:36 +00:00
switch( m_eGraphicObjectType )
{
case LINE_DATA_POINT:
case FILLED_DATA_POINT:
pResult = nRowWhichPairs; break;
case LINE_PROPERTIES:
pResult = nLinePropertyWhichPairs; break;
case FILL_PROPERTIES:
pResult = nFillPropertyWhichPairs; break;
case LINE_AND_FILL_PROPERTIES:
pResult = nLineAndFillPropertyWhichPairs; break;
}
return pResult;
}
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
bool GraphicPropertyItemConverter::GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const
2003-10-06 08:58:36 +00:00
{
::comphelper::ItemPropertyMapType::const_iterator aEndIt;
::comphelper::ItemPropertyMapType::const_iterator aIt;
2003-10-06 08:58:36 +00:00
switch( m_eGraphicObjectType )
{
case LINE_DATA_POINT:
aEndIt = lcl_GetDataPointLinePropertyMap().end();
aIt = lcl_GetDataPointLinePropertyMap().find( nWhichId );
break;
case FILLED_DATA_POINT:
aEndIt = lcl_GetDataPointFilledPropertyMap().end();
aIt = lcl_GetDataPointFilledPropertyMap().find( nWhichId );
break;
case LINE_PROPERTIES:
aEndIt = lcl_GetLinePropertyMap().end();
aIt = lcl_GetLinePropertyMap().find( nWhichId );
break;
case FILL_PROPERTIES:
aEndIt = lcl_GetFillPropertyMap().end();
aIt = lcl_GetFillPropertyMap().find( nWhichId );
break;
case LINE_AND_FILL_PROPERTIES:
// line
aEndIt = lcl_GetLinePropertyMap().end();
aIt = lcl_GetLinePropertyMap().find( nWhichId );
// not found => try fill
if( aIt == aEndIt )
{
aEndIt = lcl_GetFillPropertyMap().end();
aIt = lcl_GetFillPropertyMap().find( nWhichId );
}
break;
}
if( aIt == aEndIt )
return false;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
rOutProperty =(*aIt).second;
2003-10-06 08:58:36 +00:00
return true;
}
void GraphicPropertyItemConverter::FillSpecialItem(
sal_uInt16 nWhichId, SfxItemSet & rOutItemSet ) const
throw( uno::Exception )
2003-10-06 08:58:36 +00:00
{
switch( nWhichId )
{
// bitmap property
case XATTR_FILLBMP_TILE:
case XATTR_FILLBMP_STRETCH:
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
{
drawing::BitmapMode aMode = drawing::BitmapMode_REPEAT;
if( GetPropertySet()->getPropertyValue( "FillBitmapMode" ) >>= aMode )
{
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
rOutItemSet.Put( XFillBmpTileItem( aMode == drawing::BitmapMode_REPEAT ));
rOutItemSet.Put( XFillBmpStretchItem( aMode == drawing::BitmapMode_STRETCH ));
}
}
break;
2003-10-06 08:58:36 +00:00
case XATTR_FILLFLOATTRANSPARENCE:
try
{
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
2003-10-06 08:58:36 +00:00
{
OUString aPropName =
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "TransparencyGradientName" )
: OUString( "FillTransparenceGradientName" );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
uno::Any aValue( GetPropertySet()->getPropertyValue( aPropName ));
if( aValue.hasValue())
{
XFillFloatTransparenceItem aItem;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aItem.PutValue( aValue, MID_NAME );
lcl_SetContentForNamedProperty(
m_xNamedPropertyTableFactory, "com.sun.star.drawing.TransparencyGradientTable" ,
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aItem, MID_FILLGRADIENT );
2003-10-06 08:58:36 +00:00
// this is important to enable the item
OUString aName;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
if( (aValue >>= aName) &&
!aName.isEmpty())
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
{
aItem.SetEnabled( sal_True );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
rOutItemSet.Put( aItem );
}
}
2003-10-06 08:58:36 +00:00
}
}
2011-11-29 02:06:57 +09:00
catch( const beans::UnknownPropertyException &ex )
2003-10-06 08:58:36 +00:00
{
ASSERT_EXCEPTION( ex );
}
break;
case XATTR_GRADIENTSTEPCOUNT:
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
2003-10-06 08:58:36 +00:00
{
OUString aPropName =
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "GradientStepCount" )
: OUString( "FillGradientStepCount" );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
uno::Any aValue( GetPropertySet()->getPropertyValue( aPropName ) );
if( hasLongOrShortValue(aValue) )
{
2011-02-02 12:32:52 +01:00
sal_Int16 nStepCount = getShortForLongAlso(aValue);
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
rOutItemSet.Put( XGradientStepCountItem( nStepCount ));
2003-10-06 08:58:36 +00:00
}
}
break;
case XATTR_LINEDASH:
if( lcl_supportsLineProperties( m_eGraphicObjectType ))
{
OUString aPropName =
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "BorderDashName" )
: OUString( "LineDashName" );
2003-10-06 08:58:36 +00:00
XLineDashItem aItem;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aItem.PutValue( GetPropertySet()->getPropertyValue( aPropName ), MID_NAME );
lcl_SetContentForNamedProperty(
m_xNamedPropertyTableFactory, "com.sun.star.drawing.DashTable" ,
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aItem, MID_LINEDASH );
2003-10-06 08:58:36 +00:00
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
// translate model name to UI-name for predefined entries, so
// that the correct entry is chosen in the list of UI-names
XLineDashItem * pItemToPut = & aItem;
pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
2003-10-06 08:58:36 +00:00
rOutItemSet.Put( * pItemToPut );
}
2003-10-06 08:58:36 +00:00
break;
case XATTR_FILLGRADIENT:
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
{
OUString aPropName =
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "GradientName" )
: OUString( "FillGradientName" );
2003-10-06 08:58:36 +00:00
XFillGradientItem aItem;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aItem.PutValue( GetPropertySet()->getPropertyValue( aPropName ), MID_NAME );
lcl_SetContentForNamedProperty(
m_xNamedPropertyTableFactory, "com.sun.star.drawing.GradientTable" ,
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aItem, MID_FILLGRADIENT );
2003-10-06 08:58:36 +00:00
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
// translate model name to UI-name for predefined entries, so
// that the correct entry is chosen in the list of UI-names
XFillGradientItem * pItemToPut = & aItem;
pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
2003-10-06 08:58:36 +00:00
rOutItemSet.Put( * pItemToPut );
}
2003-10-06 08:58:36 +00:00
break;
case XATTR_FILLHATCH:
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
{
OUString aPropName =
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "HatchName" )
: OUString( "FillHatchName" );
2003-10-06 08:58:36 +00:00
XFillHatchItem aItem;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aItem.PutValue( GetPropertySet()->getPropertyValue( aPropName ), MID_NAME );
2003-10-06 08:58:36 +00:00
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
lcl_SetContentForNamedProperty(
m_xNamedPropertyTableFactory, "com.sun.star.drawing.HatchTable" ,
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aItem, MID_FILLHATCH );
// translate model name to UI-name for predefined entries, so
// that the correct entry is chosen in the list of UI-names
XFillHatchItem * pItemToPut = & aItem;
pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
2003-10-06 08:58:36 +00:00
rOutItemSet.Put( * pItemToPut );
}
2003-10-06 08:58:36 +00:00
break;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
case XATTR_FILLBITMAP:
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
{
XFillBitmapItem aItem;
aItem.PutValue( GetPropertySet()->getPropertyValue( "FillBitmapName" ), MID_NAME );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
lcl_SetContentForNamedProperty(
m_xNamedPropertyTableFactory, "com.sun.star.drawing.BitmapTable" ,
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aItem, MID_GRAFURL );
// translate model name to UI-name for predefined entries, so
// that the correct entry is chosen in the list of UI-names
XFillBitmapItem * pItemToPut = & aItem;
pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
rOutItemSet.Put( * pItemToPut );
}
break;
// hack, because QueryValue of XLineTransparenceItem returns sal_Int32
// instead of sal_Int16
case XATTR_LINETRANSPARENCE:
if( lcl_supportsLineProperties( m_eGraphicObjectType ))
{
OUString aPropName =
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "BorderTransparency" )
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
: (m_eGraphicObjectType == LINE_DATA_POINT)
? OUString( "Transparency" )
: OUString( "LineTransparence" );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
XLineTransparenceItem aItem;
aItem.PutValue( GetPropertySet()->getPropertyValue( aPropName ) );
rOutItemSet.Put( aItem );
}
break;
// hack, because QueryValue of XFillTransparenceItem returns sal_Int32
// instead of sal_Int16
case XATTR_FILLTRANSPARENCE:
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
{
OUString aPropName =
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "Transparency" )
: OUString( "FillTransparence" );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
XFillTransparenceItem aItem;
aItem.PutValue( GetPropertySet()->getPropertyValue( aPropName ) );
rOutItemSet.Put( aItem );
}
break;
2003-10-06 08:58:36 +00:00
}
}
bool GraphicPropertyItemConverter::ApplySpecialItem(
sal_uInt16 nWhichId, const SfxItemSet & rItemSet )
throw( uno::Exception )
2003-10-06 08:58:36 +00:00
{
bool bChanged = false;
uno::Any aValue;
switch( nWhichId )
{
// bitmap property
case XATTR_FILLBMP_STRETCH:
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
{
const OUString aModePropName("FillBitmapMode");
bool bStretched = static_cast< const XFillBmpStretchItem & >(
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
rItemSet.Get( XATTR_FILLBMP_STRETCH )).GetValue();
drawing::BitmapMode aMode =
(bStretched ? drawing::BitmapMode_STRETCH : drawing::BitmapMode_NO_REPEAT);
aValue <<= aMode;
if( aValue != GetPropertySet()->getPropertyValue( aModePropName ))
{
GetPropertySet()->setPropertyValue( aModePropName, aValue );
bChanged = true;
}
}
break;
case XATTR_FILLBMP_TILE:
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
{
const OUString aModePropName("FillBitmapMode");
bool bTiled = static_cast< const XFillBmpTileItem & >(
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
rItemSet.Get( XATTR_FILLBMP_TILE )).GetValue();
drawing::BitmapMode aMode =
(bTiled ? drawing::BitmapMode_REPEAT : drawing::BitmapMode_NO_REPEAT);
aValue <<= aMode;
if( aValue != GetPropertySet()->getPropertyValue( aModePropName ))
{
GetPropertySet()->setPropertyValue( aModePropName, aValue );
bChanged = true;
}
}
break;
2003-10-06 08:58:36 +00:00
case XATTR_FILLFLOATTRANSPARENCE:
try
{
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
2003-10-06 08:58:36 +00:00
{
OUString aPropName =
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "TransparencyGradientName" )
: OUString( "FillTransparenceGradientName" );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
const XFillFloatTransparenceItem & rItem =
static_cast< const XFillFloatTransparenceItem & >(
rItemSet.Get( nWhichId ));
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
if( rItem.IsEnabled() &&
rItem.QueryValue( aValue, MID_NAME ))
{
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
uno::Any aGradient;
rItem.QueryValue( aGradient, MID_FILLGRADIENT );
// add TransparencyGradient to list if it does not already exist
OUString aPreferredName;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aValue >>= aPreferredName;
aValue <<= PropertyHelper::addTransparencyGradientUniqueNameToTable(
aGradient, m_xNamedPropertyTableFactory, aPreferredName );
if( aValue != GetPropertySet()->getPropertyValue( aPropName ))
{
GetPropertySet()->setPropertyValue( aPropName, aValue );
bChanged = true;
}
}
else
{
OUString aName;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
if( ( GetPropertySet()->getPropertyValue( aPropName ) >>= aName )
&& !aName.isEmpty() )
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
{
uno::Reference< beans::XPropertyState > xState( GetPropertySet(), uno::UNO_QUERY );
if( xState.is())
xState->setPropertyToDefault( aPropName );
bChanged = true;
}
}
2003-10-06 08:58:36 +00:00
}
}
2011-11-29 02:06:57 +09:00
catch( const beans::UnknownPropertyException &ex )
2003-10-06 08:58:36 +00:00
{
ASSERT_EXCEPTION( ex );
}
break;
case XATTR_GRADIENTSTEPCOUNT:
{
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
2003-10-06 08:58:36 +00:00
{
OUString aPropName =
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "GradientStepCount" )
: OUString( "FillGradientStepCount" );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
sal_Int16 nStepCount = ( static_cast< const XGradientStepCountItem & >(
rItemSet.Get( nWhichId ))).GetValue();
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aValue <<= nStepCount;
if( aValue != GetPropertySet()->getPropertyValue( aPropName ))
{
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
GetPropertySet()->setPropertyValue( aPropName, aValue );
bChanged = true;
}
2003-10-06 08:58:36 +00:00
}
}
break;
case XATTR_LINEDASH:
{
if( lcl_supportsLineProperties( m_eGraphicObjectType ))
{
2003-10-06 08:58:36 +00:00
OUString aPropName =
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "BorderDashName" )
: OUString( "LineDashName" );
2003-10-06 08:58:36 +00:00
const XLineDashItem & rItem =
static_cast< const XLineDashItem & >(
rItemSet.Get( nWhichId ));
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
if( rItem.QueryValue( aValue, MID_NAME ))
2003-10-06 08:58:36 +00:00
{
if( aValue != GetPropertySet()->getPropertyValue( aPropName ))
{
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
// add LineDash to list
uno::Any aLineDash;
rItem.QueryValue( aLineDash, MID_LINEDASH );
OUString aPreferredName;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aValue >>= aPreferredName;
aValue <<= PropertyHelper::addLineDashUniqueNameToTable(
aLineDash, m_xNamedPropertyTableFactory, aPreferredName );
GetPropertySet()->setPropertyValue( aPropName, aValue );
bChanged = true;
}
2003-10-06 08:58:36 +00:00
}
}
}
break;
case XATTR_FILLGRADIENT:
{
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
{
OUString aPropName =
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "GradientName" )
: OUString( "FillGradientName" );
2003-10-06 08:58:36 +00:00
const XFillGradientItem & rItem =
static_cast< const XFillGradientItem & >(
rItemSet.Get( nWhichId ));
2003-10-06 08:58:36 +00:00
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
if( rItem.QueryValue( aValue, MID_NAME ))
2003-10-06 08:58:36 +00:00
{
if( aValue != GetPropertySet()->getPropertyValue( aPropName ))
{
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
// add Gradient to list
uno::Any aGradient;
rItem.QueryValue( aGradient, MID_FILLGRADIENT );
OUString aPreferredName;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aValue >>= aPreferredName;
aValue <<= PropertyHelper::addGradientUniqueNameToTable(
aGradient, m_xNamedPropertyTableFactory, aPreferredName );
GetPropertySet()->setPropertyValue( aPropName, aValue );
bChanged = true;
}
2003-10-06 08:58:36 +00:00
}
}
}
break;
case XATTR_FILLHATCH:
{
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
{
OUString aPropName =
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "HatchName" )
: OUString( "FillHatchName" );
2003-10-06 08:58:36 +00:00
const XFillHatchItem & rItem =
static_cast< const XFillHatchItem & >(
rItemSet.Get( nWhichId ));
2003-10-06 08:58:36 +00:00
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
if( rItem.QueryValue( aValue, MID_NAME ))
2003-10-06 08:58:36 +00:00
{
if( aValue != GetPropertySet()->getPropertyValue( aPropName ))
{
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
// add Hatch to list
uno::Any aHatch;
rItem.QueryValue( aHatch, MID_FILLHATCH );
OUString aPreferredName;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aValue >>= aPreferredName;
aValue <<= PropertyHelper::addHatchUniqueNameToTable(
aHatch, m_xNamedPropertyTableFactory, aPreferredName );
GetPropertySet()->setPropertyValue( aPropName, aValue );
bChanged = true;
}
2003-10-06 08:58:36 +00:00
}
}
}
break;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
case XATTR_FILLBITMAP:
{
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
{
const XFillBitmapItem & rItem =
static_cast< const XFillBitmapItem & >(
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
rItemSet.Get( nWhichId ));
if( rItem.QueryValue( aValue, MID_NAME ))
{
if( aValue != GetPropertySet()->getPropertyValue( "FillBitmapName" ))
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
{
// add Bitmap to list
uno::Any aBitmap;
rItem.QueryValue( aBitmap, MID_GRAFURL );
OUString aPreferredName;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
aValue >>= aPreferredName;
aValue <<= PropertyHelper::addBitmapUniqueNameToTable(
aBitmap, m_xNamedPropertyTableFactory, aPreferredName );
GetPropertySet()->setPropertyValue( "FillBitmapName" , aValue );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
bChanged = true;
}
}
}
}
break;
// hack, because QueryValue of XLineTransparenceItem returns sal_Int32
// instead of sal_Int16
case XATTR_LINETRANSPARENCE:
if( lcl_supportsLineProperties( m_eGraphicObjectType ))
{
OUString aPropName =
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "BorderTransparency" )
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
: (m_eGraphicObjectType == LINE_DATA_POINT)
? OUString( "Transparency" )
: OUString( "LineTransparence" );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
const XLineTransparenceItem & rItem =
static_cast< const XLineTransparenceItem & >(
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
rItemSet.Get( nWhichId ));
if( rItem.QueryValue( aValue ))
{
OSL_ENSURE( ! aValue.isExtractableTo(
::getCppuType( reinterpret_cast< const sal_Int16 * >(0))),
"TransparenceItem QueryValue bug is fixed. Remove hack." );
sal_Int32 nValue = 0;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
if( aValue >>= nValue )
{
OSL_ENSURE( nValue < SAL_MAX_INT16, "Transparency value too large" );
sal_Int16 nValueToSet( static_cast< sal_Int16 >( nValue ));
aValue <<= nValueToSet;
GetPropertySet()->setPropertyValue( aPropName, aValue );
bChanged = true;
}
else
{
OSL_FAIL( "Wrong type in Transparency Any" );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
}
}
}
break;
// hack, because QueryValue of XFillTransparenceItem returns sal_Int32
// instead of sal_Int16
case XATTR_FILLTRANSPARENCE:
if( lcl_supportsFillProperties( m_eGraphicObjectType ))
{
OUString aPropName =
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "Transparency" )
: OUString( "FillTransparence" );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
const XFillTransparenceItem & rItem =
static_cast< const XFillTransparenceItem & >(
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
rItemSet.Get( nWhichId ));
if( rItem.QueryValue( aValue ))
{
OSL_ENSURE( ! aValue.isExtractableTo(
::getCppuType( reinterpret_cast< const sal_Int16 * >(0))),
"TransparenceItem QueryValue bug is fixed. Remove hack." );
sal_Int32 nValue = 0;
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
if( aValue >>= nValue )
{
OSL_ENSURE( nValue < SAL_MAX_INT16, "Transparency value too large" );
sal_Int16 nValueToSet( static_cast< sal_Int16 >( nValue ));
aValue <<= nValueToSet;
GetPropertySet()->setPropertyValue( aPropName, aValue );
// if linear or no transparence is set, delete the gradient
OUString aTransGradPropName =
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
(m_eGraphicObjectType == FILLED_DATA_POINT)
? OUString( "TransparencyGradientName" )
: OUString( "FillTransparenceGradientName" );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
GetPropertySet()->setPropertyValue(
aTransGradPropName, uno::makeAny( OUString() ));
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
bChanged = true;
}
else
{
OSL_FAIL( "Wrong type in Transparency Any" );
INTEGRATION: CWS chart2mst3 (1.6.4); FILE MERGED 2007/05/15 11:49:00 bm 1.6.4.20: #i73604# RESYNC: additional changes for ItemId cleanup 2006/10/20 20:40:25 iha 1.6.4.19: implement gradient step count 2006/10/18 17:06:12 bm 1.6.4.18: RESYNC: (1.7-1.8); FILE MERGED 2006/06/14 18:42:49 bm 1.6.4.17: #i66438# also transparency gradient 2006/06/14 18:28:38 bm 1.6.4.16: #i66438# for named properties: set also the content, otherwise the preview is wrong and no list-entry is selected 2006/05/17 14:13:01 bm 1.6.4.15: support bitmap properties like tile, stretch, offsets etc. also for data points/series 2006/05/17 13:26:11 bm 1.6.4.14: bitmap properties (tile, stretch, etc.) 2005/11/24 18:32:42 bm 1.6.4.13: transparency gradients enabled 2005/11/24 15:08:27 bm 1.6.4.12: symbol graphics support 2005/10/07 11:31:37 bm 1.6.4.11: RESYNC: (1.6-1.7); FILE MERGED 2005/09/02 11:58:02 bm 1.6.4.10: hack for transparence item: QueryValue/PutValue use sal_Int32 for UNO, but sal_Int16 is needed 2005/07/22 12:54:42 bm 1.6.4.9: #124485# property FillBackground added 2005/07/12 15:28:18 bm 1.6.4.8: support fill bitmaps (GraphicObjectResolver still missing) 2005/07/12 14:41:17 bm 1.6.4.7: add hatch and dash names to tables 2005/07/12 12:57:02 bm 1.6.4.6: use named properties for gradients etc. in chart model 2005/06/16 07:55:46 iha 1.6.4.5: correct name for Property FillTransparenceGradient 2005/06/15 18:19:12 iha 1.6.4.4: correct name for Property FillTransparenceGradient 2005/05/13 12:14:31 bm 1.6.4.3: member ids for gradient and hatch corrected 2004/05/07 11:23:39 bm 1.6.4.2: enabling member-ids for all items 2004/05/07 09:14:20 bm 1.6.4.1: enabling member-ids for all items
2007-05-22 17:00:42 +00:00
}
}
}
break;
2003-10-06 08:58:36 +00:00
}
return bChanged;
}
} // namespace wrapper
} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */