#include <IHidTxtModel.h>
|
| enum | { kDefaultIID = IID_IHIDTXTMODEL } |
| |
From SDK sample; signature interface for the hidden text model (kHidTxtModelBoss) that manages the hidden text.
| virtual ErrorCode IHidTxtModel::AttachToTextModel | ( | UID | textModelUID, | | | const TextIndex & | anchorTextIndex | | ) | | |
| pure virtual |
Associate this boss object with the given text model and anchor it on the given TextIndex.
- Parameters
| textModelUID | |
| anchorTextIndex | |
Implemented in HidTxtModel.
| virtual ErrorCode IHidTxtModel::DetachFromTextModel | ( | | ) | |
| pure virtual |
Disassociate this boss object from the text model.
Implemented in HidTxtModel.
| virtual bool16 IHidTxtModel::GetAnchorTextRange | ( | TextIndex & | start, | | | int32 & | span | | ) | | const |
| pure virtual |
Provides the range of text in the text model on which the hidden text is anchored.
- Parameters
| start | index in the text model where the hidden text is anchored. |
| span | currently always 1 since hidden text is anchored on a kTextChar_ZeroSpaceNoBreak character. |
- Returns
- kTrue on if data is available, kFalse otherwise.
Implemented in HidTxtModel.
| virtual bool16 IHidTxtModel::GetConnectedToTextContent | ( | | ) | const |
| pure virtual |
- Returns
- kTrue if this boss object is associated with hidden text content in the text model, kFalse otherwise.
Implemented in HidTxtModel.
| virtual bool16 IHidTxtModel::GetHiddenTextRange | ( | TextIndex & | start, | | | int32 & | span | | ) | | const |
| pure virtual |
Provides the range of text in the text model in which the hidden text is stored.
- Parameters
| start | index in the text model to the first character of hidden text |
| span | number of characters of hidden text stored (>= 1 since hidden text is always terminated by a kTextChar_CR character). |
- Returns
- kTrue on if data is available, kFalse otherwise.
Implemented in HidTxtModel.
| virtual ITextModel* IHidTxtModel::QueryTextModel | ( | | ) | const |
| pure virtual |
Return interface pointer to the text model that stores the hidden text.
- Returns
- interface pointer to the text model that stores the hidden text, nil if this is not known.
Implemented in HidTxtModel.
| virtual void IHidTxtModel::SetConnectedToTextContent | ( | bool16 | connected | ) | |
| pure virtual |
Set or clear the ConnectedToTextContent flag; at certain stages during text model operations the hidden text model may not be completely connected to the story thread in the text model that stores the hidden text.
- Parameters
| connected | kTrue if this boss object is associated with hidden text content in the text model, kFalse otherwise. |
Implemented in HidTxtModel.