InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IEnvironment.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: robin briggs
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 __IENVIRONMENT__
25 #define __IENVIRONMENT__
26 
27 #include "IPMUnknown.h"
28 #include "ShuksanID.h"
29 #include "IDataBase.h"
30 
33 class IEnvironment : public IPMUnknown
34 {
35  public:
36  enum { kDefaultIID = IID_IENVIRONMENT };
37 
41  virtual int32 GetMajorSystemVersion() const = 0;
45  virtual int32 GetMinorSystemVersion() const = 0;
46 
50  virtual int32 GetNumberOfScripts() const = 0;
51 
55  virtual IDataBase::ByteSwapOrder GetPlatformSwap() const = 0;
56 
62  virtual PMString GetCurrentDecimalPt() const = 0;
67  virtual PMString GetCurrentThousandsSep() const = 0;
68 
72  virtual PMString GetSystemUserName() const = 0;
73 
74  #ifdef WINDOWS
75 
78  virtual const HINSTANCE GetInstance() const = 0;
79 
82  virtual void SetAppWindow( HWND ) = 0;
83 
87  virtual const uint32 GetOpenFilesMessageId() const = 0;
88 
89 
94  virtual const uint32 GetCustomOpenFilesMessageId() const = 0;
95 #endif
96 
97 };
98 
99 
100 #endif // __IENVIRONMENT__