(クラス)
public BasePrintRootFrame
{inherits
RootFrame}
印刷に使用する RootFrame。
プログラミング注意事項
注意事項
このオブジェクトは、"PrintRootFrame"のスタイル ルールを記述することによりスタイル化することが出来ます。
コンストラクタ public | {BasePrintRootFrame.default owner-view:#View = {View.get-default-owner},orientation:PageOrientation = PageOrientation.default,from-page:int = 1,to-page:int = max-int,print-margin:#PRINTER.PrintMargin = null,printer-name:#String = null,page-description:#PRINTER.PrintPageDescription = null,media-source:#PRINTER.PrintMediaSource = null,color:PRINTER.PrintSettingBool = PRINTER.PrintSettingBool.default,collate:PRINTER.PrintSettingBool = PRINTER.PrintSettingBool.default,duplex:PRINTER.PrintDuplex = PRINTER.PrintDuplex.default,copies:int = 1,... } |
フィールド public-get protected-set BasePrintRootFrame.bottom-margin:
Distance
フィールド public-get protected-set BasePrintRootFrame.bottom-unprintable-margin:
Distance
フィールド public-get private-set BasePrintRootFrame.copies:
int =1
フィールド public-get private-set BasePrintRootFrame.from-page:
int =1
フィールド public-get protected-set BasePrintRootFrame.left-margin:
Distance
フィールド public-get protected-set BasePrintRootFrame.left-unprintable-margin:
Distance
フィールド protected BasePrintRootFrame.number-of-pages-printed:
int =0
フィールド public-get private-set BasePrintRootFrame.orientation:
PageOrientation
フィールド public-get protected-set BasePrintRootFrame.page-height:
Distance
フィールド public-get protected-set BasePrintRootFrame.page-size-valid?:
bool =false
フィールド public-get protected-set BasePrintRootFrame.page-width:
Distance
フィールド public-get private-set BasePrintRootFrame.range-type:
PrintRangeSelection =PrintRangeSelection.all
フィールド public-get protected-set BasePrintRootFrame.right-margin:
Distance
フィールド public-get protected-set BasePrintRootFrame.right-unprintable-margin:
Distance
アクセサ public BasePrintRootFrame.style-element:
String
フィールド public-get private-set BasePrintRootFrame.to-page:
int =max-int
フィールド public-get protected-set BasePrintRootFrame.top-margin:
Distance
フィールド public-get protected-set BasePrintRootFrame.top-unprintable-margin:
Distance プロパティ 継承 Graphic:
avoid-page-break?, border-color, border-spec, border-style, border-width, cell-border-spec, cell-border-width, cell-margin, discrete-select-in-range?, display-context, enabled?, graphic-selectable, horigin, is-paginating?, layout, margin, opaque-to-events?, outside-margin, pagination-state, parent, possibly-displayed?, selection-context, shadow-color, shadow-spec, visible?, visual-parent, vorigin プロパティ 継承 Visual:
_style-element, cursor, data-source, dragee, font-size, graphical-parent, has-key-focus?, input-method-enabled?, input-method-keyboard-mode, name, options, style-class, style-manager, style-options, test-child?, test-description, test-name, test-parent?, test-type-name, test-visible?, tooltip, user-data
protected | {BasePrintRootFrame.compute-initial-size}:void |
public | {BasePrintRootFrame.done-printing}:void |
draw: | このオブジェクトの可視表現を描画します。 |
public | {BasePrintRootFrame.print-page}:void |
public | {BasePrintRootFrame.request-draw-rect-in-root rect:GRect}:void |
public | {BasePrintRootFrame.request-pointer-trace}:void |
public | {BasePrintRootFrame.validate-layout}:void |
メソッド 継承 RootFrame:
change-height, change-width, compute-default-bounds, compute-default-bounds-recur, fire-event-in-envelope, get-bounds, get-elastic-bounds-into, get-layout-context, get-nonparent-bounds-into, get-top-left-in-ancestor, get-visible-bounds-into, get-visible-rect-in-root-into, propagate-request-layout, request-draw, request-draw-rect, set-layout, set-size-from-child, validate-layout-recur メソッド 継承 BaseFrame:
add-internal, after-reposition, allocate-layout-object, attempt-revalidate-layout, before-reposition, compute-child-bounds, compute-parent-elastic, constrain-height, constrain-width, end-pagination, get-height-preference, get-text, get-width-preference, install-child-bounds, internal-remove-child, note-attached, note-detaching, notify-option-children, paginate, pick-child, register-options, set-size メソッド 継承 Graphic:
create-pagination-state, detach, draw-range-as-selected, draw-shadow, find-ancestor, find-graphical-ancestor, fire-inferior-crossing-event, get-graphical-root, get-gui-path, get-origin-in-graphical-ancestor, get-origin-in-root, get-pagination-state, on-drag-enter, on-inspection, on-pointer-enter, option-changed, paint-with-decorations, replace-with, search-next, search-prev, start-pagination, xy-offset-to メソッド 継承 Visual:
add-from-init-args, animate, change-cursor, clonable-appearance?, clone-appearance, get-focus-manager, get-test-parent, get-test-property, get-view, maybe-fire-attach-event, maybe-fire-detach-event, non-keyword-init-arg, note-caret-position, on-drag-leave, on-pointer-leave, pop-cursor, prepare-test-object, prepare-test-parent, push-cursor, quantize-width, refresh-style-options, release-key-focus, request-key-focus, scroll-to-include, test-record, test-run, transform-from-display-coordinates, transform-from-graphical-root-coordinates, transform-to-display-coordinates, transform-to-graphical-root-coordinates メソッド 継承 GuiEventTarget:
handle-delegate-event, handle-event, on-action, on-cancel-mode, on-command-changed, on-commit, on-composition-change-event, on-composition-result-event, on-context-menu-event, on-current-record-change-request, on-current-record-changed, on-destroy-notify, on-destroy-requested, on-drag-over, on-drag-pointer, on-drag-started, on-drop, on-end-composition-event, on-focus-event, on-focus-in, on-focus-out, on-gesture, on-gesture-begin, on-gesture-end, on-gesture-magnify, on-gesture-pan, on-gesture-rotate, on-gesture-swipe, on-gesture-tap, on-gesture-touch, on-grab-release, on-gui-event, on-input-method-event, on-key-event, on-key-press, on-pointer-button, on-pointer-crossing, on-pointer-event, on-pointer-motion, on-pointer-press, on-pointer-release, on-pointer-scroll, on-raw-key-event, on-raw-key-press, on-raw-key-release, on-reset, on-selectable-added, on-selectable-removed, on-selection-changed, on-selection-context-activated, on-selection-context-deactivated, on-selection-event, on-start-composition-event, on-start-event, on-stop-event, on-view-activate, on-view-deactivate, on-window-close, remove-event-handlers-for-event-class メソッド 継承 OptionListInterface:
add-option, add-style-option, change-option-parent-notify, clone-options, get-option, get-option-by-name, keyword-init-arg, local-add-notify, local-remove-notify, name-to-option-key, new-option-item, option-change-notify, option-lookup, option-lookup-here, option-propagate-notify, option-set?, propagate-option-change, remove-option, remove-style-option, remove-styles, set-option-by-name, set-style-option-by-name, unset-option-by-name, unset-style-option-by-name
(コンストラクタ)
public | {BasePrintRootFrame.default owner-view:#View = {View.get-default-owner},orientation:PageOrientation = PageOrientation.default,from-page:int = 1,to-page:int = max-int,print-margin:#PRINTER.PrintMargin = null,printer-name:#String = null,page-description:#PRINTER.PrintPageDescription = null,media-source:#PRINTER.PrintMediaSource = null,color:PRINTER.PrintSettingBool = PRINTER.PrintSettingBool.default,collate:PRINTER.PrintSettingBool = PRINTER.PrintSettingBool.default,duplex:PRINTER.PrintDuplex = PRINTER.PrintDuplex.default,copies:int = 1,... } |
このタイプの新しいオブジェクトを作成します。
owner-view:
ポップアップ印刷ダイアログ ボックスのオーナー
View を指定します。
オーナーの指定がない場合、
GuiManager によって既定のオーナーが選択されます (可能な場合)。
ダイアログがオーナーを持たない場合、null を使用します。
from-page: 印刷開始ページ番号。
to-page: 印刷する最終ページ。
printer-name:
非 null で、ターゲットとなるプリンタが見つからない場合、show-dialog? が false であればエラーがスローされます。そうでなければ、printer-name は null として扱われます。
既定では、null です。
page-description:
ターゲットとなるプリンタがサポートしていない場合、このパラメータは無視されます。
media-source:
対象となるプリンタがサポートしていない場合、このパラメータは無視されます。
color:
指定された場合、プリンタ出力をカラー (yes) か、モノクロ (no) か指定することが出来ます。
このパラメータは、対象のプリンタがこの機能をサポートしない場合、無視されます。
collate:
指定された場合、複数部印刷する時プリンタが部単位で印刷するかを指定することが出来ます。
このパラメータは、対象のプリンタがこの機能をサポートしない場合、無視されます。
duplex:
指定された場合、両面印刷の方法を指定することが出来ます。
このパラメータは、対象のプリンタがこの機能をサポートしない場合、無視されます。
...:
残余引数は、イベント ハンドラかグラフィック オプションになります。
更に、一つの引数を追加することができます。この引数が存在する場合、新しく作成されたオブジェクトの子として追加される
Graphic にキャストされます。
注意事項
この API は、低レベルの目的のために存在します。グラフィカル オブジェクトを印刷するために必要なアプリケーション コードは、通常
print-graphic を使用します。
(フィールド)
public-get protected-set BasePrintRootFrame.bottom-margin:
Distance ページの下のマージンから、ページの下の端のマージンまでのオフセットです。
説明
導入:
バージョン 6.0
(フィールド)
public-get protected-set BasePrintRootFrame.bottom-unprintable-margin:
Distance ページ下部の、印刷不可能領域の高さ。
説明
印刷デバイスによっては、ページの端まで印刷できないように設計されている場合があります。この値は、ページ底辺から印刷可能なページ最下部のポイントまでの距離 (ポイント単位) です。
(フィールド)
public-get private-set BasePrintRootFrame.copies:
int =1
(フィールド)
public-get private-set BasePrintRootFrame.from-page:
int =1
印刷開始ページ番号。
注意事項
PrintRootFrame.from-page が総ページ数より大きい場合は、ページの印刷は行いません。
(フィールド)
public-get protected-set BasePrintRootFrame.left-margin:
Distance ページの左のマージンから、ページの左の端のマージンまでのオフセットです。
説明
導入:
バージョン 6.0
(フィールド)
public-get protected-set BasePrintRootFrame.left-unprintable-margin:
Distance ページ左側の、印刷不可能領域の幅。
説明
印刷デバイスによっては、ページの端まで印刷できないように設計されている場合があります。この値は、ページ左端から印刷可能な一番左のポイントまでの距離 (ポイント単位) です。
(フィールド)
protected BasePrintRootFrame.number-of-pages-printed:
int =0
""
(フィールド)
(フィールド)
public-get protected-set BasePrintRootFrame.page-height:
Distance ページの高さ (ポイント単位)。
注意事項
印刷可能なページの高さは、ページの高さから印刷不可能な上と下のマージンを引いたものです。
(フィールド)
public-get protected-set BasePrintRootFrame.page-size-valid?:
bool =false
PrintRootFrame のページ サイズが有効であるかどうかを示します。
プログラミング注意事項
無効なページ サイズが設定されたデバイスには印刷できません。ただし、使用する印刷デバイスが不明な場合は、デバイスのページ サイズが無効かどうかは分かりません。したがって、
PrintRootFrame を作成してから、使用前にページ サイズが有効であることを確認します。
(フィールド)
public-get protected-set BasePrintRootFrame.page-width:
Distance ページの幅 (ポイント単位)。
注意事項
印刷可能なページの幅は、ページの幅から印刷不可能な左と右のマージンを引いたものです。
(フィールド)
public-get private-set BasePrintRootFrame.range-type:
PrintRangeSelection =PrintRangeSelection.all
印刷ダイアログ ボックスで選択された印刷範囲のタイプを指定します。
注意事項
(フィールド)
public-get protected-set BasePrintRootFrame.right-margin:
Distance ページの右のマージンから、ページの右の端のマージンまでのオフセットです。
説明
導入:
バージョン 6.0
(フィールド)
public-get protected-set BasePrintRootFrame.right-unprintable-margin:
Distance ページ右側の、印刷不可能領域の幅。
説明
印刷デバイスによっては、ページの端まで印刷できないように設計されている場合があります。この値は、ページ右端から印刷可能な一番右のポイントまでの距離 (ポイント単位) です。
(アクセサ)
アクセサ public BasePrintRootFrame.style-element:
String スタイリングの目的のための、この Visual の "要素" や "型" です。
説明
オーバーライド
Visual のサブクラスのスタイルが他のオブジェクトと異なる場合、このゲッターは適切な文字列を返すようにオーバーライドされる必要があります。 慣例では,この文字列はクラス名または、オブジェクトを生成するマークアップの名前です。
オーバーライドでは、空の文字列でないかぎり、self._style-elementを返さなければなりません。
導入:
バージョン 6.0
(フィールド)
public-get private-set BasePrintRootFrame.to-page:
int =max-int
印刷する最終ページ。
注意事項
PrintRootFrame.to-page が総ページ数より大きい場合は、PrintRange.to-page を総ページ数とみなします。
(フィールド)
public-get protected-set BasePrintRootFrame.top-margin:
Distance ページの上のマージンから、ページの上の端のマージンまでのオフセットです。
説明
導入:
バージョン 6.0
(フィールド)
public-get protected-set BasePrintRootFrame.top-unprintable-margin:
Distance ページ上部の、印刷不可能領域の高さ。
説明
印刷デバイスによっては、ページの端まで印刷できないように設計されている場合があります。この値は、ページ上端から印刷可能な最上部のポイントまでの距離 (ポイント単位) です。
(メソッド)
protected | {BasePrintRootFrame.compute-initial-size}:void |
(メソッド)
public | {BasePrintRootFrame.done-printing}:void |
PrintRootFrame の印刷セッションを終了します。
説明
このメソッドが呼び出されるとページは印刷できなくなり、印刷を実行するとエラーが発生します。
このオブジェクトの使用については、
PrintRootFrame を参照してください。
注意事項
このメソッドでは、印刷されたページ数を示すダイアログがポップアップする場合があります。
(メソッド)
このオブジェクトの可視表現を描画します。
オーバーライド
(メソッド)
public | {BasePrintRootFrame.print-page}:void |
(メソッド)
public | {BasePrintRootFrame.request-draw-rect-in-root rect:GRect}:void |
RootFrame の座標系にすでに存在する GRect によって記述される領域の再ペイント処理を要求します。
説明
再ペイントされる領域は、グラフィカル階層のルートの座標系に関連して記述されます。
プログラミング注意事項
(メソッド)
public | {BasePrintRootFrame.request-pointer-trace}:void |
表示されたオブジェクトの幾何形状が変更されていることを宣言し、必要な PointerCrossing イベントの発生を要求します。
説明
オーバーライド
ポイント (x,y) を含む子オブジェクトの識別に (x,y) の位置をマップする、キャッシュされた状態を格納する
SequenceBox のようなサブクラスによってオーバーライドできます。こうした状態はリセットして、グラフィック階層のオブジェクトの幾何形状が変更されても新しい
PointerEnvelopeEvent が適切に送信されるようにします。このメソッドをオーバーライドする場合、オーバーライド メソッドには以下の呼び出しを含めます。
{super.request-pointer-trace}
(メソッド)
public | {BasePrintRootFrame.validate-layout}:void |
Box のレイアウトを有効にします。
プログラミング注意事項
このメソッドは、境界および原点の位置についての情報のクエリができるように Box のレイアウトを有効にする必要があるときに呼び出されます。このメソッドは、一般に、レイアウト システムの一部をなすコードによってのみ呼び出されます。
オーバーライド
この抽象メソッドは、Box の 具象サブクラスによって、必要なアクションを実際に実行するコードでオーバーライドされなければなりません。