Back to index

im-sdk  12.3.91
xaux_so.c
Go to the documentation of this file.
00001 /*
00002  * Copyright 1998 by Sun Microsystems, Inc., 901 San Antonio Road,
00003  * Palo Alto, California, 94303, U.S.A. All rights reserved.
00004  * 
00005  * This software is the confidential and proprietary information of Sun
00006  * Microsystems, Inc. ("Confidential Information").  You shall not
00007  * disclose such Confidential Information and shall use it only in
00008  * accordance with the terms of the license agreement you entered
00009  * into with Sun.
00010  */
00011 
00012 /* define Aux classes */
00013 
00014 #include <X11/Xlib.h>
00015 #include <X11/Xatom.h>
00016 
00017 #include "config.h"
00018 #include "iiimpAux.h"
00019 #include "xaux_common.h"
00020 #include "xaux_locale.h"
00021 
00022 #define       XAUX_CLASS_MAX              8      
00023 
00024 CARD16  utfname_xaux_object[] = {
00025         'c','o','m','.','s','u','n','.',
00026         'i','i','i','m','.',
00027         'k','o','l','e','.',
00028         'a','u','x','.',
00029         'o','b','j','e','c','t',
00030 };
00031 
00032 CARD16  utfname_xaux_manager_gtk2[] = {
00033         'c','o','m','.','s','u','n','.',
00034         'i','i','i','m','.',
00035         'k','o','l','e','.',
00036         'a','u','x','.',
00037         'm','a','n','a','g','e','r','.',
00038         'g','t','k','2'
00039 };
00040 
00041 
00042 
00043 CARD16 aux_utfname_palette[] = {
00044        'c','o','m','.','s','u','n','.',
00045        'i','i','i','m','.',
00046        'k','o','l','e','.',
00047        'p','a','l','e','t','t','e'
00048 };
00049 
00050 CARD16 aux_utfname_option[] = {
00051        'c','o','m','.','s','u','n','.',
00052        'i','i','i','m','.',
00053        'k','o','l','e','.',
00054        'o','p','t','i','o','n'
00055 };
00056 
00057 CARD16 aux_utfname_select[] = {
00058        'c','o','m','.','s','u','n','.',
00059        'i','i','i','m','.',
00060        'k','o','l','e','.',
00061        's','e','l','e','c','t'
00062 };
00063 
00064 CARD16 aux_utfname_keyboard[] = {
00065        'c','o','m','.','s','u','n','.',
00066        'i','i','i','m','.',
00067        'k','o','l','e','.',
00068        'k','e','y','b','o','a','r','d'
00069 };
00070 
00071 CARD16 aux_utfname_lookup[] = {
00072        'c','o','m','.','s','u','n','.',
00073        'i','i','i','m','.',
00074        'k','o','l','e','.',
00075        'l','o','o','k','u','p'
00076 };
00077 
00078 CARD16 aux_utfname_action[] = {
00079        'c','o','m','.','s','u','n','.',
00080        'i','i','i','m','.',
00081        'k','o','l','e','.',
00082        'a','c','t','i','o','n'
00083 };
00084 
00085 extern aux_method_t xaux_so_methods;
00086 
00087 xaux_class_t xaux_classes[XAUX_CLASS_MAX] = {
00088        {
00089               XAUX_PALETTE_CLASS_NAME,  1,
00090               LE_AUX_MODULES_DIR "/PaletteAux",
00091               (Window)0, (Window)0,
00092               (Atom)0, (Atom)0, (Atom)0, 
00093               { (Atom)0 }, ATOM_NUM_PALETTEAUX, 0, 
00094               { (Atom)0 }, ATOM_NUM_PALETTEAUX, 0,
00095               aux_utfname_palette,
00096        },
00097 /*
00098        {
00099               XAUX_OPTION_CLASS_NAME,  1,
00100               LE_AUX_MODULES_DIR "/OptionAux",
00101               (Window)0, (Window)0,
00102               (Atom)0, (Atom)0, (Atom)0, 
00103               { (Atom)0 }, ATOM_NUM_OPTIONAUX, 0, 
00104               { (Atom)0 }, ATOM_NUM_OPTIONAUX, 0, 
00105               aux_utfname_option,
00106        },
00107        {
00108               XAUX_SELECT_CLASS_NAME,  1,
00109               LE_AUX_MODULES_DIR "/SelectAux",
00110               (Window)0, (Window)0,
00111               (Atom)0, (Atom)0, (Atom)0, 
00112               { (Atom)0 }, ATOM_NUM_SELECTAUX, 0, 
00113               { (Atom)0 }, ATOM_NUM_SELECTAUX, 0,
00114               aux_utfname_select,
00115        },
00116        {
00117               XAUX_KEYBOARD_CLASS_NAME,  1,
00118               LE_AUX_MODULES_DIR "/KeyboardAux",
00119               (Window)0, (Window)0,
00120               (Atom)0, (Atom)0, (Atom)0, 
00121               { (Atom)0 }, ATOM_NUM_KEYBOARDAUX, 0, 
00122               { (Atom)0 }, ATOM_NUM_KEYBOARDAUX, 0,
00123               aux_utfname_keyboard,
00124        },
00125        {
00126               XAUX_LOOKUP_CLASS_NAME,  1,
00127               LE_AUX_MODULES_DIR "/LookupAux",
00128               (Window)0, (Window)0,
00129               (Atom)0, (Atom)0, (Atom)0, 
00130               { (Atom)0 }, ATOM_NUM_LOOKUPAUX, 0, 
00131               { (Atom)0 }, ATOM_NUM_LOOKUPAUX, 0,
00132               aux_utfname_lookup,
00133        },
00134        {
00135               XAUX_ACTION_CLASS_NAME,  1,
00136               LE_AUX_MODULES_DIR "/ActionAux",
00137               (Window)0, (Window)0,
00138               (Atom)0, (Atom)0, (Atom)0, 
00139               { (Atom)0 }, ATOM_NUM_ACTIONAUX, 0, 
00140               { (Atom)0 }, ATOM_NUM_ACTIONAUX, 0,
00141               aux_utfname_action,
00142        },
00143 */
00144        {
00145               NULL, -1,
00146               NULL,
00147               (Window)0, (Window)0,
00148               (Atom)0, (Atom)0, (Atom)0, 
00149               { (Atom)0 }, 0, 0, 
00150               { (Atom)0 }, 0, 0,
00151               NULL,
00152        }
00153 };
00154 
00155 aux_dir_t aux_dir[XAUX_CLASS_MAX] = {
00156         {
00157                 { sizeof(utfname_xaux_object),
00158                   (CARD16 *)utfname_xaux_object,
00159                 },
00160                 &xaux_so_methods,
00161         },
00162        {
00163               {
00164                      sizeof (aux_utfname_palette),
00165                      (CARD16 *)aux_utfname_palette,
00166               },
00167               &xaux_so_methods,
00168        },
00169 /*
00170        {
00171               {
00172                      sizeof (aux_utfname_option),
00173                      (CARD16 *)aux_utfname_option,
00174               },
00175               &xaux_so_methods,
00176        },
00177        {
00178               {
00179                      sizeof (aux_utfname_select),
00180                      (CARD16 *)aux_utfname_select,
00181               },
00182               &xaux_so_methods,
00183        },
00184        {
00185               {
00186                      sizeof (aux_utfname_keyboard),
00187                      (CARD16 *)aux_utfname_keyboard,
00188               },
00189               &xaux_so_methods,
00190        },
00191        {
00192               {
00193                      sizeof (aux_utfname_lookup),
00194                      (CARD16 *)aux_utfname_lookup,
00195               },
00196               &xaux_so_methods,
00197        },
00198        {
00199               {
00200                      sizeof (aux_utfname_action),
00201                      (CARD16 *)aux_utfname_action,
00202               },
00203               &xaux_so_methods,
00204        },
00205 */
00206        {0, NULL, NULL}
00207 };