InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IUserInterfacePreferencesFacade.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Easter
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 // Description:
24 // A high level API for dealing with user interface preferences
25 //
26 //========================================================================================
27 
28 #ifndef __IUserInterfacePreferencesFacade__
29 #define __IUserInterfacePreferencesFacade__
30 
31 // ----- Includes -----
32 #include "IPMUnknown.h"
33 
34 #include "AppUIID.h"
35 #include "IUserInterfacePreferences.h"
36 #include "IPatientUserPreference.h"
37 #include "IGrabberPrefs.h"
38 
43 namespace Facade
44 {
46  {
47  public:
48  enum { kDefaultIID = IID_IUSERINTERFACEPREFERENCESFACADE };
49 
53  virtual ErrorCode SetToolboxOrientationPreference(IUserInterfacePreferences::ToolboxState newOrientation) const = 0;
54 
58  virtual ErrorCode SetToolTipPreference(IUserInterfacePreferences::TipsState newState) const = 0;
59 
63  virtual ErrorCode SetPaletteDrawerPreference(bool16 drawersStayOpen) const = 0;
64 
68  virtual ErrorCode SetAutoShowHiddenPanels(bool16 autoShow) const = 0;
69 
74  virtual bool16 GetAutoShowHiddenPanels() const = 0;
75 
81  virtual bool16 CanChangeUseApplicationFramePreference() const = 0;
82 
86  virtual ErrorCode SetUseApplicationFramePreference(bool16 useApplicationFrame) const = 0;
87 
91  virtual bool16 GetUseApplicationFramePreference() const = 0;
92 
99  virtual bool16 CanChangeShowAppBarPreference() const = 0;
100 
105  virtual bool16 GetShowAppBarPreference() const = 0;
106 
111  virtual ErrorCode SetShowAppBarPreference(bool16 bShowAppBar) const = 0;
112 
116  virtual bool16 GetOpenNewDocumentsInTabsPreference() const = 0;
117 
121  virtual ErrorCode SetOpenNewDocumentsInTabsPreference(bool16 openInTabs) const = 0;
122 
126  virtual bool16 GetEnableFloatingPresentationDockingPreference() const = 0;
127 
131  virtual ErrorCode SetEnableFloatingPresentationDockingPreference(bool16 enableDocking) const = 0;
132 
139  virtual ErrorCode SetShowThumbnailCursorPreference(bool16 showThumbnailCursors) const = 0;
140 
144  virtual bool16 GetShowThumbnailCursorPreference(void) const = 0;
145 
152  virtual ErrorCode SetUIShowObjectDimensionsCursor(bool16 showDimensions) const = 0;
153 
159  virtual bool16 GetUIShowObjectDimensionsCursor() const = 0;
160 
166  virtual ErrorCode SetUIOpenRecentLengthPreference(int32 numOfOpenRecentFilesToDisplay) const = 0;
167 
172  virtual int32 GetUIOpenRecentLengthPreference() const = 0;
173 
180  virtual ErrorCode SetUIPatientUserDelay(const int32& milliseconds) const = 0;
181 
187  virtual int32 GetUIPatientUserDelay(void) const = 0;
188 
194  virtual ErrorCode SetUIGrabberPanning(const IGrabberPrefs::PanningType grabberPanning) const = 0;
195 
200  virtual IGrabberPrefs::PanningType GetUIGrabberPanning(void) const = 0;
201 
207  virtual ErrorCode SetUIShowContentGrabber(bool16 show) const = 0;
208 
212  virtual bool16 GetUIShowContentGrabber(void) const = 0;
213 
219  virtual ErrorCode SetUIShowLiveCorners(bool16 show) const = 0;
220 
224  virtual bool16 GetUIShowLiveCorners(void) const = 0;
225 
232  virtual ErrorCode SetUIShowAnchorAdornment(bool16 show) const = 0;
233 
237  virtual bool16 GetUIShowAnchorAdornment(void) const = 0;
238 
239 
244  virtual ErrorCode SetShowMasterPageOverlay(bool16 show) const = 0;
245 
249  virtual bool16 GetShowMasterPageOverlay(void) const = 0;
250 
251 
256  virtual ErrorCode SetObjectsMoveWithPage(bool16 moveItemsWithPagesWithoutOptionKey) const = 0;
257 
261  virtual bool16 GetObjectsMoveWithPage(void) const = 0;
262 
263 
268  virtual ErrorCode SetEnableMultiTouchGesturesPreference(bool16 enableGestures) const = 0;
269 
273  virtual bool16 GetEnableMultiTouchGesturesPreference() const = 0;
274 
279  virtual ErrorCode SetPreventSelectingLockedItems(bool16 show) const = 0;
280 
284  virtual bool16 GetPreventSelectingLockedItems(void) const = 0;
285 
290  virtual ErrorCode SetObjectFrameHighlightingPreference(bool16 enableHighlighting) const = 0;
291 
295  virtual bool16 GetObjectFrameHighlightingPreference() const = 0;
296 
301  virtual ErrorCode SetScrollAllWindows(bool16 scrollAll) const = 0;
302 
306  virtual bool16 GetScrollAllWindows() const = 0;
307 
312  virtual ErrorCode SetZoomAllWindows(bool16 zoomAll) const = 0;
313 
317  virtual bool16 GetZoomAllWindows() const = 0;
318 
322  virtual ErrorCode SetEnableDrawProxyOnDrag(bool16 enableDrawProxyOnDrag) = 0;
323 
327  virtual bool16 GetEnableDrawProxyOnDrag() const = 0;
328 
333  virtual ErrorCode SetUIShowRibbon(bool16 show) = 0;
334 
338  virtual bool16 GetUIShowRibbon(void) const = 0;
339 
343  virtual ErrorCode SetEnableCreateLinks(bool16 enableCreateLinks) = 0;
344 
348  virtual bool16 GetEnableCreateLinks(void) const = 0;
349 
353  virtual ErrorCode SetEnableMapStyles(bool16 enableMapStyles) = 0;
357  virtual bool16 GetEnableMapStyles(void) const = 0;
358 
363  virtual ErrorCode SetUseCustomMonitorResolution(bool16 bUseCustomResolution) const = 0;
364 
368  virtual bool16 GetUseCustomMonitorResolution() const = 0;
369 
374  virtual ErrorCode SetCustomMonitorResolution(const PMReal& ppi) const = 0;
375 
379  virtual PMReal GetCustomMonitorResolution() const = 0;
380 
386  virtual ErrorCode SetUIBrightnessPreference(const PMReal brightnessVal) = 0;
387 
391  virtual PMReal GetUIBrightnessPreference() const = 0;
392 
396  virtual ErrorCode SetPasteboardColorPreference(const int32 nPrefValue) = 0;
397 
401  virtual int32 GetPasteboardColorPreference() const = 0;
402 
406  virtual ErrorCode SetShowWhatsNewOnStartup(bool16 showOnStartup) = 0;
407 
411  virtual bool16 GetShowWhatsNewOnStartup() const = 0;
412 
416  virtual ErrorCode SetAutoAddSwatchToCCLibraries(bool16 addSwatchToCCLibraries) = 0;
417 
421  virtual bool16 GetAutoAddSwatchToCCLibraries() const = 0;
422 
426  virtual ErrorCode SetAutoAddCharStyleToCCLibraries(bool16 addCharStyleToCCLibraries) = 0;
427 
431  virtual bool16 GetAutoAddCharStyleToCCLibraries() const = 0;
432 
436  virtual ErrorCode SetAutoAddParaStyleToCCLibraries(bool16 addParaStyleToCCLibraries) = 0;
437 
441  virtual bool16 GetAutoAddParaStyleToCCLibraries() const = 0;
442 
446  virtual ErrorCode SetShowHomeWorkspace(bool16 show) = 0;
447 
451  virtual bool16 GetShowHomeWorkspace() const = 0;
452 
458  virtual ErrorCode SetUIShowStockPurchaseAdornment(bool16 show) const = 0;
459 
463  virtual bool16 GetUIShowStockPurchaseAdornment(void) const = 0;
464 
469  virtual ErrorCode SetPanelTabHeightPreference(bool16 tabHeight) const = 0;
470 
474  virtual bool16 GetPanelTabHeightPreference(void) const = 0;
475 
479  virtual ErrorCode SetShowLegacyNewDocDlg(bool16 show) = 0;
480 
484  virtual bool16 GetShowLegacyNewDocDlg() const = 0;
485  };
486 }
487 #endif // __IUserInterfacePreferencesFacade__