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

enum SdrInventor sal_uInt32 SVXCORE_DLLPUBLIC rtl::Reference< 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) 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

enum SdrInventor sal_uInt32 SVXCORE_DLLPUBLIC rtl::Reference<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 864 of file unopage.cxx.

References SvxDrawPage::CreateShapeByTypeAndInventor().

Referenced by SvxUnoDrawingModel::createInstance().

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

Returns the SdrPage from the given StarOffice API wrapper.

SVXCORE_DLLPUBLIC css::uno::Reference< css::drawing::XDrawPage > GetXDrawPageForSdrPage ( SdrPage pPage)
noexcept
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 4002 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 
)
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 1001 of file unoprov.cxx.

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

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

References nCount, SAL_N_ELEMENTS, SvxUnoColorNameDefResId, SvxUnoConvertResourceStringBuiltInToApi(), SvxUnoConvertResourceStringToApi(), 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 2039 of file unoprov.cxx.

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

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