Translation:Behaviors

From IDMLWiki

Jump to: navigation, search
動作(Behavior)

ドキュメントをPDF形式に書き出す際に特定の操作を実行するボタンを作成することができます。例えば、PDFドキュメントの別のページにジャンプするボタンや、ムービークリップを再生するボタンなどを作成することができます。これらを「動作」といいます。InDesignのボタン機能については、InDesignのドキュメントを参照してください。

スキーマの例37 Behavior
  1. Behavior_Object = element Behavior {
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }?,
  4.   attribute EnableBehavior{  xsd:boolean }?,
  5.   attribute BehaviorEvent{  BehaviorEvents_EnumValue }?,
  6.   element Properties {
  7.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  8.     }?
  9.   }
  10.   ?
  11. }

Behaviorエレメントのスキーマには、多くの共通点があるので、すべてのBehaviorエレメントに共通の属性を下記の表に示します。固有のものは別記します。

表43 属性としての共通のBehaviorプロパティ
名前 必須 説明
Name string 動作の名前
EnableBehavior boolean trueのとき、ボタンの動作は有効
BehaviorEvent BehaviorEvents_EnumValue 動作のトリガーとなるイベント。MouseUp、MouseDown、MouseEnter、MouseExit、OnFocusまたはOnBlur

GoToPage、GotoFirstPageBehavior、GotoLastPageBehavior、GotoNextPageBehavior、GotoPreviousPageBehavior、GotoNextViewBehaviorとGotoPreviousViewBehaviorエレメントには、ZoomSetting属性があります。

名前 必須 説明
ZoomSetting GoToZoomOptions_EnumValue 拡大縮小率。InheritZoom、FitWindow、FitWidth、FitVisibleまたはActualSize

GotoURLBehaviorエレメントにはURL属性があります。

名前 必須 説明
URL string ハイパーリンク先のURL

GotoAnchorBehaviorエレメントには、3つの属性が追加されます。ZoomSetting属性(上記参照)、AnchorName属性とFilePath属性です。

名前 必須 説明
AnchorName string アンカーの名前
FilePath string アンカーを含むファイルのパス

MovieBehaviorエレメントには、2つの属性が追加されます。MovieItem属性とOperation属性です。

名前 必須 説明
MovieItem string ムービーのパス
Operation PlayOperations_EnumValue Play、Stop、PauseまたはResume

SoundBehaviorエレメントには、2つの属性が追加されます。SoundItem属性とOperation属性です。

名前 必須 説明
SoundItem string 音声ファイルのパス
Operation PlayOperations_EnumValue Play、Stop、PauseまたはResume

ShowHideFieldsBehaviorエレメントには、2つの属性が追加されます。FieldsToShow属性とFieldsToHide属性です。

名前 必須 説明
FieldsToShow stringのリスト。スペースで区切る 表示するフィールドの参照リスト。(参照するエレメントのSelf属性の値)
FieldsToHide stringのリスト。スペースで区切る 非表示にするフィールドの参照リスト。(参照するエレメントのSelf属性の値)

OpenFileBehaviorエレメントには、FilePath属性が追加されます。

名前 必須 説明
FilePath string 開くファイルのパス

ViewZoomBehaviorエレメントには、ViewZoomStyle属性が追加されます。

名前 必須 説明
ViewZoomStyle ViewZoomStyle_EnumValue FullScreen、ZoomIn、ZoomOut、FitPage、ActualSize、FitWidth、FitVisible、Reflow、SinglePage、OneCulumn、TwoColumn、RotateCWまたはRotateCCW

GotoPageBehavilrエレメントには、2つの属性が追加されます。ViewZoomStyle属性(上記参照)とPageNumver属性です。

名前 必須 説明
PageNumver int 表示するページの番号
Personal tools