LPlaceHolder is a PowerPlant class that is designed to assist the printing process. The purpose of a placeholder is to allow you to print a pane at a size and/or location that is different from the pane's characteristics when displayed in a window.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
A placeholder has two characteristics that differentiate it from other views. It has an occupant, and the occupant has an alignment. For more details on this class, refer to The PowerPlant Book.
Source files:
Ancestors:
Purpose:
The constructor creates objects from the passed-in parameters.
Access:
Prototype:
LPlaceHolder();
LPlaceHolder( const LPlaceHolder &inOriginal );
LPlaceHolder( const SPaneInfo &inPaneInfo,
const SViewInfo &inViewInfo,
UInt16 inOccupantAlignment );
LPlaceHolder( LStream *inStream );Parameters:
The constructors take the following parameters:
Purpose:
The destructor destroys the object.
Access:
Prototype:
virtual ~LPlaceHolder();
Purpose:
Return the number of horizontal and vertical Panels. A Panel is a "frameful" of a View's Image. For an LPlaceHolder, the number of Panels is the number of Panels in its occupant Pane.
Access:
Prototype:
virutal void CountPanels( UInt32 &outHorizPanels,Parameters:
UInt32 &outVertPanels);
This method has the following parameters:
Return:
Purpose:
Install a pane inside an LPlaceHolder.
Use the Mac OS Toolbox IconAlignmentType values (in <Icons.h>) for inAlignment. If you don't specify a horizontal alignment, the Occupant width
is set to the PlaceHolder width. Similarly, if you don't specify
a vertical alignment, the Occupant height is set to the PlaceHolder
height.
Access:
Prototype:
void InstallOccupant( LPane *inOccupant,Parameters:
UInt16 inAlignment );
This method has the following parameter:
Return:
Purpose:
Remove occupant from a PlaceHolder, restoring the occupant to its original state.
Access:
Prototype:
LPane* RemoveOccupant();Parameters:
Return:
Purpose:
Scroll view image to the specified panel. For a PlaceHolder, scroll occupant pane to the specified panel.
Access:
Prototype:
virutal Boolean ScrollToPanel(Parameters:
const PanelSpec &inPanel );
This method takes the following parameters:
Return:
Purpose:
Access:
Prototype:
LPane *mOccupant;
Purpose:
The occupant superview pointer.
Access:
Prototype:
LView *mOccupantSuperView;
Purpose:
Access:
Prototype:
Handle mOccupantPlaceH;
Purpose:
Occupant alignment parameters.
Access:
Prototype:
UInt16 mOccupantAlignment;