InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISuppressedUI.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Joss
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 __ISuppressedUI__
25 #define __ISuppressedUI__
26 
27 #include "AppUIID.h"
28 
29 class IControlView;
30 class IDragDropTarget;
31 class DataObjectIterator;
32 class IDragDropSource;
33 
44 class ISuppressedUI : public IPMUnknown
45 {
46 public:
47  enum { kDefaultIID = IID_ISUPPRESSEDUI };
48 
49  // -----------------------------------------------------------
52 
58  virtual bool16 IsWidgetDisabled( const IControlView* widget ) const = 0;
59 
65  virtual bool16 IsWidgetHidden( const IControlView* widget ) const = 0;
66 
75  virtual bool16 IsDragDropDisabled( const IDragDropTarget* target, DataObjectIterator* data, const IDragDropSource* source ) const = 0;
76 
82  virtual bool16 IsActionDisabled( ActionID action ) const = 0;
83 
89  virtual bool16 IsActionHidden( ActionID action ) const = 0;
90 
98  virtual bool16 IsSubMenuDisabled( const PMString& untranslatedSubMenuName ) const = 0;
99 
107  virtual bool16 IsSubMenuHidden( const PMString& untranslatedSubMenuName ) const = 0;
108 
117  virtual bool16 IsPlatformDialogControlSuppressed( const PMString& platformDialogIdentifier ) const = 0;
118 
124  virtual void Reset( ) = 0; // or Initialize()
125 };
126 
127 #endif //__ISuppressedUI__