1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: EmbedStates.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_embed_EmbedStates_idl__
31 #define __com_sun_star_embed_EmbedStates_idl__
34 //============================================================================
36 module com
{ module sun
{ module star
{ module embed
{
38 //============================================================================
39 /** This constant set contains possible states for
40 <type>EmbeddedObject</type>.
44 //------------------------------------------------------------------------
45 /** "Loaded" - the persistent representation of the object is loaded in
49 The object is created and assigned with a persistent entry,
50 and a view representation ( metafile and etc. ) can be retrieved
54 const long LOADED
= 0;
56 //------------------------------------------------------------------------
57 /** "Running" - the object is connected and loaded.
60 The object has a connection to the container client and a component
61 loaded from persistent entry. In case of internal document it also
62 means existing of document model that implements
63 <type scope="com::sun::star::frame">XModel</type> interface.
66 const long RUNNING
= 1;
68 //------------------------------------------------------------------------
69 /** "Active" - the object is activated in separate window
70 ( outplace activation ).
72 const long ACTIVE
= 2;
74 //------------------------------------------------------------------------
75 /** "Inplace active" - the object has own window in the container's
79 The object is activated and has it's own window in the container's
80 window that allows object to process mouse events and control own
84 const long INPLACE_ACTIVE
= 3;
86 //------------------------------------------------------------------------
87 /** "UI active" - the inplace active object that has user interface.
90 The object is inplace active, allowed to have menues, toolbars,
91 keyboard accelerators, and has the focus.
94 const long UI_ACTIVE
= 4;
97 //============================================================================