xref: /aoo42x/main/oovbaapi/ooo/vba/excel/XButton.idl (revision b63233d8)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef __ooo_vba_excel_XButton_idl__
25#define __ooo_vba_excel_XButton_idl__
26
27#include <ooo/vba/excel/XCharacters.idl>
28
29//=============================================================================
30
31/*  Note: This file collects all compatibility interfaces for drawing objects
32    and drawing controls embedded in sheets. All these symbols are deprecated
33    in VBA and kept for compatibility with old VBA scripts. */
34
35//=============================================================================
36
37module ooo {  module vba { module excel {
38
39//=============================================================================
40
41
42/** Additional attributes for a push button drawing control (this interface
43    does not belong to ActiveX form controls).
44 */
45interface XButton : com::sun::star::uno::XInterface
46{
47    /** Visible caption of the button. */
48    [attribute] string Caption;
49
50    /** Font settings for the entire caption text. */
51    [attribute] XFont Font;
52
53    /** Horizontal alignment of the caption. */
54    [attribute] long HorizontalAlignment;
55
56    /** Vertical alignment of the caption. */
57    [attribute] long VerticalAlignment;
58
59    /** Orientation (rotation) of the text. Must be a value from
60        <type>ooo::vba::excel::XlOrientation</type>. */
61    [attribute] long Orientation;
62
63    /** Access to text and text formatting of the button caption. */
64    XCharacters Characters( [in] any Start, [in] any Length );
65};
66
67//=============================================================================
68
69}; }; };
70
71#endif
72