1cdf0e10cSrcweir /************************************************************************* 2cdf0e10cSrcweir * 3cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4cdf0e10cSrcweir * 5cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6cdf0e10cSrcweir * 7cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8cdf0e10cSrcweir * 9cdf0e10cSrcweir * This file is part of OpenOffice.org. 10cdf0e10cSrcweir * 11cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14cdf0e10cSrcweir * 15cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20cdf0e10cSrcweir * 21cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25cdf0e10cSrcweir * 26cdf0e10cSrcweir ************************************************************************/ 27cdf0e10cSrcweir 28cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 29cdf0e10cSrcweir #include "precompiled_svx.hxx" 30cdf0e10cSrcweir 31cdf0e10cSrcweir #define _SVX_USE_UNOGLOBALS_ 32cdf0e10cSrcweir 33cdf0e10cSrcweir #include <com/sun/star/table/XTable.hpp> 34cdf0e10cSrcweir #include <com/sun/star/container/XIndexAccess.hpp> 35cdf0e10cSrcweir #include <com/sun/star/frame/XModel.hpp> 36cdf0e10cSrcweir #include <com/sun/star/embed/XEmbeddedObject.hpp> 37cdf0e10cSrcweir #include <com/sun/star/util/MeasureUnit.hpp> 38cdf0e10cSrcweir #include <com/sun/star/drawing/TextVerticalAdjust.hpp> 39cdf0e10cSrcweir #include <com/sun/star/media/ZoomLevel.hpp> 40cdf0e10cSrcweir #include <com/sun/star/io/XInputStream.hpp> 41cdf0e10cSrcweir #include <com/sun/star/beans/PropertyAttribute.hpp> 42cdf0e10cSrcweir #include <tools/fldunit.hxx> 43cdf0e10cSrcweir #include <tools/shl.hxx> 44cdf0e10cSrcweir #include <vos/mutex.hxx> 45cdf0e10cSrcweir #include <vcl/svapp.hxx> 46cdf0e10cSrcweir #include <comphelper/propertysetinfo.hxx> 47cdf0e10cSrcweir #include <svx/dialmgr.hxx> 48cdf0e10cSrcweir #include "svx/unoapi.hxx" 49cdf0e10cSrcweir #include <editeng/unotext.hxx> 50cdf0e10cSrcweir #include <svx/unoshprp.hxx> 51cdf0e10cSrcweir #include <editeng/editeng.hxx> 52cdf0e10cSrcweir #include "svx/globl3d.hxx" 53cdf0e10cSrcweir #include <svx/dialogs.hrc> 54cdf0e10cSrcweir #include <svx/svdpool.hxx> 55cdf0e10cSrcweir #include <svx/svdobj.hxx> 56cdf0e10cSrcweir 57cdf0e10cSrcweir using namespace ::rtl; 58cdf0e10cSrcweir using namespace ::com::sun::star; 59cdf0e10cSrcweir using namespace ::com::sun::star::beans::PropertyAttribute; 60cdf0e10cSrcweir using ::com::sun::star::drawing::TextVerticalAdjust; 61cdf0e10cSrcweir 62cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxShapePropertyMap() 63cdf0e10cSrcweir { 64cdf0e10cSrcweir static SfxItemPropertyMapEntry aShapePropertyMap_Impl[] = 65cdf0e10cSrcweir { 66cdf0e10cSrcweir EDGERADIUS_PROPERTIES 67cdf0e10cSrcweir FILL_PROPERTIES 68cdf0e10cSrcweir LINE_PROPERTIES 69cdf0e10cSrcweir LINE_PROPERTIES_START_END 70cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 71cdf0e10cSrcweir MISC_OBJ_PROPERTIES 72cdf0e10cSrcweir LINKTARGET_PROPERTIES 73cdf0e10cSrcweir SHADOW_PROPERTIES 74cdf0e10cSrcweir TEXT_PROPERTIES 75cdf0e10cSrcweir // #FontWork# 76cdf0e10cSrcweir FONTWORK_PROPERTIES 77cdf0e10cSrcweir CUSTOMSHAPE_PROPERTIES 78cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 79cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 80cdf0e10cSrcweir {0,0,0,0,0,0} 81cdf0e10cSrcweir 82cdf0e10cSrcweir }; 83cdf0e10cSrcweir 84cdf0e10cSrcweir return aShapePropertyMap_Impl; 85cdf0e10cSrcweir } 86cdf0e10cSrcweir 87cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxTextShapePropertyMap() 88cdf0e10cSrcweir { 89cdf0e10cSrcweir static SfxItemPropertyMapEntry aTextShapePropertyMap_Impl[] = 90cdf0e10cSrcweir { 91cdf0e10cSrcweir EDGERADIUS_PROPERTIES 92cdf0e10cSrcweir FILL_PROPERTIES 93cdf0e10cSrcweir LINE_PROPERTIES 94cdf0e10cSrcweir LINE_PROPERTIES_START_END 95cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 96cdf0e10cSrcweir MISC_OBJ_PROPERTIES_NO_SHEAR 97cdf0e10cSrcweir LINKTARGET_PROPERTIES 98cdf0e10cSrcweir SHADOW_PROPERTIES 99cdf0e10cSrcweir TEXT_PROPERTIES 100cdf0e10cSrcweir // #FontWork# 101cdf0e10cSrcweir FONTWORK_PROPERTIES 102cdf0e10cSrcweir CUSTOMSHAPE_PROPERTIES 103cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 104cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 105cdf0e10cSrcweir {0,0,0,0,0,0} 106cdf0e10cSrcweir 107cdf0e10cSrcweir }; 108cdf0e10cSrcweir 109cdf0e10cSrcweir return aTextShapePropertyMap_Impl; 110cdf0e10cSrcweir } 111cdf0e10cSrcweir 112cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxConnectorPropertyMap() 113cdf0e10cSrcweir { 114cdf0e10cSrcweir static SfxItemPropertyMapEntry aConnectorPropertyMap_Impl[] = 115cdf0e10cSrcweir { 116cdf0e10cSrcweir SPECIAL_CONNECTOR_PROPERTIES 117cdf0e10cSrcweir EDGERADIUS_PROPERTIES 118cdf0e10cSrcweir FILL_PROPERTIES 119cdf0e10cSrcweir LINE_PROPERTIES 120cdf0e10cSrcweir LINE_PROPERTIES_START_END 121cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 122cdf0e10cSrcweir MISC_OBJ_PROPERTIES 123cdf0e10cSrcweir LINKTARGET_PROPERTIES 124cdf0e10cSrcweir SHADOW_PROPERTIES 125cdf0e10cSrcweir TEXT_PROPERTIES 126cdf0e10cSrcweir // #FontWork# 127cdf0e10cSrcweir FONTWORK_PROPERTIES 128cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 129cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 130cdf0e10cSrcweir {0,0,0,0,0,0} 131cdf0e10cSrcweir 132cdf0e10cSrcweir }; 133cdf0e10cSrcweir 134cdf0e10cSrcweir return aConnectorPropertyMap_Impl; 135cdf0e10cSrcweir } 136cdf0e10cSrcweir 137cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxDimensioningPropertyMap() 138cdf0e10cSrcweir { 139cdf0e10cSrcweir static SfxItemPropertyMapEntry aDimensioningPropertyMap_Impl[] = 140cdf0e10cSrcweir { 141cdf0e10cSrcweir SPECIAL_DIMENSIONING_PROPERTIES 142cdf0e10cSrcweir EDGERADIUS_PROPERTIES 143cdf0e10cSrcweir FILL_PROPERTIES 144cdf0e10cSrcweir LINE_PROPERTIES 145cdf0e10cSrcweir LINE_PROPERTIES_START_END 146cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 147cdf0e10cSrcweir MISC_OBJ_PROPERTIES 148cdf0e10cSrcweir LINKTARGET_PROPERTIES 149cdf0e10cSrcweir SHADOW_PROPERTIES 150cdf0e10cSrcweir TEXT_PROPERTIES 151cdf0e10cSrcweir // #FontWork# 152cdf0e10cSrcweir FONTWORK_PROPERTIES 153cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 154cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 155cdf0e10cSrcweir {0,0,0,0,0,0} 156cdf0e10cSrcweir 157cdf0e10cSrcweir }; 158cdf0e10cSrcweir 159cdf0e10cSrcweir return aDimensioningPropertyMap_Impl; 160cdf0e10cSrcweir } 161cdf0e10cSrcweir 162cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxCirclePropertyMap() 163cdf0e10cSrcweir { 164cdf0e10cSrcweir static SfxItemPropertyMapEntry aCirclePropertyMap_Impl[] = 165cdf0e10cSrcweir { 166cdf0e10cSrcweir SPECIAL_CIRCLE_PROPERTIES 167cdf0e10cSrcweir EDGERADIUS_PROPERTIES 168cdf0e10cSrcweir FILL_PROPERTIES 169cdf0e10cSrcweir LINE_PROPERTIES 170cdf0e10cSrcweir LINE_PROPERTIES_START_END 171cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 172cdf0e10cSrcweir MISC_OBJ_PROPERTIES 173cdf0e10cSrcweir LINKTARGET_PROPERTIES 174cdf0e10cSrcweir SHADOW_PROPERTIES 175cdf0e10cSrcweir TEXT_PROPERTIES 176cdf0e10cSrcweir // #FontWork# 177cdf0e10cSrcweir FONTWORK_PROPERTIES 178cdf0e10cSrcweir CUSTOMSHAPE_PROPERTIES 179cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 180cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 181cdf0e10cSrcweir {0,0,0,0,0,0} 182cdf0e10cSrcweir 183cdf0e10cSrcweir }; 184cdf0e10cSrcweir 185cdf0e10cSrcweir return aCirclePropertyMap_Impl; 186cdf0e10cSrcweir } 187cdf0e10cSrcweir 188cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxPolyPolygonPropertyMap() 189cdf0e10cSrcweir { 190cdf0e10cSrcweir static SfxItemPropertyMapEntry aPolyPolygonPropertyMap_Impl[] = 191cdf0e10cSrcweir { 192cdf0e10cSrcweir { MAP_CHAR_LEN("Geometry"), OWN_ATTR_BASE_GEOMETRY, SEQTYPE(::getCppuType((const ::com::sun::star::drawing::PointSequenceSequence*)0)), 0, 0 }, 193cdf0e10cSrcweir SPECIAL_POLYGON_PROPERTIES 194cdf0e10cSrcweir SPECIAL_POLYPOLYGON_PROPERTIES 195cdf0e10cSrcweir FILL_PROPERTIES 196cdf0e10cSrcweir LINE_PROPERTIES 197cdf0e10cSrcweir LINE_PROPERTIES_START_END 198cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 199cdf0e10cSrcweir MISC_OBJ_PROPERTIES 200cdf0e10cSrcweir LINKTARGET_PROPERTIES 201cdf0e10cSrcweir SHADOW_PROPERTIES 202cdf0e10cSrcweir TEXT_PROPERTIES 203cdf0e10cSrcweir // #FontWork# 204cdf0e10cSrcweir FONTWORK_PROPERTIES 205cdf0e10cSrcweir CUSTOMSHAPE_PROPERTIES 206cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 207cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 208cdf0e10cSrcweir {0,0,0,0,0,0} 209cdf0e10cSrcweir 210cdf0e10cSrcweir }; 211cdf0e10cSrcweir 212cdf0e10cSrcweir return aPolyPolygonPropertyMap_Impl; 213cdf0e10cSrcweir } 214cdf0e10cSrcweir 215cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxPolyPolygonBezierPropertyMap() 216cdf0e10cSrcweir { 217cdf0e10cSrcweir static SfxItemPropertyMapEntry aPolyPolygonBezierPropertyMap_Impl[] = 218cdf0e10cSrcweir { 219cdf0e10cSrcweir { MAP_CHAR_LEN("Geometry"), OWN_ATTR_BASE_GEOMETRY, &::getCppuType((const ::com::sun::star::drawing::PolyPolygonBezierCoords*)0), 0, 0 }, 220cdf0e10cSrcweir SPECIAL_POLYGON_PROPERTIES 221cdf0e10cSrcweir SPECIAL_POLYPOLYGONBEZIER_PROPERTIES 222cdf0e10cSrcweir FILL_PROPERTIES 223cdf0e10cSrcweir LINE_PROPERTIES 224cdf0e10cSrcweir LINE_PROPERTIES_START_END 225cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 226cdf0e10cSrcweir MISC_OBJ_PROPERTIES 227cdf0e10cSrcweir LINKTARGET_PROPERTIES 228cdf0e10cSrcweir SHADOW_PROPERTIES 229cdf0e10cSrcweir TEXT_PROPERTIES 230cdf0e10cSrcweir // #FontWork# 231cdf0e10cSrcweir FONTWORK_PROPERTIES 232cdf0e10cSrcweir CUSTOMSHAPE_PROPERTIES 233cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 234cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 235cdf0e10cSrcweir {0,0,0,0,0,0} 236cdf0e10cSrcweir 237cdf0e10cSrcweir }; 238cdf0e10cSrcweir 239cdf0e10cSrcweir return aPolyPolygonBezierPropertyMap_Impl; 240cdf0e10cSrcweir } 241cdf0e10cSrcweir 242cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxGraphicObjectPropertyMap() 243cdf0e10cSrcweir { 244cdf0e10cSrcweir static SfxItemPropertyMapEntry aGraphicObjectPropertyMap_Impl[] = 245cdf0e10cSrcweir { 246cdf0e10cSrcweir SPECIAL_GRAPHOBJ_PROPERTIES 247cdf0e10cSrcweir 248cdf0e10cSrcweir // #i25616# 249cdf0e10cSrcweir FILL_PROPERTIES 250cdf0e10cSrcweir 251cdf0e10cSrcweir LINE_PROPERTIES 252cdf0e10cSrcweir LINE_PROPERTIES_START_END 253cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 254*a5258243SPedro Giffuni 255*a5258243SPedro Giffuni // #i118485# Full properties now, shear included 256*a5258243SPedro Giffuni MISC_OBJ_PROPERTIES 257*a5258243SPedro Giffuni 258*a5258243SPedro Giffuni LINKTARGET_PROPERTIES 259cdf0e10cSrcweir SHADOW_PROPERTIES 260cdf0e10cSrcweir TEXT_PROPERTIES 261cdf0e10cSrcweir // #FontWork# 262cdf0e10cSrcweir FONTWORK_PROPERTIES 263cdf0e10cSrcweir { MAP_CHAR_LEN("IsMirrored"), OWN_ATTR_MIRRORED , &::getCppuBooleanType(), 0, 0}, 264cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 265cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 266cdf0e10cSrcweir {MAP_CHAR_LEN("GraphicStream"), OWN_ATTR_GRAPHIC_STREAM, &::com::sun::star::io::XInputStream::static_type(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 267cdf0e10cSrcweir {0,0,0,0,0,0} 268cdf0e10cSrcweir 269cdf0e10cSrcweir }; 270cdf0e10cSrcweir 271cdf0e10cSrcweir return aGraphicObjectPropertyMap_Impl; 272cdf0e10cSrcweir } 273cdf0e10cSrcweir 274cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvx3DSceneObjectPropertyMap() 275cdf0e10cSrcweir { 276cdf0e10cSrcweir static SfxItemPropertyMapEntry a3DSceneObjectPropertyMap_Impl[] = 277cdf0e10cSrcweir { 278cdf0e10cSrcweir SPECIAL_3DSCENEOBJECT_PROPERTIES 279cdf0e10cSrcweir FILL_PROPERTIES 280cdf0e10cSrcweir LINE_PROPERTIES 281cdf0e10cSrcweir LINE_PROPERTIES_START_END 282cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 283cdf0e10cSrcweir MISC_OBJ_PROPERTIES 284cdf0e10cSrcweir LINKTARGET_PROPERTIES 285cdf0e10cSrcweir SHADOW_PROPERTIES 286cdf0e10cSrcweir {0,0,0,0,0,0} 287cdf0e10cSrcweir 288cdf0e10cSrcweir }; 289cdf0e10cSrcweir 290cdf0e10cSrcweir return a3DSceneObjectPropertyMap_Impl; 291cdf0e10cSrcweir } 292cdf0e10cSrcweir 293cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvx3DCubeObjectPropertyMap() 294cdf0e10cSrcweir { 295cdf0e10cSrcweir static SfxItemPropertyMapEntry a3DCubeObjectPropertyMap_Impl[] = 296cdf0e10cSrcweir { 297cdf0e10cSrcweir SPECIAL_3DCUBEOBJECT_PROPERTIES 298cdf0e10cSrcweir MISC_3D_OBJ_PROPERTIES 299cdf0e10cSrcweir FILL_PROPERTIES 300cdf0e10cSrcweir LINE_PROPERTIES 301cdf0e10cSrcweir LINE_PROPERTIES_START_END 302cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 303cdf0e10cSrcweir MISC_OBJ_PROPERTIES 304cdf0e10cSrcweir LINKTARGET_PROPERTIES 305cdf0e10cSrcweir SHADOW_PROPERTIES 306cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 307cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 308cdf0e10cSrcweir {0,0,0,0,0,0} 309cdf0e10cSrcweir 310cdf0e10cSrcweir }; 311cdf0e10cSrcweir 312cdf0e10cSrcweir return a3DCubeObjectPropertyMap_Impl; 313cdf0e10cSrcweir } 314cdf0e10cSrcweir 315cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvx3DSphereObjectPropertyMap() 316cdf0e10cSrcweir { 317cdf0e10cSrcweir static SfxItemPropertyMapEntry a3DSphereObjectPropertyMap_Impl[] = 318cdf0e10cSrcweir { 319cdf0e10cSrcweir SPECIAL_3DSPHEREOBJECT_PROPERTIES 320cdf0e10cSrcweir MISC_3D_OBJ_PROPERTIES 321cdf0e10cSrcweir FILL_PROPERTIES 322cdf0e10cSrcweir LINE_PROPERTIES 323cdf0e10cSrcweir LINE_PROPERTIES_START_END 324cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 325cdf0e10cSrcweir MISC_OBJ_PROPERTIES 326cdf0e10cSrcweir LINKTARGET_PROPERTIES 327cdf0e10cSrcweir SHADOW_PROPERTIES 328cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 329cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 330cdf0e10cSrcweir {0,0,0,0,0,0} 331cdf0e10cSrcweir 332cdf0e10cSrcweir }; 333cdf0e10cSrcweir return a3DSphereObjectPropertyMap_Impl; 334cdf0e10cSrcweir } 335cdf0e10cSrcweir 336cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvx3DLatheObjectPropertyMap() 337cdf0e10cSrcweir { 338cdf0e10cSrcweir static SfxItemPropertyMapEntry a3DLatheObjectPropertyMap_Impl[] = 339cdf0e10cSrcweir { 340cdf0e10cSrcweir SPECIAL_3DLATHEOBJECT_PROPERTIES 341cdf0e10cSrcweir 342cdf0e10cSrcweir // #107245# New 3D properties which are possible for lathe and extrude 3d objects 343cdf0e10cSrcweir SPECIAL_3DLATHEANDEXTRUDEOBJ_PROPERTIES 344cdf0e10cSrcweir 345cdf0e10cSrcweir SPECIAL_3DBACKSCALE_PROPERTIES 346cdf0e10cSrcweir MISC_3D_OBJ_PROPERTIES 347cdf0e10cSrcweir FILL_PROPERTIES 348cdf0e10cSrcweir LINE_PROPERTIES 349cdf0e10cSrcweir LINE_PROPERTIES_START_END 350cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 351cdf0e10cSrcweir MISC_OBJ_PROPERTIES 352cdf0e10cSrcweir LINKTARGET_PROPERTIES 353cdf0e10cSrcweir SHADOW_PROPERTIES 354cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 355cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 356cdf0e10cSrcweir {0,0,0,0,0,0} 357cdf0e10cSrcweir 358cdf0e10cSrcweir }; 359cdf0e10cSrcweir 360cdf0e10cSrcweir return a3DLatheObjectPropertyMap_Impl; 361cdf0e10cSrcweir } 362cdf0e10cSrcweir 363cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvx3DExtrudeObjectPropertyMap() 364cdf0e10cSrcweir { 365cdf0e10cSrcweir static SfxItemPropertyMapEntry a3DExtrudeObjectPropertyMap_Impl[] = 366cdf0e10cSrcweir { 367cdf0e10cSrcweir SPECIAL_3DEXTRUDEOBJECT_PROPERTIES 368cdf0e10cSrcweir 369cdf0e10cSrcweir // #107245# New 3D properties which are possible for lathe and extrude 3d objects 370cdf0e10cSrcweir SPECIAL_3DLATHEANDEXTRUDEOBJ_PROPERTIES 371cdf0e10cSrcweir 372cdf0e10cSrcweir SPECIAL_3DBACKSCALE_PROPERTIES 373cdf0e10cSrcweir MISC_3D_OBJ_PROPERTIES 374cdf0e10cSrcweir FILL_PROPERTIES 375cdf0e10cSrcweir LINE_PROPERTIES 376cdf0e10cSrcweir LINE_PROPERTIES_START_END 377cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 378cdf0e10cSrcweir MISC_OBJ_PROPERTIES 379cdf0e10cSrcweir LINKTARGET_PROPERTIES 380cdf0e10cSrcweir SHADOW_PROPERTIES 381cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 382cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 383cdf0e10cSrcweir {0,0,0,0,0,0} 384cdf0e10cSrcweir 385cdf0e10cSrcweir }; 386cdf0e10cSrcweir 387cdf0e10cSrcweir return a3DExtrudeObjectPropertyMap_Impl; 388cdf0e10cSrcweir } 389cdf0e10cSrcweir 390cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvx3DPolygonObjectPropertyMap() 391cdf0e10cSrcweir { 392cdf0e10cSrcweir static SfxItemPropertyMapEntry a3DPolygonObjectPropertyMap_Impl[] = 393cdf0e10cSrcweir { 394cdf0e10cSrcweir SPECIAL_3DPOLYGONOBJECT_PROPERTIES 395cdf0e10cSrcweir MISC_3D_OBJ_PROPERTIES 396cdf0e10cSrcweir FILL_PROPERTIES 397cdf0e10cSrcweir LINE_PROPERTIES 398cdf0e10cSrcweir LINE_PROPERTIES_START_END 399cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 400cdf0e10cSrcweir MISC_OBJ_PROPERTIES 401cdf0e10cSrcweir LINKTARGET_PROPERTIES 402cdf0e10cSrcweir SHADOW_PROPERTIES 403cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 404cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 405cdf0e10cSrcweir {0,0,0,0,0,0} 406cdf0e10cSrcweir 407cdf0e10cSrcweir }; 408cdf0e10cSrcweir 409cdf0e10cSrcweir return a3DPolygonObjectPropertyMap_Impl; 410cdf0e10cSrcweir } 411cdf0e10cSrcweir 412cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxAllPropertyMap() 413cdf0e10cSrcweir { 414cdf0e10cSrcweir static SfxItemPropertyMapEntry aAllPropertyMap_Impl[] = 415cdf0e10cSrcweir { 416cdf0e10cSrcweir SHADOW_PROPERTIES 417cdf0e10cSrcweir LINE_PROPERTIES 418cdf0e10cSrcweir LINE_PROPERTIES_START_END 419cdf0e10cSrcweir FILL_PROPERTIES 420cdf0e10cSrcweir EDGERADIUS_PROPERTIES 421cdf0e10cSrcweir TEXT_PROPERTIES 422cdf0e10cSrcweir // #FontWork# 423cdf0e10cSrcweir FONTWORK_PROPERTIES 424cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 425cdf0e10cSrcweir MISC_OBJ_PROPERTIES 426cdf0e10cSrcweir LINKTARGET_PROPERTIES 427cdf0e10cSrcweir SPECIAL_CONNECTOR_PROPERTIES 428cdf0e10cSrcweir SPECIAL_DIMENSIONING_PROPERTIES 429cdf0e10cSrcweir SPECIAL_CIRCLE_PROPERTIES 430cdf0e10cSrcweir SPECIAL_POLYGON_PROPERTIES 431cdf0e10cSrcweir SPECIAL_POLYPOLYGON_PROPERTIES 432cdf0e10cSrcweir SPECIAL_POLYPOLYGONBEZIER_PROPERTIES 433cdf0e10cSrcweir SPECIAL_GRAPHOBJ_PROPERTIES 434cdf0e10cSrcweir SPECIAL_3DSCENEOBJECT_PROPERTIES 435cdf0e10cSrcweir MISC_3D_OBJ_PROPERTIES 436cdf0e10cSrcweir SPECIAL_3DCUBEOBJECT_PROPERTIES 437cdf0e10cSrcweir SPECIAL_3DSPHEREOBJECT_PROPERTIES 438cdf0e10cSrcweir SPECIAL_3DLATHEOBJECT_PROPERTIES 439cdf0e10cSrcweir SPECIAL_3DEXTRUDEOBJECT_PROPERTIES 440cdf0e10cSrcweir 441cdf0e10cSrcweir // #107245# New 3D properties which are possible for lathe and extrude 3d objects 442cdf0e10cSrcweir SPECIAL_3DLATHEANDEXTRUDEOBJ_PROPERTIES 443cdf0e10cSrcweir 444cdf0e10cSrcweir SPECIAL_3DBACKSCALE_PROPERTIES 445cdf0e10cSrcweir SPECIAL_3DPOLYGONOBJECT_PROPERTIES 446cdf0e10cSrcweir CUSTOMSHAPE_PROPERTIES 447cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 448cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 449cdf0e10cSrcweir {0,0,0,0,0,0} 450cdf0e10cSrcweir 451cdf0e10cSrcweir }; 452cdf0e10cSrcweir 453cdf0e10cSrcweir return aAllPropertyMap_Impl; 454cdf0e10cSrcweir } 455cdf0e10cSrcweir 456cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxGroupPropertyMap() 457cdf0e10cSrcweir { 458cdf0e10cSrcweir static SfxItemPropertyMapEntry aGroupPropertyMap_Impl[] = 459cdf0e10cSrcweir { 460cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 461cdf0e10cSrcweir MISC_OBJ_PROPERTIES 462cdf0e10cSrcweir LINKTARGET_PROPERTIES 463cdf0e10cSrcweir {0,0,0,0,0,0} 464cdf0e10cSrcweir 465cdf0e10cSrcweir }; 466cdf0e10cSrcweir 467cdf0e10cSrcweir return aGroupPropertyMap_Impl; 468cdf0e10cSrcweir } 469cdf0e10cSrcweir 470cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxOle2PropertyMap() 471cdf0e10cSrcweir { 472cdf0e10cSrcweir static SfxItemPropertyMapEntry aOle2PropertyMap_Impl[] = 473cdf0e10cSrcweir { 474*a5258243SPedro Giffuni // #i118485# Adding properties for line, fill, text, shadow, fontwork, rotate, shear 475*a5258243SPedro Giffuni FILL_PROPERTIES 476*a5258243SPedro Giffuni LINE_PROPERTIES 477*a5258243SPedro Giffuni LINE_PROPERTIES_START_END 478*a5258243SPedro Giffuni SHAPE_DESCRIPTOR_PROPERTIES 479*a5258243SPedro Giffuni MISC_OBJ_PROPERTIES 480*a5258243SPedro Giffuni LINKTARGET_PROPERTIES 481*a5258243SPedro Giffuni SHADOW_PROPERTIES 482*a5258243SPedro Giffuni TEXT_PROPERTIES 483*a5258243SPedro Giffuni FONTWORK_PROPERTIES 484*a5258243SPedro Giffuni 485cdf0e10cSrcweir { MAP_CHAR_LEN("ThumbnailGraphicURL"), OWN_ATTR_THUMBNAIL , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 486cdf0e10cSrcweir { MAP_CHAR_LEN("Model"), OWN_ATTR_OLEMODEL , &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 487cdf0e10cSrcweir { MAP_CHAR_LEN("EmbeddedObject"), OWN_ATTR_OLE_EMBEDDED_OBJECT , &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedObject >*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 488cdf0e10cSrcweir { MAP_CHAR_LEN("EmbeddedObjectNoNewClient"),OWN_ATTR_OLE_EMBEDDED_OBJECT_NONEWCLIENT, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedObject >*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 489cdf0e10cSrcweir { MAP_CHAR_LEN("OriginalSize"), OWN_ATTR_OLESIZE , &::getCppuType(( const ::com::sun::star::awt::Size*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 490cdf0e10cSrcweir { MAP_CHAR_LEN("CLSID"), OWN_ATTR_CLSID , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 491cdf0e10cSrcweir { MAP_CHAR_LEN("IsInternal"), OWN_ATTR_INTERNAL_OLE , &::getBooleanCppuType() , ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 492cdf0e10cSrcweir { MAP_CHAR_LEN("VisibleArea"), OWN_ATTR_OLE_VISAREA , &::getCppuType((const ::com::sun::star::awt::Rectangle*)0), 0, 0}, 493cdf0e10cSrcweir { MAP_CHAR_LEN("Aspect"), OWN_ATTR_OLE_ASPECT , &::getCppuType((const sal_Int64*)0), 0, 0}, 494cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_OLE2_PERSISTNAME), OWN_ATTR_PERSISTNAME , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 495cdf0e10cSrcweir { MAP_CHAR_LEN("LinkURL"), OWN_ATTR_OLE_LINKURL , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 496cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_GRAPHOBJ_GRAPHIC), OWN_ATTR_VALUE_GRAPHIC , &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic>*)0), 0, 0}, 497cdf0e10cSrcweir {0,0,0,0,0,0} 498cdf0e10cSrcweir 499cdf0e10cSrcweir }; 500cdf0e10cSrcweir 501cdf0e10cSrcweir return aOle2PropertyMap_Impl; 502cdf0e10cSrcweir } 503cdf0e10cSrcweir 504cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxPluginPropertyMap() 505cdf0e10cSrcweir { 506cdf0e10cSrcweir static SfxItemPropertyMapEntry aPluginPropertyMap_Impl[] = 507cdf0e10cSrcweir { 508cdf0e10cSrcweir { MAP_CHAR_LEN("PluginMimeType"), OWN_ATTR_PLUGIN_MIMETYPE , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 509cdf0e10cSrcweir { MAP_CHAR_LEN("PluginURL"), OWN_ATTR_PLUGIN_URL , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 510cdf0e10cSrcweir { MAP_CHAR_LEN("PluginCommands"), OWN_ATTR_PLUGIN_COMMANDS , SEQTYPE(::getCppuType((::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >*)0)), 0, 0}, 511cdf0e10cSrcweir { MAP_CHAR_LEN("Transformation"), OWN_ATTR_TRANSFORMATION , &::getCppuType((const struct com::sun::star::drawing::HomogenMatrix3*)0), 0, 0 }, \ 512cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_ZORDER), OWN_ATTR_ZORDER , &::getCppuType((const sal_Int32*)0), 0, 0}, 513cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERID), SDRATTR_LAYERID , &::getCppuType((const sal_Int16*)0), 0, 0}, 514cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERNAME),SDRATTR_LAYERNAME , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 515cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP), OWN_ATTR_LDBITMAP , &::getCppuType(( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap >*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 516cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYNAME), OWN_ATTR_LDNAME , &::getCppuType(( const ::rtl::OUString*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 517cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_OLE2_METAFILE), OWN_ATTR_METAFILE , SEQTYPE(::getCppuType((::com::sun::star::uno::Sequence<sal_Int8>*)0)), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 518cdf0e10cSrcweir { MAP_CHAR_LEN("ThumbnailGraphicURL"), OWN_ATTR_THUMBNAIL , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 519cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_MOVEPROTECT), SDRATTR_OBJMOVEPROTECT, &::getBooleanCppuType(),0, 0}, 520cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_SIZEPROTECT), SDRATTR_OBJSIZEPROTECT, &::getBooleanCppuType(),0, 0}, 521cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_OLE2_PERSISTNAME), OWN_ATTR_PERSISTNAME , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 522cdf0e10cSrcweir { MAP_CHAR_LEN("LinkURL"), OWN_ATTR_OLE_LINKURL , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 523cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_BOUNDRECT), OWN_ATTR_BOUNDRECT, &::getCppuType((const ::com::sun::star::awt::Rectangle*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 524cdf0e10cSrcweir { MAP_CHAR_LEN("VisibleArea"), OWN_ATTR_OLE_VISAREA , &::getCppuType((const ::com::sun::star::awt::Rectangle*)0), 0, 0}, 525cdf0e10cSrcweir // #i68101# 526cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_TITLE), OWN_ATTR_MISC_OBJ_TITLE , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 527cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_DESCRIPTION), OWN_ATTR_MISC_OBJ_DESCRIPTION , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 528cdf0e10cSrcweir {0,0,0,0,0,0} 529cdf0e10cSrcweir 530cdf0e10cSrcweir }; 531cdf0e10cSrcweir 532cdf0e10cSrcweir return aPluginPropertyMap_Impl; 533cdf0e10cSrcweir } 534cdf0e10cSrcweir 535cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxFramePropertyMap() 536cdf0e10cSrcweir { 537cdf0e10cSrcweir //TODO/LATER: new properties for ScrollingMode and DefaultBorder 538cdf0e10cSrcweir static SfxItemPropertyMapEntry aFramePropertyMap_Impl[] = 539cdf0e10cSrcweir { 540cdf0e10cSrcweir { MAP_CHAR_LEN("FrameURL"), OWN_ATTR_FRAME_URL , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 541cdf0e10cSrcweir { MAP_CHAR_LEN("FrameName"), OWN_ATTR_FRAME_NAME , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 542cdf0e10cSrcweir { MAP_CHAR_LEN("FrameIsAutoScroll"), OWN_ATTR_FRAME_ISAUTOSCROLL , &::getBooleanCppuType() , ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0}, 543cdf0e10cSrcweir { MAP_CHAR_LEN("FrameIsBorder"), OWN_ATTR_FRAME_ISBORDER , &::getBooleanCppuType() , 0, 0}, 544cdf0e10cSrcweir { MAP_CHAR_LEN("FrameMarginWidth"), OWN_ATTR_FRAME_MARGIN_WIDTH , &::getCppuType((const sal_Int32*)0), 0, 0}, 545cdf0e10cSrcweir { MAP_CHAR_LEN("FrameMarginHeight"), OWN_ATTR_FRAME_MARGIN_HEIGHT, &::getCppuType((const sal_Int32*)0), 0, 0}, 546cdf0e10cSrcweir { MAP_CHAR_LEN("Transformation"), OWN_ATTR_TRANSFORMATION , &::getCppuType((const struct com::sun::star::drawing::HomogenMatrix3*)0), 0, 0 }, \ 547cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_ZORDER), OWN_ATTR_ZORDER , &::getCppuType((const sal_Int32*)0), 0, 0}, 548cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERID), SDRATTR_LAYERID , &::getCppuType((const sal_Int16*)0), 0, 0}, 549cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERNAME),SDRATTR_LAYERNAME , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 550cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP), OWN_ATTR_LDBITMAP , &::getCppuType(( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap >*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 551cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYNAME), OWN_ATTR_LDNAME , &::getCppuType(( const ::rtl::OUString*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 552cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_OLE2_METAFILE), OWN_ATTR_METAFILE , SEQTYPE(::getCppuType((::com::sun::star::uno::Sequence<sal_Int8>*)0)), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 553cdf0e10cSrcweir { MAP_CHAR_LEN("ThumbnailGraphicURL"), OWN_ATTR_THUMBNAIL , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 554cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_MOVEPROTECT), SDRATTR_OBJMOVEPROTECT, &::getBooleanCppuType(),0, 0}, 555cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_SIZEPROTECT), SDRATTR_OBJSIZEPROTECT, &::getBooleanCppuType(),0, 0}, 556cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_OLE2_PERSISTNAME), OWN_ATTR_PERSISTNAME , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 557cdf0e10cSrcweir { MAP_CHAR_LEN("LinkURL"), OWN_ATTR_OLE_LINKURL , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 558cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_BOUNDRECT), OWN_ATTR_BOUNDRECT, &::getCppuType((const ::com::sun::star::awt::Rectangle*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 559cdf0e10cSrcweir { MAP_CHAR_LEN("VisibleArea"), OWN_ATTR_OLE_VISAREA , &::getCppuType((const ::com::sun::star::awt::Rectangle*)0), 0, 0}, 560cdf0e10cSrcweir // #i68101# 561cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_TITLE), OWN_ATTR_MISC_OBJ_TITLE , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 562cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_DESCRIPTION), OWN_ATTR_MISC_OBJ_DESCRIPTION , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 563cdf0e10cSrcweir {0,0,0,0,0,0} 564cdf0e10cSrcweir 565cdf0e10cSrcweir }; 566cdf0e10cSrcweir 567cdf0e10cSrcweir return aFramePropertyMap_Impl; 568cdf0e10cSrcweir } 569cdf0e10cSrcweir 570cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxAppletPropertyMap() 571cdf0e10cSrcweir { 572cdf0e10cSrcweir static SfxItemPropertyMapEntry aAppletPropertyMap_Impl[] = 573cdf0e10cSrcweir { 574cdf0e10cSrcweir { MAP_CHAR_LEN("AppletCodeBase"), OWN_ATTR_APPLET_CODEBASE , &::getCppuType(( const ::rtl::OUString*)0), 0, 0}, 575cdf0e10cSrcweir { MAP_CHAR_LEN("AppletName"), OWN_ATTR_APPLET_NAME , &::getCppuType(( const ::rtl::OUString*)0), 0, 0}, 576cdf0e10cSrcweir { MAP_CHAR_LEN("AppletCode"), OWN_ATTR_APPLET_CODE , &::getCppuType(( const ::rtl::OUString*)0), 0, 0}, 577cdf0e10cSrcweir { MAP_CHAR_LEN("AppletCommands"), OWN_ATTR_APPLET_COMMANDS , SEQTYPE(::getCppuType((::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >*)0)), 0, 0}, 578cdf0e10cSrcweir { MAP_CHAR_LEN("AppletDocBase"), OWN_ATTR_APPLET_DOCBASE , &::getCppuType(( const ::rtl::OUString*)0), 0, 0}, 579cdf0e10cSrcweir { MAP_CHAR_LEN("AppletIsScript"), OWN_ATTR_APPLET_ISSCRIPT , &::getBooleanCppuType(), 0, 0 }, 580cdf0e10cSrcweir { MAP_CHAR_LEN("Transformation"), OWN_ATTR_TRANSFORMATION , &::getCppuType((const struct com::sun::star::drawing::HomogenMatrix3*)0), 0, 0 }, \ 581cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_ZORDER), OWN_ATTR_ZORDER , &::getCppuType((const sal_Int32*)0), 0, 0}, 582cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERID), SDRATTR_LAYERID , &::getCppuType((const sal_Int16*)0), 0, 0}, 583cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERNAME),SDRATTR_LAYERNAME , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 584cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP), OWN_ATTR_LDBITMAP , &::getCppuType(( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap >*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 585cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYNAME), OWN_ATTR_LDNAME , &::getCppuType(( const ::rtl::OUString*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 586cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_OLE2_METAFILE), OWN_ATTR_METAFILE , SEQTYPE(::getCppuType((::com::sun::star::uno::Sequence<sal_Int8>*)0)), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 587cdf0e10cSrcweir { MAP_CHAR_LEN("ThumbnailGraphicURL"), OWN_ATTR_THUMBNAIL , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 588cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_MOVEPROTECT), SDRATTR_OBJMOVEPROTECT, &::getBooleanCppuType(),0, 0}, 589cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_SIZEPROTECT), SDRATTR_OBJSIZEPROTECT, &::getBooleanCppuType(),0, 0}, 590cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_OLE2_PERSISTNAME), OWN_ATTR_PERSISTNAME , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 591cdf0e10cSrcweir { MAP_CHAR_LEN("LinkURL"), OWN_ATTR_OLE_LINKURL , &::getCppuType(( const ::rtl::OUString*)0), 0, 0 }, 592cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_BOUNDRECT), OWN_ATTR_BOUNDRECT, &::getCppuType((const ::com::sun::star::awt::Rectangle*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 593cdf0e10cSrcweir { MAP_CHAR_LEN("VisibleArea"), OWN_ATTR_OLE_VISAREA , &::getCppuType((const ::com::sun::star::awt::Rectangle*)0), 0, 0}, 594cdf0e10cSrcweir // #i68101# 595cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_TITLE), OWN_ATTR_MISC_OBJ_TITLE , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 596cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_DESCRIPTION), OWN_ATTR_MISC_OBJ_DESCRIPTION , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 597cdf0e10cSrcweir {0,0,0,0,0,0} 598cdf0e10cSrcweir 599cdf0e10cSrcweir }; 600cdf0e10cSrcweir 601cdf0e10cSrcweir return aAppletPropertyMap_Impl; 602cdf0e10cSrcweir } 603cdf0e10cSrcweir 604cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxControlShapePropertyMap() 605cdf0e10cSrcweir { 606cdf0e10cSrcweir static SfxItemPropertyMapEntry aControlPropertyMap_Impl[] = 607cdf0e10cSrcweir { 608cdf0e10cSrcweir // the following properties are mapped to the XControl Model of this shape 609cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_CHAR_FONTNAME), 0, &::getCppuType((const ::rtl::OUString*)0), 0, 0 }, 610cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_CHAR_FONTSTYLENAME), 0, &::getCppuType((const ::rtl::OUString*)0), 0, 0 }, 611cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_CHAR_FONTFAMILY), 0, &::getCppuType((const sal_Int16*)0), 0, 0 }, 612cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_CHAR_FONTCHARSET), 0, &::getCppuType((const sal_Int16*)0), 0, 0 }, 613cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_CHAR_HEIGHT), 0, &::getCppuType((const float*)0), 0, 0 }, 614cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_CHAR_FONTPITCH), 0, &::getCppuType((const sal_Int16*)0), 0, 0 }, 615cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_CHAR_POSTURE), 0, &::getCppuType((const ::com::sun::star::awt::FontSlant*)0),0, 0 }, 616cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_CHAR_WEIGHT), 0, &::getCppuType((const float*)0), 0, 0 }, 617cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_CHAR_UNDERLINE), 0, &::getCppuType((const sal_Int16*)0), 0, 0 }, 618cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_CHAR_STRIKEOUT), 0, &::getCppuType((const sal_Int16*)0), 0, 0}, 619cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_CHAR_COLOR), 0, &::getCppuType((const sal_Int32*)0), 0, 0 }, 620cdf0e10cSrcweir { MAP_CHAR_LEN("CharRelief"), 0, &::getCppuType((const sal_Int16*)0), 0, 0 }, 621cdf0e10cSrcweir { MAP_CHAR_LEN("CharUnderlineColor"), 0, &::getCppuType((const sal_Int32*)0), 0, 0 }, 622cdf0e10cSrcweir { MAP_CHAR_LEN("CharKerning"), 0, &::getCppuType((const sal_Int16*)0), 0, 0 }, 623cdf0e10cSrcweir { MAP_CHAR_LEN("CharWordMode"), 0, &::getBooleanCppuType(), 0, 0 }, 624cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_EDIT_PARA_ADJUST), 0, &::getCppuType((const sal_Int16*)0), 0, 0 }, 625cdf0e10cSrcweir { MAP_CHAR_LEN("TextVerticalAdjust"), 0, &::getCppuType((const TextVerticalAdjust*)0), MAYBEVOID, 0 }, 626cdf0e10cSrcweir { MAP_CHAR_LEN("ControlBackground"), 0, &::getCppuType((const sal_Int32*)0), 0, 0 }, 627cdf0e10cSrcweir { MAP_CHAR_LEN("ControlBorder"), 0, &::getCppuType((const sal_Int16*)0), 0, 0 }, 628cdf0e10cSrcweir { MAP_CHAR_LEN("ControlBorderColor"), 0, &::getCppuType((const sal_Int32*)0), 0, 0 }, 629cdf0e10cSrcweir { MAP_CHAR_LEN("ControlSymbolColor"), 0, &::getCppuType((const sal_Int16*)0), 0, 0 }, 630cdf0e10cSrcweir { MAP_CHAR_LEN("ImageScaleMode"), 0, &::getCppuType((const sal_Int16*)0), 0, 0 }, 631cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_MOVEPROTECT), SDRATTR_OBJMOVEPROTECT, &::getBooleanCppuType(),0, 0}, 632cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_SIZEPROTECT), SDRATTR_OBJSIZEPROTECT, &::getBooleanCppuType(),0, 0}, 633cdf0e10cSrcweir { MAP_CHAR_LEN("ControlTextEmphasis"), 0, &::getCppuType((const sal_Int16*)0), 0, 0 }, 634cdf0e10cSrcweir { MAP_CHAR_LEN("ControlWritingMode"), 0, &::cppu::UnoType< sal_Int16 >::get(), 0, 0}, 635cdf0e10cSrcweir // the following properties are handled by SvxShape 636cdf0e10cSrcweir { MAP_CHAR_LEN("Transformation"), OWN_ATTR_TRANSFORMATION , &::getCppuType((const struct com::sun::star::drawing::HomogenMatrix3*)0), 0, 0 }, 637cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_ZORDER), OWN_ATTR_ZORDER , &::getCppuType((const sal_Int32*)0), 0, 0}, 638cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERID), SDRATTR_LAYERID , &::getCppuType((const sal_Int16*)0), 0, 0}, 639cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERNAME),SDRATTR_LAYERNAME , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 640cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP), OWN_ATTR_LDBITMAP , &::getCppuType(( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap >*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 641cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYNAME), OWN_ATTR_LDNAME , &::getCppuType(( const ::rtl::OUString*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 642cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 643cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 644cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_BOUNDRECT), OWN_ATTR_BOUNDRECT, &::getCppuType((const ::com::sun::star::awt::Rectangle*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 645cdf0e10cSrcweir // #i68101# 646cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_TITLE), OWN_ATTR_MISC_OBJ_TITLE , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 647cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_DESCRIPTION), OWN_ATTR_MISC_OBJ_DESCRIPTION , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 648cdf0e10cSrcweir // #i112587# 649cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_PRINTABLE), SDRATTR_OBJPRINTABLE , &::getBooleanCppuType(), 0, 0}, 650cdf0e10cSrcweir { MAP_CHAR_LEN("Visible"), SDRATTR_OBJVISIBLE , &::getBooleanCppuType(), 0, 0}, 651cdf0e10cSrcweir {0,0,0,0,0,0} 652cdf0e10cSrcweir }; 653cdf0e10cSrcweir 654cdf0e10cSrcweir return aControlPropertyMap_Impl; 655cdf0e10cSrcweir } 656cdf0e10cSrcweir 657cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxPageShapePropertyMap() 658cdf0e10cSrcweir { 659cdf0e10cSrcweir static SfxItemPropertyMapEntry aPageShapePropertyMap_Impl[] = 660cdf0e10cSrcweir { 661cdf0e10cSrcweir { MAP_CHAR_LEN("PageNumber"), OWN_ATTR_PAGE_NUMBER , &::getCppuType((const sal_Int32*)0), 0, 0}, 662cdf0e10cSrcweir { MAP_CHAR_LEN("Transformation"), OWN_ATTR_TRANSFORMATION , &::getCppuType((const struct com::sun::star::drawing::HomogenMatrix3*)0), 0, 0 }, \ 663cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_ZORDER), OWN_ATTR_ZORDER , &::getCppuType((const sal_Int32*)0), 0, 0}, 664cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERID), SDRATTR_LAYERID , &::getCppuType((const sal_Int16*)0), 0, 0}, 665cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERNAME),SDRATTR_LAYERNAME , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 666cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP), OWN_ATTR_LDBITMAP , &::getCppuType(( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap >*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 667cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYNAME), OWN_ATTR_LDNAME , &::getCppuType(( const ::rtl::OUString*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 668cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_MOVEPROTECT), SDRATTR_OBJMOVEPROTECT, &::getBooleanCppuType(),0, 0}, 669cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_SIZEPROTECT), SDRATTR_OBJSIZEPROTECT, &::getBooleanCppuType(),0, 0}, 670cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_BOUNDRECT), OWN_ATTR_BOUNDRECT, &::getCppuType((const ::com::sun::star::awt::Rectangle*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 671cdf0e10cSrcweir // #i68101# 672cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_TITLE), OWN_ATTR_MISC_OBJ_TITLE , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 673cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_DESCRIPTION), OWN_ATTR_MISC_OBJ_DESCRIPTION , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 674cdf0e10cSrcweir {0,0,0,0,0,0} 675cdf0e10cSrcweir 676cdf0e10cSrcweir }; 677cdf0e10cSrcweir 678cdf0e10cSrcweir return aPageShapePropertyMap_Impl; 679cdf0e10cSrcweir } 680cdf0e10cSrcweir 681cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxCaptionPropertyMap() 682cdf0e10cSrcweir { 683cdf0e10cSrcweir static SfxItemPropertyMapEntry aCaptionPropertyMap_Impl[] = 684cdf0e10cSrcweir { 685cdf0e10cSrcweir { MAP_CHAR_LEN("CaptionPoint"), OWN_ATTR_CAPTION_POINT, &::getCppuType((const com::sun::star::awt::Point*)0), 0, 0 }, 686cdf0e10cSrcweir { MAP_CHAR_LEN("CaptionType"), SDRATTR_CAPTIONTYPE, &::getCppuType((const sal_Int16*)0), 0, 0}, 687cdf0e10cSrcweir { MAP_CHAR_LEN("CaptionIsFixedAngle"), SDRATTR_CAPTIONFIXEDANGLE, &::getBooleanCppuType(), 0, 0}, 688cdf0e10cSrcweir { MAP_CHAR_LEN("CaptionAngle"), SDRATTR_CAPTIONANGLE, &::getCppuType((const sal_Int32*)0), 0, 0}, 689cdf0e10cSrcweir { MAP_CHAR_LEN("CaptionGap"), SDRATTR_CAPTIONGAP, &::getCppuType((const sal_Int32*)0), 0, SFX_METRIC_ITEM}, 690cdf0e10cSrcweir { MAP_CHAR_LEN("CaptionEscapeDirection"), SDRATTR_CAPTIONESCDIR, &::getCppuType((const sal_Int32*)0), 0, 0}, 691cdf0e10cSrcweir { MAP_CHAR_LEN("CaptionIsEscapeRelative"), SDRATTR_CAPTIONESCISREL, &::getBooleanCppuType(), 0, 0}, 692cdf0e10cSrcweir { MAP_CHAR_LEN("CaptionEscapeRelative"), SDRATTR_CAPTIONESCREL, &::getCppuType((const sal_Int32*)0), 0, 0}, 693cdf0e10cSrcweir { MAP_CHAR_LEN("CaptionEscapeAbsolute"), SDRATTR_CAPTIONESCABS, &::getCppuType((const sal_Int32*)0), 0, SFX_METRIC_ITEM}, 694cdf0e10cSrcweir { MAP_CHAR_LEN("CaptionLineLength"), SDRATTR_CAPTIONLINELEN, &::getCppuType((const sal_Int32*)0), 0, SFX_METRIC_ITEM}, 695cdf0e10cSrcweir { MAP_CHAR_LEN("CaptionIsFitLineLength"), SDRATTR_CAPTIONFITLINELEN, &::getBooleanCppuType(), 0, 0}, 696cdf0e10cSrcweir EDGERADIUS_PROPERTIES 697cdf0e10cSrcweir FILL_PROPERTIES 698cdf0e10cSrcweir LINE_PROPERTIES 699cdf0e10cSrcweir LINE_PROPERTIES_START_END 700cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 701cdf0e10cSrcweir MISC_OBJ_PROPERTIES 702cdf0e10cSrcweir LINKTARGET_PROPERTIES 703cdf0e10cSrcweir SHADOW_PROPERTIES 704cdf0e10cSrcweir TEXT_PROPERTIES 705cdf0e10cSrcweir // #FontWork# 706cdf0e10cSrcweir FONTWORK_PROPERTIES 707cdf0e10cSrcweir { MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 708cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 709cdf0e10cSrcweir {0,0,0,0,0,0} 710cdf0e10cSrcweir 711cdf0e10cSrcweir }; 712cdf0e10cSrcweir 713cdf0e10cSrcweir return aCaptionPropertyMap_Impl; 714cdf0e10cSrcweir } 715cdf0e10cSrcweir 716cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxCustomShapePropertyMap() 717cdf0e10cSrcweir { 718cdf0e10cSrcweir static SfxItemPropertyMapEntry aCustomShapePropertyMap_Impl[] = 719cdf0e10cSrcweir { 720cdf0e10cSrcweir { MAP_CHAR_LEN("CustomShapeEngine"), SDRATTR_CUSTOMSHAPE_ENGINE, &::getCppuType((const ::rtl::OUString*)0), 0, 0 }, 721cdf0e10cSrcweir { MAP_CHAR_LEN("CustomShapeData"), SDRATTR_CUSTOMSHAPE_DATA, &::getCppuType((const ::rtl::OUString*)0), 0, 0 }, 722cdf0e10cSrcweir { MAP_CHAR_LEN("CustomShapeGeometry"), SDRATTR_CUSTOMSHAPE_GEOMETRY, SEQTYPE(::getCppuType((::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >*)0)), 0, 0 }, 723cdf0e10cSrcweir { MAP_CHAR_LEN("CustomShapeGraphicURL"), SDRATTR_CUSTOMSHAPE_REPLACEMENT_URL, &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 724cdf0e10cSrcweir CUSTOMSHAPE_PROPERTIES 725cdf0e10cSrcweir FILL_PROPERTIES 726cdf0e10cSrcweir LINE_PROPERTIES 727cdf0e10cSrcweir LINE_PROPERTIES_START_END 728cdf0e10cSrcweir SHAPE_DESCRIPTOR_PROPERTIES 729cdf0e10cSrcweir MISC_OBJ_PROPERTIES 730cdf0e10cSrcweir LINKTARGET_PROPERTIES 731cdf0e10cSrcweir SHADOW_PROPERTIES 732cdf0e10cSrcweir TEXT_PROPERTIES 733cdf0e10cSrcweir {MAP_CHAR_LEN("UserDefinedAttributes"), SDRATTR_XMLATTRIBUTES, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 734cdf0e10cSrcweir {MAP_CHAR_LEN("ParaUserDefinedAttributes"), EE_PARA_XMLATTRIBS, &::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >*)0) , 0, 0}, 735cdf0e10cSrcweir {0,0,0,0,0,0} 736cdf0e10cSrcweir 737cdf0e10cSrcweir }; 738cdf0e10cSrcweir return aCustomShapePropertyMap_Impl; 739cdf0e10cSrcweir } 740cdf0e10cSrcweir 741cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxMediaShapePropertyMap() 742cdf0e10cSrcweir { 743cdf0e10cSrcweir static SfxItemPropertyMapEntry aMediaShapePropertyMap_Impl[] = 744cdf0e10cSrcweir { 745cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_ZORDER), OWN_ATTR_ZORDER, &::getCppuType((const sal_Int32*)0), 0, 0}, 746cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERID), SDRATTR_LAYERID, &::getCppuType((const sal_Int16*)0), 0, 0}, 747cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERNAME), SDRATTR_LAYERNAME, &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 748cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP), OWN_ATTR_LDBITMAP, &::getCppuType(( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap >*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 749cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYNAME), OWN_ATTR_LDNAME, &::getCppuType(( const ::rtl::OUString*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 750cdf0e10cSrcweir { MAP_CHAR_LEN("Transformation"), OWN_ATTR_TRANSFORMATION, &::getCppuType((const struct com::sun::star::drawing::HomogenMatrix3*)0), 0, 0 }, 751cdf0e10cSrcweir { MAP_CHAR_LEN("MediaURL"), OWN_ATTR_MEDIA_URL, &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 752cdf0e10cSrcweir { MAP_CHAR_LEN("PreferredSize"), OWN_ATTR_MEDIA_PREFERREDSIZE, &::getCppuType((const ::com::sun::star::awt::Size*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 753cdf0e10cSrcweir { MAP_CHAR_LEN("Loop"), OWN_ATTR_MEDIA_LOOP, &::getCppuType((const sal_Bool*)0), 0, 0}, 754cdf0e10cSrcweir { MAP_CHAR_LEN("Mute"), OWN_ATTR_MEDIA_MUTE, &::getCppuType((const sal_Bool*)0), 0, 0}, 755cdf0e10cSrcweir { MAP_CHAR_LEN("VolumeDB"), OWN_ATTR_MEDIA_VOLUMEDB, &::getCppuType((const sal_Int16*)0), 0, 0}, 756cdf0e10cSrcweir { MAP_CHAR_LEN("Zoom"), OWN_ATTR_MEDIA_ZOOM, &::getCppuType((const ::com::sun::star::media::ZoomLevel*)0), 0, 0}, 757cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_MOVEPROTECT), SDRATTR_OBJMOVEPROTECT, &::getBooleanCppuType(),0, 0}, 758cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_SIZEPROTECT), SDRATTR_OBJSIZEPROTECT, &::getBooleanCppuType(),0, 0}, 759cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_BOUNDRECT), OWN_ATTR_BOUNDRECT, &::getCppuType((const ::com::sun::star::awt::Rectangle*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 760cdf0e10cSrcweir // #i68101# 761cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_TITLE), OWN_ATTR_MISC_OBJ_TITLE , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 762cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_DESCRIPTION), OWN_ATTR_MISC_OBJ_DESCRIPTION , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 763cdf0e10cSrcweir {0,0,0,0,0,0} 764cdf0e10cSrcweir 765cdf0e10cSrcweir }; 766cdf0e10cSrcweir 767cdf0e10cSrcweir return aMediaShapePropertyMap_Impl; 768cdf0e10cSrcweir } 769cdf0e10cSrcweir 770cdf0e10cSrcweir SfxItemPropertyMapEntry* ImplGetSvxTableShapePropertyMap() 771cdf0e10cSrcweir { 772cdf0e10cSrcweir static SfxItemPropertyMapEntry aTableShapePropertyMap_Impl[] = 773cdf0e10cSrcweir { 774cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_ZORDER), OWN_ATTR_ZORDER, &::getCppuType((const sal_Int32*)0), 0, 0}, 775cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERID), SDRATTR_LAYERID, &::getCppuType((const sal_Int16*)0), 0, 0}, 776cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_LAYERNAME), SDRATTR_LAYERNAME, &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 777cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYBITMAP), OWN_ATTR_LDBITMAP, &::com::sun::star::awt::XBitmap::static_type(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 778cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_LINKDISPLAYNAME), OWN_ATTR_LDNAME, &::getCppuType(( const ::rtl::OUString*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 779cdf0e10cSrcweir { MAP_CHAR_LEN("Transformation"), OWN_ATTR_TRANSFORMATION, &::getCppuType((const struct com::sun::star::drawing::HomogenMatrix3*)0), 0, 0 }, 780cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_MOVEPROTECT), SDRATTR_OBJMOVEPROTECT, &::getBooleanCppuType(),0, 0}, 781cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_SIZEPROTECT), SDRATTR_OBJSIZEPROTECT, &::getBooleanCppuType(),0, 0}, 782cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_BOUNDRECT), OWN_ATTR_BOUNDRECT, &::getCppuType((const ::com::sun::star::awt::Rectangle*)0), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 783cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_TITLE), OWN_ATTR_MISC_OBJ_TITLE , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 784cdf0e10cSrcweir { MAP_CHAR_LEN(UNO_NAME_MISC_OBJ_DESCRIPTION), OWN_ATTR_MISC_OBJ_DESCRIPTION , &::getCppuType((const ::rtl::OUString*)0), 0, 0}, 785cdf0e10cSrcweir { MAP_CHAR_LEN("Model"), OWN_ATTR_OLEMODEL , &::com::sun::star::table::XTable::static_type(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 786cdf0e10cSrcweir { MAP_CHAR_LEN("TableTemplate"), OWN_ATTR_TABLETEMPLATE , &::com::sun::star::container::XIndexAccess::static_type(), 0, 0}, 787cdf0e10cSrcweir { MAP_CHAR_LEN("UseFirstRowStyle"), OWN_ATTR_TABLETEMPLATE_FIRSTROW, &::getBooleanCppuType(),0, 0}, 788cdf0e10cSrcweir { MAP_CHAR_LEN("UseLastRowStyle"), OWN_ATTR_TABLETEMPLATE_LASTROW, &::getBooleanCppuType(),0, 0}, 789cdf0e10cSrcweir { MAP_CHAR_LEN("UseFirstColumnStyle"), OWN_ATTR_TABLETEMPLATE_FIRSTCOLUMN, &::getBooleanCppuType(),0, 0}, 790cdf0e10cSrcweir { MAP_CHAR_LEN("UseLastColumnStyle"), OWN_ATTR_TABLETEMPLATE_LASTCOLUMN, &::getBooleanCppuType(),0, 0}, 791cdf0e10cSrcweir { MAP_CHAR_LEN("UseBandingRowStyle"), OWN_ATTR_TABLETEMPLATE_BANDINGROWS, &::getBooleanCppuType(),0, 0}, 792cdf0e10cSrcweir { MAP_CHAR_LEN("UseBandingColumnStyle"), OWN_ATTR_TABLETEMPLATE_BANDINGCOULUMNS, &::getBooleanCppuType(),0, 0}, 793cdf0e10cSrcweir { MAP_CHAR_LEN("ReplacementGraphic"), OWN_ATTR_BITMAP, &::com::sun::star::graphic::XGraphic::static_type(), ::com::sun::star::beans::PropertyAttribute::READONLY, 0}, 794cdf0e10cSrcweir 795cdf0e10cSrcweir {0,0,0,0,0,0} 796cdf0e10cSrcweir }; 797cdf0e10cSrcweir 798cdf0e10cSrcweir return aTableShapePropertyMap_Impl; 799cdf0e10cSrcweir } 800cdf0e10cSrcweir 801cdf0e10cSrcweir comphelper::PropertyMapEntry* ImplGetSvxDrawingDefaultsPropertyMap() 802cdf0e10cSrcweir { 803cdf0e10cSrcweir static comphelper::PropertyMapEntry aSvxDrawingDefaultsPropertyMap_Impl[] = 804cdf0e10cSrcweir { 805cdf0e10cSrcweir SHADOW_PROPERTIES 806cdf0e10cSrcweir LINE_PROPERTIES_DEFAULTS 807cdf0e10cSrcweir FILL_PROPERTIES_BMP 808cdf0e10cSrcweir FILL_PROPERTIES_DEFAULTS 809cdf0e10cSrcweir EDGERADIUS_PROPERTIES 810cdf0e10cSrcweir TEXT_PROPERTIES_DEFAULTS 811cdf0e10cSrcweir CONNECTOR_PROPERTIES 812cdf0e10cSrcweir SPECIAL_DIMENSIONING_PROPERTIES_DEFAULTS 813cdf0e10cSrcweir MISC_3D_OBJ_PROPERTIES 814cdf0e10cSrcweir SPECIAL_3DBACKSCALE_PROPERTIES 815cdf0e10cSrcweir {0,0,0,0,0,0} 816cdf0e10cSrcweir 817cdf0e10cSrcweir }; 818cdf0e10cSrcweir 819cdf0e10cSrcweir return aSvxDrawingDefaultsPropertyMap_Impl; 820cdf0e10cSrcweir } 821cdf0e10cSrcweir 822cdf0e10cSrcweir // OD 13.10.2003 #i18732# 823cdf0e10cSrcweir comphelper::PropertyMapEntry* ImplGetAdditionalWriterDrawingDefaultsPropertyMap() 824cdf0e10cSrcweir { 825cdf0e10cSrcweir static comphelper::PropertyMapEntry aSvxAdditionalDefaultsPropertyMap_Impl[] = 826cdf0e10cSrcweir { 827cdf0e10cSrcweir { MAP_CHAR_LEN("IsFollowingTextFlow"), SID_SW_FOLLOW_TEXT_FLOW, &::getBooleanCppuType(), 0, 0}, 828cdf0e10cSrcweir {0,0,0,0,0,0} 829cdf0e10cSrcweir 830cdf0e10cSrcweir }; 831cdf0e10cSrcweir 832cdf0e10cSrcweir return aSvxAdditionalDefaultsPropertyMap_Impl; 833cdf0e10cSrcweir } 834cdf0e10cSrcweir 835cdf0e10cSrcweir // --------------------------------------------------------------------- 836cdf0e10cSrcweir 837cdf0e10cSrcweir SvxUnoPropertyMapProvider aSvxMapProvider; 838cdf0e10cSrcweir 839cdf0e10cSrcweir UHashMapEntry pSdrShapeIdentifierMap[] = 840cdf0e10cSrcweir { 841cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.RectangleShape"), OBJ_RECT ), 842cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.EllipseShape"), OBJ_CIRC ), 843cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.ControlShape"), OBJ_UNO ), 844cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.ConnectorShape"), OBJ_EDGE ), 845cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.MeasureShape"), OBJ_MEASURE ), 846cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.LineShape"), OBJ_LINE ), 847cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.PolyPolygonShape"), OBJ_POLY ), 848cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.PolyLineShape"), OBJ_PLIN ), 849cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.OpenBezierShape"), OBJ_PATHLINE ), 850cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.ClosedBezierShape"), OBJ_PATHFILL ), 851cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.OpenFreeHandShape"), OBJ_FREELINE ), 852cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.ClosedFreeHandShape"), OBJ_FREEFILL ), 853cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.PolyPolygonPathShape"), OBJ_PATHPOLY ), 854cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.PolyLinePathShape"), OBJ_PATHPLIN ), 855cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.GraphicObjectShape"), OBJ_GRAF ), 856cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.GroupShape"), OBJ_GRUP ), 857cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.TextShape"), OBJ_TEXT ), 858cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.OLE2Shape"), OBJ_OLE2 ), 859cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.PageShape"), OBJ_PAGE ), 860cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.CaptionShape"), OBJ_CAPTION ), 861cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.FrameShape"), OBJ_FRAME ), 862cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.PluginShape"), OBJ_OLE2_PLUGIN ), 863cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.AppletShape"), OBJ_OLE2_APPLET ), 864cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.CustomShape"), OBJ_CUSTOMSHAPE ), 865cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.MediaShape"), OBJ_MEDIA ), 866cdf0e10cSrcweir 867cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.Shape3DSceneObject"), E3D_POLYSCENE_ID | E3D_INVENTOR_FLAG ), 868cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.Shape3DCubeObject"), E3D_CUBEOBJ_ID | E3D_INVENTOR_FLAG ), 869cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.Shape3DSphereObject"), E3D_SPHEREOBJ_ID | E3D_INVENTOR_FLAG ), 870cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.Shape3DLatheObject"), E3D_LATHEOBJ_ID | E3D_INVENTOR_FLAG ), 871cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.Shape3DExtrudeObject"), E3D_EXTRUDEOBJ_ID | E3D_INVENTOR_FLAG ), 872cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.Shape3DPolygonObject"), E3D_POLYGONOBJ_ID | E3D_INVENTOR_FLAG ), 873cdf0e10cSrcweir UHashMapEntry (RTL_CONSTASCII_STRINGPARAM(""), 0 ) 874cdf0e10cSrcweir }; 875cdf0e10cSrcweir 876cdf0e10cSrcweir // --------------------------------------------------------------------- 877cdf0e10cSrcweir 878cdf0e10cSrcweir UHashMap aSdrShapeIdentifierMap( pSdrShapeIdentifierMap ); 879cdf0e10cSrcweir 880cdf0e10cSrcweir /*********************************************************************** 881cdf0e10cSrcweir * class UHashMap * 882cdf0e10cSrcweir ***********************************************************************/ 883cdf0e10cSrcweir 884cdf0e10cSrcweir UHashMap::UHashMap( UHashMapEntry* pMap ) 885cdf0e10cSrcweir { 886cdf0e10cSrcweir while( pMap->aIdentifier.getLength() ) 887cdf0e10cSrcweir { 888cdf0e10cSrcweir OUString aStr( pMap->aIdentifier ); 889cdf0e10cSrcweir size_t nHash = aStr.hashCode() & (HASHARRAYSIZE-1); 890cdf0e10cSrcweir 891cdf0e10cSrcweir m_aHashList[nHash].Insert(pMap); 892cdf0e10cSrcweir pMap++; 893cdf0e10cSrcweir } 894cdf0e10cSrcweir } 895cdf0e10cSrcweir 896cdf0e10cSrcweir // --------------------------------------------------------------------- 897cdf0e10cSrcweir 898cdf0e10cSrcweir sal_uInt32 UHashMap::getId( const OUString& rCompareString ) 899cdf0e10cSrcweir { 900cdf0e10cSrcweir size_t nHash = rCompareString.hashCode() & (HASHARRAYSIZE-1); 901cdf0e10cSrcweir 902cdf0e10cSrcweir UHashMapEntryList& rList = m_aHashList[nHash]; 903cdf0e10cSrcweir 904cdf0e10cSrcweir UHashMapEntry * pMap = rList.First(); 905cdf0e10cSrcweir 906cdf0e10cSrcweir while(pMap) 907cdf0e10cSrcweir { 908cdf0e10cSrcweir if( rCompareString == pMap->aIdentifier ) 909cdf0e10cSrcweir return pMap->nId; 910cdf0e10cSrcweir 911cdf0e10cSrcweir pMap = rList.Next(); 912cdf0e10cSrcweir } 913cdf0e10cSrcweir 914cdf0e10cSrcweir return UHASHMAP_NOTFOUND; 915cdf0e10cSrcweir } 916cdf0e10cSrcweir 917cdf0e10cSrcweir /*********************************************************************** 918cdf0e10cSrcweir * class SvxUnoPropertyMapProvider * 919cdf0e10cSrcweir ***********************************************************************/ 920cdf0e10cSrcweir 921cdf0e10cSrcweir EXTERN_C 922cdf0e10cSrcweir #if defined( PM2 ) && (!defined( CSET ) && !defined ( MTW ) && !defined( WTC )) 923cdf0e10cSrcweir int _stdcall 924cdf0e10cSrcweir #else 925cdf0e10cSrcweir #ifdef WNT 926cdf0e10cSrcweir int _cdecl 927cdf0e10cSrcweir #else 928cdf0e10cSrcweir int 929cdf0e10cSrcweir #endif 930cdf0e10cSrcweir #endif 931cdf0e10cSrcweir Svx_CompareMap(const void* pSmaller, const void* pBigger ) 932cdf0e10cSrcweir { 933cdf0e10cSrcweir int nDiff = strcmp( ((const SfxItemPropertyMapEntry*)pSmaller)->pName, 934cdf0e10cSrcweir ((const SfxItemPropertyMapEntry*)pBigger)->pName ); 935cdf0e10cSrcweir return nDiff; 936cdf0e10cSrcweir } 937cdf0e10cSrcweir 938cdf0e10cSrcweir // --------------------------------------------------------------------- 939cdf0e10cSrcweir 940cdf0e10cSrcweir SvxUnoPropertyMapProvider::SvxUnoPropertyMapProvider() 941cdf0e10cSrcweir { 942cdf0e10cSrcweir for(sal_uInt16 i=0;i<SVXMAP_END; i++) 943cdf0e10cSrcweir { 944cdf0e10cSrcweir aSetArr[i] = 0; 945cdf0e10cSrcweir aMapArr[i] = 0; 946cdf0e10cSrcweir } 947cdf0e10cSrcweir } 948cdf0e10cSrcweir 949cdf0e10cSrcweir SvxUnoPropertyMapProvider::~SvxUnoPropertyMapProvider() 950cdf0e10cSrcweir { 951cdf0e10cSrcweir for(sal_uInt16 i=0;i<SVXMAP_END; i++) 952cdf0e10cSrcweir delete aSetArr[i]; 953cdf0e10cSrcweir } 954cdf0e10cSrcweir 955cdf0e10cSrcweir // --------------------------------------------------------------------- 956cdf0e10cSrcweir 957cdf0e10cSrcweir /*void SvxUnoPropertyMapProvider::Sort(sal_uInt16 nId) 958cdf0e10cSrcweir { 959cdf0e10cSrcweir SfxItemPropertyMapEntry* pTemp = aMapArr[nId]; 960cdf0e10cSrcweir sal_uInt16 i = 0; 961cdf0e10cSrcweir while(pTemp[i].pName) { i++; } 962cdf0e10cSrcweir qsort(aMapArr[nId], i, sizeof(SfxItemPropertyMapEntry), Svx_CompareMap); 963cdf0e10cSrcweir }*/ 964cdf0e10cSrcweir 965cdf0e10cSrcweir // --------------------------------------------------------------------- 966cdf0e10cSrcweir 967cdf0e10cSrcweir const SfxItemPropertyMapEntry* SvxUnoPropertyMapProvider::GetMap(sal_uInt16 nPropertyId) 968cdf0e10cSrcweir { 969cdf0e10cSrcweir DBG_ASSERT(nPropertyId < SVXMAP_END, "Id ?" ); 970cdf0e10cSrcweir if(!aMapArr[nPropertyId]) { 971cdf0e10cSrcweir switch(nPropertyId) { 972cdf0e10cSrcweir case SVXMAP_SHAPE: aMapArr[SVXMAP_SHAPE]=ImplGetSvxShapePropertyMap(); break; 973cdf0e10cSrcweir case SVXMAP_CONNECTOR: aMapArr[SVXMAP_CONNECTOR]=ImplGetSvxConnectorPropertyMap(); break; 974cdf0e10cSrcweir case SVXMAP_DIMENSIONING: aMapArr[SVXMAP_DIMENSIONING]=ImplGetSvxDimensioningPropertyMap(); break; 975cdf0e10cSrcweir case SVXMAP_CIRCLE: aMapArr[SVXMAP_CIRCLE]=ImplGetSvxCirclePropertyMap(); break; 976cdf0e10cSrcweir case SVXMAP_POLYPOLYGON: aMapArr[SVXMAP_POLYPOLYGON]=ImplGetSvxPolyPolygonPropertyMap(); break; 977cdf0e10cSrcweir case SVXMAP_POLYPOLYGONBEZIER: aMapArr[SVXMAP_POLYPOLYGONBEZIER]=ImplGetSvxPolyPolygonBezierPropertyMap(); break; 978cdf0e10cSrcweir case SVXMAP_GRAPHICOBJECT: aMapArr[SVXMAP_GRAPHICOBJECT]=ImplGetSvxGraphicObjectPropertyMap(); break; 979cdf0e10cSrcweir case SVXMAP_3DSCENEOBJECT: aMapArr[SVXMAP_3DSCENEOBJECT]=ImplGetSvx3DSceneObjectPropertyMap(); break; 980cdf0e10cSrcweir case SVXMAP_3DCUBEOBJEKT: aMapArr[SVXMAP_3DCUBEOBJEKT]=ImplGetSvx3DCubeObjectPropertyMap(); break; 981cdf0e10cSrcweir case SVXMAP_3DSPHEREOBJECT: aMapArr[SVXMAP_3DSPHEREOBJECT]=ImplGetSvx3DSphereObjectPropertyMap(); break; 982cdf0e10cSrcweir case SVXMAP_3DLATHEOBJECT: aMapArr[SVXMAP_3DLATHEOBJECT]=ImplGetSvx3DLatheObjectPropertyMap(); break; 983cdf0e10cSrcweir case SVXMAP_3DEXTRUDEOBJECT: aMapArr[SVXMAP_3DEXTRUDEOBJECT]=ImplGetSvx3DExtrudeObjectPropertyMap(); break; 984cdf0e10cSrcweir case SVXMAP_3DPOLYGONOBJECT: aMapArr[SVXMAP_3DPOLYGONOBJECT]=ImplGetSvx3DPolygonObjectPropertyMap(); break; 985cdf0e10cSrcweir case SVXMAP_ALL: aMapArr[SVXMAP_ALL]=ImplGetSvxAllPropertyMap(); break; 986cdf0e10cSrcweir case SVXMAP_GROUP: aMapArr[SVXMAP_GROUP]=ImplGetSvxGroupPropertyMap(); break; 987cdf0e10cSrcweir case SVXMAP_CAPTION: aMapArr[SVXMAP_CAPTION]=ImplGetSvxCaptionPropertyMap(); break; 988cdf0e10cSrcweir case SVXMAP_OLE2: aMapArr[SVXMAP_OLE2]=ImplGetSvxOle2PropertyMap(); break; 989cdf0e10cSrcweir case SVXMAP_PLUGIN: aMapArr[SVXMAP_PLUGIN]=ImplGetSvxPluginPropertyMap(); break; 990cdf0e10cSrcweir case SVXMAP_FRAME: aMapArr[SVXMAP_FRAME]=ImplGetSvxFramePropertyMap(); break; 991cdf0e10cSrcweir case SVXMAP_APPLET: aMapArr[SVXMAP_APPLET]=ImplGetSvxAppletPropertyMap(); break; 992cdf0e10cSrcweir case SVXMAP_CONTROL: aMapArr[SVXMAP_CONTROL]=ImplGetSvxControlShapePropertyMap(); break; 993cdf0e10cSrcweir case SVXMAP_TEXT: aMapArr[SVXMAP_TEXT]=ImplGetSvxTextShapePropertyMap(); break; 994cdf0e10cSrcweir case SVXMAP_CUSTOMSHAPE: aMapArr[SVXMAP_CUSTOMSHAPE]=ImplGetSvxCustomShapePropertyMap(); break; 995cdf0e10cSrcweir case SVXMAP_MEDIA: aMapArr[SVXMAP_MEDIA]=ImplGetSvxMediaShapePropertyMap(); break; 996cdf0e10cSrcweir case SVXMAP_TABLE: aMapArr[SVXMAP_TABLE]=ImplGetSvxTableShapePropertyMap(); break; 997cdf0e10cSrcweir case SVXMAP_PAGE: aMapArr[SVXMAP_PAGE] = ImplGetSvxPageShapePropertyMap(); break; 998cdf0e10cSrcweir 999cdf0e10cSrcweir default: 1000cdf0e10cSrcweir DBG_ERROR( "Unknown property map for SvxUnoPropertyMapProvider!" ); 1001cdf0e10cSrcweir } 1002cdf0e10cSrcweir // Sort(nPropertyId); 1003cdf0e10cSrcweir } 1004cdf0e10cSrcweir return aMapArr[nPropertyId]; 1005cdf0e10cSrcweir } 1006cdf0e10cSrcweir const SvxItemPropertySet* SvxUnoPropertyMapProvider::GetPropertySet(sal_uInt16 nPropertyId, SfxItemPool& rPool) 1007cdf0e10cSrcweir { 1008cdf0e10cSrcweir if( !aSetArr[nPropertyId] ) 1009cdf0e10cSrcweir aSetArr[nPropertyId] = new SvxItemPropertySet( GetMap( nPropertyId ), rPool ); 1010cdf0e10cSrcweir return aSetArr[nPropertyId]; 1011cdf0e10cSrcweir } 1012cdf0e10cSrcweir 1013cdf0e10cSrcweir // ##################################################################### 1014cdf0e10cSrcweir 1015cdf0e10cSrcweir /** maps the API constant MeasureUnit to a vcl MapUnit enum. 1016cdf0e10cSrcweir Returns false if conversion is not supported. 1017cdf0e10cSrcweir 1018cdf0e10cSrcweir @cl: for warnings01 I found out that this method never worked so I thin 1019cdf0e10cSrcweir it is not used at all 1020cdf0e10cSrcweir sal_Bool SvxMeasureUnitToMapUnit( const short eApi, int& eVcl ) throw() 1021cdf0e10cSrcweir { 1022cdf0e10cSrcweir switch( eVcl ) 1023cdf0e10cSrcweir { 1024cdf0e10cSrcweir case util::MeasureUnit::MM_100TH: eVcl = MAP_100TH_MM; break; 1025cdf0e10cSrcweir case util::MeasureUnit::MM_10TH: eVcl = MAP_10TH_MM; break; 1026cdf0e10cSrcweir case util::MeasureUnit::MM: eVcl = MAP_MM; break; 1027cdf0e10cSrcweir case util::MeasureUnit::CM: eVcl = MAP_CM; break; 1028cdf0e10cSrcweir case util::MeasureUnit::INCH_1000TH: eVcl = MAP_1000TH_INCH; break; 1029cdf0e10cSrcweir case util::MeasureUnit::INCH_100TH: eVcl = MAP_100TH_INCH; break; 1030cdf0e10cSrcweir case util::MeasureUnit::INCH_10TH: eVcl = MAP_10TH_INCH; break; 1031cdf0e10cSrcweir case util::MeasureUnit::INCH: eVcl = MAP_INCH; break; 1032cdf0e10cSrcweir case util::MeasureUnit::POINT: eVcl = MAP_POINT; break; 1033cdf0e10cSrcweir case util::MeasureUnit::TWIP: eVcl = MAP_TWIP; break; 1034cdf0e10cSrcweir case util::MeasureUnit::PERCENT: eVcl = MAP_RELATIVE; break; 1035cdf0e10cSrcweir default: 1036cdf0e10cSrcweir return false; 1037cdf0e10cSrcweir } 1038cdf0e10cSrcweir 1039cdf0e10cSrcweir return true; 1040cdf0e10cSrcweir } 1041cdf0e10cSrcweir */ 1042cdf0e10cSrcweir 1043cdf0e10cSrcweir /** maps the vcl MapUnit enum to a API constant MeasureUnit. 1044cdf0e10cSrcweir Returns false if conversion is not supported. 1045cdf0e10cSrcweir */ 1046cdf0e10cSrcweir sal_Bool SvxMapUnitToMeasureUnit( const short eVcl, short& eApi ) throw() 1047cdf0e10cSrcweir { 1048cdf0e10cSrcweir switch( eVcl ) 1049cdf0e10cSrcweir { 1050cdf0e10cSrcweir case MAP_100TH_MM: eApi = util::MeasureUnit::MM_100TH; break; 1051cdf0e10cSrcweir case MAP_10TH_MM: eApi = util::MeasureUnit::MM_10TH; break; 1052cdf0e10cSrcweir case MAP_MM: eApi = util::MeasureUnit::MM; break; 1053cdf0e10cSrcweir case MAP_CM: eApi = util::MeasureUnit::CM; break; 1054cdf0e10cSrcweir case MAP_1000TH_INCH: eApi = util::MeasureUnit::INCH_1000TH; break; 1055cdf0e10cSrcweir case MAP_100TH_INCH: eApi = util::MeasureUnit::INCH_100TH; break; 1056cdf0e10cSrcweir case MAP_10TH_INCH: eApi = util::MeasureUnit::INCH_10TH; break; 1057cdf0e10cSrcweir case MAP_INCH: eApi = util::MeasureUnit::INCH; break; 1058cdf0e10cSrcweir case MAP_POINT: eApi = util::MeasureUnit::POINT; break; 1059cdf0e10cSrcweir case MAP_TWIP: eApi = util::MeasureUnit::TWIP; break; 1060cdf0e10cSrcweir case MAP_RELATIVE: eApi = util::MeasureUnit::PERCENT; break; 1061cdf0e10cSrcweir default: 1062cdf0e10cSrcweir return false; 1063cdf0e10cSrcweir } 1064cdf0e10cSrcweir 1065cdf0e10cSrcweir return true; 1066cdf0e10cSrcweir } 1067cdf0e10cSrcweir 1068cdf0e10cSrcweir /** maps the API constant MeasureUnit to a vcl MapUnit enum. 1069cdf0e10cSrcweir Returns false if conversion is not supported. 1070cdf0e10cSrcweir */ 1071cdf0e10cSrcweir 1072cdf0e10cSrcweir sal_Bool SvxMeasureUnitToFieldUnit( const short eApi, short& eVcl ) throw() 1073cdf0e10cSrcweir { 1074cdf0e10cSrcweir switch( eApi ) 1075cdf0e10cSrcweir { 1076cdf0e10cSrcweir case util::MeasureUnit::MM: eVcl = FUNIT_MM; break; 1077cdf0e10cSrcweir case util::MeasureUnit::CM: eVcl = FUNIT_CM; break; 1078cdf0e10cSrcweir case util::MeasureUnit::M: eVcl = FUNIT_M; break; 1079cdf0e10cSrcweir case util::MeasureUnit::KM: eVcl = FUNIT_KM; break; 1080cdf0e10cSrcweir case util::MeasureUnit::TWIP: eVcl = FUNIT_TWIP; break; 1081cdf0e10cSrcweir case util::MeasureUnit::POINT: eVcl = FUNIT_POINT; break; 1082cdf0e10cSrcweir case util::MeasureUnit::PICA: eVcl = FUNIT_PICA; break; 1083cdf0e10cSrcweir case util::MeasureUnit::INCH: eVcl = FUNIT_INCH; break; 1084cdf0e10cSrcweir case util::MeasureUnit::FOOT: eVcl = FUNIT_FOOT; break; 1085cdf0e10cSrcweir case util::MeasureUnit::MILE: eVcl = FUNIT_MILE; break; 1086cdf0e10cSrcweir case util::MeasureUnit::PERCENT: eVcl = FUNIT_PERCENT; break; 1087cdf0e10cSrcweir case util::MeasureUnit::MM_100TH: eVcl = FUNIT_100TH_MM; break; 1088cdf0e10cSrcweir default: 1089cdf0e10cSrcweir return sal_False; 1090cdf0e10cSrcweir } 1091cdf0e10cSrcweir 1092cdf0e10cSrcweir return sal_True; 1093cdf0e10cSrcweir } 1094cdf0e10cSrcweir 1095cdf0e10cSrcweir /** maps the vcl MapUnit enum to a API constant MeasureUnit. 1096cdf0e10cSrcweir Returns false if conversion is not supported. 1097cdf0e10cSrcweir */ 1098cdf0e10cSrcweir sal_Bool SvxFieldUnitToMeasureUnit( const short eVcl, short& eApi ) throw() 1099cdf0e10cSrcweir { 1100cdf0e10cSrcweir switch( eVcl ) 1101cdf0e10cSrcweir { 1102cdf0e10cSrcweir case FUNIT_MM: eApi = util::MeasureUnit::MM; break; 1103cdf0e10cSrcweir case FUNIT_CM: eApi = util::MeasureUnit::CM; break; 1104cdf0e10cSrcweir case FUNIT_M: eApi = util::MeasureUnit::M; break; 1105cdf0e10cSrcweir case FUNIT_KM: eApi = util::MeasureUnit::KM; break; 1106cdf0e10cSrcweir case FUNIT_TWIP: eApi = util::MeasureUnit::TWIP; break; 1107cdf0e10cSrcweir case FUNIT_POINT: eApi = util::MeasureUnit::POINT; break; 1108cdf0e10cSrcweir case FUNIT_PICA: eApi = util::MeasureUnit::PICA; break; 1109cdf0e10cSrcweir case FUNIT_INCH: eApi = util::MeasureUnit::INCH; break; 1110cdf0e10cSrcweir case FUNIT_FOOT: eApi = util::MeasureUnit::FOOT; break; 1111cdf0e10cSrcweir case FUNIT_MILE: eApi = util::MeasureUnit::MILE; break; 1112cdf0e10cSrcweir case FUNIT_PERCENT: eApi = util::MeasureUnit::PERCENT; break; 1113cdf0e10cSrcweir case FUNIT_100TH_MM: eApi = util::MeasureUnit::MM_100TH; break; 1114cdf0e10cSrcweir default: 1115cdf0e10cSrcweir return sal_False; 1116cdf0e10cSrcweir } 1117cdf0e10cSrcweir 1118cdf0e10cSrcweir return sal_True; 1119cdf0e10cSrcweir } 1120cdf0e10cSrcweir 1121cdf0e10cSrcweir bool SvxUnoGetResourceRanges( const short nWhich, int& nApiResIds, int& nIntResIds, int& nCount ) throw() 1122cdf0e10cSrcweir { 1123cdf0e10cSrcweir switch( nWhich ) 1124cdf0e10cSrcweir { 1125cdf0e10cSrcweir case XATTR_FILLBITMAP: 1126cdf0e10cSrcweir nApiResIds = RID_SVXSTR_BMP_DEF_START; 1127cdf0e10cSrcweir nIntResIds = RID_SVXSTR_BMP_START; 1128cdf0e10cSrcweir nCount = RID_SVXSTR_BMP_DEF_END - RID_SVXSTR_BMP_DEF_START + 1; 1129cdf0e10cSrcweir break; 1130cdf0e10cSrcweir 1131cdf0e10cSrcweir case XATTR_LINEDASH: 1132cdf0e10cSrcweir nApiResIds = RID_SVXSTR_DASH_DEF_START; 1133cdf0e10cSrcweir nIntResIds = RID_SVXSTR_DASH_START; 1134cdf0e10cSrcweir nCount = RID_SVXSTR_DASH_DEF_END - RID_SVXSTR_DASH_DEF_START + 1; 1135cdf0e10cSrcweir break; 1136cdf0e10cSrcweir 1137cdf0e10cSrcweir case XATTR_LINESTART: 1138cdf0e10cSrcweir case XATTR_LINEEND: 1139cdf0e10cSrcweir nApiResIds = RID_SVXSTR_LEND_DEF_START; 1140cdf0e10cSrcweir nIntResIds = RID_SVXSTR_LEND_START; 1141cdf0e10cSrcweir nCount = RID_SVXSTR_LEND_DEF_END - RID_SVXSTR_LEND_DEF_START + 1; 1142cdf0e10cSrcweir break; 1143cdf0e10cSrcweir 1144cdf0e10cSrcweir case XATTR_FILLGRADIENT: 1145cdf0e10cSrcweir nApiResIds = RID_SVXSTR_GRDT_DEF_START; 1146cdf0e10cSrcweir nIntResIds = RID_SVXSTR_GRDT_START; 1147cdf0e10cSrcweir nCount = RID_SVXSTR_GRDT_DEF_END - RID_SVXSTR_GRDT_DEF_START + 1; 1148cdf0e10cSrcweir break; 1149cdf0e10cSrcweir 1150cdf0e10cSrcweir case XATTR_FILLHATCH: 1151cdf0e10cSrcweir nApiResIds = RID_SVXSTR_HATCH_DEF_START; 1152cdf0e10cSrcweir nIntResIds = RID_SVXSTR_HATCH_START; 1153cdf0e10cSrcweir nCount = RID_SVXSTR_HATCH_DEF_END - RID_SVXSTR_HATCH_DEF_START + 1; 1154cdf0e10cSrcweir break; 1155cdf0e10cSrcweir 1156cdf0e10cSrcweir case XATTR_FILLFLOATTRANSPARENCE: 1157cdf0e10cSrcweir nApiResIds = RID_SVXSTR_TRASNGR_DEF_START; 1158cdf0e10cSrcweir nIntResIds = RID_SVXSTR_TRASNGR_START; 1159cdf0e10cSrcweir nCount = RID_SVXSTR_TRASNGR_DEF_END - RID_SVXSTR_TRASNGR_DEF_START + 1; 1160cdf0e10cSrcweir break; 1161cdf0e10cSrcweir 1162cdf0e10cSrcweir default: 1163cdf0e10cSrcweir return sal_False; 1164cdf0e10cSrcweir } 1165cdf0e10cSrcweir 1166cdf0e10cSrcweir return sal_True; 1167cdf0e10cSrcweir } 1168cdf0e10cSrcweir 1169cdf0e10cSrcweir /*sal_Int16 SvxUnoGetWhichIdForNamedProperty( const ::rtl::OUString & rPropName ) 1170cdf0e10cSrcweir { 1171cdf0e10cSrcweir sal_Int16 nWhich = 0; 1172cdf0e10cSrcweir 1173cdf0e10cSrcweir const SfxItemPropertyMapEntry* pMap = aSvxMapProvider.GetMap( SVXMAP_SHAPE ); 1174cdf0e10cSrcweir if( pMap ) 1175cdf0e10cSrcweir { 1176cdf0e10cSrcweir const SfxItemPropertyMapEntry* pFound = SfxItemPropertyMapEntry::getByName( pMap, rPropName ); 1177cdf0e10cSrcweir if( pFound ) 1178cdf0e10cSrcweir nWhich = pFound->nWID; 1179cdf0e10cSrcweir } 1180cdf0e10cSrcweir 1181cdf0e10cSrcweir return nWhich; 1182cdf0e10cSrcweir } */ 1183cdf0e10cSrcweir 1184cdf0e10cSrcweir bool SvxUnoConvertResourceString( int nSourceResIds, int nDestResIds, int nCount, String& rString ) throw() 1185cdf0e10cSrcweir { 1186cdf0e10cSrcweir // first, calculate the search string length without an optional number behind the name 1187cdf0e10cSrcweir xub_StrLen nLength = rString.Len(); 1188cdf0e10cSrcweir while( nLength > 0 ) 1189cdf0e10cSrcweir { 1190cdf0e10cSrcweir const sal_Unicode nChar = rString.GetChar( nLength - 1 ); 1191cdf0e10cSrcweir if( (nChar < '0') || (nChar > '9') ) 1192cdf0e10cSrcweir break; 1193cdf0e10cSrcweir 1194cdf0e10cSrcweir nLength--; 1195cdf0e10cSrcweir } 1196cdf0e10cSrcweir 1197cdf0e10cSrcweir // if we cut off a number, also cut of some spaces 1198cdf0e10cSrcweir if( nLength != rString.Len() ) 1199cdf0e10cSrcweir { 1200cdf0e10cSrcweir while( nLength > 0 ) 1201cdf0e10cSrcweir { 1202cdf0e10cSrcweir const sal_Unicode nChar = rString.GetChar( nLength - 1 ); 1203cdf0e10cSrcweir if( nChar != ' ' ) 1204cdf0e10cSrcweir break; 1205cdf0e10cSrcweir 1206cdf0e10cSrcweir nLength--; 1207cdf0e10cSrcweir } 1208cdf0e10cSrcweir } 1209cdf0e10cSrcweir 1210cdf0e10cSrcweir const String aShortString( rString.Copy( 0, nLength ) ); 1211cdf0e10cSrcweir 1212cdf0e10cSrcweir int i; 1213cdf0e10cSrcweir for( i = 0; i < nCount; i++ ) 1214cdf0e10cSrcweir { 1215cdf0e10cSrcweir sal_uInt16 nResId = (sal_uInt16)(nSourceResIds + i); 1216cdf0e10cSrcweir const ResId aRes( SVX_RES(nResId)); 1217cdf0e10cSrcweir const String aCompare( aRes ); 1218cdf0e10cSrcweir if( aShortString == aCompare ) 1219cdf0e10cSrcweir { 1220cdf0e10cSrcweir sal_uInt16 nNewResId = (sal_uInt16)(nDestResIds + i); 1221cdf0e10cSrcweir ResId aNewRes( SVX_RES( nNewResId )); 1222cdf0e10cSrcweir rString.Replace( 0, aShortString.Len(), String( aNewRes ) ); 1223cdf0e10cSrcweir return sal_True; 1224cdf0e10cSrcweir } 1225cdf0e10cSrcweir else if( rString == aCompare ) 1226cdf0e10cSrcweir { 1227cdf0e10cSrcweir sal_uInt16 nNewResId = (sal_uInt16)(nDestResIds + i); 1228cdf0e10cSrcweir ResId aNewRes( SVX_RES( nNewResId )); 1229cdf0e10cSrcweir rString = String( aNewRes ); 1230cdf0e10cSrcweir return sal_True; 1231cdf0e10cSrcweir } 1232cdf0e10cSrcweir } 1233cdf0e10cSrcweir 1234cdf0e10cSrcweir return sal_False; 1235cdf0e10cSrcweir } 1236cdf0e10cSrcweir 1237cdf0e10cSrcweir static sal_uInt16 __READONLY_DATA SvxUnoColorNameDefResId[] = 1238cdf0e10cSrcweir { 1239cdf0e10cSrcweir RID_SVXSTR_BLUEGREY_DEF, 1240cdf0e10cSrcweir RID_SVXSTR_BLACK_DEF, 1241cdf0e10cSrcweir RID_SVXSTR_BLUE_DEF, 1242cdf0e10cSrcweir RID_SVXSTR_GREEN_DEF, 1243cdf0e10cSrcweir RID_SVXSTR_CYAN_DEF, 1244cdf0e10cSrcweir RID_SVXSTR_RED_DEF, 1245cdf0e10cSrcweir RID_SVXSTR_MAGENTA_DEF, 1246cdf0e10cSrcweir RID_SVXSTR_BROWN_DEF, 1247cdf0e10cSrcweir RID_SVXSTR_GREY_DEF, 1248cdf0e10cSrcweir RID_SVXSTR_LIGHTGREY_DEF, 1249cdf0e10cSrcweir RID_SVXSTR_LIGHTBLUE_DEF, 1250cdf0e10cSrcweir RID_SVXSTR_LIGHTGREEN_DEF, 1251cdf0e10cSrcweir RID_SVXSTR_LIGHTCYAN_DEF, 1252cdf0e10cSrcweir RID_SVXSTR_LIGHTRED_DEF, 1253cdf0e10cSrcweir RID_SVXSTR_LIGHTMAGENTA_DEF, 1254cdf0e10cSrcweir RID_SVXSTR_YELLOW_DEF, 1255cdf0e10cSrcweir RID_SVXSTR_WHITE_DEF, 1256cdf0e10cSrcweir RID_SVXSTR_ORANGE_DEF, 1257cdf0e10cSrcweir RID_SVXSTR_VIOLET_DEF, 1258cdf0e10cSrcweir RID_SVXSTR_BORDEAUX_DEF, 1259cdf0e10cSrcweir RID_SVXSTR_PALE_YELLOW_DEF, 1260cdf0e10cSrcweir RID_SVXSTR_PALE_GREEN_DEF, 1261cdf0e10cSrcweir RID_SVXSTR_DKVIOLET_DEF, 1262cdf0e10cSrcweir RID_SVXSTR_SALMON_DEF, 1263cdf0e10cSrcweir RID_SVXSTR_SEABLUE_DEF, 1264cdf0e10cSrcweir RID_SVXSTR_COLOR_SUN_DEF, 1265cdf0e10cSrcweir RID_SVXSTR_COLOR_CHART_DEF 1266cdf0e10cSrcweir }; 1267cdf0e10cSrcweir 1268cdf0e10cSrcweir static sal_uInt16 __READONLY_DATA SvxUnoColorNameResId[] = 1269cdf0e10cSrcweir { 1270cdf0e10cSrcweir RID_SVXSTR_BLUEGREY, 1271cdf0e10cSrcweir RID_SVXSTR_BLACK, 1272cdf0e10cSrcweir RID_SVXSTR_BLUE, 1273cdf0e10cSrcweir RID_SVXSTR_GREEN, 1274cdf0e10cSrcweir RID_SVXSTR_CYAN, 1275cdf0e10cSrcweir RID_SVXSTR_RED, 1276cdf0e10cSrcweir RID_SVXSTR_MAGENTA, 1277cdf0e10cSrcweir RID_SVXSTR_BROWN, 1278cdf0e10cSrcweir RID_SVXSTR_GREY, 1279cdf0e10cSrcweir RID_SVXSTR_LIGHTGREY, 1280cdf0e10cSrcweir RID_SVXSTR_LIGHTBLUE, 1281cdf0e10cSrcweir RID_SVXSTR_LIGHTGREEN, 1282cdf0e10cSrcweir RID_SVXSTR_LIGHTCYAN, 1283cdf0e10cSrcweir RID_SVXSTR_LIGHTRED, 1284cdf0e10cSrcweir RID_SVXSTR_LIGHTMAGENTA, 1285cdf0e10cSrcweir RID_SVXSTR_YELLOW, 1286cdf0e10cSrcweir RID_SVXSTR_WHITE, 1287cdf0e10cSrcweir RID_SVXSTR_ORANGE, 1288cdf0e10cSrcweir RID_SVXSTR_VIOLET, 1289cdf0e10cSrcweir RID_SVXSTR_BORDEAUX, 1290cdf0e10cSrcweir RID_SVXSTR_PALE_YELLOW, 1291cdf0e10cSrcweir RID_SVXSTR_PALE_GREEN, 1292cdf0e10cSrcweir RID_SVXSTR_DKVIOLET, 1293cdf0e10cSrcweir RID_SVXSTR_SALMON, 1294cdf0e10cSrcweir RID_SVXSTR_SEABLUE, 1295cdf0e10cSrcweir RID_SVXSTR_COLOR_SUN, 1296cdf0e10cSrcweir RID_SVXSTR_COLOR_CHART 1297cdf0e10cSrcweir }; 1298cdf0e10cSrcweir 1299cdf0e10cSrcweir bool SvxUnoConvertResourceString( sal_uInt16* pSourceResIds, sal_uInt16* pDestResIds, int nCount, String& rString ) throw() 1300cdf0e10cSrcweir { 1301cdf0e10cSrcweir int i = 0; 1302cdf0e10cSrcweir 1303cdf0e10cSrcweir for( i = 0; i < nCount; i++ ) 1304cdf0e10cSrcweir { 1305cdf0e10cSrcweir String aStrDefName = SVX_RESSTR( pSourceResIds[i] ); 1306cdf0e10cSrcweir if( rString.Search( aStrDefName ) == 0 ) 1307cdf0e10cSrcweir { 1308cdf0e10cSrcweir String aReplace = SVX_RESSTR( pDestResIds[i] ); 1309cdf0e10cSrcweir rString.Replace( 0, aStrDefName.Len(), aReplace ); 1310cdf0e10cSrcweir return true; 1311cdf0e10cSrcweir } 1312cdf0e10cSrcweir } 1313cdf0e10cSrcweir 1314cdf0e10cSrcweir return false; 1315cdf0e10cSrcweir } 1316cdf0e10cSrcweir 1317cdf0e10cSrcweir /** if the given name is a predefined name for the current language it is replaced by 1318cdf0e10cSrcweir the corresponding api name. 1319cdf0e10cSrcweir */ 1320cdf0e10cSrcweir void SvxUnogetApiNameForItem( const sal_Int16 nWhich, const String& rInternalName, rtl::OUString& rApiName ) throw() 1321cdf0e10cSrcweir { 1322cdf0e10cSrcweir #ifndef SVX_LIGHT 1323cdf0e10cSrcweir String aNew = rInternalName; 1324cdf0e10cSrcweir 1325cdf0e10cSrcweir if( nWhich == XATTR_LINECOLOR ) 1326cdf0e10cSrcweir { 1327cdf0e10cSrcweir if( SvxUnoConvertResourceString( (sal_uInt16*)SvxUnoColorNameResId, (sal_uInt16*)SvxUnoColorNameDefResId, sizeof( SvxUnoColorNameResId ) / sizeof( sal_uInt16 ), aNew ) ) 1328cdf0e10cSrcweir { 1329cdf0e10cSrcweir rApiName = aNew; 1330cdf0e10cSrcweir return; 1331cdf0e10cSrcweir } 1332cdf0e10cSrcweir } 1333cdf0e10cSrcweir else 1334cdf0e10cSrcweir { 1335cdf0e10cSrcweir int nApiResIds; 1336cdf0e10cSrcweir int nIntResIds; 1337cdf0e10cSrcweir int nCount; 1338cdf0e10cSrcweir 1339cdf0e10cSrcweir if( SvxUnoGetResourceRanges( nWhich, nApiResIds, nIntResIds, nCount ) ) 1340cdf0e10cSrcweir { 1341cdf0e10cSrcweir if(SvxUnoConvertResourceString( nIntResIds, nApiResIds, nCount, aNew ) ) 1342cdf0e10cSrcweir { 1343cdf0e10cSrcweir rApiName = aNew; 1344cdf0e10cSrcweir return; 1345cdf0e10cSrcweir } 1346cdf0e10cSrcweir } 1347cdf0e10cSrcweir } 1348cdf0e10cSrcweir #endif 1349cdf0e10cSrcweir 1350cdf0e10cSrcweir // just use previous name, if nothing else was found. 1351cdf0e10cSrcweir rApiName = rInternalName; 1352cdf0e10cSrcweir } 1353cdf0e10cSrcweir 1354cdf0e10cSrcweir /** if the given name is a predefined api name it is replaced by the predefined name 1355cdf0e10cSrcweir for the current language. 1356cdf0e10cSrcweir */ 1357cdf0e10cSrcweir void SvxUnogetInternalNameForItem( const sal_Int16 nWhich, const rtl::OUString& rApiName, String& rInternalName ) throw() 1358cdf0e10cSrcweir { 1359cdf0e10cSrcweir #ifndef SVX_LIGHT 1360cdf0e10cSrcweir String aNew = rApiName; 1361cdf0e10cSrcweir 1362cdf0e10cSrcweir if( nWhich == XATTR_LINECOLOR ) 1363cdf0e10cSrcweir { 1364cdf0e10cSrcweir if( SvxUnoConvertResourceString( (sal_uInt16*)SvxUnoColorNameDefResId, (sal_uInt16*)SvxUnoColorNameResId, sizeof( SvxUnoColorNameResId ) / sizeof( sal_uInt16 ), aNew ) ) 1365cdf0e10cSrcweir { 1366cdf0e10cSrcweir rInternalName = aNew; 1367cdf0e10cSrcweir return; 1368cdf0e10cSrcweir } 1369cdf0e10cSrcweir } 1370cdf0e10cSrcweir else 1371cdf0e10cSrcweir { 1372cdf0e10cSrcweir int nApiResIds; 1373cdf0e10cSrcweir int nIntResIds; 1374cdf0e10cSrcweir int nCount; 1375cdf0e10cSrcweir 1376cdf0e10cSrcweir if( SvxUnoGetResourceRanges( nWhich, nApiResIds, nIntResIds, nCount ) ) 1377cdf0e10cSrcweir { 1378cdf0e10cSrcweir if(SvxUnoConvertResourceString( nApiResIds, nIntResIds, nCount, aNew ) ) 1379cdf0e10cSrcweir { 1380cdf0e10cSrcweir rInternalName = aNew; 1381cdf0e10cSrcweir return; 1382cdf0e10cSrcweir } 1383cdf0e10cSrcweir } 1384cdf0e10cSrcweir } 1385cdf0e10cSrcweir #endif // !SVX_LIGHT 1386cdf0e10cSrcweir 1387cdf0e10cSrcweir // just use previous name, if nothing else was found. 1388cdf0e10cSrcweir rInternalName = rApiName; 1389cdf0e10cSrcweir } 1390cdf0e10cSrcweir 1391cdf0e10cSrcweir /////////////////////////////////////////////////////////////////////// 1392cdf0e10cSrcweir 1393cdf0e10cSrcweir comphelper::PropertySetInfo* SvxPropertySetInfoPool::getOrCreate( sal_Int32 nServiceId ) throw() 1394cdf0e10cSrcweir { 1395cdf0e10cSrcweir vos::OGuard aGuard( Application::GetSolarMutex() ); 1396cdf0e10cSrcweir 1397cdf0e10cSrcweir if( nServiceId > SVXUNO_SERVICEID_LASTID ) 1398cdf0e10cSrcweir { 1399cdf0e10cSrcweir DBG_ERROR( "unknown service id!" ); 1400cdf0e10cSrcweir return NULL; 1401cdf0e10cSrcweir } 1402cdf0e10cSrcweir 1403cdf0e10cSrcweir if( mpInfos[ nServiceId ] == NULL ) 1404cdf0e10cSrcweir { 1405cdf0e10cSrcweir mpInfos[nServiceId] = new comphelper::PropertySetInfo(); 1406cdf0e10cSrcweir mpInfos[nServiceId]->acquire(); 1407cdf0e10cSrcweir 1408cdf0e10cSrcweir switch( nServiceId ) 1409cdf0e10cSrcweir { 1410cdf0e10cSrcweir case SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS: 1411cdf0e10cSrcweir mpInfos[SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS]->add( ImplGetSvxDrawingDefaultsPropertyMap() ); 1412cdf0e10cSrcweir break; 1413cdf0e10cSrcweir case SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER: 1414cdf0e10cSrcweir mpInfos[SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER]->add( ImplGetSvxDrawingDefaultsPropertyMap() ); 1415cdf0e10cSrcweir mpInfos[SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER]->remove( OUString( RTL_CONSTASCII_USTRINGPARAM( UNO_NAME_EDIT_PARA_IS_HANGING_PUNCTUATION ) ) ); 1416cdf0e10cSrcweir // OD 13.10.2003 #i18732# - add property map for writer item 'IsFollowingTextFlow' 1417cdf0e10cSrcweir mpInfos[SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER]->add( ImplGetAdditionalWriterDrawingDefaultsPropertyMap() ); 1418cdf0e10cSrcweir break; 1419cdf0e10cSrcweir 1420cdf0e10cSrcweir default: 1421cdf0e10cSrcweir DBG_ERROR( "unknown service id!" ); 1422cdf0e10cSrcweir } 1423cdf0e10cSrcweir } 1424cdf0e10cSrcweir 1425cdf0e10cSrcweir return mpInfos[ nServiceId ]; 1426cdf0e10cSrcweir } 1427cdf0e10cSrcweir 1428cdf0e10cSrcweir comphelper::PropertySetInfo* SvxPropertySetInfoPool::mpInfos[SVXUNO_SERVICEID_LASTID+1] = { NULL }; 1429cdf0e10cSrcweir 1430