Praveen Reddy wrote:

> hi, i want to prevent extensions or API programs from extracting or
> copying text from the instance of the TextDocument that i have
> opened. To make it clearer, I have opened a text document, i'm
> intercepting commands, i've customized the context menu, all to
> prevent a user from copying or modifying the document but now i want
> to prevent some third party from running any program which uses our
> API(the open office API) to get the contents of the document. Is it
> possible to implement our own version of XModel or disable the XModel
> and frame something like that? Can somone guide me on how to go about
> achieving this?

First, it is impossible to prevent direct API access to the OOo documents.

Reimplementing the model would basically be possible - but remember that
you need the ability to extract content from the document to be able to
save it (most of our ODF export code uses the API also). Also some
features in the application are using the API and you would break them.
Besides that it would be a huge effort of several person years to
implement that. Doesn't make sense IMHO.

Besides that using an Open Source application with an Open Standard file
format and not allowing users to extract content of their documents by
extensions, macros etc. is not the best idea. ;-)

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to