PrintingScriptAction QML Type

Use this type to add a print action to your extension. More...

Import Statement: import BrickStore 1.0

Properties

Detailed Description

Property Documentation

printFunction : string

This property holds a reference to the JavaScript function which should be called for printing. The function is called with three parameters: (job, document, lots).

ParameterTypeDescription
jobPrintJobThe current print job.
documentDocumentThe document that gets printed.
lotslist<Lot>The selected lots, or all lots if there is no selection.

For example, the classic print script looks like this:

PrintingScriptAction {
    text: "Print: Classic layout"
    printFunction: printJob
}

function printJob(job, doc, lots)
{ ... }

text : string

The user visible text of the menu entry in the Extras menu, that triggers the printFunction.


© 2004-2024 Robert Griebl. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. All trademarks are property of their respective owners.