LibreOffice Module svx (master)  1
Typedefs | Functions | Variables
unoprov.cxx File Reference
#include <sal/macros.h>
#include <com/sun/star/table/XTable.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <com/sun/star/util/MeasureUnit.hpp>
#include <com/sun/star/drawing/TextVerticalAdjust.hpp>
#include <com/sun/star/media/ZoomLevel.hpp>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <tools/fldunit.hxx>
#include <vcl/svapp.hxx>
#include <comphelper/propertysetinfo.hxx>
#include <comphelper/sequence.hxx>
#include <svx/dialmgr.hxx>
#include <svx/unoapi.hxx>
#include <svx/unoshprp.hxx>
#include <svx/svx3ditems.hxx>
#include <svx/svxids.hrc>
#include <svx/globl3d.hxx>
#include <svx/strings.hrc>
#include <strings.hxx>
#include <svx/svdobj.hxx>
#include "shapeimpl.hxx"
#include <unordered_map>
Include dependency graph for unoprov.cxx:

Go to the source code of this file.

Typedefs

typedef std::unordered_map< OUString, sal_uInt32 > UHashMapImpl
 

Functions

static SfxItemPropertyMapEntry const * ImplGetSvxShapePropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxTextShapePropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxConnectorPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxDimensioningPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxCirclePropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxPolyPolygonPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxGraphicObjectPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvx3DSceneObjectPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvx3DCubeObjectPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvx3DSphereObjectPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvx3DLatheObjectPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvx3DExtrudeObjectPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvx3DPolygonObjectPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxAllPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxGroupPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxOle2PropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxPluginPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxFramePropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxAppletPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxControlShapePropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxPageShapePropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxCaptionPropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxCustomShapePropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxMediaShapePropertyMap ()
 
static SfxItemPropertyMapEntry const * ImplGetSvxTableShapePropertyMap ()
 
static comphelper::PropertyMapEntry const * ImplGetSvxDrawingDefaultsPropertyMap ()
 
static comphelper::PropertyMapEntry const * ImplGetAdditionalWriterDrawingDefaultsPropertyMap ()
 
SvxUnoPropertyMapProvidergetSvxMapProvider ()
 
bool SvxMapUnitToMeasureUnit (const MapUnit eVcl, short &eApi) throw ()
 maps the vcl MapUnit enum to an API constant MeasureUnit. More...
 
bool SvxMeasureUnitToFieldUnit (const short eApi, FieldUnit &eVcl) throw ()
 maps the API constant MeasureUnit to a vcl MapUnit enum. More...
 
bool SvxFieldUnitToMeasureUnit (const FieldUnit eVcl, short &eApi) throw ()
 maps the vcl MapUnit enum to an API constant MeasureUnit. More...
 
static bool SvxUnoGetResourceRanges (const sal_uInt16 nWhich, const char **&pApiResIds, const char **&pIntResIds, int &nCount) throw ()
 
static bool SvxUnoConvertResourceString (const char **pSourceResIds, const char **pDestResIds, int nCount, OUString &rString, bool bToApi)
 
static bool SvxUnoConvertResourceStringBuiltIn (const char **pSourceResIds, const char **pDestResIds, int nCount, OUString &rString, bool bToApi)
 
OUString SvxUnogetApiNameForItem (const sal_uInt16 nWhich, const OUString &rInternalName)
 if the given name is a predefined name for the current language it is replaced by the corresponding api name. More...
 
OUString SvxUnogetInternalNameForItem (const sal_uInt16 nWhich, const OUString &rApiName)
 if the given name is a predefined api name it is replaced by the predefined name for the current language. More...
 

Variables

static const char * RID_SVXSTR_BMP_DEF []
 
static const char * RID_SVXSTR_BMP []
 
static const char * RID_SVXSTR_DASH_DEF []
 
static const char * RID_SVXSTR_DASH []
 
static const char * RID_SVXSTR_LEND_DEF []
 
static const char * RID_SVXSTR_LEND []
 
static const char * RID_SVXSTR_GRDT_DEF []
 
static const char * RID_SVXSTR_GRDT []
 
static const char * RID_SVXSTR_HATCHS_DEF []
 
