Translation5:Buttons

From IDMLWiki

Jump to: navigation, search

Contents

Button

<Button>エレメントはボタンのアピアランスを指定するページオブジェクトと、動作を指定する属性を含む<State>エレメントを含むことができます。InDesignでボタンの設定をしたオブジェクトは、PDFやSWFに書き出したときにインタラクティブな効果をもたらします。

スキーマの例66 Button
  1. Button_Object = element Button {
  2.   attribute Self { xsd:string },
  3.   attribute VisibilityInPdf { VisibilityInPdf_EnumValue }?,
  4.   attribute Name { xsd:string }?,
  5.   attribute Description { xsd:string }?,
  6.   attribute AllowOverrides { xsd:boolean }?,
  7.   attribute FillColor { xsd:string }?,
  8.   attribute FillTint { xsd:double }?,
  9.   attribute OverprintFill { xsd:boolean }?,
  10.   attribute CornerRadius { xsd:double }?,
  11.   attribute StrokeWeight { xsd:double }?,
  12.   attribute MiterLimit { xsd:double {minInclusive="1" maxInclusive="500"} }?,
  13.   attribute EndCap { EndCap_EnumValue }?,
  14.   attribute EndJoin { EndJoin_EnumValue }?,
  15.   attribute StrokeType { xsd:string }?,
  16.   attribute StrokeCornerAdjustment { StrokeCornerAdjustment_EnumValue }?,
  17.   attribute StrokeDashAndGap { list { xsd:double * } }?,
  18.   attribute LeftLineEnd { ArrowHead_EnumValue }?,
  19.   attribute RightLineEnd { ArrowHead_EnumValue }?,
  20.   attribute StrokeColor { xsd:string }?,
  21.   attribute StrokeTint { xsd:double }?,
  22.   attribute GradientFillStart { UnitPointType_TypeDef }?,
  23.   attribute GradientFillLength { xsd:double }?,
  24.   attribute GradientFillAngle { xsd:double }?,
  25.   attribute GradientStrokeStart { UnitPointType_TypeDef }?,
  26.   attribute GradientStrokeLength { xsd:double }?,
  27.   attribute GradientStrokeAngle { xsd:double }?,
  28.   attribute OverprintStroke { xsd:boolean }?,
  29.   attribute GapColor { xsd:string }?,
  30.   attribute GapTint { xsd:double }?,
  31.   attribute OverprintGap { xsd:boolean }?,
  32.   attribute StrokeAlignment { StrokeAlignment_EnumValue }?,
  33.   attribute Nonprinting { xsd:boolean }?,
  34.   attribute ItemLayer { xsd:string }?,
  35.   attribute Locked { xsd:boolean }?,
  36.   attribute LocalDisplaySetting { DisplaySettingOptions_EnumValue }?,
  37.   attribute GradientFillHiliteLength { xsd:double }?,
  38.   attribute GradientFillHiliteAngle { xsd:double }?,
  39.   attribute GradientStrokeHiliteLength { xsd:double }?,
  40.   attribute GradientStrokeHiliteAngle { xsd:double }?,
  41.   attribute AppliedObjectStyle { xsd:string }?,
  42.   attribute CornerOption { CornerOptions_EnumValue }?,
  43.   attribute Visible { xsd:boolean }?,
  44.   attribute TopLeftCornerOption { CornerOptions_EnumValue }?,
  45.   attribute TopRightCornerOption { CornerOptions_EnumValue }?,
  46.   attribute BottomLeftCornerOption { CornerOptions_EnumValue }?,
  47.   attribute BottomRightCornerOption { CornerOptions_EnumValue }?,
  48.   attribute TopLeftCornerRadius { xsd:double }?,
  49.   attribute TopRightCornerRadius { xsd:double }?,
  50.   attribute BottomLeftCornerRadius { xsd:double }?,
  51.   attribute BottomRightCornerRadius { xsd:double }?,
  52.   attribute ItemTransform { TransformationMatrixType_TypeDef }?,
  53.   element Properties {
  54.     element PathBoundingBox { RectangleBoundsType_TypeDef }?&
  55.     element PathGeometry { element GeometryPathType { GeometryPathType_TypeDef }*
  56.     }?&
  57.     element Label { element KeyValuePair { KeyValuePair_TypeDef }*
  58.     }?
  59.   }
  60.   ?
  61.   ,
  62. (
  63.   (TransparencySetting_Object?&
  64.   AnchoredObjectSetting_Object?&
  65.   TextWrapPreference_Object?&
  66.   AnimationSetting_Object?),
  67.   TimingSetting_Object?,
  68.   (State_Object*&
  69.   Behavior_Object*&
  70.   GotoFirstPageBehavior_Object*&
  71.   GotoLastPageBehavior_Object*&
  72.   GotoNextPageBehavior_Object*&
  73.   GotoPreviousPageBehavior_Object*&
  74.   GotoNextViewBehavior_Object*&
  75.   GotoPreviousViewBehavior_Object*&
  76.   GotoURLBehavior_Object*&
  77.   GotoAnchorBehavior_Object*&
  78.   MovieBehavior_Object*&
  79.   SoundBehavior_Object*&
  80.   ShowHideFieldsBehavior_Object*&
  81.   OpenFileBehavior_Object*&
  82.   ViewZoomBehavior_Object*&
  83.   AnimationBehavior_Object*&
  84.   GotoNextStateBehavior_Object*&
  85.   GotoPreviousStateBehavior_Object*&
  86.   GotoStateBehavior_Object*&
  87.   GotoPageBehavior_Object*)
  88. )
  89. }

