Lines Matching refs:nCode
83 sal_uInt16 nCode = 0; in GetKeyModCode() local
85 nCode |= KEY_SHIFT; in GetKeyModCode()
87 nCode |= KEY_MOD1; in GetKeyModCode()
89 nCode |= KEY_MOD2; in GetKeyModCode()
94 nCode |= KEY_MOD3; in GetKeyModCode()
95 return nCode; in GetKeyModCode()
100 sal_uInt16 nCode = GetKeyModCode( state ); in GetMouseModCode() local
102 nCode |= MOUSE_LEFT; in GetMouseModCode()
104 nCode |= MOUSE_MIDDLE; in GetMouseModCode()
106 nCode |= MOUSE_RIGHT; in GetMouseModCode()
108 return nCode; in GetMouseModCode()
113 sal_uInt16 nCode = 0; in GetKeyCode() local
115 nCode = KEY_0 + (keyval-GDK_0); in GetKeyCode()
117 nCode = KEY_0 + (keyval-GDK_KP_0); in GetKeyCode()
119 nCode = KEY_A + (keyval-GDK_A ); in GetKeyCode()
121 nCode = KEY_A + (keyval-GDK_a ); in GetKeyCode()
126 nCode = KEY_F1 + (keyval-GDK_F1); in GetKeyCode()
135 nCode = KEY_REPEAT; in GetKeyCode()
137 nCode = KEY_F12; in GetKeyCode()
139 case GDK_L3: nCode = KEY_PROPERTIES; break; in GetKeyCode()
140 case GDK_L4: nCode = KEY_UNDO; break; in GetKeyCode()
141 case GDK_L6: nCode = KEY_COPY; break; // KEY_F16 in GetKeyCode()
142 case GDK_L8: nCode = KEY_PASTE; break; // KEY_F18 in GetKeyCode()
143 case GDK_L10: nCode = KEY_CUT; break; // KEY_F20 in GetKeyCode()
145 nCode = KEY_F1 + (keyval-GDK_F1); break; in GetKeyCode()
154 case GDK_Down: nCode = KEY_DOWN; break; in GetKeyCode()
156 case GDK_Up: nCode = KEY_UP; break; in GetKeyCode()
158 case GDK_Left: nCode = KEY_LEFT; break; in GetKeyCode()
160 case GDK_Right: nCode = KEY_RIGHT; break; in GetKeyCode()
164 case GDK_Home: nCode = KEY_HOME; break; in GetKeyCode()
166 case GDK_End: nCode = KEY_END; break; in GetKeyCode()
168 case GDK_Page_Up: nCode = KEY_PAGEUP; break; in GetKeyCode()
170 case GDK_Page_Down: nCode = KEY_PAGEDOWN; break; in GetKeyCode()
172 case GDK_Return: nCode = KEY_RETURN; break; in GetKeyCode()
173 case GDK_Escape: nCode = KEY_ESCAPE; break; in GetKeyCode()
176 case GDK_Tab: nCode = KEY_TAB; break; in GetKeyCode()
177 case GDK_BackSpace: nCode = KEY_BACKSPACE; break; in GetKeyCode()
179 case GDK_space: nCode = KEY_SPACE; break; in GetKeyCode()
181 case GDK_Insert: nCode = KEY_INSERT; break; in GetKeyCode()
183 case GDK_Delete: nCode = KEY_DELETE; break; in GetKeyCode()
185 case GDK_KP_Add: nCode = KEY_ADD; break; in GetKeyCode()
187 case GDK_KP_Subtract: nCode = KEY_SUBTRACT; break; in GetKeyCode()
189 case GDK_KP_Multiply: nCode = KEY_MULTIPLY; break; in GetKeyCode()
191 case GDK_KP_Divide: nCode = KEY_DIVIDE; break; in GetKeyCode()
193 case GDK_decimalpoint: nCode = KEY_POINT; break; in GetKeyCode()
194 case GDK_comma: nCode = KEY_COMMA; break; in GetKeyCode()
195 case GDK_less: nCode = KEY_LESS; break; in GetKeyCode()
196 case GDK_greater: nCode = KEY_GREATER; break; in GetKeyCode()
198 case GDK_equal: nCode = KEY_EQUAL; break; in GetKeyCode()
199 case GDK_Find: nCode = KEY_FIND; break; in GetKeyCode()
200 case GDK_Menu: nCode = KEY_CONTEXTMENU;break; in GetKeyCode()
201 case GDK_Help: nCode = KEY_HELP; break; in GetKeyCode()
202 case GDK_Undo: nCode = KEY_UNDO; break; in GetKeyCode()
203 case GDK_Redo: nCode = KEY_REPEAT; break; in GetKeyCode()
205 case GDK_KP_Separator: nCode = KEY_DECIMAL; break; in GetKeyCode()
206 case GDK_asciitilde: nCode = KEY_TILDE; break; in GetKeyCode()
208 case GDK_quoteleft: nCode = KEY_QUOTELEFT; break; in GetKeyCode()
212 nCode = KEY_COPY; in GetKeyCode()
215 nCode = KEY_CUT; in GetKeyCode()
218 nCode = KEY_PASTE; in GetKeyCode()
221 nCode = KEY_REPEAT; in GetKeyCode()
226 nCode = KEY_DELETE; in GetKeyCode()
230 nCode = KEY_DELETE; in GetKeyCode()
234 nCode = KEY_TAB; in GetKeyCode()
239 nCode = KEY_COPY; in GetKeyCode()
242 nCode = KEY_CUT; in GetKeyCode()
245 nCode = KEY_PASTE; in GetKeyCode()
248 nCode = KEY_TAB; in GetKeyCode()
251 nCode = KEY_BACKSPACE; in GetKeyCode()
254 nCode = KEY_ESCAPE; in GetKeyCode()
262 nCode = KEY_F11; in GetKeyCode()
265 nCode = KEY_F12; in GetKeyCode()
268 nCode = KEY_PROPERTIES; in GetKeyCode()
271 nCode = KEY_FRONT; in GetKeyCode()
274 nCode = KEY_COPY; in GetKeyCode()
277 nCode = KEY_OPEN; in GetKeyCode()
280 nCode = KEY_PASTE; in GetKeyCode()
283 nCode = KEY_CUT; in GetKeyCode()
288 return nCode; in GetKeyCode()