Hello Michael,

> of course there is:
>
>            PropertyValue[] loadProps = new PropertyValue[1];
>            loadProps[0] = new PropertyValue();
>            loadProps[0].Name = "ReadOnly";
>            loadProps[0].Value = new Boolean(true);
>
> now pass that as the last argument to loadComponentFromURL
>

This is not an option. If you set the document read-only you can at
least in calc no longer do a lot of actions. We have a function that
tests the SfxMedium if it is read only and prevent modification in
this case.

I'll work on the copy idea.
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to