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

ht_undo_data_insert_block Class Reference

#include <textedit.h>

Inheritance diagram for ht_undo_data_insert_block:

ht_undo_data Object List of all members.

Public Member Functions

 ht_undo_data_insert_block (text_viewer_pos *apos, text_viewer_pos *bpos, void *block, UINT size)
 ~ht_undo_data_insert_block ()
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_insert_block::ht_undo_data_insert_block text_viewer_pos apos,
text_viewer_pos bpos,
void *  block,
UINT  size
 

Definition at line 733 of file textedit.cc.

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

ht_undo_data_insert_block::~ht_undo_data_insert_block  ) 
 

Definition at line 744 of file textedit.cc.


Member Function Documentation

void ht_undo_data_insert_block::apply ht_text_editor te  )  [virtual]
 

Implements ht_undo_data.

Definition at line 764 of file textedit.cc.

References ht_text_viewer::get_selection(), insert_text_block(), and text_viewer_pos_compare().

UINT ht_undo_data_insert_block::getsize  )  [virtual]
 

Implements ht_undo_data.

Definition at line 749 of file textedit.cc.

References UINT.

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

Implements ht_undo_data.

Definition at line 754 of file textedit.cc.

References ht_snprintf(), and UINT.

OBJECT_ID ht_undo_data_insert_block::object_id  )  const [virtual]
 

Returns:
unique object id.

Reimplemented from Object.

Definition at line 759 of file textedit.cc.

References ATOM_HT_UNDO_DATA_INSERT_BLOCK.

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

Implements ht_undo_data.

Definition at line 772 of file textedit.cc.

References ht_text_viewer::cursor_pput(), ht_text_viewer::cursory, delete_text_block(), ht_text_viewer::goto_line(), text_viewer_pos::line, NULL, ht_text_viewer::physical_cursorx(), text_viewer_pos::pofs, and ht_text_viewer::top_line.


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