1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir#ifndef __ooo_vba_excel_SheetObjects_idl__
29*cdf0e10cSrcweir#define __ooo_vba_excel_SheetObjects_idl__
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir#include <ooo/vba/XCollection.idl>
32*cdf0e10cSrcweir
33*cdf0e10cSrcweir//=============================================================================
34*cdf0e10cSrcweir
35*cdf0e10cSrcweir/*  Note: This file collects all compatibility interfaces for collections of
36*cdf0e10cSrcweir    drawing objects and drawing controls embedded in sheets. All these symbols
37*cdf0e10cSrcweir    are deprecated in VBA and kept for compatibility with old VBA scripts. */
38*cdf0e10cSrcweir
39*cdf0e10cSrcweir//=============================================================================
40*cdf0e10cSrcweir
41*cdf0e10cSrcweirmodule ooo {  module vba { module excel {
42*cdf0e10cSrcweir
43*cdf0e10cSrcweir//=============================================================================
44*cdf0e10cSrcweir
45*cdf0e10cSrcweir/** Collections that implement this interface provide access to a specific type
46*cdf0e10cSrcweir    of drawing objects in a single sheet.
47*cdf0e10cSrcweir
48*cdf0e10cSrcweir    <p>The following sheet symbols represent collections of graphic objects,
49*cdf0e10cSrcweir    and therefore implement this interface:</p>
50*cdf0e10cSrcweir    <ul><li>Buttons: push button (command button) controls,</li>
51*cdf0e10cSrcweir    <li>ChartObjects: chart objects embedded in the sheet,</li>
52*cdf0e10cSrcweir    <li>CheckBoxes: check box controls,</li>
53*cdf0e10cSrcweir    <li>DropDowns: drop-down listbox controls,</li>
54*cdf0e10cSrcweir    <li>EditBoxes: text edit controls (dialog sheets only),</li>
55*cdf0e10cSrcweir    <li>GroupBoxes: group frame controls,</li>
56*cdf0e10cSrcweir    <li>GroupObjects: group objects containing other child objects,</li>
57*cdf0e10cSrcweir    <li>Labels: fixed text controls,</li>
58*cdf0e10cSrcweir    <li>ListBoxes: plain listbox controls,</li>
59*cdf0e10cSrcweir    <li>OptionButtons: option button (radio button) controls,</li>
60*cdf0e10cSrcweir    <li>Ovals: simple ovals and circles,</li>
61*cdf0e10cSrcweir    <li>Pictures: picture objects,</li>
62*cdf0e10cSrcweir    <li>Rectangles: simple rectangle objects,</li>
63*cdf0e10cSrcweir    <li>ScrollBars: scrollbar controls,</li>
64*cdf0e10cSrcweir    <li>Spinners: spinner (spin button) controls,</li>
65*cdf0e10cSrcweir    <li>TextBoxes: rectangle objects with embedded text.</li></ul>
66*cdf0e10cSrcweir
67*cdf0e10cSrcweir    <p>These symbols are now deprecated in VBA but kept for compatibility with
68*cdf0e10cSrcweir    old VBA scripts. All symbols representing collections of form controls do
69*cdf0e10cSrcweir    NOT belong to ActiveX form controls but to the old-style drawing controls.
70*cdf0e10cSrcweir    </p>
71*cdf0e10cSrcweir */
72*cdf0e10cSrcweirinterface XGraphicObjects : com::sun::star::uno::XInterface
73*cdf0e10cSrcweir{
74*cdf0e10cSrcweir    /** Adds a new graphic object to the sheet this collection belongs to. The
75*cdf0e10cSrcweir        type of the object is determined by the type of the collection.
76*cdf0e10cSrcweir
77*cdf0e10cSrcweir        @param Left  Position of the left border in points (1/72 inch).
78*cdf0e10cSrcweir        @param Top  Position of the top border in points (1/72 inch).
79*cdf0e10cSrcweir        @param Width  Width of the object in points (1/72 inch).
80*cdf0e10cSrcweir        @param Height  Height of the object in points (1/72 inch).
81*cdf0e10cSrcweir
82*cdf0e10cSrcweir        @return  The created graphic object.
83*cdf0e10cSrcweir     */
84*cdf0e10cSrcweir    any Add( [in] any Left, [in] any Top, [in] any Width, [in] any Height );
85*cdf0e10cSrcweir};
86*cdf0e10cSrcweir
87*cdf0e10cSrcweir//=============================================================================
88*cdf0e10cSrcweir
89*cdf0e10cSrcweir/** Collections that implement this interface provide access to a specific type
90*cdf0e10cSrcweir    of drawing objects in a single sheet.
91*cdf0e10cSrcweir
92*cdf0e10cSrcweir    <p>The following sheet symbols represent collections of line objects, and
93*cdf0e10cSrcweir    therefore implement this interface:</p>
94*cdf0e10cSrcweir    <ul><li>Arcs: arc objects, and</li>
95*cdf0e10cSrcweir    <li>Lines: straight line ojects.</li></ul>
96*cdf0e10cSrcweir
97*cdf0e10cSrcweir    <p>These symbols are now deprecated in VBA but kept for compatibility with
98*cdf0e10cSrcweir    old VBA scripts.</p>
99*cdf0e10cSrcweir */
100*cdf0e10cSrcweirinterface XLineObjects : com::sun::star::uno::XInterface
101*cdf0e10cSrcweir{
102*cdf0e10cSrcweir    /** Adds a new line object to the sheet this collection belongs to. The
103*cdf0e10cSrcweir        type of the object is determined by the type of the collection.
104*cdf0e10cSrcweir
105*cdf0e10cSrcweir        @param X1  Position of the first X coordinate in points (1/72 inch).
106*cdf0e10cSrcweir        @param Y1  Position of the first Y coordinate in points (1/72 inch).
107*cdf0e10cSrcweir        @param X2  Position of the last X coordinate in points (1/72 inch).
108*cdf0e10cSrcweir        @param Y2  Position of the last Y coordinate in points (1/72 inch).
109*cdf0e10cSrcweir
110*cdf0e10cSrcweir        @return  The created line object.
111*cdf0e10cSrcweir     */
112*cdf0e10cSrcweir    any Add( [in] any X1, [in] any Y1, [in] any X2, [in] any Y2 );
113*cdf0e10cSrcweir};
114*cdf0e10cSrcweir
115*cdf0e10cSrcweir//=============================================================================
116*cdf0e10cSrcweir
117*cdf0e10cSrcweir/** A collection providing access to all polygon objects in a single sheet.
118*cdf0e10cSrcweir
119*cdf0e10cSrcweir    <p>This symbol is now deprecated in VBA but kept for compatibility with old
120*cdf0e10cSrcweir    VBA scripts.</p>
121*cdf0e10cSrcweir */
122*cdf0e10cSrcweirinterface XDrawings : com::sun::star::uno::XInterface
123*cdf0e10cSrcweir{
124*cdf0e10cSrcweir    /** Adds a new polygon object to the sheet this collection belongs to.
125*cdf0e10cSrcweir
126*cdf0e10cSrcweir        @param X1  Position of the first X coordinate in points (1/72 inch).
127*cdf0e10cSrcweir        @param Y1  Position of the first Y coordinate in points (1/72 inch).
128*cdf0e10cSrcweir        @param X2  Position of the last X coordinate in points (1/72 inch).
129*cdf0e10cSrcweir        @param Y2  Position of the last Y coordinate in points (1/72 inch).
130*cdf0e10cSrcweir        @param Closed  True = outline closed (last and first point connected).
131*cdf0e10cSrcweir
132*cdf0e10cSrcweir        @return  The created polygon object.
133*cdf0e10cSrcweir     */
134*cdf0e10cSrcweir    any Add( [in] any X1, [in] any Y1, [in] any X2, [in] any Y2, [in] any Closed );
135*cdf0e10cSrcweir};
136*cdf0e10cSrcweir
137*cdf0e10cSrcweir//=============================================================================
138*cdf0e10cSrcweir
139*cdf0e10cSrcweir/** Represents the collection of drawing button controls in a spreadsheet. */
140*cdf0e10cSrcweirservice Buttons
141*cdf0e10cSrcweir{
142*cdf0e10cSrcweir    interface ooo::vba::XCollection;
143*cdf0e10cSrcweir    interface XGraphicObjects;
144*cdf0e10cSrcweir};
145*cdf0e10cSrcweir
146*cdf0e10cSrcweir//=============================================================================
147*cdf0e10cSrcweir
148*cdf0e10cSrcweir}; }; };
149*cdf0e10cSrcweir
150*cdf0e10cSrcweir#endif
151