1*6fbb7301SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*6fbb7301SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*6fbb7301SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*6fbb7301SAndrew Rist * distributed with this work for additional information
6*6fbb7301SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*6fbb7301SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*6fbb7301SAndrew Rist * "License"); you may not use this file except in compliance
9*6fbb7301SAndrew Rist * with the License.  You may obtain a copy of the License at
10*6fbb7301SAndrew Rist *
11*6fbb7301SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*6fbb7301SAndrew Rist *
13*6fbb7301SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*6fbb7301SAndrew Rist * software distributed under the License is distributed on an
15*6fbb7301SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*6fbb7301SAndrew Rist * KIND, either express or implied.  See the License for the
17*6fbb7301SAndrew Rist * specific language governing permissions and limitations
18*6fbb7301SAndrew Rist * under the License.
19*6fbb7301SAndrew Rist *
20*6fbb7301SAndrew Rist *************************************************************/
21*6fbb7301SAndrew Rist
22*6fbb7301SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __ooo_vba_excel_SheetObjects_idl__
25cdf0e10cSrcweir#define __ooo_vba_excel_SheetObjects_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#include <ooo/vba/XCollection.idl>
28cdf0e10cSrcweir
29cdf0e10cSrcweir//=============================================================================
30cdf0e10cSrcweir
31cdf0e10cSrcweir/*  Note: This file collects all compatibility interfaces for collections of
32cdf0e10cSrcweir    drawing objects and drawing controls embedded in sheets. All these symbols
33cdf0e10cSrcweir    are deprecated in VBA and kept for compatibility with old VBA scripts. */
34cdf0e10cSrcweir
35cdf0e10cSrcweir//=============================================================================
36cdf0e10cSrcweir
37cdf0e10cSrcweirmodule ooo {  module vba { module excel {
38cdf0e10cSrcweir
39cdf0e10cSrcweir//=============================================================================
40cdf0e10cSrcweir
41cdf0e10cSrcweir/** Collections that implement this interface provide access to a specific type
42cdf0e10cSrcweir    of drawing objects in a single sheet.
43cdf0e10cSrcweir
44cdf0e10cSrcweir    <p>The following sheet symbols represent collections of graphic objects,
45cdf0e10cSrcweir    and therefore implement this interface:</p>
46cdf0e10cSrcweir    <ul><li>Buttons: push button (command button) controls,</li>
47cdf0e10cSrcweir    <li>ChartObjects: chart objects embedded in the sheet,</li>
48cdf0e10cSrcweir    <li>CheckBoxes: check box controls,</li>
49cdf0e10cSrcweir    <li>DropDowns: drop-down listbox controls,</li>
50cdf0e10cSrcweir    <li>EditBoxes: text edit controls (dialog sheets only),</li>
51cdf0e10cSrcweir    <li>GroupBoxes: group frame controls,</li>
52cdf0e10cSrcweir    <li>GroupObjects: group objects containing other child objects,</li>
53cdf0e10cSrcweir    <li>Labels: fixed text controls,</li>
54cdf0e10cSrcweir    <li>ListBoxes: plain listbox controls,</li>
55cdf0e10cSrcweir    <li>OptionButtons: option button (radio button) controls,</li>
56cdf0e10cSrcweir    <li>Ovals: simple ovals and circles,</li>
57cdf0e10cSrcweir    <li>Pictures: picture objects,</li>
58cdf0e10cSrcweir    <li>Rectangles: simple rectangle objects,</li>
59cdf0e10cSrcweir    <li>ScrollBars: scrollbar controls,</li>
60cdf0e10cSrcweir    <li>Spinners: spinner (spin button) controls,</li>
61cdf0e10cSrcweir    <li>TextBoxes: rectangle objects with embedded text.</li></ul>
62cdf0e10cSrcweir
63cdf0e10cSrcweir    <p>These symbols are now deprecated in VBA but kept for compatibility with
64cdf0e10cSrcweir    old VBA scripts. All symbols representing collections of form controls do
65cdf0e10cSrcweir    NOT belong to ActiveX form controls but to the old-style drawing controls.
66cdf0e10cSrcweir    </p>
67cdf0e10cSrcweir */
68cdf0e10cSrcweirinterface XGraphicObjects : com::sun::star::uno::XInterface
69cdf0e10cSrcweir{
70cdf0e10cSrcweir    /** Adds a new graphic object to the sheet this collection belongs to. The
71cdf0e10cSrcweir        type of the object is determined by the type of the collection.
72cdf0e10cSrcweir
73cdf0e10cSrcweir        @param Left  Position of the left border in points (1/72 inch).
74cdf0e10cSrcweir        @param Top  Position of the top border in points (1/72 inch).
75cdf0e10cSrcweir        @param Width  Width of the object in points (1/72 inch).
76cdf0e10cSrcweir        @param Height  Height of the object in points (1/72 inch).
77cdf0e10cSrcweir
78cdf0e10cSrcweir        @return  The created graphic object.
79cdf0e10cSrcweir     */
80cdf0e10cSrcweir    any Add( [in] any Left, [in] any Top, [in] any Width, [in] any Height );
81cdf0e10cSrcweir};
82cdf0e10cSrcweir
83cdf0e10cSrcweir//=============================================================================
84cdf0e10cSrcweir
85cdf0e10cSrcweir/** Collections that implement this interface provide access to a specific type
86cdf0e10cSrcweir    of drawing objects in a single sheet.
87cdf0e10cSrcweir
88cdf0e10cSrcweir    <p>The following sheet symbols represent collections of line objects, and
89cdf0e10cSrcweir    therefore implement this interface:</p>
90cdf0e10cSrcweir    <ul><li>Arcs: arc objects, and</li>
91cdf0e10cSrcweir    <li>Lines: straight line ojects.</li></ul>
92cdf0e10cSrcweir
93cdf0e10cSrcweir    <p>These symbols are now deprecated in VBA but kept for compatibility with
94cdf0e10cSrcweir    old VBA scripts.</p>
95cdf0e10cSrcweir */
96cdf0e10cSrcweirinterface XLineObjects : com::sun::star::uno::XInterface
97cdf0e10cSrcweir{
98cdf0e10cSrcweir    /** Adds a new line object to the sheet this collection belongs to. The
99cdf0e10cSrcweir        type of the object is determined by the type of the collection.
100cdf0e10cSrcweir
101cdf0e10cSrcweir        @param X1  Position of the first X coordinate in points (1/72 inch).
102cdf0e10cSrcweir        @param Y1  Position of the first Y coordinate in points (1/72 inch).
103cdf0e10cSrcweir        @param X2  Position of the last X coordinate in points (1/72 inch).
104cdf0e10cSrcweir        @param Y2  Position of the last Y coordinate in points (1/72 inch).
105cdf0e10cSrcweir
106cdf0e10cSrcweir        @return  The created line object.
107cdf0e10cSrcweir     */
108cdf0e10cSrcweir    any Add( [in] any X1, [in] any Y1, [in] any X2, [in] any Y2 );
109cdf0e10cSrcweir};
110cdf0e10cSrcweir
111cdf0e10cSrcweir//=============================================================================
112cdf0e10cSrcweir
113cdf0e10cSrcweir/** A collection providing access to all polygon objects in a single sheet.
114cdf0e10cSrcweir
115cdf0e10cSrcweir    <p>This symbol is now deprecated in VBA but kept for compatibility with old
116cdf0e10cSrcweir    VBA scripts.</p>
117cdf0e10cSrcweir */
118cdf0e10cSrcweirinterface XDrawings : com::sun::star::uno::XInterface
119cdf0e10cSrcweir{
120cdf0e10cSrcweir    /** Adds a new polygon object to the sheet this collection belongs to.
121cdf0e10cSrcweir
122cdf0e10cSrcweir        @param X1  Position of the first X coordinate in points (1/72 inch).
123cdf0e10cSrcweir        @param Y1  Position of the first Y coordinate in points (1/72 inch).
124cdf0e10cSrcweir        @param X2  Position of the last X coordinate in points (1/72 inch).
125cdf0e10cSrcweir        @param Y2  Position of the last Y coordinate in points (1/72 inch).
126cdf0e10cSrcweir        @param Closed  True = outline closed (last and first point connected).
127cdf0e10cSrcweir
128cdf0e10cSrcweir        @return  The created polygon object.
129cdf0e10cSrcweir     */
130cdf0e10cSrcweir    any Add( [in] any X1, [in] any Y1, [in] any X2, [in] any Y2, [in] any Closed );
131cdf0e10cSrcweir};
132cdf0e10cSrcweir
133cdf0e10cSrcweir//=============================================================================
134cdf0e10cSrcweir
135cdf0e10cSrcweir/** Represents the collection of drawing button controls in a spreadsheet. */
136cdf0e10cSrcweirservice Buttons
137cdf0e10cSrcweir{
138cdf0e10cSrcweir    interface ooo::vba::XCollection;
139cdf0e10cSrcweir    interface XGraphicObjects;
140cdf0e10cSrcweir};
141cdf0e10cSrcweir
142cdf0e10cSrcweir//=============================================================================
143cdf0e10cSrcweir
144cdf0e10cSrcweir}; }; };
145cdf0e10cSrcweir
146cdf0e10cSrcweir#endif
147