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#ifndef __com_sun_star_text_TextEmbeddedObject_idl__
24#define __com_sun_star_text_TextEmbeddedObject_idl__
25
26#ifndef __com_sun_star_document_XEmbeddedObjectSupplier_idl__
27#include <com/sun/star/document/XEmbeddedObjectSupplier.idl>
28#endif
29
30#ifndef __com_sun_star_text_BaseFrame_idl__
31#include <com/sun/star/text/BaseFrame.idl>
32#endif
33#ifndef __com_sun_star_frame_XModel_idl__
34#include <com/sun/star/frame/XModel.idl>
35#endif
36
37
38//=============================================================================
39
40 module com {  module sun {  module star {  module text {
41
42//=============================================================================
43
44// DocMerge from xml: service com::sun::star::text::TextEmbeddedObject
45/** provides access to the properties and methods of an embedded object.
46 */
47published service TextEmbeddedObject
48{
49	/** contains the definition of interfaces and properties that are supported by text frames,
50	 graphic objects and embeddedobjects.
51	 */
52	service BaseFrame;
53	// DocMerge: empty anyway
54	interface com::sun::star::document::XEmbeddedObjectSupplier;
55        /* If you get this property you get the CLSID of the OLE2 document stream
56                contained in this OLE2 shape. If you set it, an empty OLE2 document stream
57                with this CLSID is created within this OLE2 shape.
58            The property can only be set as long as the object is not inserted into the document.
59        */
60        [property] string CLSID;
61        //-------------------------------------------------------------------------
62
63        /** This is the model for the OLE2 object.
64            <p>This property if void if the ole2 is not an
65            Office component.</p>
66
67        */
68        [readonly, maybevoid, property] com::sun::star::frame::XModel Model;
69        //-------------------------------------------------------------------------
70
71        /** This is the component for the OLE2 object.
72
73        */
74        [readonly, maybevoid, property] com::sun::star::lang::XComponent Component;
75};
76
77//=============================================================================
78
79}; }; }; };
80
81#endif
82