InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PaletteRefUtils Class Reference

#include <PaletteRefUtils.h>

Public Types

enum  DockLocation {
  kLeft_DockLocation = 1, kTop_DockLocation, kRight_DockLocation, kBottom_DockLocation,
  kFloating_DockLocation, kAppContainer_DockLocation
}
 
enum  DockMode { kExpanded_DockMode = 1, kConcealed_DockMode, kRevealed_DockMode }
 
enum  TabPaneMode { kExpanded_TabPaneMode = 1, kIcon_TabPaneMode }
 
enum  TabPaneLayoutMode { kAutoFlow_TabPaneLayoutMode = 1, kManual_TabPaneLayoutMode }
 
enum  ToolbarSizeVariant { kVerticalWide_ToolbarSizeVariant = 1, kVerticalNarrow_ToolbarSizeVariant, kHorizontal_ToolbarSizeVariant }
 
enum  PanelLabel { kTitle_PanelLabel = 0, kTooltip_PanelLabel }
 
enum  PaletteVisibilityChange { kShowPalette = 0, kHidePalette }
 
enum  ShowHideLevel { kShowHideFloatingTabPalettes, kShowHideAllPalettes }
 
enum  WhichTabPanes { kNoTabPanes, kLHSTabPanes, kRHSTabPanes, kAllTabPanes }
 

Static Public Member Functions

static bool16 IsRootPaletteNode (const PaletteRef &whichPalette)
 
static bool16 IsApplicationContainer (const PaletteRef &whichPalette)
 
static bool16 IsDock (const PaletteRef &whichPalette)
 
static bool16 IsTabbedPaletteDock (const PaletteRef &whichPalette)
 
static bool16 IsDocumentDock (const PaletteRef &whichPalette)
 
static bool16 IsFloatingTabbedPaletteDock (const PaletteRef &whichPalette)
 
static bool16 IsFloatingDocumentDock (const PaletteRef &whichPalette)
 
static bool16 IsTabPane (const PaletteRef &whichPalette)
 
static bool16 IsControlBarPane (const PaletteRef &whichPalette)
 
static bool16 IsTabGroup (const PaletteRef &whichPalette)
 
static bool16 IsToolbar (const PaletteRef &whichPalette)
 
static bool16 IsControlBar (const PaletteRef &whichPalette)
 
static bool16 IsTabPanelContainer (const PaletteRef &whichPalette)
 
static bool16 IsDocumentPresentation (const PaletteRef &whichPalette)
 
static bool16 IsPaletteFloating (const PaletteRef &whichPalette)
 
static PaletteRef GetPaletteRefFromOWLPalette (OWLControlRef owlControl)
 
static IDocumentPresentationGetDocumentPresentationFromPaletteRef (const PaletteRef &presentationRef)
 
static PaletteRef GetPaletteRefFromDocumentPresentation (const IDocumentPresentation *pres)
 
static PaletteRef GetRootPaletteNode ()
 
static PaletteRef GetApplicationContainer ()
 
static void SetApplicationContainer (OWLControlRef owlControl)
 
static PaletteRef GetApplicationContainerDocumentDock ()
 
static uint16 GetChildCountOfPalette (const PaletteRef &parentPalette)
 
static PaletteRef GetNthChildOfPalette (const PaletteRef &parentPalette, uint16 inIndex)
 
static PaletteRef GetParentOfPalette (const PaletteRef &whichPalette)
 
static void ReparentPalette (const PaletteRef &whichPalette, const PaletteRef &newParent, const PaletteRef &beforeSibling)
 
static void FloatPalette (const PaletteRef &whichPalette)
 
static uint16 GetTopLevelPaletteCount ()
 
static PaletteRef GetNthTopLevelPalette (uint16 inIndex)
 
static uint16 GetDockCount ()
 
static PaletteRef GetNthDock (uint16 inIndex)
 
static PaletteRef FindDockByLocation (DockLocation whichLocation)
 
static uint16 GetFloatingTabbedPaletteDockCount ()
 
static PaletteRef GetNthFloatingTabbedPaletteDock (uint16 inIndex)
 
static uint16 GetFloatingDocumentDockCount ()
 
