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/svdobjkind.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 804 of file unoprov.cxx.

Function Documentation

SvxUnoPropertyMapProvider& getSvxMapProvider ( )

Definition at line 888 of file unoprov.cxx.

Referenced by SvxDrawPage::CreateShapeByTypeAndInventor().

static comphelper::PropertyMapEntry const* ImplGetAdditionalWriterDrawingDefaultsPropertyMap ( )
static

Definition at line 793 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 1008 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 956 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 982 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 1624 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 1908 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 1951 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 1984 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 1128 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_BMP_DEF[]
static

Definition at line 1031 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,
RID_SVXSTR_DASH13,
RID_SVXSTR_DASH14,
RID_SVXSTR_DASH15,
RID_SVXSTR_DASH16,
RID_SVXSTR_DASH17,
RID_SVXSTR_DASH18,
RID_SVXSTR_DASH19,
RID_SVXSTR_DASH20,
RID_SVXSTR_DASH21
}

Definition at line 1251 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_DASH_DEF[]
static
Initial value:
=
{
}
#define RID_SVXSTR_DASH15_DEF
Definition: strings.hxx:334
#define RID_SVXSTR_DASH0_DEF
Definition: strings.hxx:319
#define RID_SVXSTR_DASH10_DEF
Definition: strings.hxx:329
#define RID_SVXSTR_DASH13_DEF
Definition: strings.hxx:332
#define RID_SVXSTR_DASH16_DEF
Definition: strings.hxx:335
#define RID_SVXSTR_DASH17_DEF
Definition: strings.hxx:336
#define RID_SVXSTR_DASH21_DEF
Definition: strings.hxx:340
#define RID_SVXSTR_DASH6_DEF
Definition: strings.hxx:325
#define RID_SVXSTR_DASH3_DEF
Definition: strings.hxx:322
#define RID_SVXSTR_DASH9_DEF
Definition: strings.hxx:328
#define RID_SVXSTR_DASH8_DEF
Definition: strings.hxx:327
#define RID_SVXSTR_DASH5_DEF
Definition: strings.hxx:324
#define RID_SVXSTR_DASH2_DEF
Definition: strings.hxx:321
#define RID_SVXSTR_DASH12_DEF
Definition: strings.hxx:331
#define RID_SVXSTR_DASH4_DEF
Definition: strings.hxx:323
#define RID_SVXSTR_DASH7_DEF
Definition: strings.hxx:326
#define RID_SVXSTR_DASH14_DEF
Definition: strings.hxx:333
#define RID_SVXSTR_DASH1_DEF
Definition: strings.hxx:320
#define RID_SVXSTR_DASH11_DEF
Definition: strings.hxx:330
#define RID_SVXSTR_DASH19_DEF
Definition: strings.hxx:338
#define RID_SVXSTR_DASH20_DEF
Definition: strings.hxx:339
#define RID_SVXSTR_DASH18_DEF
Definition: strings.hxx:337

Definition at line 1225 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_GRDT[]
static

Definition at line 1438 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_GRDT_DEF[]
static

Definition at line 1349 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,
RID_SVXSTR_HATCH11,
RID_SVXSTR_HATCH12,
RID_SVXSTR_HATCH13,
RID_SVXSTR_HATCH14,
RID_SVXSTR_HATCH15
}

Definition at line 1547 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_HATCH15_DEF
Definition: strings.hxx:222
#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_HATCH14_DEF
Definition: strings.hxx:221
#define RID_SVXSTR_HATCH2_DEF
Definition: strings.hxx:209
#define RID_SVXSTR_HATCH11_DEF
Definition: strings.hxx:218
#define RID_SVXSTR_HATCH6_DEF
Definition: strings.hxx:213
#define RID_SVXSTR_HATCH3_DEF
Definition: strings.hxx:210
#define RID_SVXSTR_HATCH13_DEF
Definition: strings.hxx:220
#define RID_SVXSTR_HATCH7_DEF
Definition: strings.hxx:214
#define RID_SVXSTR_HATCH12_DEF
Definition: strings.hxx:219

Definition at line 1527 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_LEND[]
static

Definition at line 1313 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* RID_SVXSTR_LEND_DEF[]
static

Definition at line 1277 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

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

Definition at line 1572 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

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

Definition at line 1567 of file unoprov.cxx.

Referenced by SvxUnoGetResourceRanges().

const char* SvxUnoColorNameDefResId[]
static

Definition at line 1699 of file unoprov.cxx.

const char* SvxUnoColorNameResId[]
static

Definition at line 1803 of file unoprov.cxx.