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_XSheetObject_idl__ 25#define __ooo_vba_excel_XSheetObject_idl__ 26 27#include <ooo/vba/XHelperInterface.idl> 28 29 30//============================================================================= 31 32module ooo { module vba { module excel { 33 34//============================================================================= 35/** Base interface for graphic objects and drawing controls in a single sheet. 36 37 <p>The objects supporting this interface are now deprecated in VBA in 38 favour of the Shapes and OLEObjects collections, but are kept for 39 compatibility with old VBA scripts. All form control objects do NOT belong 40 to ActiveX form controls but to the old-style drawing controls.</p> 41 */ 42interface XSheetObject : ooo::vba::XHelperInterface 43{ 44 /** Left coordinate of the drawing object, in points. */ 45 [attribute] double Left; 46 47 /** Top coordinate of the drawing object, in points. */ 48 [attribute] double Top; 49 50 /** Width of the drawing object, in points. */ 51 [attribute] double Width; 52 53 /** Height of the drawing object, in points. */ 54 [attribute] double Height; 55 56 /** The name of the drawing object, used as collection key. */ 57 [attribute] string Name; 58 59 /** Name of a macro that will be executed when the drawing object is clicked. */ 60 [attribute] string OnAction; 61 62 /** Anchor mode of the object (fixed or variable position and size). Must 63 be a value from <type>ooo::vba::excel::XlPlacement</type>. */ 64 [attribute] long Placement; 65 66 /** True = print object, false = skip object on printing. */ 67 [attribute] boolean PrintObject; 68}; 69 70//============================================================================= 71 72}; }; }; 73 74#endif 75