diff options
author | Christian Lippka <cl@openoffice.org> | 2001-02-21 12:07:03 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-02-21 12:07:03 +0000 |
commit | 4b5a9ff836327fd391418aacd283503845f93a17 (patch) | |
tree | facde3e1d560338af1095eed325ab1cd72092a20 /svx/inc | |
parent | cb4fdd8bc4d7fc6c8debdadf3040ed9e7a7fe3f2 (diff) |
added helper for measure conversion
Diffstat (limited to 'svx/inc')
-rw-r--r-- | svx/inc/unoapi.hxx | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/svx/inc/unoapi.hxx b/svx/inc/unoapi.hxx index 00fedbccb691..d9ffe24b84c1 100644 --- a/svx/inc/unoapi.hxx +++ b/svx/inc/unoapi.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unoapi.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: cl $ $Date: 2000-09-28 12:34:18 $ + * last change: $Author: cl $ $Date: 2001-02-21 13:03:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -66,6 +66,10 @@ #include <com/sun/star/drawing/XShape.hpp> #endif +#ifndef _SAL_TYPES_H_ +#include <sal/types.h> +#endif + #ifndef _GRFMGR_HXX #include <goodies/grfmgr.hxx> #endif @@ -94,5 +98,25 @@ GraphicObject CreateGraphicObjectFromURL( const ::rtl::OUString &rURL ) throw() */ SvxNumBulletItem* SvxGetNumBulletItemByName( SfxItemPool* pPool, const ::rtl::OUString& aName ) throw(); +/** maps the API constant MeasureUnit to a vcl MapUnit enum. + Returns false if conversion is not supported. +*/ +sal_Bool SvxMeasureUnitToMapUnit( const short eApi, short& nVcl ) throw(); + +/** maps the vcl MapUnit enum to a API constant MeasureUnit. + Returns false if conversion is not supported. +*/ +sal_Bool SvxMapUnitToMeasureUnit( const short nVcl, short& eApi ) throw(); + +/** maps the API constant MeasureUnit to a vcl MapUnit enum. + Returns false if conversion is not supported. +*/ +sal_Bool SvxMeasureUnitToFieldUnit( const short eApi, short& nVcl ) throw(); + +/** maps the vcl MapUnit enum to a API constant MeasureUnit. + Returns false if conversion is not supported. +*/ +sal_Bool SvxFieldUnitToMeasureUnit( const short nVcl, short& eApi ) throw(); + #endif _SVX_UNOAPI_HXX_ |