Hi Mikhail,

Sorry but I searched the usage of GetVerbByShortcut() and couldn't find an example, I may need your hint on this little question regarding the first step: what exactly is the ShortCut of a Verb please? Is it in our case, "PRINT"?

Best Regards,
Felix.


Mikhail Voitenko
Hi Felix,

Thanks a lot for the patch, it looks good.

Now the MSOLE implementation should be adjusted as we have discussed.
The first step would be to let the getSupportedVerbs() implementation return the print verb. MSOLE objects are a special case, the verbs are either requested from the external server ( in case it is Windows system with installed server related to the object ), or just empty in case of Unix systems. The new implementation should add the print verb for both cases. To get the PRINT verb value from configuration please use "::comphelper::MimeConfigurationHelper::GetVerbByShortcut()" method.

The next step will be to implement the verb itself. In case getPreferredVisualRepresentation() can retrieve the replacement image the image could be printed by the object itself. Sometimes it might work even on Unix systems in case the image is stored in the object stream. Otherwise it should be printed in the container. I will send the details regarding the image printing tomorrow.

Best Regards,
Mikhail.

On 02/19/09 10:14, Zhang Xiaofei wrote:
Hi Mikhail,

I'm sorry our network broke down after our meeting yesterday. With this patch the temporary frame is hidden when document is printed now. Would you please review it for me?
Thank you for your help. :-)

Best Regards,
Felix.




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
For additional commands, e-mail: dev-h...@framework.openoffice.org

Reply via email to