openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J├╝rgen Schmidt <jogischm...@gmail.com>
Subject Re: CMIS UCP
Date Fri, 30 Aug 2013 05:14:25 GMT
On 8/29/13 9:14 PM, Rajath Shashidhara wrote:
> Hello,
> 
> SInce, my mentor for a long period of time. I need help from your side.
> My ucp is completed till the point where I can open files through open
> dialog and can create new documents on repository.
> 
> When the user opens a document from open dialog, it is opened as readonly
> as editing needs the document to be checked out and later the changes to be
> checked in.
> 
> I have also developed "checkin" and "checkout" ucb commands.
> 
> My question is :
> how to show a popup or message box prompting user to checkout the document
> when the user opens the document as readonly from the open file dialog?
> 
> Please reply as early as possible. Your help is essential as I'm running
> out of time.
> 

Hi Rajath,

I told you that I am off for 4 days and have limited time. There is
still enough to do to improve the code and to cleanup.

Implement as default that the document is opened readonly. Later on the
file open dialog have to be extended to show the checkin/checkout
commands in the context menu. Or even better a sidebar will provide a
separate view on the files and show the commands explicitly.

For test purposes you can also add a toolbar with 2 buttons to
checkin/checkout the currently active document if it is from a cmsi
storage.

It's your project, you should drive it. Think what's useful and make
sense. If you prefer a dialog to ask every time you can do that as well.
Get the desktop and the current frame to get a parent window for the
dialog. Examples are in the SDK as I told you. The code have to be
adapted to your code but in general the samples are there.

The question is if you want to ask when the document is opened or only
if the user try to save. When save than only if it is not yet checked
out. And ask when a checked out document is closed if the user want to
check in.

Think about the usecases and think what would be best to help the user
to fulfill his task and to avoid mistakes, what would be a good workflow.

Juergen





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Mime
View raw message