Example #1
0
 internal virtual bool SupportsInvoke()
 {
     if (accessible.Role == Role.Separator ||
         accessible.Role == Role.CheckBox ||
         accessible.Role == Role.ScrollBar ||
         accessible.Role == Role.SpinButton ||
         accessible.Role == Role.Text ||
         accessible.Role == Role.ToggleButton)
     {
         return(false);
     }
     Atspi.Action action = accessible.QueryAction();
     if (action == null)
     {
         return(false);
     }
     ActionDescription [] actions = action.Actions;
     for (int i = 0; i < actions.Length; i++)
     {
         if (actions [i].Name == "activate" || actions [i].Name == "invoke" ||
             actions [i].Name == "click" || actions [i].Name == "jump")
         {
             return(true);
         }
     }
     return(false);
 }
Example #2
0
		public ExpandCollapseSource (Element element)
		{
			accessible = (element is DataItemElement
				? ((Element)element.FirstChild).Accessible
			: element.Accessible);
			action = accessible.QueryAction ();

			ActionDescription [] actions = action.Actions;
			for (int i = 0; i < actions.Length; i++) {
				if (actions [i].Name == "expand or contract" ||
					actions [i].Name == "expand or collapse") {
					expandOrContractAction = i;
					break;
				}
			}
		}
Example #3
0
        public ExpandCollapseSource(Element element)
        {
            accessible = (element is DataItemElement
                                ? ((Element)element.FirstChild).Accessible
                        : element.Accessible);
            action = accessible.QueryAction();

            ActionDescription [] actions = action.Actions;
            for (int i = 0; i < actions.Length; i++)
            {
                if (actions [i].Name == "expand or contract" ||
                    actions [i].Name == "expand or collapse")
                {
                    expandOrContractAction = i;
                    break;
                }
            }
        }
Example #4
0
 public ToggleSource(Element element)
 {
     accessible = element.Accessible;
     action     = accessible.QueryAction();
 }
Example #5
0
		public ToggleSource (Element element)
		{
			accessible = element.Accessible;
			action = accessible.QueryAction ();
		}