2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __ooo_vba_excel_XSheetObject_idl__
20 #define __ooo_vba_excel_XSheetObject_idl__
22 #include
<ooo
/vba
/XHelperInterface.idl
>
24 /* Note: This is a compatibility interface for drawing objects and drawing
25 controls embedded in sheets. All these symbols are deprecated
26 in VBA and kept for compatibility with old VBA scripts. */
28 module ooo
{ module vba
{ module excel
{
30 //=============================================================================
32 /** Base interface for graphic objects and drawing controls in a single sheet.
34 <p>The objects supporting this interface are now deprecated in VBA in
35 favour of the Shapes and OLEObjects collections, but are kept for
36 compatibility with old VBA scripts. All form control objects do NOT belong
37 to ActiveX form controls but to the old-style drawing controls.</p>
39 interface XSheetObject
: ooo
::vba
::XHelperInterface
41 /** Left coordinate of the drawing object, in points. */
42 [attribute
] double Left
;
44 /** Top coordinate of the drawing object, in points. */
45 [attribute
] double Top
;
47 /** Width of the drawing object, in points. */
48 [attribute
] double Width
;
50 /** Height of the drawing object, in points. */
51 [attribute
] double Height
;
53 /** The name of the drawing object, used as collection key. */
54 [attribute
] string Name
;
56 /** Name of a macro that will be executed when the drawing object is clicked. */
57 [attribute
] string OnAction
;
59 /** Anchor mode of the object (fixed or variable position and size). Must
60 be a value from <type>ooo::vba::excel::XlPlacement</type>. */
61 [attribute
] long Placement
;
63 /** True = print object, false = skip object on printing. */
64 [attribute
] boolean PrintObject
;
67 //=============================================================================