blob: c5e057caaeaa4d84743e91b6664d1b5a046fdc91 [file] [log] [blame]
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef __com_sun_star_drawing_XShape_idl__
#define __com_sun_star_drawing_XShape_idl__
#ifndef __com_sun_star_drawing_XShapeDescriptor_idl__
#include <com/sun/star/drawing/XShapeDescriptor.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_beans_PropertyVetoException_idl__
#include <com/sun/star/beans/PropertyVetoException.idl>
#endif
//=============================================================================
module com { module sun { module star { module drawing {
//=============================================================================
/** lets you do a basic transformation on a <type>Shape</type> and
get its type.
*/
published interface XShape: com::sun::star::drawing::XShapeDescriptor
{
//-------------------------------------------------------------------------
/** gets the current position of this object.
@returns
the position of the top left edge in 100/th mm
*/
com::sun::star::awt::Point getPosition();
//-------------------------------------------------------------------------
/** sets the current position of this object
@param aPosition
the position of the top left edge in 100/th mm
*/
void setPosition( [in] com::sun::star::awt::Point aPosition );
//-------------------------------------------------------------------------
/** gets the size of this object.
@returns
the size in 100/th mm
*/
com::sun::star::awt::Size getSize();
//-------------------------------------------------------------------------
/** sets the size of this object.
@param aSize
the size in 100/th mm
*/
void setSize( [in] com::sun::star::awt::Size aSize )
raises( com::sun::star::beans::PropertyVetoException );
};
//=============================================================================
}; }; }; };
#endif