16fbb7301SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
36fbb7301SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
46fbb7301SAndrew Rist * or more contributor license agreements.  See the NOTICE file
56fbb7301SAndrew Rist * distributed with this work for additional information
66fbb7301SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
76fbb7301SAndrew Rist * to you under the Apache License, Version 2.0 (the
86fbb7301SAndrew Rist * "License"); you may not use this file except in compliance
96fbb7301SAndrew Rist * with the License.  You may obtain a copy of the License at
106fbb7301SAndrew Rist *
116fbb7301SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
126fbb7301SAndrew Rist *
136fbb7301SAndrew Rist * Unless required by applicable law or agreed to in writing,
146fbb7301SAndrew Rist * software distributed under the License is distributed on an
156fbb7301SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
166fbb7301SAndrew Rist * KIND, either express or implied.  See the License for the
176fbb7301SAndrew Rist * specific language governing permissions and limitations
186fbb7301SAndrew Rist * under the License.
196fbb7301SAndrew Rist *
206fbb7301SAndrew Rist *************************************************************/
216fbb7301SAndrew Rist
226fbb7301SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __ooo_vba_excel_SheetObjects_idl__
25cdf0e10cSrcweir#define __ooo_vba_excel_SheetObjects_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#include <ooo/vba/XCollection.idl>
28*b63233d8Sdamjan#include <ooo/vba/excel/XGraphicObjects.idl>
29cdf0e10cSrcweir
30cdf0e10cSrcweir//=============================================================================
31cdf0e10cSrcweir
32cdf0e10cSrcweir/*  Note: This file collects all compatibility interfaces for collections of
33cdf0e10cSrcweir    drawing objects and drawing controls embedded in sheets. All these symbols
34cdf0e10cSrcweir    are deprecated in VBA and kept for compatibility with old VBA scripts. */
35cdf0e10cSrcweir
36cdf0e10cSrcweir//=============================================================================
37cdf0e10cSrcweir
38cdf0e10cSrcweirmodule ooo {  module vba { module excel {
39cdf0e10cSrcweir
40cdf0e10cSrcweir//=============================================================================
41cdf0e10cSrcweir
42cdf0e10cSrcweir/** Collections that implement this interface provide access to a specific type
43cdf0e10cSrcweir    of drawing objects in a single sheet.
44cdf0e10cSrcweir
45cdf0e10cSrcweir    <p>The following sheet symbols represent collections of line objects, and
46cdf0e10cSrcweir    therefore implement this interface:</p>
47cdf0e10cSrcweir    <ul><li>Arcs: arc objects, and</li>
48cdf0e10cSrcweir    <li>Lines: straight line ojects.</li></ul>
49cdf0e10cSrcweir
50cdf0e10cSrcweir    <p>These symbols are now deprecated in VBA but kept for compatibility with
51cdf0e10cSrcweir    old VBA scripts.</p>
52cdf0e10cSrcweir */
53cdf0e10cSrcweirinterface XLineObjects : com::sun::star::uno::XInterface
54cdf0e10cSrcweir{
55cdf0e10cSrcweir    /** Adds a new line object to the sheet this collection belongs to. The
56cdf0e10cSrcweir        type of the object is determined by the type of the collection.
57cdf0e10cSrcweir
58cdf0e10cSrcweir        @param X1  Position of the first X coordinate in points (1/72 inch).
59cdf0e10cSrcweir        @param Y1  Position of the first Y coordinate in points (1/72 inch).
60cdf0e10cSrcweir        @param X2  Position of the last X coordinate in points (1/72 inch).
61cdf0e10cSrcweir        @param Y2  Position of the last Y coordinate in points (1/72 inch).
62cdf0e10cSrcweir
63cdf0e10cSrcweir        @return  The created line object.
64cdf0e10cSrcweir     */
65cdf0e10cSrcweir    any Add( [in] any X1, [in] any Y1, [in] any X2, [in] any Y2 );
66cdf0e10cSrcweir};
67cdf0e10cSrcweir
68cdf0e10cSrcweir//=============================================================================
69cdf0e10cSrcweir
70cdf0e10cSrcweir/** A collection providing access to all polygon objects in a single sheet.
71cdf0e10cSrcweir
72cdf0e10cSrcweir    <p>This symbol is now deprecated in VBA but kept for compatibility with old
73cdf0e10cSrcweir    VBA scripts.</p>
74cdf0e10cSrcweir */
75cdf0e10cSrcweirinterface XDrawings : com::sun::star::uno::XInterface
76cdf0e10cSrcweir{
77cdf0e10cSrcweir    /** Adds a new polygon object to the sheet this collection belongs to.
78cdf0e10cSrcweir
79cdf0e10cSrcweir        @param X1  Position of the first X coordinate in points (1/72 inch).
80cdf0e10cSrcweir        @param Y1  Position of the first Y coordinate in points (1/72 inch).
81cdf0e10cSrcweir        @param X2  Position of the last X coordinate in points (1/72 inch).
82cdf0e10cSrcweir        @param Y2  Position of the last Y coordinate in points (1/72 inch).
83cdf0e10cSrcweir        @param Closed  True = outline closed (last and first point connected).
84cdf0e10cSrcweir
85cdf0e10cSrcweir        @return  The created polygon object.
86cdf0e10cSrcweir     */
87cdf0e10cSrcweir    any Add( [in] any X1, [in] any Y1, [in] any X2, [in] any Y2, [in] any Closed );
88cdf0e10cSrcweir};
89cdf0e10cSrcweir
90cdf0e10cSrcweir//=============================================================================
91cdf0e10cSrcweir
92cdf0e10cSrcweir/** Represents the collection of drawing button controls in a spreadsheet. */
93cdf0e10cSrcweirservice Buttons
94cdf0e10cSrcweir{
95cdf0e10cSrcweir    interface ooo::vba::XCollection;
96cdf0e10cSrcweir    interface XGraphicObjects;
97cdf0e10cSrcweir};
98cdf0e10cSrcweir
99cdf0e10cSrcweir//=============================================================================
100cdf0e10cSrcweir
101cdf0e10cSrcweir}; }; };
102cdf0e10cSrcweir
103cdf0e10cSrcweir#endif
104