Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On 10/19/2011 10:30 PM, Rob Snelders wrote:
I tried to add the XScannerManager2. But when I try with this patch then
the menu-items are disabled. I have tried to search where the problem
was but I canĀ“t find it. Can you help me?

Hi Rob,

The new file offapi/com/sun/star/scanner/XScannerManager2.idl is missing from the patch (I guess you did not git add it before you created the git diff).

Then, as Markus already pointed out, the ScannerManager class needs to be adapted, to derive from XScannerManager2.

Further, I noted that when configureScannerAndScan in scanunx.cxx calls the SaneDlg constructor, it should pass "listener.is()" instead of "(listener != NULL)" for bScanEnabled. While the latter (happens to) work as well, the former is much cleaner and the preferred idiom when working with com::sun::star::uno::Reference.

And finally, the scanwin.cxx case does not support the new feature at all, right? Then we should at least change the end of the changed line in that file from "const uno::Reference< lang::XEventListener >& rxListener )" to "const uno::Reference< lang::XEventListener >& )", to avoid warnings about unused parameters. Better yet, the button should be hidden. (Or even better yet, the new functionality should be implemented...)

If you provide the missing XScannerManager2.idl, I can tweak the above issues in the patch for you, if you like.

-Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.