summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Printing/common/org/eclipse/swt/printing/PrinterData.java6
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java16
2 files changed, 12 insertions, 10 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/common/org/eclipse/swt/printing/PrinterData.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/common/org/eclipse/swt/printing/PrinterData.java
index 98ef20c813..c098b83c19 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Printing/common/org/eclipse/swt/printing/PrinterData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/common/org/eclipse/swt/printing/PrinterData.java
@@ -64,12 +64,14 @@ public final class PrinterData extends DeviceData {
public int scope = ALL_PAGES;
/**
- * the start page of a page range, used when scope is PAGE_RANGE
+ * the start page of a page range, used when scope is PAGE_RANGE.
+ * This value can be from 1 to the maximum number of pages for the platform.
*/
public int startPage = 0;
/**
- * the end page of a page range, used when scope is PAGE_RANGE
+ * the end page of a page range, used when scope is PAGE_RANGE.
+ * This value can be from 1 to the maximum number of pages for the platform.
*/
public int endPage = 0;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java
index 337edc6aa9..ae8f85e414 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java
@@ -126,8 +126,8 @@ public void setScope(int scope) {
* Returns the start page setting that the user selected
* before pressing OK in the dialog.
* <p>
- * Note that this value is one based and only valid if the scope is
- * <code>PAGE_RANGE</code>.
+ * This value can be from 1 to the maximum number of pages for the platform.
+ * Note that it is only valid if the scope is <code>PAGE_RANGE</code>.
* </p>
*
* @return the start page setting that the user selected
@@ -140,8 +140,8 @@ public int getStartPage() {
* Sets the start page that the user will see when the dialog
* is opened.
* <p>
- * Note that this value is one based and only valid if the scope is
- * <code>PAGE_RANGE</code>.
+ * This value can be from 1 to the maximum number of pages for the platform.
+ * Note that it is only valid if the scope is <code>PAGE_RANGE</code>.
* </p>
*
* @param startPage the startPage setting when the dialog is opened
@@ -154,8 +154,8 @@ public void setStartPage(int startPage) {
* Returns the end page setting that the user selected
* before pressing OK in the dialog.
* <p>
- * Note that this value is one based and only valid if the scope is
- * <code>PAGE_RANGE</code>.
+ * This value can be from 1 to the maximum number of pages for the platform.
+ * Note that it is only valid if the scope is <code>PAGE_RANGE</code>.
* </p>
*
* @return the end page setting that the user selected
@@ -168,8 +168,8 @@ public int getEndPage() {
* Sets the end page that the user will see when the dialog
* is opened.
* <p>
- * Note that this value is one based and only valid if the scope is
- * <code>PAGE_RANGE</code>.
+ * This value can be from 1 to the maximum number of pages for the platform.
+ * Note that it is only valid if the scope is <code>PAGE_RANGE</code>.
* </p>
*
* @param endPage the end page setting when the dialog is opened