InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPanelMover Class Referenceabstract

#include <IPanelMover.h>

Inheritance diagram for IPanelMover:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPANELMOVER }
 

Public Member Functions

virtual IControlViewSetPanelToMove (IControlView *thePanel)=0
 
virtual void MoveToWindow (IWindow *theWindow, bool16 adjustWindowAccordingly=kTrue, int32 controlViewID=0)=0
 
virtual void SizeWindowToFit (IWindow *theWindow)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Utility interface for moving panels between windows. This is an ancient interface once used by the floating palette code, that is now used in a few isolated cases (see CDialog). IPanelMover should be used use the via the UtilsBoss, see Utils.h. Clients must call SetPanelToMove first, and then the operation to perform. This code can not be used to move panels between palettes and palette specific methods have been removed.

Utils<IPanelMover>()->SetPanelToMove( myControlView ); Utils<IPanelMover>()->...

See Also
IPanelMgr, IPaletteControlData

Member Function Documentation

virtual void IPanelMover::MoveToWindow (IWindowtheWindow,
bool16 adjustWindowAccordingly = kTrue,
int32 controlViewID = 0 
)
pure virtual

Move the panel to the specified window. Delete panel's former palette if it becomes empty as a result.

Parameters
theWindowIN the target window
adjustWindowAccordinglyIN if set, open the destination window
controlViewIDIN widget ID of the "tab area" widget, if present. Ugh.
Precondition
caller must have called SetPanelToMove to specify the "current" panel.
virtual IControlView* IPanelMover::SetPanelToMove (IControlViewthePanel)
pure virtual

Set the panel that subsequent calls will work with and returns the previously set panel. Caller should restore the previous panel after using IPanelMover.

Parameters
thePanelIN panel to operate on
Returns
the previously set panel
virtual void IPanelMover::SizeWindowToFit (IWindowtheWindow)
pure virtual

Size a palette window to fit the panels it contains

Parameters
theWindowIN the palette window