296297298299300301302303304305
*/ private void checkListener(XInterface xDoc){ XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, xDoc); XUserInputInterception xUII = getUII(xModel); checkMouseListener(xUII, xModel); checkKeyListener(xUII, xModel); }
376377378379380381382383384385386
*/ private XUserInputInterception getUII(XModel xModel){ XController xController = xModel.getCurrentController(); XUserInputInterception xUII = (XUserInputInterception) UnoRuntime.queryInterface( XUserInputInterception.class, xController); if (xUII == null) { failed("could not get XUserInputInterception from XContoller", true); } return xUII;
298299300301302303304305306307
*/ private void checkListener(XInterface xDoc){ XModel xModel = UnoRuntime.queryInterface(XModel.class, xDoc); XUserInputInterception xUII = getUII(xModel); checkMouseListener(xUII, xModel); checkKeyListener(xUII, xModel); }
378379380381382383384385386387388
*/ private XUserInputInterception getUII(XModel xModel){ XController xController = xModel.getCurrentController(); XUserInputInterception xUII = UnoRuntime.queryInterface(XUserInputInterception.class, xController); if (xUII == null) { fail("could not get XUserInputInterception from XContoller"); } return xUII; }
293294295296297298299300301302
373374375376377378379380381382383
301302303304305306307308309310
381382383384385386387388389390391