InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IScriptPreferences.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jonathan W. Brown
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 __IScriptPreferences__
25 #define __IScriptPreferences__
26 
27 #include "IPMUnknown.h"
28 #include "RequestContext.h"
29 #include "ScriptingID.h"
30 
31 using namespace ScriptInfo ;
32 
37 {
38 public:
39  enum { kDefaultIID = IID_ISCRIPTPREFERENCES } ;
40 
44  virtual const ScriptVersion& GetVersion() const = 0 ;
48  virtual void SetVersion( const ScriptVersion& ) = 0 ;
49 
53  virtual const PMLocaleId& GetLocale() const = 0 ;
57  virtual void SetLocale( const PMLocaleId& ) = 0 ;
58 
63  {
64  kNeverInteract = en_NeverInteract,
65  kInteractWithAlerts = en_InteractWithAlerts,
66  kInteractWithAll = en_InteractWithAll
67  } ;
71  virtual InteractionLevel GetInteractionLevel() const = 0 ;
75  virtual void SetInteractionLevel( InteractionLevel ) = 0 ;
76 
81  virtual ClassID GetUnitOfMeasure() const = 0;
86  virtual void SetUnitOfMeasure(const ClassID& bossId) = 0;
87 } ;
88 
93 {
94 public:
95  enum { kDefaultIID = IID_IGLOBALSCRIPTPREFERENCES } ;
96 
100  virtual bool16 GetEnableRedraw() const = 0 ;
104  virtual void SetEnableRedraw( bool16 ) = 0 ;
105 } ;
106 
107 #endif // __IScriptPreferences__