TextBufferObserver Class Reference

#include <Ample.h>

Inheritance diagram for TextBufferObserver:
Inheritance graph
[legend]
Collaboration diagram for TextBufferObserver:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Observable
< TextBufferObserver
ObservableType

Public Member Functions

virtual void onReplaceRange (TextBuffer &buffer, uint32 position, uint32 length, const std::string &text)
virtual void onSetName (TextBuffer &buffer, const std::string &name)
virtual void onDestroy (TextBuffer &buffer)
void detachObservables (void)

Friends

class Observable< T >

Detailed Description

Observer interface for text node buffers.


Member Typedef Documentation


Member Function Documentation

void detachObservables ( void   )  [inline, inherited]

Detaches all observed objects from this observer.

virtual void onDestroy ( TextBuffer buffer  )  [virtual]

Called before an observed text buffer is destroyed.

Parameters:
buffer The text buffer to be destroyed.
virtual void onReplaceRange ( TextBuffer buffer,
uint32  position,
uint32  length,
const std::string &  text 
) [virtual]

Called before a portion (range) of an observed text buffer is modified.

Parameters:
buffer The buffer to be modified.
position The start of the range to be replaced.
length The number of characters to be replaced.
text The string to replace the specified range with.
virtual void onSetName ( TextBuffer buffer,
const std::string &  name 
) [virtual]

Called before an observed text buffer has its name changed.

Parameters:
buffer The text buffer to be renamed.
name The new name of the text buffer.

Friends And Related Function Documentation

friend class Observable< TextBufferObserver > [friend, inherited]

Generated on Thu Nov 19 20:19:27 2009 for Ample by  doxygen 1.6.1