static const char * RID_SVXSTR_HATCHS []
 
static const char * RID_SVXSTR_TRASNGR_DEF []
 
static const char * RID_SVXSTR_TRASNGR []
 
static const char * SvxUnoColorNameDefResId []
 
static const char * SvxUnoColorNameResId []
 

Typedef Documentation

typedef std::unordered_map< OUString, sal_uInt32 > UHashMapImpl

Definition at line 793 of file unoprov.cxx.

Function Documentation

SvxUnoPropertyMapProvider& getSvxMapProvider ( )

Definition at line 877 of file unoprov.cxx.

Referenced by SvxDrawPage::CreateShapeByTypeAndInventor().

static comphelper::PropertyMapEntry const* ImplGetAdditionalWriterDrawingDefaultsPropertyMap ( )
static

Definition at line 782 of file unoprov.cxx.

References cppu::UnoType< class >::get().

static SfxItemPropertyMapEntry const* ImplGetSvx3DCubeObjectPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvx3DExtrudeObjectPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvx3DLatheObjectPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvx3DPolygonObjectPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvx3DSceneObjectPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvx3DSphereObjectPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxAllPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxAppletPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxCaptionPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxCirclePropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxConnectorPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxControlShapePropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxCustomShapePropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxDimensioningPropertyMap ( )
static
static comphelper::PropertyMapEntry const* ImplGetSvxDrawingDefaultsPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxFramePropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxGraphicObjectPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxGroupPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxMediaShapePropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxOle2PropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxPageShapePropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxPluginPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxPolyPolygonPropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxShapePropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxTableShapePropertyMap ( )
static
static SfxItemPropertyMapEntry const* ImplGetSvxTextShapePropertyMap ( )
static
bool SvxFieldUnitToMeasureUnit ( const FieldUnit  eVcl,
short &  eApi 
)
throw (
)

maps the vcl MapUnit enum to an API constant MeasureUnit.

Maps the vcl MapUnit enum to an API constant MeasureUnit.

Returns false if conversion is not supported.

Definition at line 997 of file unoprov.cxx.

bool SvxMapUnitToMeasureUnit ( const MapUnit  eVcl,
short &  eApi 
)
throw (
)

maps the vcl MapUnit enum to an API constant MeasureUnit.

Maps the vcl MapUnit enum to an API constant MeasureUnit.

Returns false if conversion is not supported.

Definition at line 945 of file unoprov.cxx.

bool SvxMeasureUnitToFieldUnit ( const short  eApi,
FieldUnit eVcl 
)
throw (
)

maps the API constant MeasureUnit to a vcl MapUnit enum.

Maps the API constant MeasureUnit to a vcl MapUnit enum.

Returns false if conversion is not supported.

Definition at line 971 of file unoprov.cxx.

static bool SvxUnoConvertResourceString ( const char **  pSourceResIds,
const char **  pDestResIds,
int  nCount,
OUString &  rString,
bool  bToApi 
)
static
Exceptions
std::exception

Definition at line 1529 of file unoprov.cxx.

References i, nLength, and SvxResId().

Referenced by SvxUnogetApiNameForItem(), and SvxUnogetInternalNameForItem().

static bool SvxUnoConvertResourceStringBuiltIn ( const char **  pSourceResIds,
const char **  pDestResIds,
int  nCount,
OUString &  rString,
bool  bToApi 
)
static
Exceptions
std::exception

Definition at line 1829 of file unoprov.cxx.

References i, nLength, and SvxResId().

Referenced by SvxUnogetApiNameForItem(), and SvxUnogetInternalNameForItem().

OUString SvxUnogetApiNameForItem ( const sal_uInt16  nWhich,
const OUString &  rInternalName 
)

if the given name is a predefined name for the current language it is replaced by the corresponding api name.

If the given name is a predefined name for the current language it is replaced by the corresponding API name.

Definition at line 1872 of file unoprov.cxx.

References nCount, SAL_N_ELEMENTS, SvxUnoConvertResourceString(), SvxUnoConvertResourceStringBuiltIn(), SvxUnoGetResourceRanges(), and XATTR_LINECOLOR.

