// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
//
// File Name:
//
// v4PrintDriver-Intellisense.js
//
// Abstract:
//
// This file defines intellisense to be used by JavaScript extensions in v4 print drivers.
var v4PrintDriverIntellisense = {
/// Intended for use by v4 print driver JavaScript Intellisense.
createInterface: function (childInterface, baseType, prototype) {
/// Intended for use by v4 print driver JavaScript Intellisense.
childInterface.__class = true;
if (prototype) {
childInterface.prototype = prototype;
}
if (baseType) {
childInterface.__baseType = baseType;
childInterface.__basePrototypePending = true;
v4PrintDriverIntellisense.resolveInheritance(childInterface);
}
},
appendInterfaceMethods: function (baseType, prototype) {
/// Intended for use by v4 print driver JavaScript Intellisense.
for (var memberName in prototype) {
baseType.prototype[memberName] = prototype[memberName];
}
},
resolveInheritance: function (childInterface) {
/// Intended for use by v4 print driver JavaScript Intellisense.
var baseType = childInterface.__baseType;
if (!baseType) {
return;
}
if (baseType.__baseType) {
resolveInheritance(baseType);
}
if (!childInterface.__basePrototypePending) {
return;
}
for (var memberName in baseType.prototype) {
var memberValue = baseType.prototype[memberName];
if (!childInterface.prototype[memberName]) {
childInterface.prototype[memberName] = memberValue;
}
}
delete childInterface.__basePrototypePending;
}
}
IPrintSchemaElement = function () { }
v4PrintDriverIntellisense.createInterface(
IPrintSchemaElement,
null,
{
///
/// Property-get maps to COM IPrintSchemaElement::XmlNode.
///
XmlNode: null,
///
/// Property-get maps to COM IPrintSchemaElement::Name.
///
Name: null,
///
/// Property-get maps to COM IPrintSchemaElement::NamespaceUri.
///
NamespaceUri: null
});
IPrintSchemaDisplayableElement = function () { }
v4PrintDriverIntellisense.createInterface(
IPrintSchemaDisplayableElement,
IPrintSchemaElement,
{
///
/// Property-get maps to COM IPrintSchemaDisplayableElement::DisplayName.
///
DisplayName: null
});
IPrintSchemaOption = function () { }
v4PrintDriverIntellisense.createInterface(
IPrintSchemaOption,
IPrintSchemaDisplayableElement,
{
///
/// Property-get maps to COM IPrintSchemaOption::Selected.
///
Selected: null,
///
/// Property-get maps to COM IPrintSchemaOption::Constrained.
///
Constrained: null,
GetPropertyValue: function (name, namespaceUri) {
///
/// Method maps to COM IPrintSchemaOption::GetPropertyValue.
///
///
///
///
},
///
/// Property-get maps to COM IPrintSchemaNUpOption::PagesPerSheet. Valid for NUp option only.
///
PagesPerSheet: null,
///
/// Property-get maps to COM IPrintSchemaPageMediaSizeOption::WidthInMicrons. Valid for PageMediaSize option only.
///
WidthInMicrons: null,
///
/// Property-get maps to COM IPrintSchemaPageMediaSizeOption::HeightInMicrons. Valid for PageMediaSize option only.
///
HeightInMicrons: null
});
IPrintSchemaOptionCollection = function () { }
v4PrintDriverIntellisense.createInterface(
IPrintSchemaOptionCollection,
null,
{
///
/// Property-get maps to COM IPrintSchemaOptionCollection::Count.
///
Count: null,
GetAt: function (index) {
///
/// Property-get maps to COM IPrintSchemaOptionCollection::GetAt.
///
///
///
}
});
IPrintSchemaFeature = function () { }
v4PrintDriverIntellisense.createInterface(
IPrintSchemaFeature,
IPrintSchemaDisplayableElement,
{
///
/// Property-set/get maps to COM IPrintSchemaFeature::SelectedOption.
///
SelectedOption: null,
///
/// Property-get maps to COM IPrintSchemaFeature::SelectionType.
///
SelectionType: null,
GetOption: function (name, namespaceUri) {
///
/// Method maps to COM IPrintSchemaFeature::GetOption.
///
///
///
///
},
///
/// Property-get maps to COM IPrintSchemaFeature::DisplayUI.
///
DisplayUI: null
});
IPrintSchemaPageImageableSize = function () { }
v4PrintDriverIntellisense.createInterface(
IPrintSchemaPageImageableSize,
IPrintSchemaElement,
{
///
/// Property-get maps to COM IPrintSchemaPageImageableSize::ImageableSizeWidthInMicrons.
///
ImageableSizeWidthInMicrons: null,
///
/// Property-get maps to COM IPrintSchemaPageImageableSize::ImageableSizeHeightInMicrons.
///
ImageableSizeHeightInMicrons: null,
///
/// Property-get maps to COM IPrintSchemaPageImageableSize::OriginWidthInMicrons.
///
OriginWidthInMicrons: null,
///
/// Property-get maps to COM IPrintSchemaPageImageableSize::OriginHeightInMicrons.
///
OriginHeightInMicrons: null,
///
/// Property-get maps to COM IPrintSchemaPageImageableSize::ExtentWidthInMicrons.
///
ExtentWidthInMicrons: null,
///
/// Property-get maps to COM IPrintSchemaPageImageableSize::ExtentHeightInMicrons.
///
ExtentHeightInMicrons: null
});
IPrintSchemaCapabilities = function () { }
v4PrintDriverIntellisense.createInterface(
IPrintSchemaCapabilities,
IPrintSchemaElement,
{
GetFeatureByKeyName: function (keyName) {
///
/// Method maps to COM IPrintSchemaCapabilities::GetFeatureByKeyName.
///
///
///
},
GetFeature: function (name, namespaceUri) {
///
/// Method maps to COM IPrintSchemaCapabilities::GetFeature.
///
///
///
///
},
///
/// Property-get maps to COM IPrintSchemaCapabilities::PageImageableSize.
///
PageImageableSize: null,
///
/// Property-get maps to COM IPrintSchemaCapabilities::JobCopiesAllDocumentsMinValue.
///
JobCopiesAllDocumentsMinValue: null,
///
/// Property-get maps to COM IPrintSchemaCapabilities::JobCopiesAllDocumentsMaxValue.
///
JobCopiesAllDocumentsMaxValue: null,
GetSelectedOptionInPrintTicket: function (feature) {
///
/// Method maps to COM IPrintSchemaCapabilities::GetSelectedOptionInPrintTicket.
///
///
///
},
GetOptions: function (feature) {
///
/// Method maps to COM IPrintSchemaCapabilities::GetOptions.
///
///
///
}
});
IPrintSchemaTicket = function () { }
v4PrintDriverIntellisense.createInterface(
IPrintSchemaTicket,
IPrintSchemaElement,
{
GetFeatureByKeyName: function (keyName) {
///
/// Method maps to COM IPrintSchemaTicket::GetFeatureByKeyName.
///
///
///
},
GetFeature: function (name, namespaceUri) {
///
/// Method maps to COM IPrintSchemaTicket::GetFeature.
///
///
///
///
},
NotifyXmlChanged: function () {
///
/// Method maps to COM IPrintSchemaTicket::NotifyXmlChanged.
///
},
GetCapabilities: function () {
///
/// Method maps to COM IPrintSchemaTicket::GetCapabilities.
///
///
},
///
/// Property-get/put maps to IPrintSchemaTicket::JobCopiesAllDocuments.
///
JobCopiesAllDocuments: null
});
IPrinterScriptableSequentialStream = function () { }
v4PrintDriverIntellisense.createInterface(
IPrinterScriptableSequentialStream,
null,
{
Read: function (count) {
///
/// Method maps to COM IPrinterScriptableSequentialStream::Read.
///
///
///
},
Write: function (array) {
///
/// Method maps to COM IPrinterScriptableSequentialStream::Write.
///
///
///
}
});
IPrinterScriptableStream = function () { }
v4PrintDriverIntellisense.createInterface(
IPrinterScriptableStream,
IPrinterScriptableSequentialStream,
{
Commit: function () {
///
/// Method maps to COM IPrinterScriptableStream::Commit.
///
},
Seek: function (offset, streamSeek) {
///
/// Method maps to COM IPrinterScriptableStream::Seek
///
///
///
///
},
SetSize: function (size) {
///
/// Method maps to COM IPrinterScriptableStream::SetSize.
///
///
}
});
IPrinterScriptablePropertyBag = function () { }
v4PrintDriverIntellisense.createInterface(
IPrinterScriptablePropertyBag,
null,
{
GetBool: function (name) {
///
/// Method maps to COM IPrinterScriptablePropertyBag::GetBool.
///
///
///
},
SetBool: function (name, value) {
///
/// Method maps to COM IPrinterScriptablePropertyBag::SetBool.
///
///
///
},
GetInt32: function (name) {
///
/// Method maps to COM IPrinterScriptablePropertyBag::GetInt32.
///
///
///
},
SetInt32: function (name, value) {
///
/// Method maps to COM IPrinterScriptablePropertyBag::SetInt32.
///
///
///
},
GetString: function (name) {
///
/// Method maps to COM IPrinterScriptablePropertyBag::GetString.
///
///
///
},
SetString: function (name, value) {
///
/// Method maps to COM IPrinterScriptablePropertyBag::SetString.
///
///
///
},
GetReadStream: function (name) {
///
/// Method maps to COM IPrinterScriptablePropertyBag::GetReadStream.
///
///
///
},
GetWriteStream: function (name) {
///
/// Method maps to COM IPrinterScriptablePropertyBag::GetWriteStream.
///
///
///
}
});
IPrinterScriptContext = function () { }
v4PrintDriverIntellisense.createInterface(
IPrinterScriptContext,
null,
{
///
/// Property-get maps to COM IPrinterScriptContext::DriverProperties.
///
DriverProperties: null,
///
/// Property-get maps to COM IPrinterScriptContext::QueueProperties.
///
QueueProperties: null,
///
/// Property-get maps to COM IPrinterScriptContext::UserProperties.
///
UserProperties: null
});
IPrinterBidiSchemaElement = function () { }
v4PrintDriverIntellisense.createInterface(
IPrinterBidiSchemaElement,
null,
{
///
/// Property-get maps to COM IPrinterBidiSchemaElement::Name.
///
Name: null,
///
/// Property-get maps to COM IPrinterBidiSchemaElement::BidiType.
///
BidiType: null,
///
/// Property-get maps to COM IPrinterBidiSchemaElement::Value.
///
Value: null
});
IPrinterBidiSchemaResponses = function () { }
v4PrintDriverIntellisense.createInterface(
IPrinterBidiSchemaResponses,
null,
{
AddNull: function (schema) {
///
/// Method maps to COM IPrinterBidiSchemaResponses::AddNull.
///
///
},
AddString: function (schema, value) {
///
/// Method maps to COM IPrinterBidiSchemaResponses::AddString.
///
///
///
},
AddText: function (schema, value) {
///
/// Method maps to COM IPrinterBidiSchemaResponses::AddText.
///
///
///
},
AddEnum: function (schema, value) {
///
/// Method maps to COM IPrinterBidiSchemaResponses::AddEnum.
///
///
///
},
AddInt32: function (schema, value) {
///
/// Method maps to COM IPrinterBidiSchemaResponses::AddInt32.
///
///
///
},
AddBool: function (schema, value) {
///
/// Method maps to COM IPrinterBidiSchemaResponses::AddBool.
///
///
///
},
AddFloat: function (schema, value) {
///
/// Method maps to COM IPrinterBidiSchemaResponses::AddFloat.
///
///
///
},
AddBlob: function (schema, array) {
///
/// Method maps to COM IPrinterBidiSchemaResponses::AddBlob.
///
///
///
},
AddRequeryKey: function (queryKey) {
///
/// Method maps to COM IPrinterBidiSchemaResponses::AddRequeryKey.
///
///
}
});