Hi Felix,

Good that the problem with the breakpoint is solved. I must confess I
could not reproduce the problem in our environment, the breakpoint is
reachable after the file in sfx2 is built with debug information. It
probably depends from the office build that is used.

Thank you for the stack. It shows that the final resize of the inner
document size happens asynchronously based on the outer window. But that
mean that at this point the outer window should already have the correct
size and can be centered.

The window can be centered only after the document is loaded. To avoid
the flickering of the window let it be created invisible, to do this
please insert a new property "MakeVisible" set to false into
m_aOutplaceFrameProps sequence. That should be done in the
embeddedobj/source/general/docholder.cxx in the constructor of the
"DocumentHolder".

To let the document be visible please call the method
XWindow::setVisible( sal_True ) on the container window of the frame
retrieved by XFrame::getContainerWindow() method. That should be done at
the end of the DocumentHolder::GetDocFrame() method.

Please implement this and in case it works well, we will introduce the
centering after the document is loaded and the layout manager is unlocked.

Best Regards,
Mikhail.

Zhang Xiaofei wrote:
> Hi Mikhail,
> 
> The breakpoint starts to work after I built the 'desktop' project with
> debug information as well.With the call stack of the last call of
> SetVisArea() in the attachment, I'm trying to dig into the related
> functions, could you give me any hints, please?
> 
> With Best Regards,
> Felix.
> 
> Zhang Xiaofei 写道:
>> Hi Mikhail,
>>
>> I'm trying to debug around the issue but the application does not break
>> in the method as anticipated, below are the steps I took, could you
>> point out what I have done wrong please? (the steps are taken on a
>> source that has been built completely without debug information)
>>
>> - Remove the output directories of 'embeddedobj' and 'dbaccess' projects.
>> - 'touch source/doc/objembed.cxx' in '$SOURCE_PATH/sfx2/'.
>> - 'build debug=true' in all the three projects above.
>> - Copy all the generated .dll files in the three projects to
>> '$INSTALL_PATH/program/'.
>>
>> Best Regards,
>> Felix.
>>
>>   
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to