Referenced by createNamesForPool(), SvxUnoNameItemTable::getElementNames(), XLineStartItem::QueryValue(), XLineEndItem::QueryValue(), XFillHatchItem::QueryValue(), XFillGradientItem::QueryValue(), XLineDashItem::QueryValue(), and XFillBitmapItem::QueryValue().

OUString SvxUnogetInternalNameForItem ( const sal_uInt16  nWhich,
const OUString &  rApiName 
)

if the given name is a predefined api name it is replaced by the predefined name for the current language.

If the given name is a predefined API name it is replaced by the predefined name for the current language.

Definition at line 1905 of file unoprov.cxx.

References nCount, SAL_N_ELEMENTS, SvxUnoConvertResourceString(), SvxUnoConvertResourceStringBuiltIn(), SvxUnoGetResourceRanges(), and XATTR_LINECOLOR.

Referenced by NameOrIndex::CheckNamedItem(), SvxUnoNameItemTable::getByName(), SvxUnoNameItemTable::hasByName(), SvxUnoNameItemTable::insertByName(), SvxUnoNameItemTable::removeByName(), SvxUnoNameItemTable::replaceByName(), and SvxShape::SetFillAttribute().

static bool SvxUnoGetResourceRanges ( const sal_uInt16  nWhich,
const char **&  pApiResIds,
const char **&  pIntResIds,
int nCount 
)
throw (
)
static

Variable Documentation

const char* RID_SVXSTR_BMP[]
static

Definition at line 1100 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_BMP_DEF[]
static

Definition at line 1020 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_DASH[]
static
Initial value:
=
{
RID_SVXSTR_DASH0,
RID_SVXSTR_DASH1,
RID_SVXSTR_DASH2,
RID_SVXSTR_DASH3,
RID_SVXSTR_DASH4,
RID_SVXSTR_DASH5,
RID_SVXSTR_DASH6,
RID_SVXSTR_DASH7,
RID_SVXSTR_DASH8,
RID_SVXSTR_DASH9,
RID_SVXSTR_DASH10,
RID_SVXSTR_DASH11,
RID_SVXSTR_DASH12
}

Definition at line 1197 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_DASH_DEF[]
static
Initial value:
=
{
}
#define RID_SVXSTR_DASH0_DEF
Definition: strings.hxx:300
#define RID_SVXSTR_DASH10_DEF
Definition: strings.hxx:310
#define RID_SVXSTR_DASH6_DEF
Definition: strings.hxx:306
#define RID_SVXSTR_DASH3_DEF
Definition: strings.hxx:303
#define RID_SVXSTR_DASH9_DEF
Definition: strings.hxx:309
#define RID_SVXSTR_DASH8_DEF
Definition: strings.hxx:308
#define RID_SVXSTR_DASH5_DEF
Definition: strings.hxx:305
#define RID_SVXSTR_DASH2_DEF
Definition: strings.hxx:302
#define RID_SVXSTR_DASH12_DEF
Definition: strings.hxx:312
#define RID_SVXSTR_DASH4_DEF
Definition: strings.hxx:304
#define RID_SVXSTR_DASH7_DEF
Definition: strings.hxx:307
#define RID_SVXSTR_DASH1_DEF
Definition: strings.hxx:301
#define RID_SVXSTR_DASH11_DEF
Definition: strings.hxx:311

Definition at line 1180 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_GRDT[]
static

Definition at line 1353 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_GRDT_DEF[]
static

Definition at line 1264 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_HATCHS[]
static
Initial value:
=
{
RID_SVXSTR_HATCH0,
RID_SVXSTR_HATCH1,
RID_SVXSTR_HATCH2,
RID_SVXSTR_HATCH3,
RID_SVXSTR_HATCH4,
RID_SVXSTR_HATCH5,
RID_SVXSTR_HATCH6,
RID_SVXSTR_HATCH7,
RID_SVXSTR_HATCH8,
RID_SVXSTR_HATCH9,
RID_SVXSTR_HATCH10
}

