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: ContentEvent.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_ucb_ContentEvent_idl__
31 #define __com_sun_star_ucb_ContentEvent_idl__
33 #ifndef __com_sun_star_lang_EventObject_idl__
34 #include
<com
/sun
/star
/lang
/EventObject.idl
>
37 //=============================================================================
39 module com
{ module sun
{ module star
{ module ucb
{
41 published
interface XContent
;
42 published
interface XContentIdentifier
;
44 //=============================================================================
45 /** A structure for content events.
47 published
struct ContentEvent
: com
::sun
::star
::lang
::EventObject
49 //-------------------------------------------------------------------------
52 <p>The value can be one of the <type>ContentAction</type> constants.
56 //-------------------------------------------------------------------------
57 /** The content to that the action is related (e.g., the content that was
58 just physically destroyed, the content that was just inserted into a
61 <p>This member must be filled as follows:
65 <td><member>ContentAction::INSERTED</member></td>
66 <td>The content inserted into a folder</td>
69 <td><member>ContentAction::REMOVED</member></td>
70 <td>The content removed from a folder</td>
73 <td><member>ContentAction::DELETED</member></td>
74 <td>The deleted content</td>
77 <td><member>ContentAction::EXCHANGED</member></td>
78 <td>The exchanged content (that already has the new content id)</td>
84 //-------------------------------------------------------------------------
85 /** A content identifier, which must be filled according to the action
86 notified (e.g., the id of the folder content into which another content
89 <p>This member must be filled as follows:
93 <td><member>ContentAction::INSERTED</member></td>
94 <td>Id of the folder the content was inserted into</td>
97 <td><member>ContentAction::REMOVED</member></td>
98 <td>Id of the folder the content was removed from</td>
101 <td><member>ContentAction::DELETED</member></td>
102 <td>Id of the deleted content</td>
105 <td><member>ContentAction::EXCHANGED</member></td>
106 <td>Previous(!) id of the exchanged content</td>
110 XContentIdentifier
Id;
113 //=============================================================================