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 <rtl/ref.hxx>
#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

SVXCORE_DLLPUBLIC rtl::Reference< SvxShapeCreateSvxShapeByTypeAndInventor (SdrObjKind 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) noexcept
 Returns a StarOffice API wrapper for the given SdrObject. More...
 
SVXCORE_DLLPUBLIC css::uno::Reference< css::drawing::XDrawPage > GetXDrawPageForSdrPage (SdrPage *pPage) noexcept
 Returns a StarOffice API wrapper for the given SdrPage. More...
 
SVXCORE_DLLPUBLIC SdrPageGetSdrPageFromXDrawPage (const css::uno::Reference< css::drawing::XDrawPage > &xDrawPage) noexcept
 Returns the SdrPage from the given StarOffice API wrapper. More...
 
SVXCORE_DLLPUBLIC bool SvxMapUnitToMeasureUnit (const MapUnit nVcl, short &eApi) noexcept
 Maps the vcl MapUnit enum to an API constant MeasureUnit. More...
 
SVXCORE_DLLPUBLIC bool SvxMeasureUnitToFieldUnit (const short eApi, FieldUnit &nVcl) noexcept
 Maps the API constant MeasureUnit to a vcl MapUnit enum. More...
 
SVXCORE_DLLPUBLIC bool SvxFieldUnitToMeasureUnit (const FieldUnit nVcl, short &eApi) noexcept
 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

◆ CreateSvxShapeByTypeAndInventor()

SVXCORE_DLLPUBLIC rtl::Reference< SvxShape > CreateSvxShapeByTypeAndInventor ( SdrObjKind  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.

Exceptions
css::uno::RuntimeException

Definition at line 867 of file unopage.cxx.

References SvxDrawPage::CreateShapeByTypeAndInventor(), and nType.

Referenced by SvxUnoDrawingModel::createInstance().

◆ GetSdrPageFromXDrawPage()

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

Returns the SdrPage from the given StarOffice API wrapper.

◆ GetXDrawPageForSdrPage()

SVXCORE_DLLPUBLIC css::uno::Reference< css::drawing::XDrawPage > GetXDrawPageForSdrPage ( SdrPage pPage)
noexcept

◆ GetXShapeForSdrObject()

SVXCORE_DLLPUBLIC css::uno::Reference< css::drawing::XShape > GetXShapeForSdrObject ( SdrObject pObj)
noexcept

Returns a StarOffice API wrapper for the given SdrObject.

Returns a StarOffice API wrapper for the given SdrObject.

Definition at line 4013 of file unoshape.cxx.

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

◆ SvxFieldUnitToMeasureUnit()

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

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 986 of file unoprov.cxx.

◆ SvxMapUnitToMeasureUnit()

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

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 934 of file unoprov.cxx.

◆ SvxMeasureUnitToFieldUnit()

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

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 960 of file unoprov.cxx.

◆ SvxUnogetApiNameForItem()

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::exception

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

Definition at line 1991 of file unoprov.cxx.

References nCount, SAL_N_ELEMENTS, SvxUnoColorNameDefResId, SvxUnoColorNameResId, SvxUnoConvertResourceStringBuiltInToApi(), SvxUnoConvertResourceStringToApi(), SvxUnoGetResourceRanges(), and XATTR_LINECOLOR().

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

◆ SvxUnogetInternalNameForItem()

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::exception

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

Definition at line 2024 of file unoprov.cxx.

References nCount, SAL_N_ELEMENTS, SvxUnoColorNameDefResId, SvxUnoColorNameResId, SvxUnoConvertResourceStringBuiltInFromApi(), SvxUnoConvertResourceStringFromApi(), SvxUnoGetResourceRanges(), and XATTR_LINECOLOR().

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