%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/orca/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/orca/__pycache__/ax_utilities_role.cpython-312.pyc |
� g f�� � �v � d Z dZdZdZdZdZddlZ ej dd � dd lm Z ddl mZ G d � d� Zy)a� Utilities for obtaining role-related information. These utilities are app-type- and toolkit-agnostic. Utilities that might have different implementations or results depending on the type of app (e.g. terminal, chat, web) or toolkit (e.g. Qt, Gtk) should be in script_utilities.py file(s). N.B. There are currently utilities that should never have custom implementations that live in script_utilities.py files. These will be moved over time. z$Id$z $Revision$z$Date$zCopyright (c) 2023 Igalia, S.L.�LGPL� N�Atspiz2.0)r � )�AXObjectc �� � e Zd ZdZed�d�� Zed� � Zed� � Zed� � Zed� � Z ed� � Z ed� � Zed�d �� Zed � � Z ed�d�� Zed� � Zed � � Zed� � Zed�d�� Zed�d�� Zed�d�� Zed�d�� Zed�d�� Zed�d�� Zed�d�� Zed�d�� Zed�d�� Zed�d�� Zed�d�� Zed�d�� Zed�d�� Zed�d�� Zed�d�� Z ed�d�� Z!ed�d �� Z"ed�d!�� Z#ed�d"�� Z$ed�d#�� Z%ed�d$�� Z&ed�d%�� Z'ed�d&�� Z(ed�d'�� Z)ed�d(�� Z*ed�d)�� Z+ed�d*�� Z,ed�d+�� Z-ed�d,�� Z.ed�d-�� Z/ed�d.�� Z0ed�d/�� Z1ed�d0�� Z2ed�d1�� Z3ed�d2�� Z4ed�d3�� Z5ed�d4�� Z6ed�d5�� Z7ed�d6�� Z8ed�d7�� Z9ed�d8�� Z:ed�d9�� Z;ed�d:�� Z<ed�d;�� Z=ed�d<�� Z>ed�d=�� Z?ed�d>�� Z@ed�d?�� ZAed�d@�� ZBed�dA�� ZCed�dB�� ZDed�dC�� ZEed�dD�� ZFed�dE�� ZGed�dF�� ZHed�dG�� ZIed�dH�� ZJed�dI�� ZKed�dJ�� ZLed�dK�� ZMed�dL�� ZNed�dM�� ZOed�dN�� ZPed�dO�� ZQed�dP�� ZRed�dQ�� ZSed�dR�� ZTed�dS�� ZUed�dT�� ZVed�dU�� ZWed�dV�� ZXed�dW�� ZYed�dX�� ZZed�dY�� Z[ed�dZ�� Z\ed�d[�� Z]ed�d\�� Z^ed�d]�� Z_ed�d^�� Z`ed�d_�� Zaed�d`�� Zbed�da�� Zced�db�� Zded�dc�� Zeed�dd�� Zfed�de�� Zged�df�� Zhed�dg�� Zied�dh�� Zjed�di�� Zked�dj�� Zled�dk�� Zmed�dl�� Zned�dm�� Zoed�dn�� Zped�do�� Zqed�dp�� Zred�dq�� Zsed�dr�� Zted�ds�� Zued�dt�� Zved�du�� Zwed�dv�� Zxed�dw�� Zyed�dx�� Zzed�dy�� Z{ed�dz�� Z|ed�d{�� Z}ed�d|�� Z~ed�d}�� Zed�d~�� Z�ed�d�� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�ed�d��� Z�y)��AXUtilitiesRolez1Utilities for obtaining role-related information.c � � t j j t j j t j j g}| r)|j t j j � |S �z/Returns the list of roles we consider documents)r �Role� COLOR_CHOOSER�DIALOG�FILE_CHOOSER�append�ALERT)�include_alert_as_dialog�roless �8/usr/lib/python3/dist-packages/orca/ax_utilities_role.py�get_dialog_rolesz AXUtilitiesRole.get_dialog_roles. sR � � ���)�)����"�"����(�(�*�� #��L�L����)�)�*��� c �6 � t j j t j j t j j t j j t j j t j j g} | S r )r r �DOCUMENT_EMAIL�DOCUMENT_FRAME�DOCUMENT_PRESENTATION�DOCUMENT_SPREADSHEET� DOCUMENT_TEXT�DOCUMENT_WEB�r s r �get_document_rolesz"AXUtilitiesRole.get_document_roles9 s` � � ���*�*����*�*����1�1����0�0����)�)����(�(�*�� �r c � � t j j t j j t j j t j j t j j t j j t j j t j j t j j t j j g } | S )z1Returns the list of roles we consider form fields)r r � CHECK_BOX�RADIO_BUTTON� COMBO_BOXr �TEXT�LIST_BOX�ENTRY� PASSWORD_TEXT�PUSH_BUTTON�SPIN_BUTTONr s r �get_form_field_rolesz$AXUtilitiesRole.get_form_field_rolesE s� � � ���%�%����(�(����%�%����*�*���������$�$����!�!����)�)����'�'����'�'� )�� �r c �� � t j j t j j t j j t j j g} | S )z0Returns the list of roles we consider menu items)r r � MENU_ITEM�CHECK_MENU_ITEM�RADIO_MENU_ITEM�TEAROFF_MENU_ITEMr s r �get_menu_item_rolesz#AXUtilitiesRole.get_menu_item_rolesU sF � � ���%�%����+�+����+�+����-�-�/�� �r c �h � t j j t j j t j j t j j t j j t j j t j j g} | S )z2Returns the list of roles we consider menu related) r r �MENU�MENU_BAR� POPUP_MENUr+ r, r- r. r s r �get_menu_related_rolesz&AXUtilitiesRole.get_menu_related_roles_ sk � � ��������$�$����&�&����%�%����+�+����+�+����-�-� /�� �r c �\ � t j j t j j t j j t j j t j j t j j t j j t j j t j j t j j t j j t j j t j j t j j t j j t j j"