static PaletteRef GetNthFloatingDocumentDock (uint16 inIndex)
 
static PaletteRef GetFloatingDocumentDockParentOfDocument (PaletteRef whichDocument)
 
static DockLocation GetDockLocation (const PaletteRef &whichDock)
 
static DockMode GetDockMode (const PaletteRef &whichDock)
 
static void SetDockMode (const PaletteRef &whichDock, DockMode newMode)
 
static SysPoint GetFloatingDockPreferredPosition (const PaletteRef &whichDock)
 
static void SetFloatingDockPreferredPosition (const PaletteRef &whichDock, SysPoint &where)
 
static void SetFloatingDocumentWindowBounds (const PaletteRef &documentRef, SysRect newBounds)
 
static void SetFloatingDocumentBounds (const PaletteRef &documentRef, SysPoint newDimensions)
 
static TabPaneMode GetTabPaneMode (const PaletteRef &whichTabPane)
 
static void SetTabPaneMode (const PaletteRef &whichTabPane, TabPaneMode newMode)
 
static TabPaneLayoutMode GetTabPaneLayoutMode (const PaletteRef &whichTabPane)
 
static void SetTabPaneLayoutMode (const PaletteRef &whichTabPane, TabPaneLayoutMode newLayoutMode)
 
static float GetTabPanePreferredIconicWidth (const PaletteRef &whichTabPane)
 
static void SetTabPanePreferredIconicWidth (const PaletteRef &whichTabPane, float newWidth)
 
static ToolbarSizeVariant GetToolbarSizeVariant (const PaletteRef &whichToolbar)
 
static void SetToolbarSizeVariant (const PaletteRef &whichToolbar, ToolbarSizeVariant newVariant)
 
static void SetToolbarSizeVariant (const PaletteRef &toolbarRef, IUserInterfacePreferences::ToolboxState newState)
 
static void FixupToolbarContentOrigin (const PaletteRef &toolbarRef)
 
static PMString GetPaletteLabel (const PaletteRef &whichPalette, PanelLabel whichLabel=kTitle_PanelLabel)
 
static void SetPaletteLabel (const PaletteRef &whichPalette, const PMString &labelstr, PanelLabel whichLabel=kTitle_PanelLabel)
 
static SysPoint GetPalettePosition (const PaletteRef &whichPalette)
 
static void SetPalettePosition (const PaletteRef &whichPalette, SysCoord left, SysCoord top)
 
static SysRect GetPaletteBounds (const PaletteRef &whichPalette)
 
static void SetPaletteSize (const PaletteRef &whichPalette, SysPoint newDimensions)
 
static SysRect GetOpticalPaletteBounds (const PaletteRef &whichPalette)
 
static bool16 GetVisibleState (const PaletteRef &whichPalette)
 
static bool16 IsPaletteVisible (const PaletteRef &whichPalette)
 
static bool16 IsPaletteMinimized (const PaletteRef &whichPalette)
 
static void ChangePaletteMinimization (const PaletteRef &whichPalette, bool16 minimize)
 
static void ShowHideEntirePaletteSystem (PaletteVisibilityChange show)
 
static bool16 IsEntirePaletteSystemHidden ()
 
static void ForcePaletteSystemToPerformLayout ()
 
static void ShowHidePalette (const PaletteRef &whichPalette, PaletteVisibilityChange show)
 
static void BringPaletteToFront (const PaletteRef &whichPalette)
 
static void CenterPaletteOnScreen (const PaletteRef &whichPalette)
 
static PaletteRef NewTabPaneInDock (const PaletteRef &dockParent, TabPaneMode mode, const PaletteRef &beforeOptionalSibling)
 
static PaletteRef NewControlBarPaneInDock (const PaletteRef &dockParent, const PaletteRef &beforeOptionalSibling)
 
static PaletteRef NewFloatingTabGroupContainerPalette ()
 
static PaletteRef NewTabGroupPalette (const PaletteRef &tabGroupClusterOrTabPaneParent)
 
static PaletteRef NewToolbarPalette ()
 
static PaletteRef NewControlbarPalette ()
 
static bool16 CanClose (const PaletteRef &paletteRef)
 
static bool16 GetIsClosed (const PaletteRef &paletteRef)
 
static void ChangeIsClosed (const PaletteRef &paletteRef, bool16 close=kTrue)
 
static void AdjustClientAreaToPalettes ()
 
static void InvalidateAllPalettes ()
 
static void ShowHidePalettes (ShowHideLevel paletteShowHideLevel=kShowHideAllPalettes)
 
static bool16 AreTabPanesOpen (WhichTabPanes whichOnes=kAllTabPanes)
 
static void OpenCloseTabPanes (WhichTabPanes whichOnes=kAllTabPanes, bool16 open=kTrue)
 
static IXMLGeneratorQueryXMLGenerator (PaletteRefType paletteType)
 
static IPaletteFactory * QueryPaletteFactory (PaletteRefType paletteType)
 
static void NotifyPaletteIsClosing (PaletteRef owlPalette)
 
static void NotifyPaletteContainerIsClosing (PaletteRef owlPalette)
 
static void PositionPaletteOnScreen (const PaletteRef &whichPalette, PMReal distanceFromLeftOnScreenInPercentage)
 

Detailed Description

PaletteRefUtils is here to allow you to walk and manipulate the palette hierarchy. Most client code will not need to use PaletteRefUtils at all, because the IPanelMgr interface generally provides everything you need. If you do need to manipulate the palette containers directly, this collection of APIs should allow you to do that.

For a description of the palette hierarchy (whcih changed substantially with OWL 2.0 see PaletteRef.h.

IMPORTANT: OWL2 performs palette layout asynchronously, and only for visible palettes. When layout is pending or in progress many of the routines below used to get palette sizes, positions, etc. Way return values that will be different after the layout completes.

Member Enumeration Documentation

The edge to which a dock anchors itself.

See Also
GetDockLocation
The various modes in which a dock can exist.

In this version of InDesign (CS3) only expanded mode is supported.

See Also
GetDockMode, SetDockMode

Palette visibility actions

Enum of labels associated with a tabbed panel.

Palette ShowHide levels
Enumerator
kShowHideFloatingTabPalettes 

Show/hide only the floating tab palettes

kShowHideAllPalettes 

Show/hide all palettes

The layout modes in which a tab pane can exist. 

In Autoflow mode the height of the tabpane always fills the available vertical space,

in manual mode the tabPane's height is defermined by the height of the tab groups it contains. 

See Also
GetTabPaneLayoutMode, SetTabPaneLayoutMode
The various modes in which a tab pane can exist.

In Expanded mode, the palette content shows and the user interacts with the contents of the palette,

in Icon mode, the palettes are collapsed to thier icon and optional text, and the user interacts with the palette content in a drawer.

See Also
GetTabPaneMode, SetTabPaneMode
The toolbars size variants, two vertically oriented sizes and one horizontally oriented size.

See Also
GetToolbarSizeVariant, SetToolbarSizeVariant

WhichTabPanes specifiers
Enumerator
kNoTabPanes 

none of the them

kLHSTabPanes 

those on the LHS of the screen

kRHSTabPanes 

those on the RHS of the screen

kAllTabPanes 

all of them

Member Function Documentation

static void PaletteRefUtils::AdjustClientAreaToPalettes ()
static

Called when AppFrame changes size, Monitor resolution changes, or after Workspace changes. replaces AdjustPalettesToClientArea

static bool16 PaletteRefUtils::AreTabPanesOpen (WhichTabPanes whichOnes = kAllTabPanes)
static

Retrieves the state of the tab panes as of the last call to OpenCloseTabPanes.

Parameters
whichOnesIN which tab panes to check
static void PaletteRefUtils::BringPaletteToFront (const PaletteRefwhichPalette)
static

Bring a specific palette, and it's containers, to the front.

static bool16 PaletteRefUtils::CanClose (const PaletteRefpaletteRef)
static

Return true if the palette can be closed.

static void PaletteRefUtils::CenterPaletteOnScreen (const PaletteRefwhichPalette)
static

Move a specific palette to be centered on the main screen.

Precondition
any palette type can passed, algorithm will do the appropriate things to do the centering.
static void PaletteRefUtils::ChangeIsClosed (const PaletteRefpaletteRef,
bool16 close = kTrue 
)
static

Change the closed state of the palette.

static void PaletteRefUtils::ChangePaletteMinimization (const PaletteRefwhichPalette,
bool16 minimize 
)
static

Sets the minimize state of the palette. only valid to call on tab panel containers.

static PaletteRef PaletteRefUtils::FindDockByLocation (DockLocation whichLocation)
static

Get a particular dock, by location (only works for top, left, bottom and right docked palette docks)

static void PaletteRefUtils::FixupToolbarContentOrigin (const PaletteReftoolbarRef)
static

INTERNAL USE ONLY: Utility routine to offset the ID panel wrapper within its toolbar parent so that it draws properly.

static void PaletteRefUtils::FloatPalette (const PaletteRefwhichPalette)
static

Palette reparenting (special case for making a docked toolbar or controlbar float)

Parameters
whichPaletteIN the palette to be reparented.
static void PaletteRefUtils::ForcePaletteSystemToPerformLayout ()
static

Force the entire palette system to perform layout (which is typically done asynchronously) Use sparingly - generally only if you're doing something like writing test code where layout must complete before proceeding.

static PaletteRef PaletteRefUtils::GetApplicationContainer ()
static

Get the Application Container

static PaletteRef PaletteRefUtils::GetApplicationContainerDocumentDock ()
static

Get the Application Container's Document Dock returns an invalid PaletteRef when AppFrame is disabled.

static uint16 PaletteRefUtils::GetChildCountOfPalette (const PaletteRefparentPalette)
static

Get the number of children of the given palette

static uint16 PaletteRefUtils::GetDockCount ()
static

How Many Docks are there.

static DockLocation PaletteRefUtils::GetDockLocation (const PaletteRefwhichDock)
static

Where is the dock located

static DockMode PaletteRefUtils::GetDockMode (const PaletteRefwhichDock)
static

What is the state of the dock

static IDocumentPresentation* PaletteRefUtils::GetDocumentPresentationFromPaletteRef (const PaletteRefpresentationRef)
static

Given a PaletteRef for an OWLDocument, retrieve the corresponding IDocumentPresentation interface. Used to bridge between the OWL palette world and InDesign object model notion of a document view.

static SysPoint PaletteRefUtils::GetFloatingDockPreferredPosition (const PaletteRefwhichDock)
static

Get the preferred origin of a floating dock

static uint16 PaletteRefUtils::GetFloatingDocumentDockCount ()
static

How many are there.

static PaletteRef PaletteRefUtils::GetFloatingDocumentDockParentOfDocument (PaletteRef whichDocument)
static

Find the one containing a particular document

static uint16 PaletteRefUtils::GetFloatingTabbedPaletteDockCount ()
static

How many are there.

static bool16 PaletteRefUtils::GetIsClosed (const PaletteRefpaletteRef)
static

Return the closed state of the palette.

static PaletteRef PaletteRefUtils::GetNthChildOfPalette (const PaletteRefparentPalette,
uint16 inIndex 
)
static

Get the nth child of the given palette

static PaletteRef PaletteRefUtils::GetNthDock (uint16 inIndex)
static

Get a particular dock Note that you can now ask for the RHS dock, instead of iterating over the docks and checking their DockLocation

static PaletteRef PaletteRefUtils::GetNthFloatingDocumentDock (uint16 inIndex)
static

Get a particular one

static PaletteRef PaletteRefUtils::GetNthFloatingTabbedPaletteDock (uint16 inIndex)
static

Get a particular one

static PaletteRef PaletteRefUtils::GetNthTopLevelPalette (uint16 inIndex)
static

A convenient shortcut - equivalent to GetNthChildOfPalette(GetRootPaletteNode(),...)

static SysRect PaletteRefUtils::GetOpticalPaletteBounds (const PaletteRefwhichPalette)
static

Get the optical bounds of the given palette in global coordinates. The optical bounds should return the bounding box of what the user actually perceives as being the palette, without any drop shadow, extra drop zone, etc.

Precondition
whichPalette can be either a Floating Dock, TabPane, Toolbar or ControlBar.
static SysRect PaletteRefUtils::GetPaletteBounds (const PaletteRefwhichPalette)
static

Get the bounds of the given palette in global coordinates

Precondition
whichPalette can be either a Floating Dock, TabPane, Toolbar or ControlBar.
static PMString PaletteRefUtils::GetPaletteLabel (const PaletteRefwhichPalette,
PanelLabel whichLabel = kTitle_PanelLabel 
)
static

Get/Set a label associated with a tabbed palette. Valid only for tabbed palettes. NOTE: OWL2 performs palette layout asynchronously, and only for visible palettes, calling GetPaletteLabel on a palette that has never been visible may return empty label strings.

Precondition
whichPalette must a TabPanelContainer.
static SysPoint PaletteRefUtils::GetPalettePosition (const PaletteRefwhichPalette)
static

Get the location (top/left global coordinate) of the given palette Note: whichPalette

Precondition
whichPalette can be either a Floating Dock, TabPane, Toolbar or ControlBar.
static PaletteRef PaletteRefUtils::GetPaletteRefFromDocumentPresentation (const IDocumentPresentationpres)
static

Given a IDocumentPresentation interface, retrieve the corresponding PaletteRef for an OWLDocument. Used to bridge between the OWL palette world and InDesign object model notion of a document view.

static PaletteRef PaletteRefUtils::GetPaletteRefFromOWLPalette (OWLControlRef owlControl)
static

Given a bare OWL control - wrap it up in a PaletteRef

static PaletteRef PaletteRefUtils::GetParentOfPalette (const PaletteRefwhichPalette)
static

Get the reference to the parent of the given palette

static PaletteRef PaletteRefUtils::GetRootPaletteNode ()
static

Get the root palete node

static TabPaneLayoutMode PaletteRefUtils::GetTabPaneLayoutMode (const PaletteRefwhichTabPane)
static

What is the layout mode of the tabpane (manual or autoflow)

static TabPaneMode PaletteRefUtils::GetTabPaneMode (const PaletteRefwhichTabPane)
static

What is the state of the tabpane

static float PaletteRefUtils::GetTabPanePreferredIconicWidth (const PaletteRefwhichTabPane)
static

Get the preferred width of a tabpane when in icon mode.

static ToolbarSizeVariant PaletteRefUtils::GetToolbarSizeVariant (const PaletteRefwhichToolbar)
static

Which size variant is the toolbar currently displaying

static uint16 PaletteRefUtils::GetTopLevelPaletteCount ()
static

A convenient shortcut - equivalent to GetChildCountOfPalette(GetRootPaletteNode())

static bool16 PaletteRefUtils::GetVisibleState (const PaletteRefwhichPalette)
static

Return true if this view's visible flag is set. (Latent visibility)

static void PaletteRefUtils::InvalidateAllPalettes ()
static

Utility routine that causes the entire palette system to invalidate and redraw.

static bool16 PaletteRefUtils::IsApplicationContainer (const PaletteRefwhichPalette)
static

Is this an application container (only one in CS4, could be more later on).

static bool16 PaletteRefUtils::IsControlBar (const PaletteRefwhichPalette)
static

Is this a control bar.

static bool16 PaletteRefUtils::IsControlBarPane (const PaletteRefwhichPalette)
static

Is this a ControlBar pane. NOTE: ControlBarPanes are only supported in InCopy

static bool16 PaletteRefUtils::IsDock (const PaletteRefwhichPalette)
static

Is this a dock.

static bool16 PaletteRefUtils::IsDocumentDock (const PaletteRefwhichPalette)
static

Is this a dock that can contain documents. (a sub category of docks)

static bool16 PaletteRefUtils::IsDocumentPresentation (const PaletteRefwhichPalette)
static

Is this a document (document presentation).

static bool16 PaletteRefUtils::IsEntirePaletteSystemHidden ()
static

Discover if the entire palette system has been hidden.

static bool16 PaletteRefUtils::IsFloatingDocumentDock (const PaletteRefwhichPalette)
static

Is this a floating dock that can contain documents. (a sub category of docks)

static bool16 PaletteRefUtils::IsFloatingTabbedPaletteDock (const PaletteRefwhichPalette)
static

Is this a floating dock that can contain tabbed palettes and toolbars. (a sub category of docks)

static bool16 PaletteRefUtils::IsPaletteFloating (const PaletteRefwhichPalette)
static

Is this at the top level (child of the root node). OBSOLETE: Removed for CS4, since it's meaning was unclear. See IsPaletteFloating, IsFloatingTabbedPaletteDock, IsFloatingDocumentDock instead.Is this palette floating (not docked).

static bool16 PaletteRefUtils::IsPaletteMinimized (const PaletteRefwhichPalette)
static

Returns true if the palette is minimized. only valid to call on tab panel containers.

static bool16 PaletteRefUtils::IsPaletteVisible (const PaletteRefwhichPalette)
static

Return true if this view is visible. A view is visible if its visible flag is set and all of its ancestors are visible. (Effective visibility)

static bool16 PaletteRefUtils::IsRootPaletteNode (const PaletteRefwhichPalette)
static

Is this the Root node of the Palette hierarchy.

static bool16 PaletteRefUtils::IsTabbedPaletteDock (const PaletteRefwhichPalette)
static

Is this a tab group cluster. OBSOLETE Is this a dock that can contain tabbed palettes and toolbars. (a sub category of docks)

static bool16 PaletteRefUtils::IsTabGroup (const PaletteRefwhichPalette)
static

Is this a tab group.

static bool16 PaletteRefUtils::IsTabPane (const PaletteRefwhichPalette)
static

Is this a tab pane.

static bool16 PaletteRefUtils::IsTabPanelContainer (const PaletteRefwhichPalette)
static

Is this a tabbed palette (panel container).

static bool16 PaletteRefUtils::IsToolbar (const PaletteRefwhichPalette)
static

Is this a tool bar.

static PaletteRef PaletteRefUtils::NewControlbarPalette ()
static

Create a new (floating) ControlBar. To dock it afterwards call ReparentPalette

static PaletteRef PaletteRefUtils::NewControlBarPaneInDock (const PaletteRefdockParent,
const PaletteRefbeforeOptionalSibling 
)
static

InCopy Only: Create a new ControlBarPane in the specified dock, before a particular sibling (pass PaletteRef() to add to end of dock)

static PaletteRef PaletteRefUtils::NewFloatingTabGroupContainerPalette ()
static

Create a new FloatingTabGroupContainer (a pane in a floatig dock)

static PaletteRef PaletteRefUtils::NewTabGroupPalette (const PaletteReftabGroupClusterOrTabPaneParent)
static

Create a new TabGroup in the speficied parent

static PaletteRef PaletteRefUtils::NewTabPaneInDock (const PaletteRefdockParent,
TabPaneMode mode,
const PaletteRefbeforeOptionalSibling 
)
static

Create a new TabPane in the specified dock, before a particular sibling (pass PaletteRef() to add to end of dock)

static PaletteRef PaletteRefUtils::NewToolbarPalette ()
static

Create a new (floating) Toolbar. To dock it afterwards call ReparentPalette

static void PaletteRefUtils::NotifyPaletteContainerIsClosing (PaletteRef owlPalette)
static

INTERNAL USE ONLY: Called to send notification to panels that on if it's containers is being closed. Client code should not need to call these methods .

See Also
kAboutToClosePaletteMsg (notification contains pointer to panel being closed)
static void PaletteRefUtils::NotifyPaletteIsClosing (PaletteRef owlPalette)
static

INTERNAL USE ONLY: Called to send notification to panels that they're being closed. Client code should not need to call these methods.

See Also
kAboutToClosePaletteMsg (notification contains pointer to panel being closed)
static void PaletteRefUtils::OpenCloseTabPanes (WhichTabPanes whichOnes = kAllTabPanes,
bool16 open = kTrue 
)
static

Open or close tab panes (reveal or conceal panel content).

Parameters
whichOnesIN which tab panes to open
openIN true to open the tab panes, false to close them
static void PaletteRefUtils::PositionPaletteOnScreen (const PaletteRefwhichPalette,
PMReal distanceFromLeftOnScreenInPercentage 
)
static

Move a specific palette on the main screen at distance from left edge of screen.

Precondition
any palette type can passed, algorithm will do the appropriate things to do the moving.
Parameters
whichPaletteIN palette to be moved
distanceFromLeftOnScreenInPercentageIN distance from left edge of screen in percentage where the palette has to be placed (centered)
static void PaletteRefUtils::ReparentPalette (const PaletteRefwhichPalette,
const PaletteRefnewParent,
const PaletteRefbeforeSibling 
)
static

Palette reparenting An invalid parent/child combination will trigger an assert in the debug build.

Parameters
whichPaletteIN the palette to be reparented.
newParentIN the new parent.
beforeSiblingIN insert before an existing sibling (pass PaletteRef() to add to the end of the parents list).
static void PaletteRefUtils::SetApplicationContainer (OWLControlRef owlControl)
static

INTERNAL USE ONLY: Set the Application Container

static void PaletteRefUtils::SetDockMode (const PaletteRefwhichDock,
DockMode newMode 
)
static

Change the state of the dock

static void PaletteRefUtils::SetFloatingDockPreferredPosition (const PaletteRefwhichDock,
SysPointwhere 
)
static

Set the preferred origin of a floating dock

static void PaletteRefUtils::SetFloatingDocumentBounds (const PaletteRefdocumentRef,
SysPoint newDimensions 
)
static

Set the bounds of the document. Window will be slightly larger to accomodate window trim

static void PaletteRefUtils::SetFloatingDocumentWindowBounds (const PaletteRefdocumentRef,
SysRect newBounds 
)
static

Set the bounds of the window containing this document

static void PaletteRefUtils::SetPalettePosition (const PaletteRefwhichPalette,
SysCoord left,
SysCoord top 
)
static

Set the location (top/left global coordinate) of the given palette Note: whichPalette

Precondition
whichPalette must be a floating palette (Dock, Toolbar or ControlBar).
static void PaletteRefUtils::SetPaletteSize (const PaletteRefwhichPalette,
SysPoint newDimensions 
)
static

Request a new size for the given palette. Due to layout constraints, the requested size may not be possible.

Precondition
whichPalette must be a resizable TabPanelContainer
Parameters
whichPalettethe tab panel container object you want to resize
newDimensionsthe desired new size for the TabPanelContainer
static void PaletteRefUtils::SetTabPaneLayoutMode (const PaletteRefwhichTabPane,
TabPaneLayoutMode newLayoutMode 
)
static

Change the layout mode of the tabpane

static void PaletteRefUtils::SetTabPaneMode (const PaletteRefwhichTabPane,
TabPaneMode newMode 
)
static

Change the state of the tabpane

static void PaletteRefUtils::SetTabPanePreferredIconicWidth (const PaletteRefwhichTabPane,
float newWidth 
)
static

Change the preferred width of the tabpane when in icon mode

static void PaletteRefUtils::SetToolbarSizeVariant (const PaletteRefwhichToolbar,
ToolbarSizeVariant newVariant 
)
static

Change the size variant that the toolbar will display

static void PaletteRefUtils::SetToolbarSizeVariant (const PaletteReftoolbarRef,
IUserInterfacePreferences::ToolboxState newState 
)
static

Change the size variant that the toolbar will display

static void PaletteRefUtils::ShowHideEntirePaletteSystem (PaletteVisibilityChange show)
static

Show or hide the entire palette system. Use sparingly - generally only if you're doing something like rearranging all the palettes for some reason

static void PaletteRefUtils::ShowHidePalette (const PaletteRefwhichPalette,
PaletteVisibilityChange show 
)
static

Show or hide a specific PaletteRef. Each PaletteRef in the hierarchy has a visible flag. Calling hide on a PaletteRef sets the visible flag for that PaletteRef to false. Parent PaletteRefs will not be shown on screen if they contain no visible child PaletteRefs. Calling Show on a child PaletteRef will show all its parent PaletteRefs so it will actually appear on screen

static void PaletteRefUtils::ShowHidePalettes (ShowHideLevel paletteShowHideLevel = kShowHideAllPalettes)
static

Show or hide the palettes, used when the user hits the tab key or shift+tab key.

Parameters
paletteShowHideLevelIN if kShowHideFloatingTabPalettes, then only floating tabbed palettes will be hidden. Floating non-tabbed palettes(i.e. toolbox) will not be hidden, nor will toolbars be hidden.