Lines Matching +defs:replace +defs:text

70     int format;		/* remember text formatting style */
89 {"text", TEXT},
94 Widget shell, form, mispelled, repeated, word, replacement, text,
95 suggestions, viewport, list, commands, replace, status,
142 char *replace;
241 Offset(formatting), XtRString, "text"},
371 XtSetSensitive(ispell.replace, state);
428 IspellReplacedWord(char *word, char *replace)
442 entry->replace = NULL;
447 if (replace) {
448 XtFree(entry->replace);
449 entry->replace = XtNewString(replace);
452 return (entry->replace);
653 XtSetValues(ispell.text, args, 1);
709 XtSetValues(ispell.text, args, 1);
750 XtSetValues(ispell.text, args, 1);
1097 XtSetValues(ispell.text, args, 1);
1266 XtSetValues(ispell.text, args, 1);
1297 XtSetKeyboardFocus(ispell.shell, ispell.text);
1431 /* forget about replace matches */
1435 XtFree(rentry->replace);
1482 XtSetValues(ispell.text, args, 1);
1495 XtSetValues(ispell.text, args, 1);
1503 XawTextBlock check, search, replace;
1505 char *text;
1510 XtSetArg(args[0], XtNlabel, &text);
1512 search.ptr = text;
1517 XtSetArg(args[0], XtNstring, &text);
1518 XtGetValues(ispell.text, args, 1);
1519 replace.ptr = text;
1520 replace.format = XawFmt8Bit;
1521 replace.firstPos = 0;
1522 replace.length = strlen(text);
1524 if (strcmp(search.ptr, replace.ptr) != 0 &&
1526 &replace) == XawEditDone) {
1527 ispell.right += replace.length - search.length;
1562 XawTextReplace(ispell.ascii, pos, pos + search.length, &replace);
1569 (void)IspellReplacedWord(search.ptr, replace.ptr);
1571 strncpy(&ispell.sentbuf[1], replace.ptr, sizeof(ispell.sentbuf) - 2);
1580 strcmp(ispell.item, replace.ptr))
1596 char *text;
1601 XtSetArg(args[0], XtNlabel, &text);
1608 ispell.undo_head->undo_str = XtNewString(text);
1617 IspellIgnoredWord(text, ADD, 0);
1618 ispell.undo_head->undo_str = XtNewString(text);
1637 char *text;
1643 XtSetArg(args[0], XtNlabel, &text);
1647 ispell.undo_head->undo_str = XtNewString(text);
1651 (void)IspellIgnoredWord(text, ADD, cmd);
1732 XtSetValues(ispell.text, args, 1);
1792 char *text, *str, string[1024];
1798 XtSetArg(args[0], XtNstring, &text);
1799 XtGetValues(ispell.text, args, 1);
1803 str = text;
1819 if (strcmp(text, string)) {
1820 XawTextPosition pos = XawTextGetInsertionPoint(ispell.text) - len;
1823 XtSetValues(ispell.text, args, 1);
1824 XawTextSetInsertionPoint(ispell.text, pos);
1851 char *text, *str, **list, **old_list, command[1024], buffer[1024];
1857 XtSetArg(args[0], XtNstring, &text);
1858 XtGetValues(ispell.text, args, 1);
1860 if (!*text) {
1865 if (strlen(ispell.look_cmd) + strlen(text) + strlen(ispell.words_file) + 8
1872 ispell.look_cmd, text, ispell.words_file);
2049 ispell.text = XtVaCreateManagedWidget("text", asciiTextWidgetClass,
2071 ispell.replace = XtCreateManagedWidget("replace", commandWidgetClass,
2073 XtAddCallback(ispell.replace, XtNcallback, ReplaceIspell, (XtPointer)False);