songzhanjun wrote:
> hi Christian,
>
> Thank you for help. I think that I need more help and advice to fix the issue.
>
>   
>> To know how to fix the issue, you need to debug the issue and come up
>> with a solution.
>>     
> I have already debuged the issue for serval days, and I think the core hasn't 
> error, and the user's operation have a mistake. What can I do is that when 
> user operate like this, the process pop a dialog like MS do. do you agree 
> with me? 
>   
Yes
>> What is the small problem?
>>     
> I'm sorry. I'm a young chinese, and my English is so poor that I can't 
> describe the problem clear.
>   
No problem at all, just remember to give as much information as
possible, this helps a lot understanding what you try to comunicate.
> When open each of the documents linked to each other, MS Office PowerPoint 
> will pop a dialog say "Microsoft Office already confirmed a potential safety 
> problem". I closed the dialog, the view can't display the OLE object 
> normally. when I click the view, the process pop that dialog again.
> do you know what I say about the small problem in MS Office?
>   
You already described it very well. So it looks like MS Office does some
kind of safety checks, including to look for circular references in
documents. This would also
be a nice feature to have. This could be done at load time by gathering
a list of 'parent' documents and when inspecting child documents, verify
if they are not already
in that list. The xml filter usually take an XPropertySet where such
information can be supplied to the filter. See sdxmlwrp.cxx in sd
project as an example how the
XPropertySet is given to the filter.
> Can you give me some advice about how to debug or fix the issue?
>   
Adding a dialog and preventing the user to insert the actuall document
as an ole object would be a good fix for the first issue.
Fixing that two documents reference each other is a little bit more
advanced and should be fixed for all applications. So you
should at least submitt three issues describing the problem, one for
calc, impress and writer. Maybe we can even fix this
in the framework project so the solution for each application uses the
same base implementation.

Regards,
Christian

-- 
Sun Microsystems GmbH
Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering

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

Reply via email to