InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IWinUIScalingPrefs.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: anagarw
6 //
7 // $Author $
8 //
9 // $DateTime $
10 //
11 // $Revision $
12 //
13 // $Change $
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 2014 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: All information contained herein is, and remains
20 // the property of Adobe Systems Incorporated and its suppliers,
21 // if any. The intellectual and technical concepts contained
22 // herein are proprietary to Adobe Systems Incorporated and its
23 // suppliers and may be covered by U.S. and Foreign Patents,
24 // patents in process, and are protected by trade secret or copyright law.
25 // Dissemination of this information or reproduction of this material
26 // is strictly forbidden unless prior written permission is obtained
27 // from Adobe Systems Incorporated.
28 //
29 //========================================================================================
30 
31 #ifndef __IWinUIScalingPrefs__
32 #define __IWinUIScalingPrefs__
33 
34 #include "IPMUnknown.h"
35 #include "AppUIID.h"
36 
37 //________________________________________________________________________________________
38 // CLASS DECLARATIONS
39 // InDesign only supports UI scaling of 100%, 150% and 200%.
40 // If the OS level scaling is set to 125%, then InDesign UI can either be displayed at 100%(Lower) or 150%(Higher) using custom scaling.
41 //_________________________________________________________________________________
42 
44 {
45 public:
46  enum { kDefaultIID = IID_IWINUISCALINGPREFS };
47 
48  typedef enum {kLower=0, kHigher} ScalingFactorPref;
49 
50  //Get the preference which indicates whether the custom scaling needs to be done for Windows UI
51  virtual bool16 GetScaleUserInterface() = 0;
52 
53  //Set the preference which indicates whether the custom scaling needs to be done for Windows UI
54  virtual void SetScaleUserInterface(const bool16& state) = 0;
55 
56  //Get the preference which indicates whether lower or higher supported scaling is to be chosen for Windows UI
57  virtual ScalingFactorPref GetScalingFactorPref() = 0;
58 
59  //Set the preference which indicates whether lower or higher supported scaling is to be chosen for Windows UI
60  virtual void SetScalingFactorPref(const ScalingFactorPref& pref) = 0;
61 };
62 
63 #endif