summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star/document
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-16 12:22:48 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-16 12:22:48 +0100
commit00f0883d4763957e20c5116375654a7978510124 (patch)
treee77b18ecb1d298391bee6d5d3bb88ad4b6a2e6b9 /offapi/com/sun/star/document
parent346f21a522ef4ceb5ab397c7433f54cfea898956 (diff)
undoapi: derive XUndoManager from XChild, to allow convenient access to the document it belongs to
Diffstat (limited to 'offapi/com/sun/star/document')
-rwxr-xr-xoffapi/com/sun/star/document/XUndoManager.idl8
1 files changed, 8 insertions, 0 deletions
diff --git a/offapi/com/sun/star/document/XUndoManager.idl b/offapi/com/sun/star/document/XUndoManager.idl
index 9d8b3e11974f..5ac7118dc51d 100755
--- a/offapi/com/sun/star/document/XUndoManager.idl
+++ b/offapi/com/sun/star/document/XUndoManager.idl
@@ -32,6 +32,7 @@
#include <com/sun/star/document/UndoFailedException.idl>
#include <com/sun/star/util/InvalidStateException.idl>
#include <com/sun/star/util/XLockable.idl>
+#include <com/sun/star/container/XChild.idl>
#include <com/sun/star/lang/IllegalArgumentException.idl>
#include <com/sun/star/lang/WrappedTargetException.idl>
@@ -81,6 +82,13 @@ interface XUndoManager
*/
interface ::com::sun::star::util::XLockable;
+ /** allows accessing the component, usually a document, which the undo manager works for.
+
+ <p><member scope="com::sun::star::container">XChild::setParent</member> is not supported, and will throw
+ an <type scope="com::sun::star::lang">NoSupportException</type>.</p>
+ */
+ interface ::com::sun::star::container::XChild;
+
/** enters a new undo context.
<p>A new undo action will be added to the undo stack, with the title given as <code>i_title</code>. As long