LibreOffice Module svx (master)  1
Functions
unoapi.hxx File Reference
#include <com/sun/star/drawing/XShape.hpp>
#include <com/sun/star/drawing/XDrawPage.hpp>
#include <sal/types.h>
#include <svx/svxdllapi.h>
#include <tools/fldunit.hxx>
#include <tools/mapunit.hxx>
Include dependency graph for unoapi.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

enum SdrInventor sal_uInt32 SVXCORE_DLLPUBLIC SvxShapeCreateSvxShapeByTypeAndInventor (sal_uInt16 nType, SdrInventor nInventor, OUString const &referer)
 Creates a StarOffice API wrapper with the given type and inventor Deprecated: This will be replaced with a function returning XShape. More...
 
SVXCORE_DLLPUBLIC css::uno::Reference< css::drawing::XShape > GetXShapeForSdrObject (SdrObject *pObj) throw ()
 Returns a StarOffice API wrapper for the given SdrObject. More...
 
SVXCORE_DLLPUBLIC SdrObjectGetSdrObjectFromXShape (const css::uno::Reference< css::drawing::XShape > &xShape) throw ()
 Returns the SdrObject from the given StarOffice API wrapper. More...
 
SVXCORE_DLLPUBLIC css::uno::Reference< css::drawing::XDrawPage > GetXDrawPageForSdrPage (SdrPage *pPage) throw ()
 Returns a StarOffice API wrapper for the given SdrPage. More...
 
SVXCORE_DLLPUBLIC SdrPageGetSdrPageFromXDrawPage (const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage) throw ()
 Returns the SdrPage from the given StarOffice API wrapper. More...
 
SVXCORE_DLLPUBLIC bool SvxMapUnitToMeasureUnit (const MapUnit nVcl, short &eApi) throw ()
 Maps the vcl MapUnit enum to an API constant MeasureUnit. More...
 
SVXCORE_DLLPUBLIC bool SvxMeasureUnitToFieldUnit (const short eApi, FieldUnit &nVcl) throw ()
 Maps the API constant MeasureUnit to a vcl MapUnit enum. More...
 
SVXCORE_DLLPUBLIC bool SvxFieldUnitToMeasureUnit (const FieldUnit nVcl, short &eApi) throw ()
 Maps the vcl MapUnit enum to an API constant MeasureUnit. More...
 
SVXCORE_DLLPUBLIC 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...
 

Function Documentation

enum SdrInventor sal_uInt32 SVXCORE_DLLPUBLIC SvxShape* CreateSvxShapeByTypeAndInventor ( sal_uInt16  nType,
SdrInventor  nInventor,
OUString const &  referer 
)
strong

Creates a StarOffice API wrapper with the given type and inventor Deprecated: This will be replaced with a function returning XShape.

Exceptions
css::uno::RuntimeException

Definition at line 877 of file unopage.cxx.

References SvxDrawPage::CreateShapeByTypeAndInventor().

Referenced by SvxUnoDrawingModel::createInstance().

SVXCORE_DLLPUBLIC SdrObject* GetSdrObjectFromXShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)
throw (
)

Returns the SdrObject from the given StarOffice API wrapper.

SVXCORE_DLLPUBLIC SdrPage* GetSdrPageFromXDrawPage ( const css::uno::Reference< css::drawing::XDrawPage > &  xDrawPage)
throw (
)

Returns the SdrPage from the given StarOffice API wrapper.

SVXCORE_DLLPUBLIC css::uno::Reference< css::drawing::XDrawPage > GetXDrawPageForSdrPage ( SdrPage pPage)
throw (
)
SVXCORE_DLLPUBLIC css::uno::Reference< css::drawing::XShape > GetXShapeForSdrObject ( SdrObject pObj)
throw (
)

Returns a StarOffice API wrapper for the given SdrObject.

Returns a StarOffice API wrapper for the given SdrObject.

Definition at line 3926 of file unoshape.cxx.

Referenced by svx::FontworkBar::execute(), SdrObjCustomShape::GetCustomShapeEngine(), accessibility::AccessibleShape::getGroupPosition(), and SvxShape::getPropertyValueImpl().

SVXCORE_DLLPUBLIC bool SvxFieldUnitToMeasureUnit ( const FieldUnit  eVcl,
short &  eApi 
)
throw (
)

Maps the vcl MapUnit enum to an API constant MeasureUnit.

Returns false if conversion is not supported.

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.

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

Maps the vcl MapUnit enum to an API constant MeasureUnit.

Returns false if conversion is not supported.

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.

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

Maps the API constant MeasureUnit to a vcl MapUnit enum.

Returns false if conversion is not supported.

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.

SVXCORE_DLLPUBLIC 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.

Exceptions
std::exceptionIf 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.

Exceptions
std::exceptionIf 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().