1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com
{ module sun
{ module star
{ module ucb
{
23 /** A TDCP Document represents the root folder of a transient document.
25 <p>It is a container for other TDCP Folders and TDCP Streams. It is always
26 a child of the TDCP Root.
28 @see TransientDocumentsContentProvider
29 @see TransientDocumentsRootContent
30 @see TransientDocumentsFolderContent
31 @see TransientDocumentsStreamContent
35 service TransientDocumentsDocumentContent
37 /** This interface is implemented according to the specification of
40 interface com
::sun
::star
::lang
::XComponent
;
42 /** This interface is implemented according to the specification of
45 interface com
::sun
::star
::ucb
::XContent
;
47 /** This interface is implemented according to the specification of
52 <b>Supported Commands</b>
70 transfer (only transfers TDCP documents, TDCP folders and TDCP streams.
71 It does not handle contents with a URL scheme other than the TDOC URL
76 <b>Supported Properties</b>
79 string ContentType ( read-only, always "application/vnd.sun.star.tdoc-document" )
82 boolean IsDocument ( read-only, always false )
85 boolean IsFolder ( read-only, always true )
88 string Title ( read-only )
94 interface com
::sun
::star
::ucb
::XCommandProcessor
;
96 /** is an enhanced version of XCommandProcessor that has an
97 additional method for releasing command identifiers obtained via
98 XCommandProcessor::createCommandIdentifier() to avoid
99 resource leaks. For a detailed description of the problem refer to
100 XCommandProcessor2::releaseCommandIdentifier().
102 <p>Where many existing Content implementations do not
103 (yet), every new implementation should support this interface.
105 [optional] interface com
::sun
::star
::ucb
::XCommandProcessor2
;
107 /** This interface is implemented according to the specification of
110 interface com
::sun
::star
::beans
::XPropertiesChangeNotifier
;
112 /** This interface is implemented according to the specification of
115 interface com
::sun
::star
::beans
::XPropertyContainer
;
117 /** This interface is implemented according to the specification of
120 interface com
::sun
::star
::beans
::XPropertySetInfoChangeNotifier
;
122 /** This interface is implemented according to the specification of
125 interface com
::sun
::star
::ucb
::XCommandInfoChangeNotifier
;
127 /** This interface is implemented according to the specification of
130 interface com
::sun
::star
::container
::XChild
;
132 /** This interface is implemented according to the specification of
135 <p>To create a new child of a TDCP Document:
139 Let the parent folder create a new content by calling
140 XContentCreator::createNewContent() on it. The content
141 type to use for new folders is "application/vnd.sun.star.tdoc-folder".
142 To create a new stream, use the type string
143 "application/vnd.sun.star.tdoc-stream".
146 Set a title for the new folder/stream. (Let the new child execute the
147 command "setPropertyValues"; pass a non-empty value for the property
151 Let the new child ( not the parent! ) execute the command "insert".
152 This will commit the creation process. For streams, you need to supply
153 the implementation of an
154 com::sun::star::io::XInputStream with the command's
155 parameters, that provides access to the stream data.
161 interface com
::sun
::star
::ucb
::XContentCreator
;
167 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */