Lines Matching refs:i

187         for (int i = 0; i < sModules.length; ++i)  in checkModuleAccelCfg()
189 …m.out.println("\n---- check accelerator configuration depending module: " + sModules[i] + " ----"); in checkModuleAccelCfg()
194 aProp[0].Value = sModules[i]; in checkModuleAccelCfg()
206 …imaryAccess = UnoRuntime.queryInterface(XNameAccess.class, xPrimaryModules.getByName(sModules[i])); in checkModuleAccelCfg()
207 …aryAccess = UnoRuntime.queryInterface(XNameAccess.class, xSecondaryModules.getByName(sModules[i])); in checkModuleAccelCfg()
210 if (sModules[i].equals("com.sun.star.presentation.PresentationDocument")) in checkModuleAccelCfg()
217 else if (sModules[i].equals("com.sun.star.sheet.SpreadsheetDocument")) in checkModuleAccelCfg()
224 else if (sModules[i].equals("com.sun.star.text.TextDocument")) in checkModuleAccelCfg()
242 if (sModules[i].equals("com.sun.star.presentation.PresentationDocument")) in checkModuleAccelCfg()
253 else if (sModules[i].equals("com.sun.star.sheet.SpreadsheetDocument")) in checkModuleAccelCfg()
264 else if (sModules[i].equals("com.sun.star.text.TextDocument")) in checkModuleAccelCfg()
289 if (sModules[i].equals("com.sun.star.presentation.PresentationDocument")) in checkModuleAccelCfg()
296 else if (sModules[i].equals("com.sun.star.sheet.SpreadsheetDocument")) in checkModuleAccelCfg()
303 else if (sModules[i].equals("com.sun.star.text.TextDocument")) in checkModuleAccelCfg()
321 if (sModules[i].equals("com.sun.star.presentation.PresentationDocument")) in checkModuleAccelCfg()
328 else if (sModules[i].equals("com.sun.star.sheet.SpreadsheetDocument")) in checkModuleAccelCfg()
335 else if (sModules[i].equals("com.sun.star.text.TextDocument")) in checkModuleAccelCfg()
381 for (int i = 0; i < sKeys.length; ++i) in impl_checkGetKeyCommands()
383 … if (xAccess.hasByName(sKeys[i]) && getCommandFromConfiguration(xAccess, sKeys[i]).length() > 0) in impl_checkGetKeyCommands()
385 System.out.println("** get command by " + sKeys[i] + " **"); in impl_checkGetKeyCommands()
391 sCmdFromCache = xAccelCfg.getCommandByKeyEvent(convertShortcut2AWTKey(sKeys[i])); in impl_checkGetKeyCommands()
392 … System.out.println(sKeys[i] + "-->" + sCmdFromCache + ", by XAcceleratorConfiguration API"); in impl_checkGetKeyCommands()
395 sCmdFromConfiguration = getCommandFromConfiguration(xAccess, sKeys[i]); in impl_checkGetKeyCommands()
396 … System.out.println(sKeys[i] + "-->" + sCmdFromConfiguration + ", by configuration API"); in impl_checkGetKeyCommands()
402 sCmdFromConfiguration = getCommandFromConfiguration(xAccess, sKeys[i]); in impl_checkGetKeyCommands()
403 …System.out.println(sKeys[i] + "-->" + sCmdFromConfiguration + ", by configuration API" + " for loc… in impl_checkGetKeyCommands()
410 System.out.println(sKeys[i] + " doesn't exist!"); in impl_checkGetKeyCommands()
423 for (int i = 0; i < sKeys.length; ++i) in impl_checkSetKeyCommands()
425 if (!xPrimaryAccess.hasByName(sKeys[i]) && !xSecondaryAccess.hasByName(sKeys[i])) in impl_checkSetKeyCommands()
427 xAccelCfg.setKeyEvent(convertShortcut2AWTKey(sKeys[i]), sCommands[i]); in impl_checkSetKeyCommands()
429 if (xPrimaryAccess.hasByName(sKeys[i])) in impl_checkSetKeyCommands()
431 System.out.println("add " + sKeys[i] + " successfully!"); in impl_checkSetKeyCommands()
435 System.out.println("add " + sKeys[i] + " failed!"); in impl_checkSetKeyCommands()
438 else if (xPrimaryAccess.hasByName(sKeys[i])) in impl_checkSetKeyCommands()
440 String sOriginalCommand = getCommandFromConfiguration(xPrimaryAccess, sKeys[i]); in impl_checkSetKeyCommands()
441 if (!sCommands[i].equals(sOriginalCommand)) in impl_checkSetKeyCommands()
443 xAccelCfg.setKeyEvent(convertShortcut2AWTKey(sKeys[i]), sCommands[i]); in impl_checkSetKeyCommands()
446 String sChangedCommand = getCommandFromConfiguration(xPrimaryAccess, sKeys[i]); in impl_checkSetKeyCommands()
447 if (sCommands[i].equals(sChangedCommand)) in impl_checkSetKeyCommands()
449 System.out.println("change " + sKeys[i] + " successfully!"); in impl_checkSetKeyCommands()
453 System.out.println("change " + sKeys[i] + " failed!"); in impl_checkSetKeyCommands()
458 System.out.println(sKeys[i] + " already exist!"); in impl_checkSetKeyCommands()
461 else if (xSecondaryAccess.hasByName(sKeys[i])) in impl_checkSetKeyCommands()
463 String sOriginalCommand = getCommandFromConfiguration(xSecondaryAccess, sKeys[i]); in impl_checkSetKeyCommands()
464 if (!sCommands[i].equals(sOriginalCommand)) in impl_checkSetKeyCommands()
466 xAccelCfg.setKeyEvent(convertShortcut2AWTKey(sKeys[i]), sCommands[i]); in impl_checkSetKeyCommands()
469 String sChangedCommand = getCommandFromConfiguration(xPrimaryAccess, sKeys[i]); in impl_checkSetKeyCommands()
470 if (sCommands[i].equals(sChangedCommand)) in impl_checkSetKeyCommands()
472 System.out.println("change " + sKeys[i] + " successfully!"); in impl_checkSetKeyCommands()
476 System.out.println("change " + sKeys[i] + " failed!"); in impl_checkSetKeyCommands()
481 System.out.println(sKeys[i] + " already exist!"); in impl_checkSetKeyCommands()
495 for (int i = 0; i < sKeys.length; i++) in impl_checkRemoveKeyCommands()
497 if (!xPrimaryAccess.hasByName(sKeys[i]) && !xSecondaryAccess.hasByName(sKeys[i])) in impl_checkRemoveKeyCommands()
499 System.out.println(sKeys[i] + " doesn't exist!"); in impl_checkRemoveKeyCommands()
501 else if (xPrimaryAccess.hasByName(sKeys[i])) in impl_checkRemoveKeyCommands()
503 xAccelCfg.removeKeyEvent(convertShortcut2AWTKey(sKeys[i])); in impl_checkRemoveKeyCommands()
505 if (!xPrimaryAccess.hasByName(sKeys[i])) in impl_checkRemoveKeyCommands()
507 System.out.println("Remove " + sKeys[i] + " successfully!"); in impl_checkRemoveKeyCommands()
511 System.out.println("Remove " + sKeys[i] + " failed!"); in impl_checkRemoveKeyCommands()
514 else if (xSecondaryAccess.hasByName(sKeys[i])) in impl_checkRemoveKeyCommands()
516 xAccelCfg.removeKeyEvent(convertShortcut2AWTKey(sKeys[i])); in impl_checkRemoveKeyCommands()
518 if (!xSecondaryAccess.hasByName(sKeys[i])) in impl_checkRemoveKeyCommands()
520 System.out.println("Remove " + sKeys[i] + " successfully!"); in impl_checkRemoveKeyCommands()
524 System.out.println("Remove " + sKeys[i] + " failed!"); in impl_checkRemoveKeyCommands()
539 for (int i = 0; i < oKeyEvents.length; i++) in impl_checkGetPreferredKeyEventsForCommandList()
541 System.out.println("get preferred key for command " + sCommandList[i] + ":"); in impl_checkGetPreferredKeyEventsForCommandList()
543 KeyEvent aKeyEvent = (KeyEvent) AnyConverter.toObject(KeyEvent.class, oKeyEvents[i]); in impl_checkGetPreferredKeyEventsForCommandList()
549 if (sCommandList[i].equals(sCmdFromConfiguration)) in impl_checkGetPreferredKeyEventsForCommandList()
706 for (int i = 1; i < sShortcutSplits.length; i++) in convertShortcut2AWTKey()
708 if (sShortcutSplits[i].equals("SHIFT")) in convertShortcut2AWTKey()
712 else if (sShortcutSplits[i].equals("MOD1")) in convertShortcut2AWTKey()
716 else if (sShortcutSplits[i].equals("MOD2")) in convertShortcut2AWTKey()