InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILinkedStoryPlacePrefsData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Shikha Arora
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 2010 Adobe Systems Incorporated
16 // All Rights Reserved.
17 //
18 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
19 // with the terms of the Adobe license agreement accompanying it. If you have received
20 // this file from a source other than Adobe, then your use, modification, or
21 // distribution of it requires the prior written permission of Adobe.
22 //
23 //========================================================================================
24 
25 #ifndef __ILinkedStoryPlacePrefsData__
26 #define __ILinkedStoryPlacePrefsData__
27 
28 #include "IPMUnknown.h"
29 #include "ILinkedStoryPlacePrefs.h"
30 #include "SharedContentID.h"
31 
33 {
34 public:
35  enum { kDefaultIID = IID_ILINKEDSTORYPLACEPREFSDATA };
36 
37  /* Enumerates the state of an option.
38  The option's value should not be accessed if the state is "kValueNotSet" or "kValueMixed".
39  */
40  typedef enum
41  {
42  /* No value set - invalid (clients should treat as opaque). This is the default state. */
43  kValueNotSet = 0,
44  /* Valid value set. */
45  kValueSet,
46  /* The value is different across the selection. */
47  kValueMixed
48  } OptionState;
49 
55  virtual void SetUpdateLinkWhileSaving(bool16 bUpdate) = 0;
56 
62  virtual bool16 GetUpdateLinkWhileSaving() const = 0;
63 
70  virtual OptionState GetUpdateLinkWhileSavingState() const = 0;
71 
76  virtual void SetStyleMappingExceptions(bool16 bUpdate) = 0;
77 
82  virtual bool16 GetStyleMappingExceptions() const = 0;
83 
90  virtual OptionState GetStyleMappingExceptionsState() const = 0;
91 
97  virtual void SetShowWarningOnUpdateOfEditedStory(bool16 bWarn) = 0;
98 
104  virtual bool16 GetShowWarningOnUpdateOfEditedStory() const = 0;
105 
112  virtual OptionState GetShowWarningOnUpdateOfEditedStoryState() const = 0;
113 
119  virtual void SetRemoveForcedLineBreaks(bool16 bRemove) = 0;
120 
126  virtual bool16 GetRemoveForcedLineBreaks() const = 0;
127 
134  virtual OptionState GetRemoveForcedLineBreaksState() const = 0;
135 
140  virtual void SetShowLinkOptionsWhenCreatingLink(bool16 bShow) = 0;
141 
147  virtual bool16 GetShowLinkOptionsWhenCreatingLink() const = 0;
148 
153  virtual OptionState GetShowLinkOptionsWhenCreatingLinkState() const = 0;
154 
160  virtual void CopyData(const ILinkedStoryPlacePrefsData *pCopyFrom) = 0;
161 
167  virtual void CopyPrefs(const ILinkedStoryPlacePrefs *pCopyFrom) = 0;
168 
173  virtual void ResetState() = 0;
174 };
175 
176 #endif
177  // __ILinkedStoryPlacePrefsData__