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_SheetObject_idl__
25cdf0e10cSrcweir#define __ooo_vba_excel_SheetObject_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#include <ooo/vba/excel/XCharacters.idl>
28cdf0e10cSrcweir
29cdf0e10cSrcweir//=============================================================================
30cdf0e10cSrcweir
31cdf0e10cSrcweir/*  Note: This file collects all compatibility interfaces for drawing objects
32cdf0e10cSrcweir    and drawing controls embedded in sheets. All these symbols are deprecated
33cdf0e10cSrcweir    in VBA and kept for compatibility with old VBA scripts. */
34cdf0e10cSrcweir
35cdf0e10cSrcweir//=============================================================================
36cdf0e10cSrcweir
37cdf0e10cSrcweirmodule ooo {  module vba { module excel {
38cdf0e10cSrcweir
39cdf0e10cSrcweir//=============================================================================
40cdf0e10cSrcweir
41cdf0e10cSrcweir/** Base interface for graphic objects and drawing controls in a single sheet.
42cdf0e10cSrcweir
43cdf0e10cSrcweir    <p>The objects supporting this interface are now deprecated in VBA in
44cdf0e10cSrcweir    favour of the Shapes and OLEObjects collections, but are kept for
45cdf0e10cSrcweir    compatibility with old VBA scripts. All form control objects do NOT belong
46cdf0e10cSrcweir    to ActiveX form controls but to the old-style drawing controls.</p>
47cdf0e10cSrcweir */
48cdf0e10cSrcweirinterface XSheetObject : ooo::vba::XHelperInterface
49cdf0e10cSrcweir{
50cdf0e10cSrcweir    /** Left coordinate of the drawing object, in points. */
51cdf0e10cSrcweir    [attribute] double Left;
52cdf0e10cSrcweir
53cdf0e10cSrcweir    /** Top coordinate of the drawing object, in points. */
54cdf0e10cSrcweir    [attribute] double Top;
55cdf0e10cSrcweir
56cdf0e10cSrcweir    /** Width of the drawing object, in points. */
57cdf0e10cSrcweir    [attribute] double Width;
58cdf0e10cSrcweir
59cdf0e10cSrcweir    /** Height of the drawing object, in points. */
60cdf0e10cSrcweir    [attribute] double Height;
61cdf0e10cSrcweir
62cdf0e10cSrcweir    /** The name of the drawing object, used as collection key. */
63cdf0e10cSrcweir    [attribute] string Name;
64cdf0e10cSrcweir
65cdf0e10cSrcweir    /** Name of a macro that will be executed when the drawing object is clicked. */
66cdf0e10cSrcweir    [attribute] string OnAction;
67cdf0e10cSrcweir
68cdf0e10cSrcweir    /** Anchor mode of the object (fixed or variable position and size). Must
69cdf0e10cSrcweir        be a value from <type>ooo::vba::excel::XlPlacement</type>. */
70cdf0e10cSrcweir    [attribute] long Placement;
71cdf0e10cSrcweir
72cdf0e10cSrcweir    /** True = print object, false = skip object on printing. */
73cdf0e10cSrcweir    [attribute] boolean PrintObject;
74cdf0e10cSrcweir};
75cdf0e10cSrcweir
76cdf0e10cSrcweir//=============================================================================
77cdf0e10cSrcweir
78cdf0e10cSrcweir/** Additional attributes for all drawing controls (this interface does not
79cdf0e10cSrcweir    belong to ActiveX form controls).
80cdf0e10cSrcweir */
81cdf0e10cSrcweirinterface XControlObject : com::sun::star::uno::XInterface
82cdf0e10cSrcweir{
83cdf0e10cSrcweir    [attribute] boolean AutoSize;
84cdf0e10cSrcweir};
85cdf0e10cSrcweir
86cdf0e10cSrcweir//=============================================================================
87cdf0e10cSrcweir
88cdf0e10cSrcweir/** Additional attributes for a push button drawing control (this interface
89cdf0e10cSrcweir    does not belong to ActiveX form controls).
90cdf0e10cSrcweir */
91cdf0e10cSrcweirinterface XButton : com::sun::star::uno::XInterface
92cdf0e10cSrcweir{
93cdf0e10cSrcweir    /** Visible caption of the button. */
94cdf0e10cSrcweir    [attribute] string Caption;
95cdf0e10cSrcweir
96cdf0e10cSrcweir    /** Font settings for the entire caption text. */
97cdf0e10cSrcweir    [attribute] XFont Font;
98cdf0e10cSrcweir
99cdf0e10cSrcweir    /** Horizontal alignment of the caption. */
100cdf0e10cSrcweir    [attribute] long HorizontalAlignment;
101cdf0e10cSrcweir
102cdf0e10cSrcweir    /** Vertical alignment of the caption. */
103cdf0e10cSrcweir    [attribute] long VerticalAlignment;
104cdf0e10cSrcweir
105cdf0e10cSrcweir    /** Orientation (rotation) of the text. Must be a value from
106cdf0e10cSrcweir        <type>ooo::vba::excel::XlOrientation</type>. */
107cdf0e10cSrcweir    [attribute] long Orientation;
108cdf0e10cSrcweir
109cdf0e10cSrcweir    /** Access to text and text formatting of the button caption. */
110cdf0e10cSrcweir    XCharacters Characters( [in] any Start, [in] any Length );
111cdf0e10cSrcweir};
112cdf0e10cSrcweir
113cdf0e10cSrcweir//=============================================================================
114cdf0e10cSrcweir
115cdf0e10cSrcweir/** Represents a drawing button control in a spreadsheet. */
116cdf0e10cSrcweirservice Button
117cdf0e10cSrcweir{
118cdf0e10cSrcweir    interface XSheetObject;
119cdf0e10cSrcweir    interface XControlObject;
120cdf0e10cSrcweir    interface XButton;
121cdf0e10cSrcweir};
122cdf0e10cSrcweir
123cdf0e10cSrcweir//=============================================================================
124cdf0e10cSrcweir
125cdf0e10cSrcweir}; }; };
126cdf0e10cSrcweir
127cdf0e10cSrcweir#endif
128