Lines Matching refs:if
58 if (selectedPrinter < 0)
62 if (printerName == localStrings.getString('printToPDF')) {
82 if (disableColorOption != colorOption.disabled) {
87 if (colorOption.checked != setColorAsDefault) {
102 if (disable)
110 * button and collate checkbox. If the specified value is invalid, displays an
117 if (!isNumberOfCopiesValid())
144 * @return {boolean} true if the number of copies is valid else returns false.
148 if (copiesFieldText == '')
156 * Checks the value of the copies field. If it is a valid number it does
157 * nothing. If it can only parse the first part of the string it replaces the
159 * If the string can't be parsed at all it replaces with 1.
164 if (isNaN(copies))
173 * If it can't parse the whole string it will replace with the part it parsed.
174 * For example: '1-6,9-10,sd343jf' becomes '1-6, 9-10'. If the specified page
185 if (pageRanges[i].from == pageRanges[i].to)
189 if (i < pageRanges.length - 1)
199 * @return {boolean} true if layout is 'landscape'.
208 * @return {boolean} true if color is 'color'.
217 * @return {boolean} true if collate setting is enabled and checked.
225 * Returns the number of copies currently indicated in the copies textfield. If
226 * the contents of the textfield can not be converted to a number or if <1 it
233 if (!copies || copies <= 1)
241 * @return {boolean} true if two-sided is checked.
256 if (selectedPrinter >= 0)
298 if (i == defaultPrinterIndex)
317 * @param {boolean} color is true if the PDF plugin should display in color.
320 if (!hasPDFPlugin) {
330 if (isLandscape())
346 if (totalPageCount == -1)
350 if (previouslySelectedPages.length == 0)
368 if (!hasPDFPlugin) {
373 if (!$('printer-list').disabled) {
378 if (pdfViewer) {
393 if (!pdfPlugin.onload) {
406 * If the user has selected 'All' pages option, enables the print button.
407 * If the user has selected a page range, depending on the validity of page
438 if (isNaN($('copies').value)) {
445 if (pageList.length <= 0) {
463 if (pageList.length > 1)
466 if (isTwoSided())
469 if (copies > 1) {
475 if ((copies > 1) || (isTwoSided())) {
478 if (isTwoSided())
519 * Even if they are still valid the content of these pages will be different.
530 * Returns a list of all pages in the specified ranges. If the page ranges can't
538 if ($('all-pages').checked || pageText == '')
548 if (match && match[1] && match[2]) {
552 if (from && to) {
554 if (j <= totalPageCount)
557 } else if (parseInt(part, 10)) {
558 if (parseInt(part, 10) <= totalPageCount)
604 * 'all-pages' checkbox, a new print preview is requested, only if
611 if (currentlySelectedPages.length == 0)
613 if (areArraysEqual(previouslySelectedPages, currentlySelectedPages))
621 * Returns true if the contents of the two arrays are equal.
624 if (array1.length != array2.length)
627 if(array1[i] != array2[i])