1*d1766043SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d1766043SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d1766043SAndrew Rist * distributed with this work for additional information 6*d1766043SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance 9*d1766043SAndrew Rist * with the License. You may obtain a copy of the License at 10*d1766043SAndrew Rist * 11*d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d1766043SAndrew Rist * 13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d1766043SAndrew Rist * software distributed under the License is distributed on an 15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d1766043SAndrew Rist * KIND, either express or implied. See the License for the 17*d1766043SAndrew Rist * specific language governing permissions and limitations 18*d1766043SAndrew Rist * under the License. 19*d1766043SAndrew Rist * 20*d1766043SAndrew Rist *************************************************************/ 21*d1766043SAndrew Rist 22*d1766043SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_drawing_Shape_idl__ 24cdf0e10cSrcweir#define __com_sun_star_drawing_Shape_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir#ifndef __com_sun_star_document_LinkTarget_idl__ 27cdf0e10cSrcweir#include <com/sun/star/document/LinkTarget.idl> 28cdf0e10cSrcweir#endif 29cdf0e10cSrcweir 30cdf0e10cSrcweir#ifndef __com_sun_star_drawing_XShape_idl__ 31cdf0e10cSrcweir#include <com/sun/star/drawing/XShape.idl> 32cdf0e10cSrcweir#endif 33cdf0e10cSrcweir 34cdf0e10cSrcweir#ifndef __com_sun_star_lang_XComponent_idl__ 35cdf0e10cSrcweir#include <com/sun/star/lang/XComponent.idl> 36cdf0e10cSrcweir#endif 37cdf0e10cSrcweir 38cdf0e10cSrcweir#ifndef __com_sun_star_style_XStyle_idl__ 39cdf0e10cSrcweir#include <com/sun/star/style/XStyle.idl> 40cdf0e10cSrcweir#endif 41cdf0e10cSrcweir 42cdf0e10cSrcweir#ifndef __com_sun_star_drawing_HomogenMatrix3_idl__ 43cdf0e10cSrcweir#include <com/sun/star/drawing/HomogenMatrix3.idl> 44cdf0e10cSrcweir#endif 45cdf0e10cSrcweir 46cdf0e10cSrcweir#ifndef __com_sun_star_drawing_XGluePointsSupplier_idl__ 47cdf0e10cSrcweir#include <com/sun/star/drawing/XGluePointsSupplier.idl> 48cdf0e10cSrcweir#endif 49cdf0e10cSrcweir 50cdf0e10cSrcweir#ifndef __com_sun_star_container_XNameContainer_idl__ 51cdf0e10cSrcweir#include <com/sun/star/container/XNameContainer.idl> 52cdf0e10cSrcweir#endif 53cdf0e10cSrcweir 54cdf0e10cSrcweir#ifndef __com_sun_star_beans_XTolerantMultiPropertySet_idl__ 55cdf0e10cSrcweir#include <com/sun/star/beans/XTolerantMultiPropertySet.idl> 56cdf0e10cSrcweir#endif 57cdf0e10cSrcweir 58cdf0e10cSrcweir//============================================================================= 59cdf0e10cSrcweir 60cdf0e10cSrcweir module com { module sun { module star { module drawing { 61cdf0e10cSrcweir 62cdf0e10cSrcweir//============================================================================= 63cdf0e10cSrcweir 64cdf0e10cSrcweir/** This abstract service specifies the general characteristics of all 65cdf0e10cSrcweir <type>Shape</type>s. 66cdf0e10cSrcweir 67cdf0e10cSrcweir @see XShape 68cdf0e10cSrcweir @see com::sun::star::lang::XComponent 69cdf0e10cSrcweir @see com::sun::star::text::XText 70cdf0e10cSrcweir @see ShapeDescriptor 71cdf0e10cSrcweir */ 72cdf0e10cSrcweirpublished service Shape 73cdf0e10cSrcweir{ 74cdf0e10cSrcweir //------------------------------------------------------------------------- 75cdf0e10cSrcweir 76cdf0e10cSrcweir /** handles all the properties of this instance. 77cdf0e10cSrcweir */ 78cdf0e10cSrcweir interface com::sun::star::beans::XPropertySet; 79cdf0e10cSrcweir 80cdf0e10cSrcweir //------------------------------------------------------------------------- 81cdf0e10cSrcweir 82cdf0e10cSrcweir /** This gives you the size and position of this <type>Shape</type> 83cdf0e10cSrcweir and lets you change it. You can use <member>getShapeType</member> 84cdf0e10cSrcweir to determine what kind of shape this is. 85cdf0e10cSrcweir */ 86cdf0e10cSrcweir interface com::sun::star::drawing::XShape; 87cdf0e10cSrcweir 88cdf0e10cSrcweir //------------------------------------------------------------------------- 89cdf0e10cSrcweir 90cdf0e10cSrcweir /** is used for lifetime control of this <type>Shape</type>. 91cdf0e10cSrcweir */ 92cdf0e10cSrcweir interface com::sun::star::lang::XComponent; 93cdf0e10cSrcweir 94cdf0e10cSrcweir //------------------------------------------------------------------------- 95cdf0e10cSrcweir 96cdf0e10cSrcweir /** The <type>XShapeDescriptor</type> tells you what kind of 97cdf0e10cSrcweir <type>Shape</type> this instance is. 98cdf0e10cSrcweir */ 99cdf0e10cSrcweir interface com::sun::star::drawing::XShapeDescriptor; 100cdf0e10cSrcweir 101cdf0e10cSrcweir //------------------------------------------------------------------------- 102cdf0e10cSrcweir 103cdf0e10cSrcweir /** This interfaces gives access to an optional container of glue points. 104cdf0e10cSrcweir To have unique ids you should query the returned interface for 105cdf0e10cSrcweir <type scope="com::sun::star::container">XIdentifierContainer</type>. 106cdf0e10cSrcweir */ 107cdf0e10cSrcweir [optional] interface com::sun::star::drawing::XGluePointsSupplier; 108cdf0e10cSrcweir 109cdf0e10cSrcweir //------------------------------------------------------------------------- 110cdf0e10cSrcweir 111cdf0e10cSrcweir [optional] interface com::sun::star::beans::XTolerantMultiPropertySet; 112cdf0e10cSrcweir 113cdf0e10cSrcweir //------------------------------------------------------------------------- 114cdf0e10cSrcweir 115cdf0e10cSrcweir /** is used to query or change the ZOrder of this <type>Shape</type>. */ 116cdf0e10cSrcweir [optional, property] long ZOrder; 117cdf0e10cSrcweir 118cdf0e10cSrcweir //------------------------------------------------------------------------- 119cdf0e10cSrcweir 120cdf0e10cSrcweir /** This is the ID of the <type>Layer</type> to which this 121cdf0e10cSrcweir <type>Shape</type> is attached. 122cdf0e10cSrcweir */ 123cdf0e10cSrcweir [optional, property] short LayerID; 124cdf0e10cSrcweir 125cdf0e10cSrcweir //------------------------------------------------------------------------- 126cdf0e10cSrcweir 127cdf0e10cSrcweir /** This is the name of the <type>Layer</type> to which this 128cdf0e10cSrcweir <type>Shape</type> is attached. 129cdf0e10cSrcweir */ 130cdf0e10cSrcweir [optional, property] string LayerName; 131cdf0e10cSrcweir 132cdf0e10cSrcweir //------------------------------------------------------------------------- 133cdf0e10cSrcweir 134cdf0e10cSrcweir /** If this is <FALSE/>, the <type>Shape</type> is not visible 135cdf0e10cSrcweir on screen outputs. Please note that the <type>Shape</type> may still 136cdf0e10cSrcweir be visible when printed, see <member>Printable</member>. 137cdf0e10cSrcweir */ 138cdf0e10cSrcweir [optional, property] boolean Visible; 139cdf0e10cSrcweir 140cdf0e10cSrcweir //------------------------------------------------------------------------- 141cdf0e10cSrcweir 142cdf0e10cSrcweir /** If this is <FALSE/>, the <type>Shape</type> is not visible 143cdf0e10cSrcweir on printer outputs. 144cdf0e10cSrcweir */ 145cdf0e10cSrcweir [optional, property] boolean Printable; 146cdf0e10cSrcweir 147cdf0e10cSrcweir //------------------------------------------------------------------------- 148cdf0e10cSrcweir 149cdf0e10cSrcweir /** With this set to <TRUE/>, this <type>Shape</type> 150cdf0e10cSrcweir cannot be moved interactively in the user interface. 151cdf0e10cSrcweir */ 152cdf0e10cSrcweir [optional, property] boolean MoveProtect; 153cdf0e10cSrcweir 154cdf0e10cSrcweir //------------------------------------------------------------------------- 155cdf0e10cSrcweir 156cdf0e10cSrcweir /** This is the name of this <type>Shape</type>. 157cdf0e10cSrcweir */ 158cdf0e10cSrcweir [optional, property] string Name; 159cdf0e10cSrcweir 160cdf0e10cSrcweir //------------------------------------------------------------------------- 161cdf0e10cSrcweir 162cdf0e10cSrcweir /** With this set to <TRUE/>, this <type>Shape</type> may not be 163cdf0e10cSrcweir sized interactively in the user interface. 164cdf0e10cSrcweir */ 165cdf0e10cSrcweir [optional, property] boolean SizeProtect; 166cdf0e10cSrcweir 167cdf0e10cSrcweir //------------------------------------------------------------------------- 168cdf0e10cSrcweir 169cdf0e10cSrcweir /** this property lets you get and set a style for this shape. 170cdf0e10cSrcweir */ 171cdf0e10cSrcweir [optional, property] com::sun::star::style::XStyle Style; 172cdf0e10cSrcweir 173cdf0e10cSrcweir //------------------------------------------------------------------------- 174cdf0e10cSrcweir 175cdf0e10cSrcweir /** this property lets you get and set the transformation matrix 176cdf0e10cSrcweir for this shape. 177cdf0e10cSrcweir 178cdf0e10cSrcweir The transformation is a 3x3 homogen matrix and can contain 179cdf0e10cSrcweir translation, rotation, shearing and scaling. 180cdf0e10cSrcweir */ 181cdf0e10cSrcweir [optional, property] com::sun::star::drawing::HomogenMatrix3 Transformation; 182cdf0e10cSrcweir 183cdf0e10cSrcweir //------------------------------------------------------------------------- 184cdf0e10cSrcweir 185cdf0e10cSrcweir /** this property stores xml attributes. 186cdf0e10cSrcweir They will be saved to and restored from automatic styles inside xml files. 187cdf0e10cSrcweir 188cdf0e10cSrcweir @see com::sun::star::xml::AttributeContainer 189cdf0e10cSrcweir */ 190cdf0e10cSrcweir [optional, property] com::sun::star::container::XNameContainer ShapeUserDefinedAttributes; 191cdf0e10cSrcweir 192cdf0e10cSrcweir //------------------------------------------------------------------------- 193cdf0e10cSrcweir 194cdf0e10cSrcweir /** this property stores the navigation order of this shape. If this value 195cdf0e10cSrcweir is negative, the navigation order for this shapes page is equal to 196cdf0e10cSrcweir the z-order. 197cdf0e10cSrcweir */ 198cdf0e10cSrcweir [optional, property] long NavigationOrder; 199cdf0e10cSrcweir}; 200cdf0e10cSrcweir 201cdf0e10cSrcweir//============================================================================= 202cdf0e10cSrcweir 203cdf0e10cSrcweir}; }; }; }; 204cdf0e10cSrcweir 205cdf0e10cSrcweir#endif 206cdf0e10cSrcweir 207