Example #1
0
        internal override sealed bool AddOptionCallback(PrintCapabilityOption baseOption)
        {
            bool added = false;

            OutputQualityOption option = baseOption as OutputQualityOption;

            // validate the option is complete before adding it to the collection
            if (option._optionName != null)
            {
                int enumValue = PrintSchemaMapper.SchemaNameToEnumValueWithArray(
                    PrintSchemaTags.Keywords.PageOutputQualityKeys.OutputQualityNames,
                    PrintSchemaTags.Keywords.PageOutputQualityKeys.OutputQualityEnums,
                    option._optionName);

                if (enumValue > 0)
                {
                    option._value = (OutputQuality)enumValue;
                    this.OutputQualityOptions.Add(option);
                    added = true;
                }
            }

            return(added);
        }
Example #2
0
        internal override sealed PrintCapabilityOption NewOptionCallback(PrintCapabilityFeature baseFeature)
        {
            OutputQualityOption option = new OutputQualityOption(baseFeature);

            return(option);
        }