diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-06-25 13:49:52 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-06-25 13:49:52 +0000 |
commit | d881dfccebdec3805eb8a3cda739a60f9bf64bb7 (patch) | |
tree | 9165f525d27aadd43cfd7b2793cb33c1742f60c9 | |
parent | 0ea42ce14ad4048161fdea2841ac0d279a108a4e (diff) |
INTEGRATION: CWS rptwizard01 (1.1.2); FILE ADDED
2008/06/24 14:17:06 kz 1.1.2.2: fixed wrong license header
2008/03/14 13:49:56 lla 1.1.2.1: #i86925# XUnitConversion
-rw-r--r-- | offapi/com/sun/star/awt/XUnitConversion.idl | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/offapi/com/sun/star/awt/XUnitConversion.idl b/offapi/com/sun/star/awt/XUnitConversion.idl new file mode 100644 index 000000000000..8a8b4420df3d --- /dev/null +++ b/offapi/com/sun/star/awt/XUnitConversion.idl @@ -0,0 +1,92 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: XUnitConversion.idl,v $ + * + * $Revision: 1.2 $ + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ +#ifndef __com_sun_star_awt_XUnitConversion_idl__ +#define __com_sun_star_awt_XUnitConversion_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif + +// #ifndef __com_sun_star_util_MeasureUnit_idl__ +// #include <com/sun/star/util/MeasureUnit.idl> +// #endif + +#ifndef __com_sun_star_awt_Point_idl__ +#include <com/sun/star/awt/Point.idl> +#endif + +#ifndef __com_sun_star_awt_Size_idl__ +#include <com/sun/star/awt/Size.idl> +#endif + +#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ +#include <com/sun/star/lang/IllegalArgumentException.idl> +#endif + +//============================================================================= + + module com { module sun { module star { module awt { + +//============================================================================= + +/** gives access to the value and formatting of a metric field. + */ +interface XUnitConversion: com::sun::star::uno::XInterface +{ + //------------------------------------------------------------------------- + + /** + */ + com::sun::star::awt::Point convertPointToLogic( [in] com::sun::star::awt::Point aPoint, [in] short TargetUnit ) + raises ( com::sun::star::lang::IllegalArgumentException ); + + com::sun::star::awt::Point convertPointToPixel( [in] com::sun::star::awt::Point aPoint, [in] short SourceUnit ) + raises ( com::sun::star::lang::IllegalArgumentException ); + + + //------------------------------------------------------------------------- + + /** + */ + com::sun::star::awt::Size convertSizeToLogic( [in] com::sun::star::awt::Size aSize, [in] short TargetUnit ) + raises ( com::sun::star::lang::IllegalArgumentException ); + + com::sun::star::awt::Size convertSizeToPixel( [in] com::sun::star::awt::Size aSize, [in] short SourceUnit ) + raises ( com::sun::star::lang::IllegalArgumentException ); + + +}; + +//============================================================================= + +}; }; }; }; + +#endif |