InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IUIScalingPrefs.h
1 //========================================================================================
2 //
3 // Copyright 2021 Adobe
4 // All Rights Reserved.
5 //
6 // NOTICE: Adobe permits you to use, modify, and distribute this file in
7 // accordance with the terms of the Adobe license agreement accompanying
8 // it.
9 //
10 //========================================================================================
11 
12 #ifndef __IUIScalingPrefs__
13 #define __IUIScalingPrefs__
14 
15 #include "IPMUnknown.h"
16 #include "AppUIID.h"
17 
18 //________________________________________________________________________________________
19 // CLASS DECLARATIONS
20 // InDesign now supports UI scaling from 100% to 300%. This Interface is used to manage the UI scaling preferences.
21 //_________________________________________________________________________________
22 
24 {
25 public:
26  enum { kDefaultIID = IID_IUISCALINGPREFS };
27 
28  typedef enum { kLower = 0, kHigher } ScalingFactorPref;
29  typedef enum {kMinScaling = 1, kMaxScaling = 3} ScalingRange;
30 
34  virtual PMReal GetScaleFactorValue()=0;
38  virtual bool16 GetScaleCursor()=0;
42  virtual PMReal GetBoundingBoxValue()=0;
47  virtual int32 GetNumStops()=0;
48 
52  virtual bool16 GetHasUserUpdatedPrefs() = 0;
53 
54 
59  virtual void SetScaleFactorValue(PMReal& scaleFactor)=0;
60 
65  virtual void SetScaleCursor(bool16& scaleCursor)=0;
66 
71  virtual void SetBoundingBoxValue(PMReal& boundingBox)=0;
72 
77  virtual void SetNumSliderStops(int32& numStops)=0;
78 
84  virtual void SetHasUserUpdatedPrefs(bool16 &hasUpdatedPrefs) = 0;
85 
86 
87 };
88 
89 #endif