InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
HidTxtFacade Class Reference

#include <HidTxtFacade.h>

Public Member Functions

 HidTxtFacade (const UIDRef &textModelUIDRef, const TextIndex &anchorTextIndex)
 
virtual ~HidTxtFacade ()
 
virtual bool16 CanCreateHiddenText ()
 
virtual ErrorCode CreateHiddenText (const WideString &text)
 
virtual bool16 CanGetHiddenText ()
 
virtual ErrorCode GetHiddenText (WideString &text)
 
virtual bool16 CanModifyHiddenText ()
 
virtual ErrorCode ModifyHiddenText (const WideString &text)
 
virtual bool16 CanDeleteHiddenText ()
 
virtual ErrorCode DeleteHiddenText ()
 

Detailed Description

Facade for the manipulation of hidden text. Suites should manipulate hidden text through this API.

Constructor & Destructor Documentation

HidTxtFacade::HidTxtFacade (const UIDReftextModelUIDRef,
const TextIndex & anchorTextIndex 
)

Constructor.

Parameters
textModelUIDRefreferences story in which the hidden text is stored.
anchorTextIndexindex in the text model when the hidden text is anchored.
HidTxtFacade::~HidTxtFacade ()
virtual

Destructor.

Member Function Documentation

bool16 HidTxtFacade::CanCreateHiddenText ()
virtual
Returns
kTrue if hidden text can be created, kFalse otherwise.
bool16 HidTxtFacade::CanDeleteHiddenText ()
virtual
Returns
kTrue if hidden text can be deleted, kFalse otherwise.
bool16 HidTxtFacade::CanGetHiddenText ()
virtual
Returns
kTrue if hidden text can be accessed, kFalse otherwise.
bool16 HidTxtFacade::CanModifyHiddenText ()
virtual
Returns
kTrue if hidden text can be modified, kFalse otherwise.
ErrorCode HidTxtFacade::CreateHiddenText (const WideStringtext)
virtual

Create hidden text.

Parameters
textthe hidden text to be stored.
Returns
kSuccess on success, other ErrorCode otherwise.
ErrorCode HidTxtFacade::DeleteHiddenText ()
virtual

Delete hidden text.

Returns
kSuccess on success, other ErrorCode otherwise.
ErrorCode HidTxtFacade::GetHiddenText (WideStringtext)
virtual

Get hidden text.

Parameters
textthe retrieved hidden text.
ErrorCode HidTxtFacade::ModifyHiddenText (const WideStringtext)
virtual

Modify hidden text.

Parameters
textthis string completely replaces the current hidden text.
Returns
kSuccess on success, other ErrorCode otherwise.