Lines Matching refs:listener
471 TextDocument::AddListener(TextListenerRef listener)
474 fTextListeners.push_back(listener);
477 fprintf(stderr, "bad_alloc when adding a listener to a text "
486 TextDocument::RemoveListener(TextListenerRef listener)
489 listener), fTextListeners.end());
495 TextDocument::AddUndoListener(UndoableEditListenerRef listener)
498 fUndoListeners.push_back(listener);
501 fprintf(stderr, "bad_alloc when adding an undo listener to a text "
510 TextDocument::RemoveUndoListener(UndoableEditListenerRef listener)
513 listener), fUndoListeners.end());
767 // Copy listener list to have a stable list in case listeners
773 const TextListenerRef& listener = listeners[i];
774 if (!listener.IsSet())
776 listener->TextChanging(event);
786 // Copy listener list to have a stable list in case listeners
791 const TextListenerRef& listener = listeners[i];
792 if (!listener.IsSet())
794 listener->TextChanged(event);
802 // Copy listener list to have a stable list in case listeners
807 const UndoableEditListenerRef& listener = listeners[i];
808 if (!listener.IsSet())
810 listener->UndoableEditHappened(this, edit);