tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / offapi / com / sun / star / document / OfficeDocument.idl
blob8e5eef9c8e570ef42474fcd84478fb27b2a5edc3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 document {
23 /** abstract service which specifies a storable and printable document
25 <p>
26 All major document-like components should support this service
27 instead of simple components which supports a com::sun::star::frame::Controller
28 or pure com::sun::star::awt::XWindow only.
29 </p>
31 @see com::sun::star::frame::Controller
33 published service OfficeDocument
35 /** represents a component which is created from a URL and arguments
37 <p>
38 It is a representation of a resource in the sense that it was
39 created/loaded from the resource. The arguments are passed to the loader
40 to modify its behavior.
41 </p>
43 interface com::sun::star::frame::XModel;
45 /** a storable document should provide information about his modify state
47 <p>
48 With this interface it's possible too, to reset the modify state.
49 That can be necessary to prevent code against problem during closing
50 of the document without saving any changes.
51 </p>
53 interface com::sun::star::util::XModifiable;
55 /** offers a simple way to store a component to a URL
57 <p>
58 This interface supports functionality
59 <ul>
60 <li>to make a copy of current component by saving it to another location</li>
61 <li>to commit made changes</li>
62 <li>to convert it by saving it by using suitable filter name.</li>
63 </ul>
64 </p>
66 interface com::sun::star::frame::XStorable;
68 /** offers a way to print a component
70 <p>
71 It's possible to specify which printer should be used and of course
72 print the document on it.
73 </p>
75 interface com::sun::star::view::XPrintable;
77 /** is an old and deprecated version of the XDocumentEventBroadcaster interface
78 @deprecated
80 [optional] interface XEventBroadcaster;
82 /** makes it possible to register listeners which are called whenever
83 a document event occurs
85 [optional] interface XDocumentEventBroadcaster;
87 /** access to bound event handlers
89 [optional] interface XEventsSupplier;
91 /** access to some properties describing all open views to a document
93 [optional] interface XViewDataSupplier;
95 /** allows for getting information about a print job
97 @since OOo 1.1.2
99 [optional] interface com::sun::star::view::XPrintJobBroadcaster;
101 /** is supported when the document can contain scripts and dialogs
103 @since OOo 2.4
105 [optional] interface XEmbeddedScripts;
107 /** access to the DocumentProperties.
109 @since OOo 3.0
111 [optional] interface XDocumentPropertiesSupplier;
113 /** provides access to the document's undo manager.
115 [optional] interface XUndoManagerSupplier;
117 /** controls the focus behavior of the form controls in the document
120 If this flag is set to `TRUE`, any view belonging to the document
121 should focus the first control in the document. With this, you may
122 control if your document works primarily as a form document.
123 </p>
125 [property, optional] boolean AutomaticControlFocus;
127 /** controls the initial (on-load) behavior of the form controls in the document
129 <p>If set to `TRUE`, upon loading the document, the form controls will be in design mode.<br/>
130 If set to `FALSE`, they will be alive, i.e. operational.<br/>
131 With this, you may control if your document works primarily as a form document.
132 </p>
134 [property, optional] boolean ApplyFormDesignMode;
136 /** contains a unique id for the document
138 <p>Once calculated, the id must not change until the document has been
139 closed. Upon closing it will not be made persistent. Thus, the document
140 may get a different id every time it gets loaded.</p>
142 [property, optional, readonly] string RuntimeUID;
144 /** Grab bag of document properties, used as a string-any map for
145 interim interop purposes.
147 @since LibreOffice 4.2
149 <p>This property is intentionally not handled by the ODF
150 filter. Any member that should be handled there should be
151 first moved out from this grab bag to a separate property.</p>
153 [optional, property] sequence<com::sun::star::beans::PropertyValue> InteropGrabBag;
157 }; }; }; };
159 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */