#include <ITextFocusManager.h>
TextFocusManager maintains a list of ITextFocus objects and updates them accordingly when characters are inserted/deleted. ITextFocusManager is an interface of the TextModelBoss.
- See Also
- ITextFocus
- IFocusCache
A list of FocusUpdateInfo allows a series of changes to be done at one time – e.g. a Change-All operation.
FocusUpdateType allows a series of changes to be done at one time – e.g. a Change-All operation.
| virtual void ITextFocusManager::AddFocus | ( | ITextFocus * | f | ) | |
| pure virtual |
Add the pre-existing ITextFocus boss to this list. It is assumed that the text focus will be for this manager's story.
- Parameters
| f | is the textfocus object to add. |
| virtual void ITextFocusManager::AttributeApplied | ( | TextIndex | start, | | | int32 | count, | | | bool16 | allowNotify = kTrue | | ) | | |
| pure virtual |
The textmodel calls this to adjust the textfoci to reflect text being formatted.
- Parameters
| start | is the location of the format change. |
| count | is the number of characters changed.. |
| allowNotify | specifies whether the event should be broadcast. |
| virtual void ITextFocusManager::Deleted | ( | TextIndex | start, | | | int32 | count, | | | bool16 | allowNotify = kTrue | | ) | | |
| pure virtual |
The textmodel calls this to adjust the textfoci to reflect text being deleted.
- Parameters
| start | is the location of the delete. |
| count | is the number of characters deleted. |
| allowNotify | specifies whether the event should be broadcast. |
| virtual int32 ITextFocusManager::GetFocusCount | ( | | ) | const |
| pure virtual |
Count how many text foci there are on this story, managed by this list.
- Returns
- the number of text foci.
| virtual void ITextFocusManager::Inserted | ( | TextIndex | start, | | | int32 | count, | | | bool16 | allowNotify = kTrue | | ) | | |
| pure virtual |
The textmodel calls this to adjust the textfoci to reflect text being inserted.
- Parameters
| start | is the location of the insert. |
| count | is the number of characters inserted. |
| allowNotify | specifies whether the event should be broadcast. |
Create a new Text Focus managed by this list.
- Parameters
| range | specifies where the TextFocus should be located. allows alternate TextFocusBoss classes to be used. |
- Returns
- an AddRef'd textfocus.
| virtual ITextFocus* ITextFocusManager::QueryNthFocus | ( | int32 | nAt | ) | |
| pure virtual |
Get one of the foci managed by this list.
- Parameters
| nAt | is the index of the text foci requested. |
- Returns
- the n'th AddRef'd ITextFocus interface.
| virtual void ITextFocusManager::RemoveFocus | ( | ITextFocus * | f | ) | |
| pure virtual |
Remove the pre-existing ITextFocus boss from this list.
- Parameters
| f | is the textfocus object to remove. |
| virtual void ITextFocusManager::StoryThreadCreated | ( | TextIndex | at, | | | int32 | len | | ) | | |
| pure virtual |
The textmodel calls this when new story threads are created.
- Parameters
| at | is the location of the new story thread. |
| len | is the length of the new story thread. |
| virtual void ITextFocusManager::Update | ( | const FocusUpdateInfoList & | updateInfoList, | | | bool16 | allowNotify | | ) | | |
| pure virtual |
Update following a sequence of text model changes.
- Parameters
| updateInfoList | is a list of operations performed. |
| allowNotify | specifies whether the event should be broadcast. |