InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IArticleFacade.h
1 //========================================================================================
2 //
3 // ADOBE CONFIDENTIAL
4 //
5 // $File$
6 //
7 // Owner: Paresh Goel
8 //
9 // $Author$
10 //
11 // $DateTime$
12 //
13 // $Revision$
14 //
15 // $Change$
16 //
17 // Copyright 2010 Adobe Systems Incorporated
18 // All Rights Reserved.
19 //
20 // NOTICE: All information contained herein is, and remains
21 // the property of Adobe Systems Incorporated and its suppliers,
22 // if any. The intellectual and technical concepts contained
23 // herein are proprietary to Adobe Systems Incorporated and its
24 // suppliers and are protected by trade secret or copyright law.
25 // Dissemination of this information or reproduction of this material
26 // is strictly forbidden unless prior written permission is obtained
27 // from Adobe Systems Incorporated.
28 //
29 //========================================================================================
30 
31 #ifndef _IARTICLEFACADE_
32 #define _IARTICLEFACADE_
33 
34 #include "ArticleID.h"
35 #include "UIDList.h"
36 
37 namespace Facade
38 {
39  class IArticleFacade : public IPMUnknown
40  {
41  public:
42  enum { kDefaultIID = IID_IARTICLEFACADE };
43 
44  public:
45 
51  virtual UID CreateArticle(IDataBase* database , const PMString& name) = 0;
52 
58  virtual ErrorCode AddArticle(const UIDList& articleList , int32 pos = -1) = 0;
59 
66  virtual UID CreateAndAddArticle(IDataBase* database, const PMString& name, int32 pos = -1) = 0;
67 
72  virtual ErrorCode RemoveArticles(const UIDList& articleList) = 0;
73 
78  virtual ErrorCode DeleteArticle(const UIDList& articleList) = 0;
79 
85  virtual ErrorCode MoveArticles(const UIDList& articleList, int32 toPos) = 0;
86 
92  virtual ErrorCode SetArticleName(const UIDRef& article, const PMString& name) = 0;
93 
99  virtual ErrorCode SetArticleExportStatus(const UIDList& articleList, bool16 useForExport) = 0;
100 
107  virtual ErrorCode AddMembers(const UIDRef& article, const UIDList& memberList, int32 pos = -1) = 0 ;
108 
113  virtual ErrorCode AutoPopulateArticle(const UIDList& articleList) = 0;
114 
120  virtual ErrorCode RemoveMembers(const UIDRef& article, const UIDList& memberList) = 0 ;
121 
127  virtual ErrorCode MoveMembers(const UIDRef& article, const UIDList& memberList, int32 toPos = -1) = 0 ;
128 
135  virtual ErrorCode AddChildren(const UIDRef& group, const UIDList& childList, int32 pos = -1) = 0 ;
136 
142  virtual ErrorCode RemoveChildren(const UIDRef& group, const UIDList& childList) = 0 ;
143 
150  virtual ErrorCode MoveChildren(const UIDRef& group, const UIDList& childList, int32 toPos = -1) = 0 ;
151 
152  };
153 }
154 #endif // _IARTICLEFACADE_