/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * *************************************************************/ #ifndef __com_sun_star_sdb_DocumentDefinition2_idl__ #define __com_sun_star_sdb_DocumentDefinition2_idl__ #ifndef __com_sun_star_beans_XPropertySet_idl__ #include #endif #ifndef __com_sun_star_sdb_DefinitionContent_idl__ #include #endif module com { module sun { module star { module sdb { interface XSubDocument; /** specifies a sub document of a OfficeDatabaseDocument.

Usual instances of a DocumentDefinition are forms and reports.

Note that the DocumentDefinition does not denote the actual document (i.e. an object supporting the XModel interface), but only a shortcut to access and load those actual documents.

*/ service DocumentDefinition { /** provides functionality for treating the object as part of a hierarchy of a database document's sub documents.

The XCommandProcessor::execute method of a DocumentDefinition supports at least the following commands, additionally to the ones already supported by the DefinitionContent:

*/ service DefinitionContent; interface ::com::sun::star::beans::XPropertySet; interface ::com::sun::star::sdb::XSubDocument; /** is the name of the document. If the document is part of the container, it is not possible to alter the name.*/ [readonly, property] string Name; /** Indicates if the document is to be used as template, for example, if a report is to be filled with data. */ [readonly, property] boolean AsTemplate; }; //============================================================================= }; }; }; }; #endif