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

Public Types | |
| enum | { kDefaultIID = IID_IPANELMOVER } |
Public Member Functions | |
| virtual IControlView * | SetPanelToMove (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 IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
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>()->...
| pure virtual |
Move the panel to the specified window. Delete panel's former palette if it becomes empty as a result.
| theWindow | IN the target window |
| adjustWindowAccordingly | IN if set, open the destination window |
| controlViewID | IN widget ID of the "tab area" widget, if present. Ugh. |
| 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.
| thePanel | IN panel to operate on |
| pure virtual |
Size a palette window to fit the panels it contains
| theWindow | IN the palette window |