Definition at line 1457 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_HATCHS_DEF[]
static
Initial value:
=
{
}
#define RID_SVXSTR_HATCH8_DEF
Definition: strings.hxx:215
#define RID_SVXSTR_HATCH0_DEF
Definition: strings.hxx:207
#define RID_SVXSTR_HATCH5_DEF
Definition: strings.hxx:212
#define RID_SVXSTR_HATCH10_DEF
Definition: strings.hxx:217
#define RID_SVXSTR_HATCH4_DEF
Definition: strings.hxx:211
#define RID_SVXSTR_HATCH9_DEF
Definition: strings.hxx:216
#define RID_SVXSTR_HATCH1_DEF
Definition: strings.hxx:208
#define RID_SVXSTR_HATCH2_DEF
Definition: strings.hxx:209
#define RID_SVXSTR_HATCH6_DEF
Definition: strings.hxx:213
#define RID_SVXSTR_HATCH3_DEF
Definition: strings.hxx:210
#define RID_SVXSTR_HATCH7_DEF
Definition: strings.hxx:214

Definition at line 1442 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_LEND[]
static
Initial value:
=
{
RID_SVXSTR_LEND0,
RID_SVXSTR_LEND1,
RID_SVXSTR_LEND2,
RID_SVXSTR_LEND3,
RID_SVXSTR_LEND4,
RID_SVXSTR_LEND5,
RID_SVXSTR_LEND6,
RID_SVXSTR_LEND7,
RID_SVXSTR_LEND8,
RID_SVXSTR_LEND9,
RID_SVXSTR_LEND10,
RID_SVXSTR_LEND11,
RID_SVXSTR_LEND12,
RID_SVXSTR_LEND13,
RID_SVXSTR_LEND14,
RID_SVXSTR_LEND15,
RID_SVXSTR_LEND16,
RID_SVXSTR_LEND17,
RID_SVXSTR_LEND18,
RID_SVXSTR_LEND19,
RID_SVXSTR_LEND20
}

Definition at line 1239 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_LEND_DEF[]
static
Initial value:
=
{
}
#define RID_SVXSTR_LEND11_DEF
Definition: strings.hxx:325
#define RID_SVXSTR_LEND17_DEF
Definition: strings.hxx:331
#define RID_SVXSTR_LEND10_DEF
Definition: strings.hxx:324
#define RID_SVXSTR_LEND6_DEF
Definition: strings.hxx:320
#define RID_SVXSTR_LEND1_DEF
Definition: strings.hxx:315
#define RID_SVXSTR_LEND2_DEF
Definition: strings.hxx:316
#define RID_SVXSTR_LEND4_DEF
Definition: strings.hxx:318
#define RID_SVXSTR_LEND8_DEF
Definition: strings.hxx:322
#define RID_SVXSTR_LEND3_DEF
Definition: strings.hxx:317
#define RID_SVXSTR_LEND9_DEF
Definition: strings.hxx:323
#define RID_SVXSTR_LEND0_DEF
Definition: strings.hxx:314
#define RID_SVXSTR_LEND5_DEF
Definition: strings.hxx:319
#define RID_SVXSTR_LEND14_DEF
Definition: strings.hxx:328
#define RID_SVXSTR_LEND15_DEF
Definition: strings.hxx:329
#define RID_SVXSTR_LEND19_DEF
Definition: strings.hxx:333
#define RID_SVXSTR_LEND16_DEF
Definition: strings.hxx:330
#define RID_SVXSTR_LEND13_DEF
Definition: strings.hxx:327
#define RID_SVXSTR_LEND7_DEF
Definition: strings.hxx:321
#define RID_SVXSTR_LEND18_DEF
Definition: strings.hxx:332
#define RID_SVXSTR_LEND20_DEF
Definition: strings.hxx:334
#define RID_SVXSTR_LEND12_DEF
Definition: strings.hxx:326

Definition at line 1214 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_TRASNGR[]
static
Initial value:
=
{
RID_SVXSTR_TRASNGR0
}

Definition at line 1477 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_TRASNGR_DEF[]
static
Initial value:
=
{
}
#define RID_SVXSTR_TRASNGR0_DEF
Definition: strings.hxx:336

Definition at line 1472 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* SvxUnoColorNameDefResId[]
static

Definition at line 1604 of file unoprov.cxx.

const char* SvxUnoColorNameResId[]
static

Definition at line 1716 of file unoprov.cxx.