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

textedit.h File Reference

#include "htobj.h"
#include "textfile.h"
#include "htformat.h"

Go to the source code of this file.

Classes

class  ht_text_editor
class  ht_text_editor_undo
class  ht_text_viewer
class  ht_undo_data
class  ht_undo_data_delete_block
class  ht_undo_data_delete_string
class  ht_undo_data_delete_string2
class  ht_undo_data_insert_block
class  ht_undo_data_insert_string
class  ht_undo_data_join_line
class  ht_undo_data_overwrite_string
class  ht_undo_data_split_line
union  text_search_pos
struct  text_viewer_pos

Defines

#define TEXTEDITOPT_NULL   0
#define TEXTEDITOPT_INPUTTABS   1
#define TEXTEDITOPT_UNDO   2
#define ATOM_HT_UNDO_DATA_INSERT   MAGICD("UND\x01")
#define ATOM_HT_UNDO_DATA_OVERWRITE   MAGICD("UND\x02")
#define ATOM_HT_UNDO_DATA_DELETE   MAGICD("UND\x03")
#define ATOM_HT_UNDO_DATA_DELETE2   MAGICD("UND\x04")
#define ATOM_HT_UNDO_DATA_SPLIT_LINE   MAGICD("UND\x05")
#define ATOM_HT_UNDO_DATA_JOIN_LINE   MAGICD("UND\x06")
#define ATOM_HT_UNDO_DATA_INSERT_BLOCK   MAGICD("UND\x07")
#define ATOM_HT_UNDO_DATA_DELETE_BLOCK   MAGICD("UND\x08")
#define cmd_text_viewer_goto   HT_COMMAND(601)
#define cmd_text_viewer_change_highlight   HT_COMMAND(602)
#define cmd_text_editor_undo   HT_COMMAND(620)
#define cmd_text_editor_redo   HT_COMMAND(621)
#define cmd_text_editor_protocol   HT_COMMAND(622)
#define cmd_text_editor_delete_line   HT_COMMAND(623)

Functions

int text_viewer_pos_compare (text_viewer_pos *a, text_viewer_pos *b)


Define Documentation

#define ATOM_HT_UNDO_DATA_DELETE   MAGICD("UND\x03")
 

Definition at line 47 of file textedit.h.

Referenced by ht_undo_data_delete_string::object_id().

#define ATOM_HT_UNDO_DATA_DELETE2   MAGICD("UND\x04")
 

Definition at line 48 of file textedit.h.

Referenced by ht_undo_data_delete_string2::object_id().

#define ATOM_HT_UNDO_DATA_DELETE_BLOCK   MAGICD("UND\x08")
 

Definition at line 52 of file textedit.h.

Referenced by ht_undo_data_delete_block::object_id().

#define ATOM_HT_UNDO_DATA_INSERT   MAGICD("UND\x01")
 

Definition at line 45 of file textedit.h.

Referenced by ht_undo_data_insert_string::object_id().

#define ATOM_HT_UNDO_DATA_INSERT_BLOCK   MAGICD("UND\x07")
 

Definition at line 51 of file textedit.h.

Referenced by ht_undo_data_insert_block::object_id().

#define ATOM_HT_UNDO_DATA_JOIN_LINE   MAGICD("UND\x06")
 

Definition at line 50 of file textedit.h.

Referenced by ht_undo_data_join_line::object_id().

#define ATOM_HT_UNDO_DATA_OVERWRITE   MAGICD("UND\x02")
 

Definition at line 46 of file textedit.h.

Referenced by ht_undo_data_overwrite_string::object_id().

#define ATOM_HT_UNDO_DATA_SPLIT_LINE   MAGICD("UND\x05")
 

Definition at line 49 of file textedit.h.

Referenced by ht_undo_data_split_line::object_id().

#define cmd_text_editor_delete_line   HT_COMMAND(623)
 

Definition at line 257 of file textedit.h.

Referenced by ht_text_editor::handlemsg().

#define cmd_text_editor_protocol   HT_COMMAND(622)
 

Definition at line 256 of file textedit.h.

Referenced by ht_text_editor::handlemsg().

#define cmd_text_editor_redo   HT_COMMAND(621)
 

Definition at line 255 of file textedit.h.

Referenced by ht_text_editor::handlemsg().

#define cmd_text_editor_undo   HT_COMMAND(620)
 

Definition at line 254 of file textedit.h.

Referenced by ht_text_editor::handlemsg().

#define cmd_text_viewer_change_highlight   HT_COMMAND(602)
 

Definition at line 252 of file textedit.h.

Referenced by ht_text_editor::handlemsg(), and ht_text_viewer::handlemsg().

#define cmd_text_viewer_goto   HT_COMMAND(601)
 

Definition at line 251 of file textedit.h.

Referenced by ht_text_viewer::func(), ht_text_editor::handlemsg(), and ht_text_viewer::handlemsg().

#define TEXTEDITOPT_INPUTTABS   1
 

Definition at line 31 of file textedit.h.

Referenced by ht_app::create_window_file_text(), and ht_text_editor::handlemsg().

#define TEXTEDITOPT_NULL   0
 

Definition at line 30 of file textedit.h.

#define TEXTEDITOPT_UNDO   2
 

Definition at line 32 of file textedit.h.

Referenced by ht_app::create_window_file_text(), ht_text_editor::init(), and ht_aviewer::showComments().


Function Documentation

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