Translation5:Buttons
From IDMLWiki
Contents |
Button
<Button>エレメントはボタンのアピアランスを指定するページオブジェクトと、動作を指定する属性を含む<State>エレメントを含むことができます。InDesignでボタンの設定をしたオブジェクトは、PDFやSWFに書き出したときにインタラクティブな効果をもたらします。
スキーマの例66 Button
Button_Object = element Button {
attribute Self { xsd:string },
attribute VisibilityInPdf { VisibilityInPdf_EnumValue }?,
attribute Name { xsd:string }?,
attribute Description { xsd:string }?,
attribute AllowOverrides { xsd:boolean }?,
attribute FillColor { xsd:string }?,
attribute FillTint { xsd:double }?,
attribute OverprintFill { xsd:boolean }?,
attribute CornerRadius { xsd:double }?,
attribute StrokeWeight { xsd:double }?,
attribute MiterLimit { xsd:double {minInclusive="1" maxInclusive="500"} }?,
attribute EndCap { EndCap_EnumValue }?,
attribute EndJoin { EndJoin_EnumValue }?,
attribute StrokeType { xsd:string }?,
attribute StrokeCornerAdjustment { StrokeCornerAdjustment_EnumValue }?,
attribute StrokeDashAndGap { list { xsd:double * } }?,
attribute LeftLineEnd { ArrowHead_EnumValue }?,
attribute RightLineEnd { ArrowHead_EnumValue }?,
attribute StrokeColor { xsd:string }?,
attribute StrokeTint { xsd:double }?,
attribute GradientFillStart { UnitPointType_TypeDef }?,
attribute GradientFillLength { xsd:double }?,
attribute GradientFillAngle { xsd:double }?,
attribute GradientStrokeStart { UnitPointType_TypeDef }?,
attribute GradientStrokeLength { xsd:double }?,
attribute GradientStrokeAngle { xsd:double }?,
attribute OverprintStroke { xsd:boolean }?,
attribute GapColor { xsd:string }?,
attribute GapTint { xsd:double }?,
attribute OverprintGap { xsd:boolean }?,
attribute StrokeAlignment { StrokeAlignment_EnumValue }?,
attribute Nonprinting { xsd:boolean }?,
attribute ItemLayer { xsd:string }?,
attribute Locked { xsd:boolean }?,
attribute LocalDisplaySetting { DisplaySettingOptions_EnumValue }?,
attribute GradientFillHiliteLength { xsd:double }?,
attribute GradientFillHiliteAngle { xsd:double }?,
attribute GradientStrokeHiliteLength { xsd:double }?,
attribute GradientStrokeHiliteAngle { xsd:double }?,
attribute AppliedObjectStyle { xsd:string }?,
attribute CornerOption { CornerOptions_EnumValue }?,
attribute Visible { xsd:boolean }?,
attribute TopLeftCornerOption { CornerOptions_EnumValue }?,
attribute TopRightCornerOption { CornerOptions_EnumValue }?,
attribute BottomLeftCornerOption { CornerOptions_EnumValue }?,
attribute BottomRightCornerOption { CornerOptions_EnumValue }?,
attribute TopLeftCornerRadius { xsd:double }?,
attribute TopRightCornerRadius { xsd:double }?,
attribute BottomLeftCornerRadius { xsd:double }?,
attribute BottomRightCornerRadius { xsd:double }?,
attribute ItemTransform { TransformationMatrixType_TypeDef }?,
element Properties {element PathBoundingBox { RectangleBoundsType_TypeDef }?&
element PathGeometry { element GeometryPathType { GeometryPathType_TypeDef }*
}?&
element Label { element KeyValuePair { KeyValuePair_TypeDef }*
}?
}?,((TransparencySetting_Object?&
AnchoredObjectSetting_Object?&TextWrapPreference_Object?&AnimationSetting_Object?),
TimingSetting_Object?,(State_Object*&
Behavior_Object*&GotoFirstPageBehavior_Object*&GotoLastPageBehavior_Object*&GotoNextPageBehavior_Object*&GotoPreviousPageBehavior_Object*&GotoNextViewBehavior_Object*&GotoPreviousViewBehavior_Object*&GotoURLBehavior_Object*&GotoAnchorBehavior_Object*&MovieBehavior_Object*&SoundBehavior_Object*&ShowHideFieldsBehavior_Object*&OpenFileBehavior_Object*&ViewZoomBehavior_Object*&AnimationBehavior_Object*&GotoNextStateBehavior_Object*&GotoPreviousStateBehavior_Object*&GotoStateBehavior_Object*&GotoPageBehavior_Object*)
)}
<Button>エレメントのほとんどのプロパティは、他のページオブジェクトと共有されています。これらのプロパティについては、「共通のPageItemプロパティ」を参照してください。<Button>エレメントにのみあるプロパティは下記の通りです。
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Description | string | ボタンの詳細 | |
| Name | string | ボタンの名前 | |
| VisibilityInPdf | VisibilityInPdf_EnumValue | PDFでの表示/非表示。VisibleInPdf(表示可能)、HiddenInPdf(非表示)、VisibleButDoesNotPrintInPdf(表示可能・印刷不能)またはHiddenButPrintableInPdf(非表示・印刷可能) |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| PathBoundingBox | RectangleBoundsType_TypeDef | ボタンの境界線。[x1, y1, x2, y2] |
スキーマの例67 State
State_Object = element State {
attribute Self { xsd:string },
attribute Active { xsd:boolean }?,
attribute Enabled { xsd:boolean }?,
element Properties {element Statetype {(enum_type, StateTypes_EnumValue ) |
(long_type, xsd:int )
}?
}?,(Oval_Object*&Rectangle_Object*&GraphicLine_Object*&TextFrame_Object*&Polygon_Object*&Graphic_Object*&Image_Object*&EPS_Object*&WMF_Object*&PICT_Object*&PDF_Object*&Group_Object*&EPSText_Object*)}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Active | boolean | trueのとき、ステータスはアクティブ(もしくは最前面) | |
| Enabled | boolean | trueのとき、ステータスを使用しているオブジェクトは、PDFで表示される。falseのとき、ステータスを使用しているオブジェクトは、ステータスをアクティブにするイベント(マウスオーバーなど)が行われても、PDFで表示されない | |
| Statetype | StateTypes_EnumValue | ステータス。Up、RolloverまたはDown |
属性として表されるButtonプロパティは、他のページオブジェクトのものと同じです。(「共通のPageItemプロパティ」参照)<Button>エレメントと他のページオブジェクトのエレメントとの主な違いは、<Button>エレメントには<State>エレメント(書き出されたPDFまたはSWFにおいて、ある動きに対しての外観を設定する)と、1つ以上の「動作」オブジェクト(後述)があることです。ボタンのステータスと動作については、InDesignのオンラインヘルプを参照してください。
IDMLの例35 Button
<Button Self="ud6" Name="GoToFirstPage" Description="" FillColor=" Color/Black" ItemTransform=" 1 0 0 1 0 0"><Properties><PathBoundingBox Left="36" Top="-336.25" Right="76" Bottom="-312"/></Properties><State Self="ud6i0" Name="Up" Active="true" Enabled="true" Statetype="Up"><Group Self="ud5" FillColor=" Color/Black" ItemTransform=" 1 -0 -0 1 -0 -0"><Polygon Self="ucc" ContentType=" Unassigned" FillColor=" Color/Black" StrokeWeight=" 0" ItemTransform=" 1 0 0 1 0 0"><Properties><PathGeometry><GeometryPathType PathOpen=" false"><PathPointArray><PathPointType Anchor="36 -324" LeftDirection=" 36 -324" RightDirection=" 36 -324"/><PathPointType Anchor="60 -312" LeftDirection=" 60 -312" RightDirection=" 60 -312"/><PathPointType Anchor="60 -336.25" LeftDirection=" 60 -336.25" RightDirection=" 60 -336.25"/></PathPointArray></GeometryPathType></PathGeometry></Properties><TransparencySetting><BevelAndEmbossSetting Applied="true" Style="Emboss" Size="3"/></TransparencySetting></Polygon><Rectangle Self="ud3" StoryTitle="$ ID/" ContentType=" Unassigned" FillColor=" Color/Black" StrokeWeight=" 0" StrokeColor=" Swatch/None" ItemTransform=" 1 0 0 1 0 0"><Properties><PathGeometry><GeometryPathType PathOpen=" false"><PathPointArray><PathPointType Anchor="66 -336.25" LeftDirection=" 66 -336.25" RightDirection=" 66 -336.25"/><PathPointType Anchor="66 -312" LeftDirection=" 66 -312" RightDirection=" 66 -312"/><PathPointType Anchor="76 -312" LeftDirection=" 76 -312" RightDirection=" 76 -312"/><PathPointType Anchor="76 -336.25" LeftDirection=" 76 -336.25" RightDirection=" 76 -336.25"/></PathPointArray></GeometryPathType></PathGeometry></Properties><TransparencySetting><BevelAndEmbossSetting Applied="true" Style="Emboss" Size="3"/></TransparencySetting></Rectangle></Group></State><GotoFirstPageBehavior Self="ud7" ZoomSetting=" InheritZoom" Name="Go To First Page" EnableBehavior=" true" BehaviorEvent=" MouseDown"/></Button>

