![]() | InDesign SDK 20.5 |
#include <SuppUISuppressedUI.h>

Public Member Functions | |
| SuppUISuppressedUI (IPMUnknown *boss) | |
| ~SuppUISuppressedUI () | |
| virtual bool16 | IsWidgetDisabled (const IControlView *widget) const |
| virtual bool16 | IsWidgetHidden (const IControlView *widget) const |
| virtual bool16 | IsDragDropDisabled (const IDragDropTarget *target, DataObjectIterator *data, const IDragDropSource *source) const |
| virtual bool16 | IsActionDisabled (ActionID action) const |
| virtual bool16 | IsActionHidden (ActionID action) const |
| virtual bool16 | IsSubMenuDisabled (const PMString &untranslatedSubMenuName) const |
| virtual bool16 | IsSubMenuHidden (const PMString &untranslatedSubMenuName) const |
| virtual bool16 | IsPlatformDialogControlSuppressed (const PMString &platformDialogIdentifier) const |
| virtual void | Reset () |
Public Member Functions inherited from CPMUnknown< ISuppressedUI > | |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| void | AddRef () const |
| void | Release () const |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| CPMUnknown (const CPMUnknown &)=delete | |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
Manage workspaces in standard locations | |
Static Public Attributes | |
| static bool16 | gSuppressStyleChages = kFalse |
| static bool16 | gSuppressFontAndSizeMenus = kFalse |
| static bool16 | gSuppressOpenFileDialogControls = kFalse |
| static bool16 | gSuppressParaStyleQuickApply = kFalse |
Additional Inherited Members | |
Public Types inherited from ISuppressedUI | |
| enum | { kDefaultIID = IID_ISUPPRESSEDUI } |
Protected Member Functions inherited from CPMUnknown< ISuppressedUI > | |
| CPMUnknown (IPMUnknown *boss) | |
Protected Attributes inherited from CPMUnknown< ISuppressedUI > | |
| HelperInterface | fHelperInterface |
Implements ISuppressedUI
This implementation suppresses UI elements based on several static variables. These statics are set by menu items in SuppUIActionComponent.
Character and Paragraph Style changes are suppressed when the variable 'gSuppressStyleChages' is set to kTrue.
Font and Size menus are suppressed when the variable 'gSuppressFontAndSizeMenus' is set to kTrue.
All custom controls on the Open file dialog are suppressed when the variable 'gSuppressOpenFileDialogControls' is set to kTrue.
| SuppUISuppressedUI::SuppUISuppressedUI | ( | IPMUnknown * | boss | ) |
Constructor.
| boss | interface ptr from boss object on which this interface is aggregated. |
| SuppUISuppressedUI::~SuppUISuppressedUI | ( | ) |
Destructor.
| virtual |
Called by ActionManager to determine if the specified action should be disabled. Disabled actions will show up in menus, but will be disabled.
| action | the action |
Implements ISuppressedUI.
| virtual |
Called by ActionManager to determine if the specified action should be hidden. Hidden actions will NOT show up in menus.
| action | the action |
Implements ISuppressedUI.
| virtual |
Called by UI code to determine if the specified widget should accept a drop. The data and source objects contain more information about this particular drop. You can choose to accept some drops and disable others
| target | the widget in question |
| data | contains information about the dragdrop action in question |
| source | contains the source of the dragdrop operation |
Implements ISuppressedUI.
| virtual |
The different variations of Open and Save dialogs in InDesign do not contain InDesign widgets and therefore can't be handled in the same way. These are handled specifically by an identifier found in SuppressedUIXMLDefs.h. You can either Hide all the custom controls or disable individual controls. Suppressing all controls will not cause the dialog to not show the custom control area. Suppressing only individual controls will disable them. At this point, you cannot hide individual controls. This method is called by the dialog to determine if it should hide or disable it's custom controls
| platformDialogIdentifier | an identifier which identifies the dialog asking whether it's custom controls should be hidden |
Implements ISuppressedUI.
| virtual |
Called by MenuManager to determine if the specified menu should be disabled. This refers to submenus which are menu items that contain a menu beneath them. They have no actionID and are specified by Menu path. e.g. File > New is a submenu.
| untranslatedSubMenuName | the This should contain the full menu path in it's untranslated form. This is the same format used to add submenus in MenuDef resource. e.g. "Main:&Window:PW_Workspace:" is a submenu path for Palette Workspaces |
Implements ISuppressedUI.
| virtual |
Called by MenuManager to determine if the specified menu should be hidden. This refers to submenus which are menu items that contain a menu beneath them. They have no actionID and are specified by Menu path. e.g. File > New is a submenu.
| untranslatedSubMenuName | the This should contain the full menu path in it's untranslated form. This is the same format used to add submenus in MenuDef resource. e.g. "Main:&Window:PW_Workspace:" is a submenu path for Palette Workspaces |
Implements ISuppressedUI.
| virtual |
Called by UI code to determine if the specified widget should be disabled
| widget | the widget in question |
Implements ISuppressedUI.
| virtual |
Called by UI code to determine if the specified widget should be hidden
| widget | the widget in question |
Implements ISuppressedUI.
| virtual |
Call Reset() to force the implementations of this interface to recreate a list of items that it would like to suppress. Since the calls above occur very frequently, the implementation needs to respond very quickly and should keep a cache of suppressed items. When Reset() is called, it should recreate it's cache. For instance, the implementation that reads suppressed items from an XML file will reread the xml file when Reset() is called.
Implements ISuppressedUI.
| static |
Static set to kTrue if we are suppressing font and size menus.
| static |
Static set to kTrue if we are suppressing open file dialog custom controls.
| static |
Static set to kTrue if we are suppressing paragraph styles in the quick apply dialog
| static |
Static set to kTrue if we are suppressing style changes.