1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski#ifndef __ooo_vba_excel_SheetObject_idl__
25*b1cdbd2cSJim Jagielski#define __ooo_vba_excel_SheetObject_idl__
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski#include <ooo/vba/excel/XCharacters.idl>
28*b1cdbd2cSJim Jagielski
29*b1cdbd2cSJim Jagielski//=============================================================================
30*b1cdbd2cSJim Jagielski
31*b1cdbd2cSJim Jagielski/*  Note: This file collects all compatibility interfaces for drawing objects
32*b1cdbd2cSJim Jagielski    and drawing controls embedded in sheets. All these symbols are deprecated
33*b1cdbd2cSJim Jagielski    in VBA and kept for compatibility with old VBA scripts. */
34*b1cdbd2cSJim Jagielski
35*b1cdbd2cSJim Jagielski//=============================================================================
36*b1cdbd2cSJim Jagielski
37*b1cdbd2cSJim Jagielskimodule ooo {  module vba { module excel {
38*b1cdbd2cSJim Jagielski
39*b1cdbd2cSJim Jagielski//=============================================================================
40*b1cdbd2cSJim Jagielski
41*b1cdbd2cSJim Jagielski/** Base interface for graphic objects and drawing controls in a single sheet.
42*b1cdbd2cSJim Jagielski
43*b1cdbd2cSJim Jagielski    <p>The objects supporting this interface are now deprecated in VBA in
44*b1cdbd2cSJim Jagielski    favour of the Shapes and OLEObjects collections, but are kept for
45*b1cdbd2cSJim Jagielski    compatibility with old VBA scripts. All form control objects do NOT belong
46*b1cdbd2cSJim Jagielski    to ActiveX form controls but to the old-style drawing controls.</p>
47*b1cdbd2cSJim Jagielski */
48*b1cdbd2cSJim Jagielskiinterface XSheetObject : ooo::vba::XHelperInterface
49*b1cdbd2cSJim Jagielski{
50*b1cdbd2cSJim Jagielski    /** Left coordinate of the drawing object, in points. */
51*b1cdbd2cSJim Jagielski    [attribute] double Left;
52*b1cdbd2cSJim Jagielski
53*b1cdbd2cSJim Jagielski    /** Top coordinate of the drawing object, in points. */
54*b1cdbd2cSJim Jagielski    [attribute] double Top;
55*b1cdbd2cSJim Jagielski
56*b1cdbd2cSJim Jagielski    /** Width of the drawing object, in points. */
57*b1cdbd2cSJim Jagielski    [attribute] double Width;
58*b1cdbd2cSJim Jagielski
59*b1cdbd2cSJim Jagielski    /** Height of the drawing object, in points. */
60*b1cdbd2cSJim Jagielski    [attribute] double Height;
61*b1cdbd2cSJim Jagielski
62*b1cdbd2cSJim Jagielski    /** The name of the drawing object, used as collection key. */
63*b1cdbd2cSJim Jagielski    [attribute] string Name;
64*b1cdbd2cSJim Jagielski
65*b1cdbd2cSJim Jagielski    /** Name of a macro that will be executed when the drawing object is clicked. */
66*b1cdbd2cSJim Jagielski    [attribute] string OnAction;
67*b1cdbd2cSJim Jagielski
68*b1cdbd2cSJim Jagielski    /** Anchor mode of the object (fixed or variable position and size). Must
69*b1cdbd2cSJim Jagielski        be a value from <type>ooo::vba::excel::XlPlacement</type>. */
70*b1cdbd2cSJim Jagielski    [attribute] long Placement;
71*b1cdbd2cSJim Jagielski
72*b1cdbd2cSJim Jagielski    /** True = print object, false = skip object on printing. */
73*b1cdbd2cSJim Jagielski    [attribute] boolean PrintObject;
74*b1cdbd2cSJim Jagielski};
75*b1cdbd2cSJim Jagielski
76*b1cdbd2cSJim Jagielski//=============================================================================
77*b1cdbd2cSJim Jagielski
78*b1cdbd2cSJim Jagielski/** Additional attributes for all drawing controls (this interface does not
79*b1cdbd2cSJim Jagielski    belong to ActiveX form controls).
80*b1cdbd2cSJim Jagielski */
81*b1cdbd2cSJim Jagielskiinterface XControlObject : com::sun::star::uno::XInterface
82*b1cdbd2cSJim Jagielski{
83*b1cdbd2cSJim Jagielski    [attribute] boolean AutoSize;
84*b1cdbd2cSJim Jagielski};
85*b1cdbd2cSJim Jagielski
86*b1cdbd2cSJim Jagielski//=============================================================================
87*b1cdbd2cSJim Jagielski
88*b1cdbd2cSJim Jagielski/** Additional attributes for a push button drawing control (this interface
89*b1cdbd2cSJim Jagielski    does not belong to ActiveX form controls).
90*b1cdbd2cSJim Jagielski */
91*b1cdbd2cSJim Jagielskiinterface XButton : com::sun::star::uno::XInterface
92*b1cdbd2cSJim Jagielski{
93*b1cdbd2cSJim Jagielski    /** Visible caption of the button. */
94*b1cdbd2cSJim Jagielski    [attribute] string Caption;
95*b1cdbd2cSJim Jagielski
96*b1cdbd2cSJim Jagielski    /** Font settings for the entire caption text. */
97*b1cdbd2cSJim Jagielski    [attribute] XFont Font;
98*b1cdbd2cSJim Jagielski
99*b1cdbd2cSJim Jagielski    /** Horizontal alignment of the caption. */
100*b1cdbd2cSJim Jagielski    [attribute] long HorizontalAlignment;
101*b1cdbd2cSJim Jagielski
102*b1cdbd2cSJim Jagielski    /** Vertical alignment of the caption. */
103*b1cdbd2cSJim Jagielski    [attribute] long VerticalAlignment;
104*b1cdbd2cSJim Jagielski
105*b1cdbd2cSJim Jagielski    /** Orientation (rotation) of the text. Must be a value from
106*b1cdbd2cSJim Jagielski        <type>ooo::vba::excel::XlOrientation</type>. */
107*b1cdbd2cSJim Jagielski    [attribute] long Orientation;
108*b1cdbd2cSJim Jagielski
109*b1cdbd2cSJim Jagielski    /** Access to text and text formatting of the button caption. */
110*b1cdbd2cSJim Jagielski    XCharacters Characters( [in] any Start, [in] any Length );
111*b1cdbd2cSJim Jagielski};
112*b1cdbd2cSJim Jagielski
113*b1cdbd2cSJim Jagielski//=============================================================================
114*b1cdbd2cSJim Jagielski
115*b1cdbd2cSJim Jagielski/** Represents a drawing button control in a spreadsheet. */
116*b1cdbd2cSJim Jagielskiservice Button
117*b1cdbd2cSJim Jagielski{
118*b1cdbd2cSJim Jagielski    interface XSheetObject;
119*b1cdbd2cSJim Jagielski    interface XControlObject;
120*b1cdbd2cSJim Jagielski    interface XButton;
121*b1cdbd2cSJim Jagielski};
122*b1cdbd2cSJim Jagielski
123*b1cdbd2cSJim Jagielski//=============================================================================
124*b1cdbd2cSJim Jagielski
125*b1cdbd2cSJim Jagielski}; }; };
126*b1cdbd2cSJim Jagielski
127*b1cdbd2cSJim Jagielski#endif
128