Making a file readonly
Posted: Fri Jan 15, 2010 7:01 pm
Hi, Happy new year one and all,
I am using the method AuthorWorkspaceAccess.open(URL) to open a number of files from an within an author operation.
I need for some of these files to be treated as readonly. Is there any direct support for informing Oxygen that certain documents should be treated as readonly?
I have approximated this behaviour by provodong a readonly marker in the URL, and skipping the actual output stream processing in the custom protocol handler when this marker is present. To Oxygen it appears the file has been saved, but no data has actually been written. Unfortunately the user still thinks a save has been performed. Ideally I want Oxygen to not even display the save option, or alternatively to display the option but perform no action when it is selected (including validation).
Is this possible?
Simon.
I am using the method AuthorWorkspaceAccess.open(URL) to open a number of files from an within an author operation.
I need for some of these files to be treated as readonly. Is there any direct support for informing Oxygen that certain documents should be treated as readonly?
I have approximated this behaviour by provodong a readonly marker in the URL, and skipping the actual output stream processing in the custom protocol handler when this marker is present. To Oxygen it appears the file has been saved, but no data has actually been written. Unfortunately the user still thinks a save has been performed. Ideally I want Oxygen to not even display the save option, or alternatively to display the option but perform no action when it is selected (including validation).
Is this possible?
Simon.