🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.indesign.sdk
Article #525

CS4:Make a document ReadOnly while is open?

#525
From: Kamrun
Date: Thu, 15 Jan 2009 18:46
13 lines
1293 bytes
Hello everyone,

I need to make a document ReadOnly while is open. The idea is I want to block any user interaction(modification) in front most document in some situations and of course to be able to back to RW state later.

I know is possible to Open a doc as ReadOnly, but is it somehow possible to set this attribute to an already open document? if not, what would be a good workaround for that?

Also, I found a utility interface ( IFileUtility.h ) and a method called SetFileReadOnly() but couldn't find any Boss class to aggregate this interface.
Since I want to implement this on Mac/Windows would prefer to use SDK's API for this purpose.

I'm in rush to implement this today, any helps greatly appreciated.

Thanks,
Kamran
Technical Details
Message-ID: <59b78604.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f63e9,e3152ad747564e3c,start
X-Google-Attributes: gidf63e9,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Kamrun@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.indesign.sdk
Subject: CS4:Make a document ReadOnly while is open?
Message-ID: <59b78604.-1@webcrossing.la2eafNXanI>
Date: Thu, 15 Jan 2009 10:46:52 -0800
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit