![]() | InDesign SDK 20.5 |
#include <HidTxtCommands.h>
Public Member Functions | |
| HidTxtCommands () | |
| virtual | ~HidTxtCommands () |
| virtual IHidTxtModel * | Create (ITextModel *textModel, const TextIndex &anchorTextIndex) const |
| virtual IHidTxtModel * | Query (ITextModel *textModel, const TextIndex &anchorTextIndex) const |
| virtual ErrorCode | ModifyHiddenText (IHidTxtModel *hidTxtModel, const WideString &text) const |
| virtual ErrorCode | ClearHiddenTextStyle (IHidTxtModel *hidTxtModel) const |
| virtual ErrorCode | Delete (IHidTxtModel *hidTxtModel) const |
Utility class that processes commands for the manipulation of hidden text.
| HidTxtCommands::HidTxtCommands | ( | ) |
Constructor.
| virtual |
Destructor.
| virtual |
Apply the root paragraph style [No paragraph style] and root character style [No character style] to the hidden text. The text sub-system assumes all text in the text model has associated style information so this method is provided to apply such styles to hidden text.
| hidTxtModel | refers to the hidden text model to be changed. |
| virtual |
Process kHidTxtModelCreateCmdBoss to create an empty hidden text model.
| textModel | refers to the text model in which the hidden text should be embedded. |
| anchorTextIndex | gives the index in the text model where the hidden text should be anchored. |
| virtual |
Delete hidden text by using ITextModelCmds::DeleteCmd to delete the character on which the hidden text is anchored. The text sub-system will call HidTxtMemento to remove the associated hidden text.
| hidTxtModel | refers to the hidden text model to be deleted. |
| virtual |
Process kHidTxtModelModifyTextCmdBoss to update the stored hidden text.
| hidTxtModel | refers to the hidden text model to be changed. |
| text | gives the string that should replace whatever is currently stored. |
| virtual |
Return the hidden text model (IHidTxtModel) associated with the given anchorTextIndex or nil if there is no hidden text associated.
| textModel | refers to the text model to be examined. |
| anchorTextIndex | refers to the TextIndex to be examined to see if it has hidden text associated. |