Home | History | Annotate | Download | only in src

Lines Matching refs:Replace

31  * FileInsert, Search, and Replace.
104 static Bool Replace(struct SearchAndReplace*, Bool, Bool);
142 "s<Key>Return:" "DoSearchAction() SetField(Replace)\n"
145 "<Key>Tab:" "DoSearchAction() SetField(Replace)\n"
152 "<Btn1Down>:" "select-start() DoSearchAction() SetField(Replace)\n"
607 * replace_active - state of the sensitivity for the replace button
743 XtSetArg(args[num_args], XtNlabel, "Replace with:"); num_args++;
771 XtSetArg(args[num_args], XtNlabel, "Replace"); num_args++;
780 XtSetArg(args[num_args], XtNlabel, "Replace All"); num_args++;
924 * the replace dialog box uses
932 * Text Widget that will replace a string in the main Text Widget.
945 if (Replace( ctx->text.search, True, popdown) && popdown)
960 * dialog's text widget with the one in the replace dialog's text widget.
966 Replace((struct SearchAndReplace *)closure, True, False);
980 * text widget with the one in the replace dialog's text widget.
986 Replace((struct SearchAndReplace *)closure, False, False);
991 * Replace
995 * once_only - if True then only replace the first one found,
996 * else replace all of them
1006 Replace(struct SearchAndReplace *search, Bool once_only, Bool show_current)
1010 XawTextBlock find, replace;
1023 replace.ptr = GetStringRaw(search->rep_text);
1024 replace.firstPos = 0;
1025 if ((replace.format = (unsigned long)_XawTextFormat(ctx)) == XawFmtWide)
1026 replace.length = (int)wcslen((wchar_t*)replace.ptr);
1028 replace.length = (int)strlen(replace.ptr);
1102 if (XawTextReplace(tw, pos, end_pos, &replace) != XawEditDone) {
1113 ipos = pos + replace.length;
1132 if (replace.length == 0)
1135 XawTextSetSelection(tw, pos, pos + replace.length);
1207 "be either 'Search' or 'Replace'", True);