/* -*- 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 . */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "shapeimpl.hxx" #include using namespace ::com::sun::star; using namespace ::com::sun::star::beans::PropertyAttribute; using ::com::sun::star::drawing::TextVerticalAdjust; static SfxItemPropertyMapEntry const * ImplGetSvxShapePropertyMap() { static SfxItemPropertyMapEntry const aShapePropertyMap_Impl[] = { EDGERADIUS_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES GLOW_PROPERTIES SOFTEDGE_PROPERTIES SHADOW_PROPERTIES TEXT_PROPERTIES // #FontWork# FONTWORK_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aShapePropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxTextShapePropertyMap() { static SfxItemPropertyMapEntry const aTextShapePropertyMap_Impl[] = { EDGERADIUS_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES_NO_SHEAR LINKTARGET_PROPERTIES GLOW_PROPERTIES SOFTEDGE_PROPERTIES SHADOW_PROPERTIES TEXT_PROPERTIES // #FontWork# FONTWORK_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aTextShapePropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxConnectorPropertyMap() { static SfxItemPropertyMapEntry const aConnectorPropertyMap_Impl[] = { SPECIAL_CONNECTOR_PROPERTIES EDGERADIUS_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES GLOW_PROPERTIES SOFTEDGE_PROPERTIES SHADOW_PROPERTIES TEXT_PROPERTIES // #FontWork# FONTWORK_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aConnectorPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxDimensioningPropertyMap() { static SfxItemPropertyMapEntry const aDimensioningPropertyMap_Impl[] = { SPECIAL_DIMENSIONING_PROPERTIES EDGERADIUS_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES GLOW_PROPERTIES SOFTEDGE_PROPERTIES SHADOW_PROPERTIES TEXT_PROPERTIES // #FontWork# FONTWORK_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aDimensioningPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxCirclePropertyMap() { static SfxItemPropertyMapEntry const aCirclePropertyMap_Impl[] = { SPECIAL_CIRCLE_PROPERTIES EDGERADIUS_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES GLOW_PROPERTIES SOFTEDGE_PROPERTIES SHADOW_PROPERTIES TEXT_PROPERTIES // #FontWork# FONTWORK_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aCirclePropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxPolyPolygonPropertyMap() { static SfxItemPropertyMapEntry const aPolyPolygonPropertyMap_Impl[] = { { u"Geometry", OWN_ATTR_BASE_GEOMETRY, cppu::UnoType::get(), 0, 0 }, SPECIAL_POLYGON_PROPERTIES SPECIAL_POLYPOLYGON_PROPERTIES SPECIAL_POLYPOLYGONBEZIER_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES GLOW_PROPERTIES SOFTEDGE_PROPERTIES SHADOW_PROPERTIES TEXT_PROPERTIES // #FontWork# FONTWORK_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aPolyPolygonPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxGraphicObjectPropertyMap() { static SfxItemPropertyMapEntry const aGraphicObjectPropertyMap_Impl[] = { SPECIAL_GRAPHOBJ_PROPERTIES // #i25616# FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES // #i118485# Full properties now, shear included MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES GLOW_PROPERTIES SOFTEDGE_PROPERTIES SHADOW_PROPERTIES TEXT_PROPERTIES // #FontWork# FONTWORK_PROPERTIES { u"IsMirrored", OWN_ATTR_MIRRORED, cppu::UnoType::get(), 0, 0}, { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"GraphicStream", OWN_ATTR_GRAPHIC_STREAM, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aGraphicObjectPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvx3DSceneObjectPropertyMap() { static SfxItemPropertyMapEntry const a3DSceneObjectPropertyMap_Impl[] = { SPECIAL_3DSCENEOBJECT_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES SHADOW_PROPERTIES { u"", 0, css::uno::Type(), 0, 0 } }; return a3DSceneObjectPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvx3DCubeObjectPropertyMap() { static SfxItemPropertyMapEntry const a3DCubeObjectPropertyMap_Impl[] = { SPECIAL_3DCUBEOBJECT_PROPERTIES MISC_3D_OBJ_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES SHADOW_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return a3DCubeObjectPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvx3DSphereObjectPropertyMap() { static SfxItemPropertyMapEntry const a3DSphereObjectPropertyMap_Impl[] = { SPECIAL_3DSPHEREOBJECT_PROPERTIES MISC_3D_OBJ_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES SHADOW_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return a3DSphereObjectPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvx3DLatheObjectPropertyMap() { static SfxItemPropertyMapEntry const a3DLatheObjectPropertyMap_Impl[] = { SPECIAL_3DLATHEOBJECT_PROPERTIES // #107245# New 3D properties which are possible for lathe and extrude 3d objects SPECIAL_3DLATHEANDEXTRUDEOBJ_PROPERTIES SPECIAL_3DBACKSCALE_PROPERTIES MISC_3D_OBJ_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES SHADOW_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return a3DLatheObjectPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvx3DExtrudeObjectPropertyMap() { static SfxItemPropertyMapEntry const a3DExtrudeObjectPropertyMap_Impl[] = { SPECIAL_3DEXTRUDEOBJECT_PROPERTIES // #107245# New 3D properties which are possible for lathe and extrude 3d objects SPECIAL_3DLATHEANDEXTRUDEOBJ_PROPERTIES SPECIAL_3DBACKSCALE_PROPERTIES MISC_3D_OBJ_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES SHADOW_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return a3DExtrudeObjectPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvx3DPolygonObjectPropertyMap() { static SfxItemPropertyMapEntry const a3DPolygonObjectPropertyMap_Impl[] = { SPECIAL_3DPOLYGONOBJECT_PROPERTIES MISC_3D_OBJ_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES SHADOW_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return a3DPolygonObjectPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxAllPropertyMap() { static SfxItemPropertyMapEntry const aAllPropertyMap_Impl[] = { GLOW_PROPERTIES SOFTEDGE_PROPERTIES SHADOW_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END FILL_PROPERTIES EDGERADIUS_PROPERTIES TEXT_PROPERTIES // #FontWork# FONTWORK_PROPERTIES SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES SPECIAL_CONNECTOR_PROPERTIES SPECIAL_DIMENSIONING_PROPERTIES SPECIAL_CIRCLE_PROPERTIES SPECIAL_POLYGON_PROPERTIES SPECIAL_POLYPOLYGON_PROPERTIES SPECIAL_POLYPOLYGONBEZIER_PROPERTIES SPECIAL_GRAPHOBJ_PROPERTIES SPECIAL_3DSCENEOBJECT_PROPERTIES MISC_3D_OBJ_PROPERTIES SPECIAL_3DCUBEOBJECT_PROPERTIES SPECIAL_3DSPHEREOBJECT_PROPERTIES SPECIAL_3DLATHEOBJECT_PROPERTIES SPECIAL_3DEXTRUDEOBJECT_PROPERTIES // #107245# New 3D properties which are possible for lathe and extrude 3d objects SPECIAL_3DLATHEANDEXTRUDEOBJ_PROPERTIES SPECIAL_3DBACKSCALE_PROPERTIES SPECIAL_3DPOLYGONOBJECT_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, { u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aAllPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxGroupPropertyMap() { static SfxItemPropertyMapEntry const aGroupPropertyMap_Impl[] = { SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES { u"", 0, css::uno::Type(), 0, 0 } }; return aGroupPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxOle2PropertyMap() { static SfxItemPropertyMapEntry const aOle2PropertyMap_Impl[] = { // #i118485# Adding properties for line, fill, text, shadow, fontwork, rotate, shear FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES GLOW_PROPERTIES SOFTEDGE_PROPERTIES SHADOW_PROPERTIES TEXT_PROPERTIES FONTWORK_PROPERTIES { u"ThumbnailGraphic", OWN_ATTR_THUMBNAIL , cppu::UnoType::get(), 0, 0 }, { u"Model", OWN_ATTR_OLEMODEL , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"EmbeddedObject", OWN_ATTR_OLE_EMBEDDED_OBJECT, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"EmbeddedObjectNoNewClient",OWN_ATTR_OLE_EMBEDDED_OBJECT_NONEWCLIENT, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"OriginalSize", OWN_ATTR_OLESIZE , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"CLSID", OWN_ATTR_CLSID , cppu::UnoType::get(), 0, 0 }, { u"IsInternal", OWN_ATTR_INTERNAL_OLE , cppu::UnoType::get() , css::beans::PropertyAttribute::READONLY, 0}, { u"VisibleArea", OWN_ATTR_OLE_VISAREA , cppu::UnoType::get(), 0, 0}, { u"Aspect", OWN_ATTR_OLE_ASPECT , cppu::UnoType::get(), 0, 0}, { UNO_NAME_OLE2_PERSISTNAME, OWN_ATTR_PERSISTNAME , cppu::UnoType::get(), 0, 0 }, { u"LinkURL", OWN_ATTR_OLE_LINKURL , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_GRAPHOBJ_GRAPHIC, OWN_ATTR_VALUE_GRAPHIC , cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aOle2PropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxPluginPropertyMap() { static SfxItemPropertyMapEntry const aPluginPropertyMap_Impl[] = { { u"PluginMimeType", OWN_ATTR_PLUGIN_MIMETYPE , cppu::UnoType::get(), 0, 0}, { u"PluginURL", OWN_ATTR_PLUGIN_URL , cppu::UnoType::get(), 0, 0}, { u"PluginCommands", OWN_ATTR_PLUGIN_COMMANDS , cppu::UnoType>::get(), 0, 0}, { u"Transformation", OWN_ATTR_TRANSFORMATION , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_ZORDER, OWN_ATTR_ZORDER , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERID, SDRATTR_LAYERID , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERNAME,SDRATTR_LAYERNAME , cppu::UnoType::get(), 0, 0}, { UNO_NAME_LINKDISPLAYBITMAP, OWN_ATTR_LDBITMAP , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_LINKDISPLAYNAME, OWN_ATTR_LDNAME , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_OLE2_METAFILE, OWN_ATTR_METAFILE , cppu::UnoType>::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"ThumbnailGraphic", OWN_ATTR_THUMBNAIL , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_MOVEPROTECT, SDRATTR_OBJMOVEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_MISC_OBJ_SIZEPROTECT, SDRATTR_OBJSIZEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_OLE2_PERSISTNAME, OWN_ATTR_PERSISTNAME , cppu::UnoType::get(), 0, 0 }, { u"LinkURL", OWN_ATTR_OLE_LINKURL , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_BOUNDRECT, OWN_ATTR_BOUNDRECT, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"VisibleArea", OWN_ATTR_OLE_VISAREA , cppu::UnoType::get(), 0, 0}, { u"UINameSingular", OWN_ATTR_UINAME_SINGULAR , ::cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, // #i68101# { UNO_NAME_MISC_OBJ_TITLE, OWN_ATTR_MISC_OBJ_TITLE , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_DESCRIPTION, OWN_ATTR_MISC_OBJ_DESCRIPTION , cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aPluginPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxFramePropertyMap() { //TODO/LATER: new properties for ScrollingMode and DefaultBorder static SfxItemPropertyMapEntry const aFramePropertyMap_Impl[] = { { u"FrameURL", OWN_ATTR_FRAME_URL , cppu::UnoType::get(), 0, 0}, { u"FrameName", OWN_ATTR_FRAME_NAME , cppu::UnoType::get(), 0, 0}, { u"FrameIsAutoScroll", OWN_ATTR_FRAME_ISAUTOSCROLL , cppu::UnoType::get() , css::beans::PropertyAttribute::MAYBEVOID, 0}, { u"FrameIsBorder", OWN_ATTR_FRAME_ISBORDER , cppu::UnoType::get() , 0, 0}, { u"FrameMarginWidth", OWN_ATTR_FRAME_MARGIN_WIDTH , cppu::UnoType::get(), 0, 0}, { u"FrameMarginHeight", OWN_ATTR_FRAME_MARGIN_HEIGHT, cppu::UnoType::get(), 0, 0}, { u"Transformation", OWN_ATTR_TRANSFORMATION , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_ZORDER, OWN_ATTR_ZORDER , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERID, SDRATTR_LAYERID , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERNAME,SDRATTR_LAYERNAME , cppu::UnoType::get(), 0, 0}, { UNO_NAME_LINKDISPLAYBITMAP, OWN_ATTR_LDBITMAP , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_LINKDISPLAYNAME, OWN_ATTR_LDNAME , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_OLE2_METAFILE, OWN_ATTR_METAFILE , cppu::UnoType>::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"ThumbnailGraphic", OWN_ATTR_THUMBNAIL , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_MOVEPROTECT, SDRATTR_OBJMOVEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_MISC_OBJ_SIZEPROTECT, SDRATTR_OBJSIZEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_OLE2_PERSISTNAME, OWN_ATTR_PERSISTNAME , cppu::UnoType::get(), 0, 0 }, { u"LinkURL", OWN_ATTR_OLE_LINKURL , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_BOUNDRECT, OWN_ATTR_BOUNDRECT, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"VisibleArea", OWN_ATTR_OLE_VISAREA , cppu::UnoType::get(), 0, 0}, { u"UINameSingular", OWN_ATTR_UINAME_SINGULAR , ::cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, // #i68101# { UNO_NAME_MISC_OBJ_TITLE, OWN_ATTR_MISC_OBJ_TITLE , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_DESCRIPTION, OWN_ATTR_MISC_OBJ_DESCRIPTION , cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aFramePropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxAppletPropertyMap() { static SfxItemPropertyMapEntry const aAppletPropertyMap_Impl[] = { { u"AppletCodeBase", OWN_ATTR_APPLET_CODEBASE , cppu::UnoType::get(), 0, 0}, { u"AppletName", OWN_ATTR_APPLET_NAME , cppu::UnoType::get(), 0, 0}, { u"AppletCode", OWN_ATTR_APPLET_CODE , cppu::UnoType::get(), 0, 0}, { u"AppletCommands", OWN_ATTR_APPLET_COMMANDS , cppu::UnoType>::get(), 0, 0}, { u"AppletDocBase", OWN_ATTR_APPLET_DOCBASE , cppu::UnoType::get(), 0, 0}, { u"AppletIsScript", OWN_ATTR_APPLET_ISSCRIPT , cppu::UnoType::get(), 0, 0 }, { u"Transformation", OWN_ATTR_TRANSFORMATION , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_ZORDER, OWN_ATTR_ZORDER , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERID, SDRATTR_LAYERID , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERNAME,SDRATTR_LAYERNAME , cppu::UnoType::get(), 0, 0}, { UNO_NAME_LINKDISPLAYBITMAP, OWN_ATTR_LDBITMAP , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_LINKDISPLAYNAME, OWN_ATTR_LDNAME , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_OLE2_METAFILE, OWN_ATTR_METAFILE , cppu::UnoType>::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"ThumbnailGraphic", OWN_ATTR_THUMBNAIL , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_MOVEPROTECT, SDRATTR_OBJMOVEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_MISC_OBJ_SIZEPROTECT, SDRATTR_OBJSIZEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_OLE2_PERSISTNAME, OWN_ATTR_PERSISTNAME , cppu::UnoType::get(), 0, 0 }, { u"LinkURL", OWN_ATTR_OLE_LINKURL , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_BOUNDRECT, OWN_ATTR_BOUNDRECT, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"VisibleArea", OWN_ATTR_OLE_VISAREA , cppu::UnoType::get(), 0, 0}, { u"UINameSingular", OWN_ATTR_UINAME_SINGULAR , ::cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, // #i68101# { UNO_NAME_MISC_OBJ_TITLE, OWN_ATTR_MISC_OBJ_TITLE , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_DESCRIPTION, OWN_ATTR_MISC_OBJ_DESCRIPTION , cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aAppletPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxControlShapePropertyMap() { static SfxItemPropertyMapEntry const aControlPropertyMap_Impl[] = { // the following properties are mapped to the XControl Model of this shape { UNO_NAME_EDIT_CHAR_FONTNAME, 0, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_EDIT_CHAR_FONTSTYLENAME, 0, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_EDIT_CHAR_FONTFAMILY, 0, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_EDIT_CHAR_FONTCHARSET, 0, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_EDIT_CHAR_HEIGHT, 0, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_EDIT_CHAR_FONTPITCH, 0, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_EDIT_CHAR_POSTURE, 0, cppu::UnoType::get(),0, 0 }, { UNO_NAME_EDIT_CHAR_WEIGHT, 0, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_EDIT_CHAR_UNDERLINE, 0, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_EDIT_CHAR_STRIKEOUT, 0, cppu::UnoType::get(), 0, 0}, { UNO_NAME_EDIT_CHAR_CASEMAP, 0, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_EDIT_CHAR_COLOR, 0, cppu::UnoType::get(), 0, MID_COLOR_RGB }, { UNO_NAME_EDIT_CHAR_COLOR_THEME, 0, cppu::UnoType::get(), 0, MID_COLOR_THEME_INDEX }, { UNO_NAME_EDIT_CHAR_COLOR_TINT_OR_SHADE, 0, cppu::UnoType::get(), 0, MID_COLOR_TINT_OR_SHADE }, { u"CharBackColor", 0, cppu::UnoType::get(), 0, 0 }, { u"CharBackTransparent", 0, cppu::UnoType::get(), 0, 0 }, { u"CharRelief", 0, cppu::UnoType::get(), 0, 0 }, { u"CharUnderlineColor", 0, cppu::UnoType::get(), 0, 0 }, { u"CharKerning", 0, cppu::UnoType::get(), 0, 0 }, { u"CharWordMode", 0, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_EDIT_PARA_ADJUST, 0, cppu::UnoType::get(), 0, 0 }, { u"TextVerticalAdjust", 0, cppu::UnoType::get(), MAYBEVOID, 0 }, { u"ControlBackground", 0, cppu::UnoType::get(), 0, 0 }, { u"ControlBorder", 0, cppu::UnoType::get(), 0, 0 }, { u"ControlBorderColor", 0, cppu::UnoType::get(), 0, 0 }, { u"ControlSymbolColor", 0, cppu::UnoType::get(), 0, 0 }, { u"ImageScaleMode", 0, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_MOVEPROTECT, SDRATTR_OBJMOVEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_MISC_OBJ_SIZEPROTECT, SDRATTR_OBJSIZEPROTECT, cppu::UnoType::get(),0, 0}, { u"ControlTextEmphasis", 0, cppu::UnoType::get(), 0, 0 }, { u"ControlWritingMode", 0, cppu::UnoType< sal_Int16 >::get(), 0, 0}, // the following properties are handled by SvxShape { u"Transformation", OWN_ATTR_TRANSFORMATION , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_ZORDER, OWN_ATTR_ZORDER , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERID, SDRATTR_LAYERID , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERNAME,SDRATTR_LAYERNAME , cppu::UnoType::get(), 0, 0}, { UNO_NAME_LINKDISPLAYBITMAP, OWN_ATTR_LDBITMAP , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_LINKDISPLAYNAME, OWN_ATTR_LDNAME , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, {u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_BOUNDRECT, OWN_ATTR_BOUNDRECT, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"UINameSingular", OWN_ATTR_UINAME_SINGULAR , ::cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, // #i68101# { UNO_NAME_MISC_OBJ_TITLE, OWN_ATTR_MISC_OBJ_TITLE , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_DESCRIPTION, OWN_ATTR_MISC_OBJ_DESCRIPTION , cppu::UnoType::get(), 0, 0}, // #i112587# { UNO_NAME_MISC_OBJ_PRINTABLE, SDRATTR_OBJPRINTABLE , cppu::UnoType::get(), 0, 0}, { u"Visible", SDRATTR_OBJVISIBLE , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_INTEROPGRABBAG, OWN_ATTR_INTEROPGRABBAG, cppu::UnoType>::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aControlPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxPageShapePropertyMap() { static SfxItemPropertyMapEntry const aPageShapePropertyMap_Impl[] = { { u"PageNumber", OWN_ATTR_PAGE_NUMBER , cppu::UnoType::get(), 0, 0}, { u"Transformation", OWN_ATTR_TRANSFORMATION , cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_ZORDER, OWN_ATTR_ZORDER , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERID, SDRATTR_LAYERID , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERNAME,SDRATTR_LAYERNAME , cppu::UnoType::get(), 0, 0}, { UNO_NAME_LINKDISPLAYBITMAP, OWN_ATTR_LDBITMAP , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_LINKDISPLAYNAME, OWN_ATTR_LDNAME , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_MISC_OBJ_MOVEPROTECT, SDRATTR_OBJMOVEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_MISC_OBJ_SIZEPROTECT, SDRATTR_OBJSIZEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_MISC_OBJ_BOUNDRECT, OWN_ATTR_BOUNDRECT, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, // #i68101# { UNO_NAME_MISC_OBJ_TITLE, OWN_ATTR_MISC_OBJ_TITLE , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_DESCRIPTION, OWN_ATTR_MISC_OBJ_DESCRIPTION , cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aPageShapePropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxCaptionPropertyMap() { static SfxItemPropertyMapEntry const aCaptionPropertyMap_Impl[] = { { u"CaptionPoint", OWN_ATTR_CAPTION_POINT, cppu::UnoType::get(), 0, 0 }, { u"CaptionType", SDRATTR_CAPTIONTYPE, cppu::UnoType::get(), 0, 0}, { u"CaptionIsFixedAngle", SDRATTR_CAPTIONFIXEDANGLE, cppu::UnoType::get(), 0, 0}, { u"CaptionAngle", SDRATTR_CAPTIONANGLE, cppu::UnoType::get(), 0, 0}, { u"CaptionGap", SDRATTR_CAPTIONGAP, cppu::UnoType::get(), 0, 0, PropertyMoreFlags::METRIC_ITEM}, { u"CaptionEscapeDirection", SDRATTR_CAPTIONESCDIR, cppu::UnoType::get(), 0, 0}, { u"CaptionIsEscapeRelative", SDRATTR_CAPTIONESCISREL, cppu::UnoType::get(), 0, 0}, { u"CaptionEscapeRelative", SDRATTR_CAPTIONESCREL, cppu::UnoType::get(), 0, 0}, { u"CaptionEscapeAbsolute", SDRATTR_CAPTIONESCABS, cppu::UnoType::get(), 0, 0, PropertyMoreFlags::METRIC_ITEM}, { u"CaptionLineLength", SDRATTR_CAPTIONLINELEN, cppu::UnoType::get(), 0, 0, PropertyMoreFlags::METRIC_ITEM}, { u"CaptionIsFitLineLength", SDRATTR_CAPTIONFITLINELEN, cppu::UnoType::get(), 0, 0}, EDGERADIUS_PROPERTIES FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES SHADOW_PROPERTIES TEXT_PROPERTIES // #FontWork# FONTWORK_PROPERTIES { u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, {u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aCaptionPropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxCustomShapePropertyMap() { static SfxItemPropertyMapEntry const aCustomShapePropertyMap_Impl[] = { { u"CustomShapeEngine", SDRATTR_CUSTOMSHAPE_ENGINE, cppu::UnoType::get(), 0, 0 }, { u"CustomShapeData", SDRATTR_CUSTOMSHAPE_DATA, cppu::UnoType::get(), 0, 0 }, { u"CustomShapeGeometry", SDRATTR_CUSTOMSHAPE_GEOMETRY, cppu::UnoType>::get(), 0, 0 }, FILL_PROPERTIES LINE_PROPERTIES LINE_PROPERTIES_START_END SHAPE_DESCRIPTOR_PROPERTIES MISC_OBJ_PROPERTIES LINKTARGET_PROPERTIES GLOW_PROPERTIES SOFTEDGE_PROPERTIES SHADOW_PROPERTIES TEXT_PROPERTIES {u"UserDefinedAttributes", SDRATTR_XMLATTRIBUTES, cppu::UnoType::get(), 0, 0}, {u"ParaUserDefinedAttributes", EE_PARA_XMLATTRIBS, cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aCustomShapePropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxMediaShapePropertyMap() { static SfxItemPropertyMapEntry const aMediaShapePropertyMap_Impl[] = { { UNO_NAME_MISC_OBJ_ZORDER, OWN_ATTR_ZORDER, cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERID, SDRATTR_LAYERID, cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERNAME, SDRATTR_LAYERNAME, cppu::UnoType::get(), 0, 0}, { UNO_NAME_LINKDISPLAYBITMAP, OWN_ATTR_LDBITMAP, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_LINKDISPLAYNAME, OWN_ATTR_LDNAME, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"Transformation", OWN_ATTR_TRANSFORMATION, cppu::UnoType::get(), 0, 0 }, { u"MediaURL", OWN_ATTR_MEDIA_URL, cppu::UnoType::get(), 0, 0}, { u"PreferredSize", OWN_ATTR_MEDIA_PREFERREDSIZE, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"Loop", OWN_ATTR_MEDIA_LOOP, cppu::UnoType::get(), 0, 0}, { u"Mute", OWN_ATTR_MEDIA_MUTE, cppu::UnoType::get(), 0, 0}, { u"VolumeDB", OWN_ATTR_MEDIA_VOLUMEDB, cppu::UnoType::get(), 0, 0}, { u"Zoom", OWN_ATTR_MEDIA_ZOOM, cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_MOVEPROTECT, SDRATTR_OBJMOVEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_MISC_OBJ_SIZEPROTECT, SDRATTR_OBJSIZEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_MISC_OBJ_BOUNDRECT, OWN_ATTR_BOUNDRECT, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"UINameSingular", OWN_ATTR_UINAME_SINGULAR , ::cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, // #i68101# { UNO_NAME_MISC_OBJ_TITLE, OWN_ATTR_MISC_OBJ_TITLE , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_DESCRIPTION, OWN_ATTR_MISC_OBJ_DESCRIPTION , cppu::UnoType::get(), 0, 0}, {u"PrivateStream", OWN_ATTR_MEDIA_STREAM, cppu::UnoType::get(), 0, 0}, {u"PrivateTempFileURL", OWN_ATTR_MEDIA_TEMPFILEURL, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"MediaMimeType", OWN_ATTR_MEDIA_MIMETYPE, cppu::UnoType::get(), 0, 0}, { u"FallbackGraphic", OWN_ATTR_FALLBACK_GRAPHIC, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_GRAPHOBJ_GRAPHIC, OWN_ATTR_VALUE_GRAPHIC , cppu::UnoType::get(), 0, 0}, { UNO_NAME_GRAPHIC_GRAPHICCROP, SDRATTR_GRAFCROP , cppu::UnoType::get(), 0, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aMediaShapePropertyMap_Impl; } static SfxItemPropertyMapEntry const * ImplGetSvxTableShapePropertyMap() { static SfxItemPropertyMapEntry const aTableShapePropertyMap_Impl[] = { SHADOW_PROPERTIES { UNO_NAME_MISC_OBJ_ZORDER, OWN_ATTR_ZORDER, cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERID, SDRATTR_LAYERID, cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_LAYERNAME, SDRATTR_LAYERNAME, cppu::UnoType::get(), 0, 0}, { UNO_NAME_LINKDISPLAYBITMAP, OWN_ATTR_LDBITMAP, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_LINKDISPLAYNAME, OWN_ATTR_LDNAME, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"Transformation", OWN_ATTR_TRANSFORMATION, cppu::UnoType::get(), 0, 0 }, { UNO_NAME_MISC_OBJ_MOVEPROTECT, SDRATTR_OBJMOVEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_MISC_OBJ_SIZEPROTECT, SDRATTR_OBJSIZEPROTECT, cppu::UnoType::get(),0, 0}, { UNO_NAME_MISC_OBJ_BOUNDRECT, OWN_ATTR_BOUNDRECT, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_MISC_OBJ_NAME, SDRATTR_OBJECTNAME, cppu::UnoType::get(), 0, 0}, { u"UINameSingular", OWN_ATTR_UINAME_SINGULAR , ::cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { UNO_NAME_MISC_OBJ_TITLE, OWN_ATTR_MISC_OBJ_TITLE , cppu::UnoType::get(), 0, 0}, { UNO_NAME_MISC_OBJ_DESCRIPTION, OWN_ATTR_MISC_OBJ_DESCRIPTION , cppu::UnoType::get(), 0, 0}, { u"Model", OWN_ATTR_OLEMODEL , cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"TableTemplate", OWN_ATTR_TABLETEMPLATE , cppu::UnoType::get(), 0, 0}, { u"UseFirstRowStyle", OWN_ATTR_TABLETEMPLATE_FIRSTROW, cppu::UnoType::get(),0, 0}, { u"UseLastRowStyle", OWN_ATTR_TABLETEMPLATE_LASTROW, cppu::UnoType::get(),0, 0}, { u"UseFirstColumnStyle", OWN_ATTR_TABLETEMPLATE_FIRSTCOLUMN, cppu::UnoType::get(),0, 0}, { u"UseLastColumnStyle", OWN_ATTR_TABLETEMPLATE_LASTCOLUMN, cppu::UnoType::get(),0, 0}, { u"UseBandingRowStyle", OWN_ATTR_TABLETEMPLATE_BANDINGROWS, cppu::UnoType::get(),0, 0}, { u"UseBandingColumnStyle", OWN_ATTR_TABLETEMPLATE_BANDINGCOLUMNS, cppu::UnoType::get(),0, 0}, { u"ReplacementGraphic", OWN_ATTR_REPLACEMENT_GRAPHIC, cppu::UnoType::get(), css::beans::PropertyAttribute::READONLY, 0}, { u"", 0, css::uno::Type(), 0, 0 } }; return aTableShapePropertyMap_Impl; } static o3tl::span ImplGetSvxDrawingDefaultsPropertyMap() { static comphelper::PropertyMapEntry const aSvxDrawingDefaultsPropertyMap_Impl[] = { GLOW_PROPERTIES SOFTEDGE_PROPERTIES SHADOW_PROPERTIES LINE_PROPERTIES_DEFAULTS FILL_PROPERTIES_BMP FILL_PROPERTIES_DEFAULTS EDGERADIUS_PROPERTIES TEXT_PROPERTIES_DEFAULTS CONNECTOR_PROPERTIES SPECIAL_DIMENSIONING_PROPERTIES_DEFAULTS MISC_3D_OBJ_PROPERTIES SPECIAL_3DBACKSCALE_PROPERTIES }; return aSvxDrawingDefaultsPropertyMap_Impl; } static o3tl::span ImplGetAdditionalWriterDrawingDefaultsPropertyMap() { static comphelper::PropertyMapEntry const aSvxAdditionalDefaultsPropertyMap_Impl[] = { { "IsFollowingTextFlow", SID_SW_FOLLOW_TEXT_FLOW, cppu::UnoType::get(), 0, 0}, }; return aSvxAdditionalDefaultsPropertyMap_Impl; } typedef std::unordered_map< OUString, SdrObjKind > UHashMapImpl; namespace { const UHashMapImpl& GetUHashImpl() { static UHashMapImpl const aImpl { { "com.sun.star.drawing.RectangleShape", SdrObjKind::Rectangle }, { "com.sun.star.drawing.EllipseShape", SdrObjKind::CircleOrEllipse }, { "com.sun.star.drawing.ControlShape", SdrObjKind::UNO }, { "com.sun.star.drawing.ConnectorShape", SdrObjKind::Edge }, { "com.sun.star.drawing.MeasureShape", SdrObjKind::Measure }, { "com.sun.star.drawing.LineShape", SdrObjKind::Line }, { "com.sun.star.drawing.PolyPolygonShape", SdrObjKind::Polygon }, { "com.sun.star.drawing.PolyLineShape", SdrObjKind::PolyLine }, { "com.sun.star.drawing.OpenBezierShape", SdrObjKind::PathLine }, { "com.sun.star.drawing.ClosedBezierShape", SdrObjKind::PathFill }, { "com.sun.star.drawing.OpenFreeHandShape", SdrObjKind::FreehandLine }, { "com.sun.star.drawing.ClosedFreeHandShape", SdrObjKind::FreehandFill }, { "com.sun.star.drawing.PolyPolygonPathShape", SdrObjKind::PathPoly }, { "com.sun.star.drawing.PolyLinePathShape", SdrObjKind::PathPolyLine }, { "com.sun.star.drawing.GraphicObjectShape", SdrObjKind::Graphic }, { "com.sun.star.drawing.GroupShape", SdrObjKind::Group }, { "com.sun.star.drawing.TextShape", SdrObjKind::Text }, { "com.sun.star.drawing.OLE2Shape", SdrObjKind::OLE2 }, { "com.sun.star.drawing.PageShape", SdrObjKind::Page }, { "com.sun.star.drawing.CaptionShape", SdrObjKind::Caption }, { "com.sun.star.drawing.FrameShape", SdrObjKind::OLEPluginFrame }, { "com.sun.star.drawing.PluginShape", SdrObjKind::OLE2Plugin }, { "com.sun.star.drawing.AppletShape", SdrObjKind::OLE2Applet }, { "com.sun.star.drawing.CustomShape", SdrObjKind::CustomShape }, { "com.sun.star.drawing.MediaShape", SdrObjKind::Media }, { "com.sun.star.drawing.Shape3DSceneObject", SdrObjKind::E3D_Scene }, { "com.sun.star.drawing.Shape3DCubeObject", SdrObjKind::E3D_Cube }, { "com.sun.star.drawing.Shape3DSphereObject", SdrObjKind::E3D_Sphere }, { "com.sun.star.drawing.Shape3DLatheObject", SdrObjKind::E3D_Lathe }, { "com.sun.star.drawing.Shape3DExtrudeObject", SdrObjKind::E3D_Extrusion }, { "com.sun.star.drawing.Shape3DPolygonObject", SdrObjKind::E3D_Polygon }, }; return aImpl; } } OUString UHashMap::getNameFromId(SdrObjKind nId) { const UHashMapImpl &rMap = GetUHashImpl(); auto it = std::find_if(rMap.begin(), rMap.end(), [nId](const UHashMapImpl::value_type& rEntry) { return rEntry.second == nId; }); if (it != rMap.end()) return it->first; OSL_FAIL("[CL] unknown SdrObject identifier"); return OUString(); } uno::Sequence< OUString > UHashMap::getServiceNames() { return comphelper::mapKeysToSequence( GetUHashImpl() ); } std::optional UHashMap::getId( const OUString& rCompareString ) { const UHashMapImpl &rMap = GetUHashImpl(); UHashMapImpl::const_iterator it = rMap.find( rCompareString ); if( it == rMap.end() ) return {}; else return it->second; } SvxUnoPropertyMapProvider& getSvxMapProvider() { static SvxUnoPropertyMapProvider theSvxMapProvider; return theSvxMapProvider; } SvxUnoPropertyMapProvider::SvxUnoPropertyMapProvider() { for(sal_uInt16 i=0;i 0 ) { const sal_Unicode nChar = rString[ nLength - 1 ]; if( (nChar < '0') || (nChar > '9') ) break; nLength--; } // if we cut off a number, also cut of some spaces if( nLength != rString.getLength() ) { while( nLength > 0 ) { const sal_Unicode nChar = rString[ nLength - 1 ]; if( nChar != ' ' ) break; nLength--; } } const std::u16string_view aShortString( rString.subView( 0, nLength ) ); for (int i = 0; i < nCount; ++i) { const OUString & aCompare = SvxResId(pSourceResIds[i]); if( aShortString == aCompare ) { rString = rString.replaceAt( 0, aShortString.size(), OUString(pDestResIds[i]) ); return true; } else if( rString == aCompare ) { rString = pDestResIds[i]; return true; } } return false; } static bool SvxUnoConvertResourceStringFromApi(const rtl::OUStringConstExpr* pSourceResIds, const TranslateId* pDestResIds, int nCount, OUString& rString) { // first, calculate the search string length without an optional number after the name sal_Int32 nLength = rString.getLength(); while( nLength > 0 ) { const sal_Unicode nChar = rString[ nLength - 1 ]; if( (nChar < '0') || (nChar > '9') ) break; nLength--; } // if we cut off a number, also cut of some spaces if( nLength != rString.getLength() ) { while( nLength > 0 ) { const sal_Unicode nChar = rString[ nLength - 1 ]; if( nChar != ' ' ) break; nLength--; } } const std::u16string_view aShortString( rString.subView( 0, nLength ) ); for (int i = 0; i < nCount; ++i) { auto pCompare = pSourceResIds[i]; if( aShortString == pCompare.asView() ) { rString = rString.replaceAt( 0, aShortString.size(), SvxResId(pDestResIds[i]) ); return true; } else if( rString == pCompare ) { rString = SvxResId(pDestResIds[i]); return true; } } return false; } // #i122649# Some comments on the below arrays: // - They need to have the same order and count of items // - They are used to translate between translated and non-translated color names // - To make longer names be found which start with the same basic string, // these have to be in front of others // It would be nice to: // - evtl. organize these in a single array with 2-dimensional inner to eliminate // the possibility to define it wrong // - change the compare to also work when a shorter name is in front of a longer one constexpr rtl::OUStringConstExpr SvxUnoColorNameDefResId[] = { RID_SVXSTR_COLOR_BLUEGREY_DEF, RID_SVXSTR_COLOR_BLACK_DEF, RID_SVXSTR_COLOR_BLUE_CLASSIC_DEF, RID_SVXSTR_COLOR_BLUE_DEF, RID_SVXSTR_COLOR_GREEN_DEF, RID_SVXSTR_COLOR_RED_DEF, RID_SVXSTR_COLOR_MAGENTA_DEF, RID_SVXSTR_COLOR_GREY_DEF, RID_SVXSTR_COLOR_YELLOWGREEN_DEF, RID_SVXSTR_COLOR_YELLOW_DEF, RID_SVXSTR_COLOR_WHITE_DEF, RID_SVXSTR_COLOR_ORANGE_DEF, RID_SVXSTR_COLOR_BORDEAUX_DEF, RID_SVXSTR_COLOR_PALE_YELLOW_DEF, RID_SVXSTR_COLOR_PALE_GREEN_DEF, RID_SVXSTR_COLOR_DARKVIOLET_DEF, RID_SVXSTR_COLOR_SALMON_DEF, RID_SVXSTR_COLOR_SEABLUE_DEF, RID_SVXSTR_COLOR_CHART_DEF, RID_SVXSTR_COLOR_PURPLE_DEF, RID_SVXSTR_COLOR_SKYBLUE_DEF, RID_SVXSTR_COLOR_PINK_DEF, RID_SVXSTR_COLOR_TURQUOISE_DEF, RID_SVXSTR_COLOR_GOLD_DEF, RID_SVXSTR_COLOR_BRICK_DEF, RID_SVXSTR_COLOR_INDIGO_DEF, RID_SVXSTR_COLOR_TEAL_DEF, RID_SVXSTR_COLOR_LIME_DEF, RID_SVXSTR_COLOR_LIGHTGRAY_DEF, RID_SVXSTR_COLOR_LIGHTYELLOW_DEF, RID_SVXSTR_COLOR_LIGHTGOLD_DEF, RID_SVXSTR_COLOR_LIGHTORANGE_DEF, RID_SVXSTR_COLOR_LIGHTBRICK_DEF, RID_SVXSTR_COLOR_LIGHTRED_DEF, RID_SVXSTR_COLOR_LIGHTMAGENTA_DEF, RID_SVXSTR_COLOR_LIGHTPURPLE_DEF, RID_SVXSTR_COLOR_LIGHTINDIGO_DEF, RID_SVXSTR_COLOR_LIGHTBLUE_DEF, RID_SVXSTR_COLOR_LIGHTTEAL_DEF, RID_SVXSTR_COLOR_LIGHTGREEN_DEF, RID_SVXSTR_COLOR_LIGHTLIME_DEF, RID_SVXSTR_COLOR_DARKGRAY_DEF, RID_SVXSTR_COLOR_DARKYELLOW_DEF, RID_SVXSTR_COLOR_DARKGOLD_DEF, RID_SVXSTR_COLOR_DARKORANGE_DEF, RID_SVXSTR_COLOR_DARKBRICK_DEF, RID_SVXSTR_COLOR_DARKRED_DEF, RID_SVXSTR_COLOR_DARKMAGENTA_DEF, RID_SVXSTR_COLOR_DARKPURPLE_DEF, RID_SVXSTR_COLOR_DARKINDIGO_DEF, RID_SVXSTR_COLOR_DARKBLUE_DEF, RID_SVXSTR_COLOR_DARKTEAL_DEF, RID_SVXSTR_COLOR_DARKGREEN_DEF, RID_SVXSTR_COLOR_DARKLIME_DEF, RID_SVXSTR_COLOR_VIOLET_DEF, RID_SVXSTR_COLOR_VIOLET_OUG_DEF, RID_SVXSTR_COLOR_BLUE_OUG_DEF, RID_SVXSTR_COLOR_AZURE_OUG_DEF, RID_SVXSTR_COLOR_SPRINGGREEN_OUG_DEF, RID_SVXSTR_COLOR_GREEN_OUG_DEF, RID_SVXSTR_COLOR_CHARTREUSEGREEN_OUG_DEF, RID_SVXSTR_COLOR_ORANGE_OUG_DEF, RID_SVXSTR_COLOR_RED_OUG_DEF, RID_SVXSTR_COLOR_ROSE_OUG_DEF, RID_SVXSTR_COLOR_AZURE_DEF, RID_SVXSTR_COLOR_CYAN_DEF, RID_SVXSTR_COLOR_SPRINGGREEN_DEF, RID_SVXSTR_COLOR_CHARTREUSEGREEN_DEF, RID_SVXSTR_COLOR_ROSE_DEF, RID_SVXSTR_COLOR_MATERIAL_GRAY_A_DEF, RID_SVXSTR_COLOR_MATERIAL_YELLOW_A_DEF, RID_SVXSTR_COLOR_MATERIAL_AMBER_A_DEF, RID_SVXSTR_COLOR_MATERIAL_AMBER_DEF, RID_SVXSTR_COLOR_MATERIAL_ORANGE_A_DEF, RID_SVXSTR_COLOR_MATERIAL_DEEP_ORANGE_A_DEF, RID_SVXSTR_COLOR_MATERIAL_DEEP_ORANGE_DEF, RID_SVXSTR_COLOR_MATERIAL_RED_A_DEF, RID_SVXSTR_COLOR_MATERIAL_PINK_A_DEF, RID_SVXSTR_COLOR_MATERIAL_PURPLE_A_DEF, RID_SVXSTR_COLOR_MATERIAL_DEEP_PURPLE_A_DEF, RID_SVXSTR_COLOR_MATERIAL_DEEP_PURPLE_DEF, RID_SVXSTR_COLOR_MATERIAL_INDIGO_A_DEF, RID_SVXSTR_COLOR_MATERIAL_BLUE_A_DEF, RID_SVXSTR_COLOR_MATERIAL_LIGHT_BLUE_A_DEF, RID_SVXSTR_COLOR_MATERIAL_CYAN_A_DEF, RID_SVXSTR_COLOR_MATERIAL_TEAL_A_DEF, RID_SVXSTR_COLOR_MATERIAL_GREEN_A_DEF, RID_SVXSTR_COLOR_MATERIAL_LIGHT_GREEN_A_DEF, RID_SVXSTR_COLOR_MATERIAL_LIME_A_DEF, RID_SVXSTR_COLOR_MATERIAL_BROWN_A_DEF, RID_SVXSTR_COLOR_MATERIAL_BROWN_DEF, RID_SVXSTR_COLOR_MATERIAL_BLUE_GRAY_A_DEF, RID_SVXSTR_COLOR_MATERIAL_BLUE_GRAY_DEF, RID_SVXSTR_COLOR_LIBRE_GREEN_1_DEF, RID_SVXSTR_COLOR_LIBRE_GREEN_ACCENT_DEF, RID_SVXSTR_COLOR_LIBRE_BLUE_ACCENT_DEF, RID_SVXSTR_COLOR_LIBRE_ORANGE_ACCENT_DEF, RID_SVXSTR_COLOR_LIBRE_PURPLE_DEF, RID_SVXSTR_COLOR_LIBRE_PURPLE_ACCENT_DEF, RID_SVXSTR_COLOR_LIBRE_YELLOW_ACCENT_DEF }; const TranslateId SvxUnoColorNameResId[] = { RID_SVXSTR_COLOR_BLUEGREY, RID_SVXSTR_COLOR_BLACK, RID_SVXSTR_COLOR_BLUE_CLASSIC, RID_SVXSTR_COLOR_BLUE, RID_SVXSTR_COLOR_GREEN, RID_SVXSTR_COLOR_RED, RID_SVXSTR_COLOR_MAGENTA, RID_SVXSTR_COLOR_GREY, RID_SVXSTR_COLOR_YELLOWGREEN, RID_SVXSTR_COLOR_YELLOW, RID_SVXSTR_COLOR_WHITE, RID_SVXSTR_COLOR_ORANGE, RID_SVXSTR_COLOR_BORDEAUX, RID_SVXSTR_COLOR_PALE_YELLOW, RID_SVXSTR_COLOR_PALE_GREEN, RID_SVXSTR_COLOR_DARKVIOLET, RID_SVXSTR_COLOR_SALMON, RID_SVXSTR_COLOR_SEABLUE, RID_SVXSTR_COLOR_CHART, RID_SVXSTR_COLOR_PURPLE, RID_SVXSTR_COLOR_SKYBLUE, RID_SVXSTR_COLOR_PINK, RID_SVXSTR_COLOR_TURQUOISE, RID_SVXSTR_COLOR_GOLD, RID_SVXSTR_COLOR_BRICK, RID_SVXSTR_COLOR_INDIGO, RID_SVXSTR_COLOR_TEAL, RID_SVXSTR_COLOR_LIME, RID_SVXSTR_COLOR_LIGHTGRAY, RID_SVXSTR_COLOR_LIGHTYELLOW, RID_SVXSTR_COLOR_LIGHTGOLD, RID_SVXSTR_COLOR_LIGHTORANGE, RID_SVXSTR_COLOR_LIGHTBRICK, RID_SVXSTR_COLOR_LIGHTRED, RID_SVXSTR_COLOR_LIGHTMAGENTA, RID_SVXSTR_COLOR_LIGHTPURPLE, RID_SVXSTR_COLOR_LIGHTINDIGO, RID_SVXSTR_COLOR_LIGHTBLUE, RID_SVXSTR_COLOR_LIGHTTEAL, RID_SVXSTR_COLOR_LIGHTGREEN, RID_SVXSTR_COLOR_LIGHTLIME, RID_SVXSTR_COLOR_DARKGRAY, RID_SVXSTR_COLOR_DARKYELLOW, RID_SVXSTR_COLOR_DARKGOLD, RID_SVXSTR_COLOR_DARKORANGE, RID_SVXSTR_COLOR_DARKBRICK, RID_SVXSTR_COLOR_DARKRED, RID_SVXSTR_COLOR_DARKMAGENTA, RID_SVXSTR_COLOR_DARKPURPLE, RID_SVXSTR_COLOR_DARKINDIGO, RID_SVXSTR_COLOR_DARKBLUE, RID_SVXSTR_COLOR_DARKTEAL, RID_SVXSTR_COLOR_DARKGREEN, RID_SVXSTR_COLOR_DARKLIME, RID_SVXSTR_COLOR_VIOLET, RID_SVXSTR_COLOR_VIOLET_OUG, RID_SVXSTR_COLOR_BLUE_OUG, RID_SVXSTR_COLOR_AZURE_OUG, RID_SVXSTR_COLOR_SPRINGGREEN_OUG, RID_SVXSTR_COLOR_GREEN_OUG, RID_SVXSTR_COLOR_CHARTREUSEGREEN_OUG, RID_SVXSTR_COLOR_ORANGE_OUG, RID_SVXSTR_COLOR_RED_OUG, RID_SVXSTR_COLOR_ROSE_OUG, RID_SVXSTR_COLOR_AZURE, RID_SVXSTR_COLOR_CYAN, RID_SVXSTR_COLOR_SPRINGGREEN, RID_SVXSTR_COLOR_CHARTREUSEGREEN, RID_SVXSTR_COLOR_ROSE, RID_SVXSTR_COLOR_MATERIAL_GRAY_A, RID_SVXSTR_COLOR_MATERIAL_YELLOW_A, RID_SVXSTR_COLOR_MATERIAL_AMBER_A, RID_SVXSTR_COLOR_MATERIAL_AMBER, RID_SVXSTR_COLOR_MATERIAL_ORANGE_A, RID_SVXSTR_COLOR_MATERIAL_DEEP_ORANGE_A, RID_SVXSTR_COLOR_MATERIAL_DEEP_ORANGE, RID_SVXSTR_COLOR_MATERIAL_RED_A, RID_SVXSTR_COLOR_MATERIAL_PINK_A, RID_SVXSTR_COLOR_MATERIAL_PURPLE_A, RID_SVXSTR_COLOR_MATERIAL_DEEP_PURPLE_A, RID_SVXSTR_COLOR_MATERIAL_DEEP_PURPLE, RID_SVXSTR_COLOR_MATERIAL_INDIGO_A, RID_SVXSTR_COLOR_MATERIAL_BLUE_A, RID_SVXSTR_COLOR_MATERIAL_LIGHT_BLUE_A, RID_SVXSTR_COLOR_MATERIAL_CYAN_A, RID_SVXSTR_COLOR_MATERIAL_TEAL_A, RID_SVXSTR_COLOR_MATERIAL_GREEN_A, RID_SVXSTR_COLOR_MATERIAL_LIGHT_GREEN_A, RID_SVXSTR_COLOR_MATERIAL_LIME_A, RID_SVXSTR_COLOR_MATERIAL_BROWN_A, RID_SVXSTR_COLOR_MATERIAL_BROWN, RID_SVXSTR_COLOR_MATERIAL_BLUE_GRAY_A, RID_SVXSTR_COLOR_MATERIAL_BLUE_GRAY, RID_SVXSTR_COLOR_LIBRE_GREEN_1, RID_SVXSTR_COLOR_LIBRE_GREEN_ACCENT, RID_SVXSTR_COLOR_LIBRE_BLUE_ACCENT, RID_SVXSTR_COLOR_LIBRE_ORANGE_ACCENT, RID_SVXSTR_COLOR_LIBRE_PURPLE, RID_SVXSTR_COLOR_LIBRE_PURPLE_ACCENT, RID_SVXSTR_COLOR_LIBRE_YELLOW_ACCENT }; /// @throws std::exception static bool SvxUnoConvertResourceStringBuiltInToApi(const TranslateId* pSourceResIds, rtl::OUStringConstExpr const *pDestResIds, int nCount, OUString& rString) { //We replace e.g. "Gray 10%" with the translation of Gray, but we shouldn't //replace "Red Hat 1" with the translation of Red :-) sal_Int32 nLength = rString.getLength(); while( nLength > 0 ) { const sal_Unicode nChar = rString[nLength-1]; if (nChar != '%' && (nChar < '0' || nChar > '9')) break; nLength--; } std::u16string_view sStr = o3tl::trim(rString.subView(0, nLength)); for(int i = 0; i < nCount; ++i ) { OUString aStrDefName = SvxResId(pSourceResIds[i]); if( sStr == aStrDefName ) { OUString aReplace = pDestResIds[i]; rString = rString.replaceAt( 0, aStrDefName.getLength(), aReplace ); return true; } } return false; } static bool SvxUnoConvertResourceStringBuiltInFromApi(rtl::OUStringConstExpr const *pSourceResIds, const TranslateId* pDestResIds, int nCount, OUString& rString) { //We replace e.g. "Gray 10%" with the translation of Gray, but we shouldn't //replace "Red Hat 1" with the translation of Red :-) sal_Int32 nLength = rString.getLength(); while( nLength > 0 ) { const sal_Unicode nChar = rString[nLength-1]; if (nChar != '%' && (nChar < '0' || nChar > '9')) break; nLength--; } std::u16string_view sStr = o3tl::trim(rString.subView(0, nLength)); for(int i = 0; i < nCount; ++i ) { if( sStr == pSourceResIds[i].asView() ) { OUString aReplace = SvxResId(pDestResIds[i]); rString = aReplace + rString.subView( pSourceResIds[i].asView().size() ); return true; } } return false; } /** if the given name is a predefined name for the current language it is replaced by the corresponding api name. */ OUString SvxUnogetApiNameForItem(const sal_uInt16 nWhich, const OUString& rInternalName) { OUString aNew = rInternalName; if( nWhich == sal_uInt16(XATTR_LINECOLOR) ) { if (SvxUnoConvertResourceStringBuiltInToApi(SvxUnoColorNameResId, SvxUnoColorNameDefResId, SAL_N_ELEMENTS(SvxUnoColorNameResId), aNew)) { return aNew; } } else { const rtl::OUStringConstExpr* pApiResIds; const TranslateId* pIntResIds; int nCount; if( SvxUnoGetResourceRanges(nWhich, pApiResIds, pIntResIds, nCount)) { if (SvxUnoConvertResourceStringToApi(pIntResIds, pApiResIds, nCount, aNew)) { return aNew; } } } // just use previous name, if nothing else was found. return rInternalName; } /** if the given name is a predefined api name it is replaced by the predefined name for the current language. */ OUString SvxUnogetInternalNameForItem(const sal_uInt16 nWhich, const OUString& rApiName) { OUString aNew = rApiName; if( nWhich == sal_uInt16(XATTR_LINECOLOR) ) { if (SvxUnoConvertResourceStringBuiltInFromApi(SvxUnoColorNameDefResId, SvxUnoColorNameResId, SAL_N_ELEMENTS(SvxUnoColorNameResId), aNew)) { return aNew; } } else { const rtl::OUStringConstExpr* pApiResIds; const TranslateId* pIntResIds; int nCount; if (SvxUnoGetResourceRanges(nWhich, pApiResIds, pIntResIds, nCount)) { if (SvxUnoConvertResourceStringFromApi(pApiResIds, pIntResIds, nCount, aNew)) { return aNew; } } } // just use previous name, if nothing else was found. return rApiName; } rtl::Reference const & SvxPropertySetInfoPool::getOrCreate( sal_Int32 nServiceId ) noexcept { SolarMutexGuard aGuard; assert( nServiceId <= SVXUNO_SERVICEID_LASTID ); if( !mxInfos[ nServiceId ].is() ) { mxInfos[nServiceId] = new comphelper::PropertySetInfo(); switch( nServiceId ) { case SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS: mxInfos[SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS]->add( ImplGetSvxDrawingDefaultsPropertyMap() ); break; case SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER: mxInfos[SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER]->add( ImplGetSvxDrawingDefaultsPropertyMap() ); mxInfos[SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER]->remove( UNO_NAME_EDIT_PARA_IS_HANGING_PUNCTUATION ); // OD 13.10.2003 #i18732# - add property map for writer item 'IsFollowingTextFlow' mxInfos[SVXUNO_SERVICEID_COM_SUN_STAR_DRAWING_DEFAULTS_WRITER]->add( ImplGetAdditionalWriterDrawingDefaultsPropertyMap() ); break; default: OSL_FAIL( "unknown service id!" ); } } return mxInfos[ nServiceId ]; } rtl::Reference SvxPropertySetInfoPool::mxInfos[SVXUNO_SERVICEID_LASTID+1] = { nullptr }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */