/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * 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 . */ module com { module sun { module star { module sdb { interface XSubDocument; /** specifies a sub document of an 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 com::sun::star::frame::XModel interface),
but only a shortcut to access and load those actual documents.
The com::sun::star::ucb::XCommandProcessor::execute() method
of a DocumentDefinition
supports at least the following commands, additionally to
the ones already supported by the DefinitionContent:
execute
method is the model of the loaded document.execute
method is the model of the loaded document.open
or openDesign
command. The return value
of the execute
command is a boolean
value indicating whether
the sub document could be closed. Reasons for not closing the document include vetoes by
third parties, for instance, because the user opened a dialog modal to the sub document,
or a long-running task such as printing is currently running.