<Button>エレメントのほとんどのプロパティは、他のページオブジェクトと共有されています。これらのプロパティについては、「共通のPageItemプロパティ」を参照してください。<Button>エレメントにのみあるプロパティは下記の通りです。

表84 属性としてのButtonプロパティ
名前 必須 説明
Description string ボタンの詳細
Name string ボタンの名前
VisibilityInPdf VisibilityInPdf_EnumValue PDFでの表示/非表示。VisibleInPdf(表示可能)、HiddenInPdf(非表示)、VisibleButDoesNotPrintInPdf(表示可能・印刷不能)またはHiddenButPrintableInPdf(非表示・印刷可能)
表85 プロパティとしてのButtonプロパティ
名前 必須 説明
PathBoundingBox RectangleBoundsType_TypeDef ボタンの境界線。[x1, y1, x2, y2]
スキーマの例67 State
  1. State_Object = element State {
  2.   attribute Self { xsd:string },
  3.   attribute Active { xsd:boolean }?,
  4.   attribute Enabled { xsd:boolean }?,
  5.   element Properties {
  6.     element Statetype {
  7.       (enum_type, StateTypes_EnumValue ) |
  8.       (long_type, xsd:int )
  9.     }?
  10.   }
  11.   ?
  12.   ,
  13. (
  14.   Oval_Object*&
  15.   Rectangle_Object*&
  16.   GraphicLine_Object*&
  17.   TextFrame_Object*&
  18.   Polygon_Object*&
  19.   Graphic_Object*&
  20.   Image_Object*&
  21.   EPS_Object*&
  22.   WMF_Object*&
  23.   PICT_Object*&
  24.   PDF_Object*&
  25.   Group_Object*&
  26.   EPSText_Object*
  27. )
  28. }
表86 属性としてのStateプロパティ
名前 必須 説明
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
  1. <Button Self="ud6" Name="GoToFirstPage" Description="" FillColor=" Color/Black" ItemTransform=" 1 0 0 1 0 0">
  2.   <Properties>
  3.     <PathBoundingBox Left="36" Top="-336.25" Right="76" Bottom="-312"/>
  4.   </Properties>
  5.   <State Self="ud6i0" Name="Up" Active="true" Enabled="true" Statetype="Up">
  6.     <Group Self="ud5" FillColor=" Color/Black" ItemTransform=" 1 -0 -0 1 -0 -0">
  7.       <Polygon Self="ucc" ContentType=" Unassigned" FillColor=" Color/Black" StrokeWeight=" 0" ItemTransform=" 1 0 0 1 0 0">
  8.         <Properties>
  9.           <PathGeometry>
  10.             <GeometryPathType PathOpen=" false">
  11.               <PathPointArray>
  12.                 <PathPointType Anchor="36 -324" LeftDirection=" 36 -324" RightDirection=" 36 -324"/>
  13.                 <PathPointType Anchor="60 -312" LeftDirection=" 60 -312" RightDirection=" 60 -312"/>
  14.                 <PathPointType Anchor="60 -336.25" LeftDirection=" 60 -336.25" RightDirection=" 60 -336.25"/>
  15.               </PathPointArray>
  16.             </GeometryPathType>
  17.           </PathGeometry>
  18.         </Properties>
  19.         <TransparencySetting>
  20.           <BevelAndEmbossSetting Applied="true" Style="Emboss" Size="3"/>
  21.         </TransparencySetting>
  22.       </Polygon>
  23.       <Rectangle Self="ud3" StoryTitle="$ ID/" ContentType=" Unassigned" FillColor=" Color/Black" StrokeWeight=" 0" StrokeColor=" Swatch/None" ItemTransform=" 1 0 0 1 0 0">
  24.         <Properties>
  25.           <PathGeometry>
  26.             <GeometryPathType PathOpen=" false">
  27.               <PathPointArray>
  28.                 <PathPointType Anchor="66 -336.25" LeftDirection=" 66 -336.25" RightDirection=" 66 -336.25"/>
  29.                 <PathPointType Anchor="66 -312" LeftDirection=" 66 -312" RightDirection=" 66 -312"/>
  30.                 <PathPointType Anchor="76 -312" LeftDirection=" 76 -312" RightDirection=" 76 -312"/>
  31.                 <PathPointType Anchor="76 -336.25" LeftDirection=" 76 -336.25" RightDirection=" 76 -336.25"/>
  32.               </PathPointArray>
  33.             </GeometryPathType>
  34.           </PathGeometry>
  35.         </Properties>
  36.         <TransparencySetting>
  37.           <BevelAndEmbossSetting Applied="true" Style="Emboss" Size="3"/>
  38.         </TransparencySetting>
  39.       </Rectangle>
  40.     </Group>
  41.   </State>
  42.   <GotoFirstPageBehavior Self="ud7" ZoomSetting=" InheritZoom" Name="Go To First Page" EnableBehavior=" true" BehaviorEvent=" MouseDown"/>
  43. </Button>
図25 ボタン

Image:Fig025.png