merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / inspection / XObjectInspector.idl
blob664221ff03fd6fdac097bbe31286095509016f2e
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __com_sun_star_inspection_XObjectInspector_idl__
29 #define __com_sun_star_inspection_XObjectInspector_idl__
31 #ifndef __com_sun_star_frame_XController_idl__
32 #include <com/sun/star/frame/XController.idl>
33 #endif
34 #ifndef __com_sun_star_frame_XDispatchProvider_idl__
35 #include <com/sun/star/frame/XDispatchProvider.idl>
36 #endif
37 #ifndef __com_sun_star_util_VetoException_idl__
38 #include <com/sun/star/util/VetoException.idl>
39 #endif
41 //=============================================================================
42 module com { module sun { module star { module inspection {
44 interface XObjectInspectorModel;
45 interface XObjectInspectorUI;
47 //-----------------------------------------------------------------------------
48 /** describes the main interface of an <type>ObjectInspector</type>.
50 @see ObjectInspector
52 @since OOo 2.0.3
54 interface XObjectInspector
56 /** allows to plug the inspector into an <type scope="com::sun::star::frame">XFrame</type>
58 <p>The <member scope="com::sun::star::frame">XController::setModel</member> method
59 accepts only <type>XObjectInspectorModel</type>s, and will return <FALSE/> if the
60 to-be-attached model is not <NULL/>, but does not support this interface.</p>
62 <p>If you do not want to support a full-blown <type scope="com::sun::star::frame">XModel</type>,
63 use the <member>InspectorModel</member> attribute instead.</p>
65 <p>The <member scope="com::sun::star::frame">XController::getViewData</member> and
66 <member scope="com::sun::star::frame">XController::restoreViewData</member> exchange
67 string values, which describes as much of the current view state as possible.</p>
69 interface com::sun::star::frame::XController;
71 /** allows to intercept functionality
73 <p>This interface is inherited from the <type scope="com::sun::star::frame">Controller</type>
74 service, currently, there is no functionality to intercept at an <type>XObjectInspector</type>.</p>
76 interface com::sun::star::frame::XDispatchProvider;
78 /** provides access to the current model of the inspector
80 <p>The model is mainly responsible for providing the property handlers. Additionally,
81 it can provide user interface names and help URLs for property categories.</p>
83 <p>Note that there are two ways of setting or retrieving the current model: You can either
84 use <member scope="com::sun::star::frame">XModel::setModel</member>, or, if you do not want
85 or need to implement the full-blown <type scope="com::sun::star::frame">XModel</type> interface,
86 you can use this property directly. Both approaches are semantically equivalent.</p>
88 <p>If a new model is set at the inspector, the complete UI will be rebuilt to reflect
89 the change, using the new property handlers provided by the new model.</p>
91 [attribute] XObjectInspectorModel InspectorModel;
93 /** provides access to the user interface of the object inspector.
95 <p>This interface can be used to access and manipulate various aspects of
96 the user interface. For instance, you can enable and disable certain
97 property controls (or parts thereof), or register observers for all property
98 controls.</p>
100 @since OOo 2.2
102 [attribute, readonly] XObjectInspectorUI InspectorUI;
104 /** inspects a new collection of one or more objects.
106 <p>If the sequence is empty, the UI of the <type>ObjectInspector</type> will be
107 cleared.</p>
109 <p>If the sequence contains more than one object, the <type>XObjectInspector</type>
110 will create a complete set of property handlers (as indicated by
111 <member>XObjectInspectorModel::HandlerFactories</member>) for <em>every</em> of
112 the objects, and compose their output.</p>
114 @throws com::sun::star::util::VetoException
115 if the inspector cannot switch to another object set. This typically happens if
116 one of the active <type>XPropertyHandler</type>'s raised a non-modal user interface,
117 and vetoed suspension of this UI.
119 @see XPropertyHandler::isComposable
120 @see XPropertyHandler::onInteractivePropertySelection
121 @see XPropertyHandler::suspend
123 void inspect( [in] sequence< com::sun::star::uno::XInterface > Objects )
124 raises (com::sun::star::util::VetoException);
127 //=============================================================================
129 }; }; }; };
131 #endif