summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-12-13 09:09:52 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-12-17 13:58:56 +0100
commit43a63b725208bfa378355011ea56cb936afa4411 (patch)
treef0d388cfb59c37e98ae8e2533d18ec649a5287ac /offapi
parent397195cd43249851bb89d0a2ba82ffdf975b7317 (diff)
Allow setting some MediaDescriptor properties during runtime
Change-Id: Id6bb554c0e165c6d1f9c28c48fdbcd7156f42316 Reviewed-on: https://gerrit.libreoffice.org/65256 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/frame/XModel2.idl21
1 files changed, 21 insertions, 0 deletions
diff --git a/offapi/com/sun/star/frame/XModel2.idl b/offapi/com/sun/star/frame/XModel2.idl
index 0a0e15f1b738..41d44512149a 100644
--- a/offapi/com/sun/star/frame/XModel2.idl
+++ b/offapi/com/sun/star/frame/XModel2.idl
@@ -24,6 +24,7 @@
#include <com/sun/star/container/XEnumeration.idl>
#include <com/sun/star/awt/XWindow.idl>
#include <com/sun/star/lang/IllegalArgumentException.idl>
+#include <com/sun/star/util/InvalidStateException.idl>
module com { module sun { module star { module frame {
@@ -129,6 +130,26 @@ interface XModel2 : com::sun::star::frame::XModel
[in] com::sun::star::frame::XFrame Frame )
raises (com::sun::star::lang::IllegalArgumentException,
com::sun::star::uno::Exception );
+
+ /** Sets com::sun::star::document::MediaDescriptor properties
+ of the current model during runtime.
+
+ @since LibreOffice 6.3
+
+ @param Arguments
+ Properties which should be set
+ Supported properties:
+ <ul>
+ <li>com::sun::star::document::MediaDescriptor::SuggestedSaveAsDir</li>
+ <li>com::sun::star::document::MediaDescriptor::SuggestedSaveAsName</li>
+ </ul>
+
+ @throws com::sun::star::lang::IllegalArgumentException When trying to set an unsupported property
+ @throws com::sun::star::util::InvalidStateException When the document model can not be retrieved
+ */
+ void setArgs([in] sequence< com::sun::star::beans::PropertyValue > Arguments)
+ raises(com::sun::star::lang::IllegalArgumentException,
+ com::sun::star::util::InvalidStateException);
};