InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IWorkgroupStoryFacade.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bill Tislar
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IWORKGROUPSTORYFACADE__
25 #define __IWORKGROUPSTORYFACADE__
26 
27 #include "workgroupid.h"
28 #include "Utils.h"
29 #include "IPMUnknown.h"
30 
31 #include "IAMLockable.h"
32 
42 namespace Facade
43 {
45  {
46  public:
47  enum { kDefaultIID = IID_IWORKGROUPSTORYFACADE };
48 
52  virtual ErrorCode AllowUserEditing( const UIDRef & storyRef, ICommand::Undoability undoabilityFlag = ICommand::kRegularUndo ) = 0;
53 
59  virtual UIDRef GetAssetUIDRef( UIDRef storyRef ) = 0;
60 
68  virtual bool16 GetCheckedOutToName( const UIDRef& storyRef, PMString & outCheckedOutToName ) = 0;
69 
70 #ifdef ID_DEPRECATED
71 
76  virtual bool16 GetStoryFile( const UIDRef& storyRef, IDFile& outStoryFile ) = 0;
77 #endif // ID_DEPRECATED
78 
85  virtual UIDRef GetStoryUIDRef( UIDRef assetRef ) = 0;
86 
95  virtual bool16 GetStoryLockNames( UIDRef storyRef, PMString & outUserName, PMString & outDocName, PMString & outAppName ) = 0;
96 
107  virtual bool16 GetStoryLockNames( const IDFile & storyFile, PMString & outUserName, PMString & outDocName, PMString & outAppName, UIFlags uiFlags = kFullUI ) = 0;
108 
114  virtual IAMLockable::LockState GetStoryLockState( UIDRef storyRef, bool16 doVerification = kFalse, UIFlags uiFlags = kFullUI ) = 0;
115 
116 #ifdef ID_DEPRECATED
117 
122  virtual bool16 IsAStory( UIDRef testRef ) = 0;
123 #endif // ID_DEPRECATED
124 
125 #ifdef ID_DEPRECATED
126 
130  virtual bool16 IsEmbedded( UIDRef storyRef ) = 0;
131 #endif // ID_DEPRECATED
132 
137  virtual bool16 IsVersioned( UIDRef storyRef ) = 0;
138 
144  virtual bool16 IsWriteable( const IDFile & storyFile ) = 0;
145 
156  virtual PMString LiveEditConflictAlert( UIDRef storyRef, const IDFile& storyFile, const PMString& checkedOutBy, const PMString& checkedOutApp, const PMString& checkedOutDoc, const PMString& warnText ) = 0;
157 
163  virtual ErrorCode PreventUserEditing( const UIDRef & storyRef, ICommand::Undoability undoabilityFlag = ICommand::kRegularUndo ) = 0;
164 
169  virtual UIDRef QueryStandaloneStoryRef( UIDRef docRef ) = 0;
170 
171 #ifdef ID_DEPRECATED
172 
179  virtual ErrorCode SyncStoryPIAccessToStoryLock( UIDRef storyRef ) = 0;
180 #endif // ID_DEPRECATED
181 
187  virtual ErrorCode Relink( UIDRef storyRef, UIFlags uiFlags = kMinimalUI ) = 0;
188 
189 #ifdef ID_DEPRECATED
190 
197  virtual ErrorCode Unembed( UIDRef storyRef, UIFlags uiFlags = kFullUI, ICommand::Undoability undoabilityFlag = ICommand::kRegularUndo ) = 0;
198 #endif // ID_DEPRECATED
199 
205  virtual ErrorCode Relock( UIDRef storyRef ) = 0;
206 
212  virtual ErrorCode SaveModelChanges( UIDRef storyRef ) = 0;
213 
218  virtual bool IsEditingAllowed( UIDRef storyRef ) = 0;
219 
220  }; // end IWorkgroupStoryFacade interface
221 }
222 
223 #endif // __IWORKGROUPSTORYFACADE__