xref: /trunk/main/oovbaapi/ooo/vba/msforms/XShape.idl (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __ooo_vba_msforms_XShape_idl__
28#define __ooo_vba_msforms_XShape_idl__
29
30#ifndef __ooo_vba_XHelperInterface_idl__
31#include <ooo/vba/XHelperInterface.idl>
32#endif
33
34#ifndef __ooo_vba_msforms_XLineFormat_idl__
35#include <ooo/vba/msforms/XLineFormat.idl>
36#endif
37
38#ifndef __ooo_vba_msforms_XFillFormat_idl__
39#include <ooo/vba/msforms/XFillFormat.idl>
40#endif
41
42#ifndef __ooo_vba_msforms_XPictureFormat_idl__
43#include <ooo/vba/msforms/XPictureFormat.idl>
44#endif
45
46module ooo {  module vba { module msforms {
47interface XShapeRange;
48interface XShape : ooo::vba::XHelperInterface
49{
50    [attribute] string Name;
51    [attribute] double Height;
52    [attribute] double Width;
53    [attribute] double Left;
54    [attribute] double Top;
55    [attribute] boolean Visible;
56    [attribute, readonly] long ZOrderPosition;
57    [attribute, readonly] long Type;
58    [attribute] double Rotation;
59    [attribute, readonly] XLineFormat Line;
60    [attribute, readonly] XFillFormat Fill;
61    [attribute, readonly] XPictureFormat PictureFormat;
62    [attribute] boolean LockAspectRatio;
63    [attribute] boolean LockAnchor;
64    [attribute] long RelativeHorizontalPosition;
65    [attribute] long RelativeVerticalPosition;
66
67    any TextFrame();
68    any WrapFormat();
69    void Delete();
70    void ZOrder( [in] long ZOrderCmd );
71    void IncrementRotation( [in] double Increment );
72    void IncrementLeft( [in] double Increment );
73    void IncrementTop( [in] double Increment );
74    void Select( [in]  /*Optional*/ any Replace );
75    void ScaleHeight( [in] double Factor, [in] boolean RelativeToOriginalSize, [in] long Scale );
76    void ScaleWidth( [in] double Factor, [in] boolean RelativeToOriginalSize, [in] long Scale );
77    any ShapeRange( [in] any index );  // only here for convience
78};
79}; }; };
80
81#endif
82