InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IContentDropperFacade.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Ashish Duggal(aduggal)
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 2011 Adobe Systems Incorporated
18 // All Rights Reserved.
19 //
20 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
21 // with the terms of the Adobe license agreement accompanying it. If you have received
22 // this file from a source other than Adobe, then your use, modification, or
23 // distribution of it requires the prior written permission of Adobe.
24 //
25 // Description:
26 // A high level API for dealing with content dropper.
27 //
28 //========================================================================================
29 
30 #ifndef __IContentDropperFacade__
31 #define __IContentDropperFacade__
32 
33 // ----- Includes -----
34 #include "IPMUnknown.h"
35 #include "ContentDropperID.h"
36 #include "ContentDropperTypes.h"
37 
38 // -----Forward Declarations------
39 
40 
41 
42 namespace Facade
43 {
44 
46  {
47  public:
48  enum { kDefaultIID = IID_ICONTENTDROPPERFACADE };
49 
50  //Load into Conveyor APIs
51 
57  virtual ErrorCode LoadContentDropper(const UIDList& items,
58  ContentDropperTypes::LinkPolicy linkPolicy = ContentDropperTypes::kUnknownPolicy) = 0;
59 
60 
66  virtual ErrorCode LoadContentDropperWithNeedfulSet(const UIDList* items,
67  ContentDropperTypes::LinkPolicy linkPolicy = ContentDropperTypes::kUnknownPolicy) = 0;
68 
78  virtual ErrorCode LoadItemsFromPage(IDataBase* db, const UIDList& pageUIDList, bool16 makeOneCollection = kFalse) = 0;
79 
89  virtual ErrorCode LoadItemsFromSpreads(IDataBase* db, const UIDList& spreadUIDList , bool16 makeOneCollection ) = 0;
90 
91  //Place APIs
99  virtual ErrorCode PlaceContent(const UIDList& itemsToPlace, const UIDRef& targetRef,
100  ContentDropperTypes::LinkPolicy linkPolicy = ContentDropperTypes::kUnknownPolicy, bool16 mapStyles = kFalse) = 0;
101 
108  virtual ErrorCode PlaceContentFromConveyor(const UIDRef& targetRef,
109  ContentDropperTypes::LinkPolicy linkPolicy = ContentDropperTypes::kUnknownPolicy, bool16 mapStyles = kFalse) = 0;
110 
111  //Manage Conveyor
112 
119  virtual ErrorCode ClearItemsFromConveyor(bool16 allItems = kFalse) = 0;
120 
126  virtual bool16 RotateItemsBy(const int32 byNoOfItems, const bool16 isForwardDirection = kTrue) = 0;
127 
133  virtual bool16 ExpandCollapseItemAtHead(bool16 expand = kTrue) = 0;
134 
141  virtual bool16 MoveHeadToFirstLastItem(bool16 moveToFirst = kTrue) = 0;
142 
146  virtual bool16 IsConveyorLoaded() = 0;
147 
152  virtual UIDList GetNthItems(uint32 n) = 0;
153 
157  virtual UIDList GetPlaceHeadItems() = 0;
158 
166  virtual int32 GetNeedfulSetForItem(UID root, UIDList& needfulSet) = 0;
167 
172  virtual bool16 IsUniqueCollectionInDoc(const UIDList& uidListToAdd) const = 0;
173 
180  virtual ContentDropperTypes::eAfterDrop GetCDUIPrefsAfterPlaceOption() const = 0;
181 
186  virtual ErrorCode SetCDUIPrefsAfterPlaceOption(ContentDropperTypes::eAfterDrop option) = 0;
187 
191  virtual bool16 GetCDUIPrefsLinkOption() = 0;
192 
196  virtual void SetCDUIPrefsLinkOption(bool16 link = kTrue) = 0;
197 
201  virtual bool16 GetCDUIPrefsMapStyles() = 0;
202 
206  virtual void SetCDUIPrefsMapStyles(bool16 mapStyle = kTrue) = 0;
207 
211  virtual bool16 GetCDUIPrefsCollectAllThreadedFrames() = 0;
212 
216  virtual void SetCDUIPrefsCollectAllThreadedFrames(bool16 collectAllFrames = kTrue) = 0;
217  };
218 
219 } // namespace Facade
220 
221 #endif // __IContentDropperFacade__