InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Facade::IArticleFacade Class Referenceabstract
Inheritance diagram for Facade::IArticleFacade:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IARTICLEFACADE }
 

Public Member Functions

virtual UID CreateArticle (IDataBase *database, const PMString &name)=0
 
virtual ErrorCode AddArticle (const UIDList &articleList, int32 pos=-1)=0
 
virtual UID CreateAndAddArticle (IDataBase *database, const PMString &name, int32 pos=-1)=0
 
virtual ErrorCode RemoveArticles (const UIDList &articleList)=0
 
virtual ErrorCode DeleteArticle (const UIDList &articleList)=0
 
virtual ErrorCode MoveArticles (const UIDList &articleList, int32 toPos)=0
 
virtual ErrorCode SetArticleName (const UIDRef &article, const PMString &name)=0
 
virtual ErrorCode SetArticleExportStatus (const UIDList &articleList, bool16 useForExport)=0
 
virtual ErrorCode AddMembers (const UIDRef &article, const UIDList &memberList, int32 pos=-1)=0
 
virtual ErrorCode AutoPopulateArticle (const UIDList &articleList)=0
 
virtual ErrorCode RemoveMembers (const UIDRef &article, const UIDList &memberList)=0
 
virtual ErrorCode MoveMembers (const UIDRef &article, const UIDList &memberList, int32 toPos=-1)=0
 
virtual ErrorCode AddChildren (const UIDRef &group, const UIDList &childList, int32 pos=-1)=0
 
virtual ErrorCode RemoveChildren (const UIDRef &group, const UIDList &childList)=0
 
virtual ErrorCode MoveChildren (const UIDRef &group, const UIDList &childList, int32 toPos=-1)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Member Function Documentation

virtual ErrorCode Facade::IArticleFacade::AddArticle (const UIDListarticleList,
int32 pos = -1 
)
pure virtual

Add Article(s) to a document at the specified position.

Parameters
articleListIN the UIDList of Articles to be added.
posIN 0 based position at which to add the Articles. Specify -1 to add to the end.
Returns
kSuccess if the Article was successfully added, else an error code.
virtual ErrorCode Facade::IArticleFacade::AddChildren (const UIDRefgroup,
const UIDListchildList,
int32 pos = -1 
)
pure virtual

Add children at the specified position in a Group.

Parameters
groupIN the group to which the children need to be added.
childListIN the children that need to be added.
posIN 0 based position at which to add the children. Specify -1 to add to the end.
Returns
kSuccess if the children were successfully added, else an error code.
virtual ErrorCode Facade::IArticleFacade::AddMembers (const UIDRefarticle,
const UIDListmemberList,
int32 pos = -1 
)
pure virtual

Add members to an Article at the specified position.

Parameters
articleIN The article to which members need to be added.
memberListIN The ordered list of members that need to be added.
posIN 0 based starting position at which the members will be added. Specify -1 to add to the end.
Returns
kSuccess if the members were successfully added, else an error code.
virtual ErrorCode Facade::IArticleFacade::AutoPopulateArticle (const UIDListarticleList)
pure virtual

Utility method to Auto Populate Articles with page items of the entire document.

Parameters
articleListIN the articles which need to be auto-populated.
Returns
kSuccess if the members were successfully added, else an error code.
virtual UID Facade::IArticleFacade::CreateAndAddArticle (IDataBasedatabase,
const PMStringname,
int32 pos = -1 
)
pure virtual

Create and Add an Article to the document.

Parameters
databaseIN the database in which the Article is created and added.
nameIN The name of the Article.
posIN 0 based position at which to add the Articles. Specify -1 to add to the end.
Returns
UID of the added Article.
virtual UID Facade::IArticleFacade::CreateArticle (IDataBasedatabase,
const PMStringname 
)
pure virtual

Create an Article with the specified name. Does not add it to the document.

Parameters
databaseIN the database in which the Article is created.
nameIN The name of the Article.
Returns
UID of the created Article.
virtual ErrorCode Facade::IArticleFacade::DeleteArticle (const UIDListarticleList)
pure virtual

Delete Articles from a Document.

Parameters
articleListIN The UIDList of Articles to be deleted.
Returns
kSuccess if the Articles were successfully deleted, else an error code.
virtual ErrorCode Facade::IArticleFacade::MoveArticles (const UIDListarticleList,
int32 toPos 
)
pure virtual

Move Articles to new position within the same document.

Parameters
articleListIN The UIDList of Articles to be moved.
toPosIN 0 based starting position at which the Articles will be moved.
Returns
kSuccess if the Articles were successfully moved, else an error code.
virtual ErrorCode Facade::IArticleFacade::MoveChildren (const UIDRefgroup,
const UIDListchildList,
int32 toPos = -1 
)
pure virtual

Move children within a Group.

Parameters
groupIN the group in which the children need to be moved.
childListIN the ordered list of children that need to be moved.
posIN 0 based position at which to move the children. Specify -1 to move to the end.
Returns
kSuccess if the children were successfully moved, else an error code.
virtual ErrorCode Facade::IArticleFacade::MoveMembers (const UIDRefarticle,
const UIDListmemberList,
int32 toPos = -1 
)
pure virtual

Move members to new position within the same Article.

Parameters
memberListIN The members that need to be moved.
toPosIN 0 based starting position at which the members will be moved. Specify -1 to move to the end.
Returns
kSuccess if the members were successfully moved, else an error code.
virtual ErrorCode Facade::IArticleFacade::RemoveArticles (const UIDListarticleList)
pure virtual

Remove Articles from a Document. Does not delete the Articles.

Parameters
articleListIN The UIDList of Articles to be removed.
Returns
kSuccess if the Articles were successfully removed, else an error code.
virtual ErrorCode Facade::IArticleFacade::RemoveChildren (const UIDRefgroup,
const UIDListchildList 
)
pure virtual

Remove children from a Group.

Parameters
groupIN the group from which the children need to be removed.
childListIN the children that need to be removed.
Returns
kSuccess if the children were successfully removed, else an error code.
virtual ErrorCode Facade::IArticleFacade::RemoveMembers (const UIDRefarticle,
const UIDListmemberList 
)
pure virtual

Remove members from an Article.

Parameters
articleIN The article from which the members need to be removed.
memberListIN The list of members that need to be removed.
Returns
kSuccess if the members were successfully removed, else an error code.
virtual ErrorCode Facade::IArticleFacade::SetArticleExportStatus (const UIDListarticleList,
bool16 useForExport 
)
pure virtual
Set the export status of an Article.

Parameters
articleListIN The UIDList of Articles whose export status needs to be changed.
useForExportIN ktrue if the articles should be used for export, kFalse otherwise.
Returns
kSuccess if the Articles export status were successfully changed, else an error code.
virtual ErrorCode Facade::IArticleFacade::SetArticleName (const UIDRefarticle,
const PMStringname 
)
pure virtual

Set the name of an Article.

Parameters
articleListIN The UIDList of Articles to be moved.
nameIN The name of the Article.
Returns
kSuccess if the Article was successfully named, else an error code.