InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPDFSecurityPrefs.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Tommy Donovan
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 __IPDFSECURITYPREFS__
25 #define __IPDFSECURITYPREFS__
26 
27 #include "PDFID.h"
28 //
29 // Forward declarations
30 //
31 class PMString;
32 
41 {
42  public:
43  enum { kDefaultIID = IID_IPDFSECURITYPREFS };
44 
45  virtual void CopyPrefs(IPDFSecurityPrefs const* prefsToCopy) = 0;
46 
47  virtual void SetUseSecurity(const bool16 useSecurity) = 0;
48  virtual bool16 GetUseSecurity() const = 0;
49 
50  virtual bool16 HasSecuritySettings() const = 0;
51 
52  virtual void SetKeyLength(const int32 len) = 0;
53  virtual int32 GetKeyLength() const = 0;
54 
58  virtual void SetUseMasterPassword(const bool16 useSecurity) = 0;
59  virtual bool16 GetUseMasterPassword() const = 0;
60 
61  virtual void SetUseUserPassword(const bool16 useSecurity) = 0;
62  virtual bool16 GetUseUserPassword() const = 0;
63 
64  virtual void SetOpenDocPassword(const PMString& openDocPass) = 0;
65  virtual PMString GetOpenDocPassword() const = 0;
66 
67  virtual void SetChangeSettingsPassword(const PMString& changeSettingsPass) = 0;
68  virtual PMString GetChangeSettingsPassword() const = 0;
69 
70  virtual bool16 GetConfirmMasterPassword() const = 0;
71  virtual void SetConfirmMasterPassword( bool16 b ) = 0;
72 
73  virtual bool16 GetConfirmUserPassword() const = 0;
74  virtual void SetConfirmUserPassword( bool16 b ) = 0;
75 
82  virtual void SetDisallowPrinting(const bool16 disallowPrinting) = 0;
83  virtual bool16 GetDisallowPrinting() const = 0;
84 
88  virtual void SetDisallowChanging(const bool16 disallowChanging) = 0;
89  virtual bool16 GetDisallowChanging() const = 0;
90 
94  virtual void SetDisallowCopying(const bool16 disallowCopying) = 0;
95  virtual bool16 GetDisallowCopying() const = 0;
96 
100  virtual void SetDisallowChangingNotes(const bool16 disallowChangingNotes) = 0;
101  virtual bool16 GetDisallowChangingNotes() const = 0;
102 
106  virtual void SetDisallowFormFillIn(const bool16 disallowFormFillIn) = 0;
107  virtual bool16 GetDisallowFormFillIn() const = 0;
108 
112  virtual void SetDisallowExtractionForAccessibility(const bool16 disallowAccessibility) = 0;
113  virtual bool16 GetDisallowExtractionForAccessibility() const = 0;
114 
118  virtual void SetDisallowDocumentAssembly(const bool16 disallowAssembly) = 0;
119  virtual bool16 GetDisallowDocumentAssembly() const = 0;
120 
124  virtual void SetDisallowPrintHiRes(const bool16 disallowPrintHiRes) = 0;
125  virtual bool16 GetDisallowPrintHiRes() const = 0;
126 
130  virtual void SetDisallowPlaintextMetadata(const bool16 disallowPlaintextMetadata) = 0;
131  virtual bool16 GetDisallowPlaintextMetadata() const = 0;
132 
137  virtual void ReadWrite (IPMStream* iPMStream, ImplementationID prop) = 0;
138 };
139 
140 #endif // __IPDFSECURITYPREFS__