Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

textedit.cc File Reference

#include "evalx.h"
#include "cmds.h"
#include "htctrl.h"
#include "htdialog.h"
#include "htmenu.h"
#include "htobj.h"
#include "htpal.h"
#include "htclipboard.h"
#include "htiobox.h"
#include "textedit.h"
#include "tools.h"
#include "snprintf.h"
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "htatom.h"
#include "hthist.h"
#include "htsearch.h"

Go to the source code of this file.

Classes

struct  ht_text_search_method

Typedefs

typedef ht_search_request *(* create_request_func )(text_search_pos *ret_start, text_search_pos *ret_end, ht_view *form, UINT search_class)

Functions

ht_search_requesttext_search_dialog (ht_text_viewer *text_viewer, UINT searchmodes, const text_viewer_pos *end_pos)
text_viewer_pos insert_text_block (ht_text_editor *te, text_viewer_pos apos, text_viewer_pos bpos, void *block, UINT size)
void delete_text_block (ht_text_editor *te, text_viewer_pos apos, text_viewer_pos bpos, text_viewer_pos cpos, text_viewer_pos sel_start, text_viewer_pos sel_end, bool copy, void **block, UINT *size)
int text_viewer_pos_compare (text_viewer_pos *a, text_viewer_pos *b)


Typedef Documentation

typedef ht_search_request*(* create_request_func)(text_search_pos *ret_start, text_search_pos *ret_end, ht_view *form, UINT search_class)
 

Definition at line 68 of file textedit.cc.


Function Documentation

void delete_text_block ht_text_editor te,
text_viewer_pos  apos,
text_viewer_pos  bpos,
text_viewer_pos  cpos,
text_viewer_pos  sel_start,
text_viewer_pos  sel_end,
bool  copy,
void **  block,
UINT size
 

Definition at line 690 of file textedit.cc.

References ht_text_editor::concat_lines(), ht_textfile::convert_line2ofs(), ht_text_viewer::cursor_pput(), ht_text_editor::delete_chars(), ht_text_editor::delete_lines(), FILEOFS, ht_text_viewer::get_textfile(), ht_textfile::getlinelength(), ht_text_viewer::goto_line(), text_viewer_pos::line, malloc(), text_viewer_pos::pofs, ht_layer_streamfile::read(), ht_layer_streamfile::seek(), ht_text_viewer::select_clear(), size, UINT, and ht_text_editor::unindent().

Referenced by ht_undo_data_delete_block::apply(), and ht_undo_data_insert_block::unapply().

text_viewer_pos insert_text_block ht_text_editor te,
text_viewer_pos  apos,
text_viewer_pos  bpos,
void *  block,
UINT  size
 

Definition at line 653 of file textedit.cc.

References ht_textfile::convert_line2ofs(), ht_textfile::convert_ofs2line(), ht_text_viewer::cursor_pput(), FILEOFS, ht_text_viewer::get_line_length(), ht_text_viewer::get_textfile(), ht_text_viewer::goto_line(), ht_text_editor::indent(), text_viewer_pos::line, text_viewer_pos::pofs, ht_layer_streamfile::seek(), ht_text_viewer::select_set(), size, UINT, and ht_layer_streamfile::write().

Referenced by ht_undo_data_insert_block::apply(), and ht_undo_data_delete_block::unapply().

ht_search_request* text_search_dialog ht_text_viewer text_viewer,
UINT  searchmodes,
const text_viewer_pos end_pos
 

Definition at line 86 of file textedit.cc.

References ht_text_search_method::create_desc, ht_text_search_method::create_form, ht_text_search_method::create_request, ht_search_dialog::done(), errorbox, find_atom(), ht_text_viewer::get_cursor_pos(), ht_search_dialog::get_search_modeform(), ht_search_dialog::get_search_modeid(), ht_view::getbounds(), ht_text_search_method::histid, ht_search_dialog::init(), insert_history_entry(), ht_search_dialog::insert_search_mode(), ht_text_search_method::name, NULL, text_search_pos::offset, ht_text_viewer::pos_to_offset(), ht_dialog::run(), SC_PHYSICAL, screen, ht_text_search_method::search_class, ht_text_search_method::search_mode_mask, ht_search_dialog::search_mode_xgroup, genericdrawbuf::size, and UINT.

Referenced by ht_text_viewer::func().

int text_viewer_pos_compare text_viewer_pos a,
text_viewer_pos b
 

Definition at line 946 of file textedit.cc.

References text_viewer_pos::line, and text_viewer_pos::pofs.

Referenced by ht_undo_data_insert_block::apply(), ht_text_viewer::clipboard_copy_cmd(), ht_text_editor::delete_chars(), ht_text_editor::insert_chars(), ht_text_viewer::normalize_selection(), ht_text_viewer::render_str(), ht_text_viewer::render_str_color(), ht_text_viewer::select_add(), and ht_text_editor::split_line().


Generated on Fri May 7 21:15:52 2004 by doxygen 1.3.5