Class: PrintView

Cadcorp.UI.PrintUI.PrintView

new PrintView(config)

Print class used to handle printing.
Parameters:
Name Type Description
config Object Configuration for this object. The config supplied directly extends the control

Members

labels

Properties:
Name Type Description
labels Object object holding label text.

mapId

Properties:
Name Type Description
mapId string id of map control.

prefix

Properties:
Name Type Description
prefix string string prefix used for control id lookups.

printTemplates

Properties:
Name Type Description
printTemplates Array.<Cadcorp.UI.PrintUI.PrintTemplate> array of print template objects..

returnToMapFunction

Properties:
Name Type Description
returnToMapFunction function function used to return to map.

Methods

(protected) changeOrientation_Handler(e)

Changes orientation of print.
Parameters:
Name Type Description
e Object event args
Returns:

(protected) mapAfterInit_Handler(eventArgs)

Binds the update print view element to the map object.
Parameters:
Name Type Description
eventArgs Object event args
Returns:

(protected) printFactoryAnnotationsCleared_handler(e)

Handles the successful clearing of annotations, switches back to map view.
Parameters:
Name Type Description
e type

(protected) printFactoryError_handler(e)

Handles errors thrown by the print factory.
Parameters:
Name Type Description
e Cadcorp.UI.PrintUI.PrintError

(protected) printFactoryPDFReady_handler(e)

Indicates that the PDF is ready.
Parameters:
Name Type Description
e Object event args, including url parameter.

(protected) printMap_Handler()

Switches to browser print preview.
Returns:

(protected) printPDF_Handler()

Instantiates the print factory and prints triggers the pdf creation process.

(protected) printSessionDestroyed_handler()

Destroys the print factory and makes it null.
Returns:

(protected) returnToMap_handler()

Returns to map, possibly clearing the annotations first.
Returns:

(protected) setMapScale_Handler(event)

Sets the scale of the map.
Parameters:
Name Type Description
event Object event args
Returns:

(protected) themeGetterLayersLoaded_handler(e)

Handles the theme getters layers loaded event, populating the m_layers object.
Parameters:
Name Type Description
e Object event argument with a layers property.
Returns:

(protected) toggleLegend_Handler()

Toggles the legend visibility
Returns:

(protected) toggleTextBox_Handler()

Hides/shows the notes text area.
Returns: