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

ht_undo_data_overwrite_string Class Reference

#include <textedit.h>

Inheritance diagram for ht_undo_data_overwrite_string:

ht_undo_data Object List of all members.

Public Member Functions

 ht_undo_data_overwrite_string (text_viewer_pos *apos, text_viewer_pos *bpos, void *string, UINT len, void *string2, UINT len2)
 ~ht_undo_data_overwrite_string ()
virtual bool combine (ht_undo_data *ud)
virtual UINT getsize ()
virtual void gettext (char *text, UINT maxlen)
virtual OBJECT_ID object_id () const
virtual void apply (ht_text_editor *te)
virtual void unapply (ht_text_editor *te, bool *goto_only)

Constructor & Destructor Documentation

ht_undo_data_overwrite_string::ht_undo_data_overwrite_string text_viewer_pos apos,
text_viewer_pos bpos,
void *  string,
UINT  len,
void *  string2,
UINT  len2
 

Definition at line 429 of file textedit.cc.

References malloc(), NULL, and UINT.

ht_undo_data_overwrite_string::~ht_undo_data_overwrite_string  ) 
 

Definition at line 449 of file textedit.cc.


Member Function Documentation

void ht_undo_data_overwrite_string::apply ht_text_editor te  )  [virtual]
 

Implements ht_undo_data.

Definition at line 500 of file textedit.cc.

References ht_text_viewer::cursor_pput(), ht_text_editor::delete_chars(), ht_text_viewer::get_line_length(), ht_text_viewer::goto_line(), ht_text_editor::indent(), ht_text_editor::insert_chars(), text_viewer_pos::line, text_viewer_pos::pofs, and UINT.

bool ht_undo_data_overwrite_string::combine ht_undo_data ud  )  [virtual]
 

Reimplemented from ht_undo_data.

Definition at line 455 of file textedit.cc.

References apos, bpos, byte, cpos, len, len, len2, text_viewer_pos::line, malloc(), object_id(), Object::object_id(), text_viewer_pos::pofs, realloc(), string, and string2.

UINT ht_undo_data_overwrite_string::getsize  )  [virtual]
 

Implements ht_undo_data.

Definition at line 482 of file textedit.cc.

References UINT.

void ht_undo_data_overwrite_string::gettext char *  text,
UINT  maxlen
[virtual]
 

Implements ht_undo_data.

Definition at line 487 of file textedit.cc.

References bin2str(), buf, ht_snprintf(), text_viewer_pos::line, malloc(), text_viewer_pos::pofs, and UINT.

OBJECT_ID ht_undo_data_overwrite_string::object_id  )  const [virtual]
 

Returns:
unique object id.

Reimplemented from Object.

Definition at line 495 of file textedit.cc.

References ATOM_HT_UNDO_DATA_OVERWRITE.

Referenced by combine().

void ht_undo_data_overwrite_string::unapply ht_text_editor te,
bool *  goto_only
[virtual]
 

Implements ht_undo_data.

Definition at line 521 of file textedit.cc.

References ht_text_viewer::cursor_pput(), ht_text_viewer::cursory, ht_text_viewer::goto_line(), ht_text_editor::insert_chars(), text_viewer_pos::line, ht_text_viewer::physical_cursorx(), text_viewer_pos::pofs, ht_text_viewer::top_line, and ht_text_editor::unindent().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:16:05 2004 by doxygen 1.3.5