1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir#ifndef __com_sun_star_sdb_DocumentContainer_idl__
28*cdf0e10cSrcweir#define __com_sun_star_sdb_DocumentContainer_idl__
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#ifndef __com_sun_star_sdb_DefinitionContainer_idl__
31*cdf0e10cSrcweir#include <com/sun/star/sdb/DefinitionContainer.idl>
32*cdf0e10cSrcweir#endif
33*cdf0e10cSrcweir#ifndef __com_sun_star_sdb_DefinitionContent_idl__
34*cdf0e10cSrcweir#include <com/sun/star/sdb/DefinitionContent.idl>
35*cdf0e10cSrcweir#endif
36*cdf0e10cSrcweir
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir module com {  module sun {  module star {  module lang {
39*cdf0e10cSrcweir published interface XMultiServiceFactory;
40*cdf0e10cSrcweir};};};};
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir module com {  module sun {  module star {  module frame {
43*cdf0e10cSrcweir published interface XComponentLoader;
44*cdf0e10cSrcweir};};};};
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir  module com {  module sun {  module star {  module container {
47*cdf0e10cSrcweir published interface XHierarchicalNameContainer;
48*cdf0e10cSrcweir};};};};
49*cdf0e10cSrcweir
50*cdf0e10cSrcweir
51*cdf0e10cSrcweir module com {  module sun {  module star {  module sdb {
52*cdf0e10cSrcweir
53*cdf0e10cSrcweir
54*cdf0e10cSrcweir/** describes a container which provides access to documents embedded into a database document,
55*cdf0e10cSrcweir    usually forms and reports.
56*cdf0e10cSrcweir
57*cdf0e10cSrcweir	<p>The <member scope="com::sun::star::lang">XMultiServiceFactory::createInstanceWithArguments()</member>
58*cdf0e10cSrcweir	should be used to create sub document container or form, or report objects.</p>
59*cdf0e10cSrcweir
60*cdf0e10cSrcweir    <p>The embedded documents do not support any particular database related service, instead, they're
61*cdf0e10cSrcweir    usual <type scope="com::sun::star::document">OfficeDocument</type>s.<br/>
62*cdf0e10cSrcweir    The only thing worth mentioning here is that they support the
63*cdf0e10cSrcweir    <type scope="com::sun::star::container">XChild</type> interface, whose
64*cdf0e10cSrcweir    <member scope="com::sun::star::container">XChild::getParent</member> method can be used to
65*cdf0e10cSrcweir    obtain the database document which the embedded document belongs to.
66*cdf0e10cSrcweir    </p>
67*cdf0e10cSrcweir
68*cdf0e10cSrcweir	@see DocumentDefinition
69*cdf0e10cSrcweir    @see OfficeDatabaseDocument
70*cdf0e10cSrcweir */
71*cdf0e10cSrcweirservice DocumentContainer
72*cdf0e10cSrcweir{
73*cdf0e10cSrcweir	service DefinitionContainer;
74*cdf0e10cSrcweir
75*cdf0e10cSrcweir    /** provides functionality for treating the container as part of a hierarchy
76*cdf0e10cSrcweir        of a database document's sub documents.
77*cdf0e10cSrcweir
78*cdf0e10cSrcweir        <p>The <member scope="com::sun::star::ucb">XCommandProcessor::execute</member> method
79*cdf0e10cSrcweir        of a <code>DocumentDefinition</code> supports at least the following commands, additionally to
80*cdf0e10cSrcweir        the ones already supported by the DefinitionContent:
81*cdf0e10cSrcweir        <ul>
82*cdf0e10cSrcweir            <li><strong>open</strong>: provides a <type scope="com::sun::star::ucb::">XDynamicResultSet</type>
83*cdf0e10cSrcweir                to enumerate the content of the document container.</li>
84*cdf0e10cSrcweir            <li><strong>delete</strong>: deletes the document container, including all contained documents.</li>
85*cdf0e10cSrcweir        </ul>
86*cdf0e10cSrcweir    */
87*cdf0e10cSrcweir    service DefinitionContent;
88*cdf0e10cSrcweir
89*cdf0e10cSrcweir	/** can be used to load the document inside.
90*cdf0e10cSrcweir		<p>
91*cdf0e10cSrcweir		URL: describes the name of the document definition to load,
92*cdf0e10cSrcweir		TargetFrameName: isn't used.
93*cdf0e10cSrcweir		SearchFlags: isn't used.
94*cdf0e10cSrcweir		Arguments:
95*cdf0e10cSrcweir		<ol>
96*cdf0e10cSrcweir			<li>PropertyValue</li>
97*cdf0e10cSrcweir				Name = ActiveConnection
98*cdf0e10cSrcweir				Value = The connection which should be used when opening the text document.
99*cdf0e10cSrcweir			<li>PropertyValue</li>
100*cdf0e10cSrcweir				Name = OpenMode
101*cdf0e10cSrcweir				Value = string, "open" if the document should be opened in live mode (editing is not possible),
102*cdf0e10cSrcweir								"openDesign" if the document should be open in design mode (editing is possible)
103*cdf0e10cSrcweir		</ol>
104*cdf0e10cSrcweir		@see com::sun::star::sdbc::XConnection
105*cdf0e10cSrcweir		</p>
106*cdf0e10cSrcweir	*/
107*cdf0e10cSrcweir	interface com::sun::star::frame::XComponentLoader;
108*cdf0e10cSrcweir
109*cdf0e10cSrcweir	/** can be used to create container elements.
110*cdf0e10cSrcweir		<p>
111*cdf0e10cSrcweir		If this interface is supported, the object created using it (e.g., the object returned by
112*cdf0e10cSrcweir		<method scope="com.sun.star.lang">XMultiServiceFactory::createInstanceWithArguments()</method>
113*cdf0e10cSrcweir		) can be used as container elements.
114*cdf0e10cSrcweir		</p>
115*cdf0e10cSrcweir	 */
116*cdf0e10cSrcweir	interface com::sun::star::lang::XMultiServiceFactory;
117*cdf0e10cSrcweir
118*cdf0e10cSrcweir	/** can be used to create folder hierarchies and to organize forms or reports in different sub folders.
119*cdf0e10cSrcweir	*/
120*cdf0e10cSrcweir	interface com::sun::star::container::XHierarchicalNameContainer;
121*cdf0e10cSrcweir};
122*cdf0e10cSrcweir
123*cdf0e10cSrcweir//=============================================================================
124*cdf0e10cSrcweir
125*cdf0e10cSrcweir}; }; }; };
126*cdf0e10cSrcweir
127*cdf0e10cSrcweir/*===========================================================================
128*cdf0e10cSrcweir===========================================================================*/
129*cdf0e10cSrcweir#endif
130