Translation:Buttons

From IDMLWiki

Jump to: navigation, search

Contents

ボタン(Button)

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

スキーマの例35 ボタン
  1. Button_Object = element Button {
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }?,
  4.   attribute Description { xsd:string }?,
  5.   attribute VisibilityInPdf{  VisibilityInPdf_EnumValue }?,
  6.   attribute AllowOverrides{  xsd:boolean }?,
  7.   attribute FillColor{  xsd:string }?,
  8.   attribute FillTint{  xsd:double }?,
  9.   attribute OverprintFill{  xsd:boolean }?,
  10.   attribute StrokeWeight{  xsd:double }?,
  11.   attribute MiterLimit{  xsd:double {minInclusive="1" maxInclusive="500"} }?,
  12.   attribute EndCap{  EndCap_EnumValue }?,
  13.   attribute EndJoin{  EndJoin_EnumValue }?,
  14.   attribute StrokeType{  xsd:string }?,
  15.   attribute StrokeCornerAdjustment{  StrokeCornerAdjustment_EnumValue }?,
  16.   attribute StrokeDashAndGap{  list { xsd:double * } }?,
  17.   attribute LeftLineEnd{  ArrowHead_EnumValue }?,
  18.   attribute RightLineEnd{  ArrowHead_EnumValue }?,
  19.   attribute StrokeColor{  xsd:string }?,
  20.   attribute StrokeTint{  xsd:double }?,
  21.   attribute CornerRadius{  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 ItemTransform{  TransformationMatrixType_TypeDef }?,
  44.   element Properties {
  45.     element PathBoundingBox{  RectangleBoundsType_TypeDef }?&
  46.     element PathGeometry{  element GeometryPathType { GeometryPathType_TypeDef }*
  47.     }?&
  48.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  49.     }?
  50.   }
  51.   ?
  52.   ,
  53. (
  54.   AnchoredObjectSetting_Object?&
  55.   TextWrapPreference_Object?&
  56.   State_Object*&
  57.   Behavior_Object*&
  58.   GotoFirstPageBehavior_Object*&
  59.   GotoLastPageBehavior_Object*&
  60.   GotoNextPageBehavior_Object*&
  61.   GotoPreviousPageBehavior_Object*&
  62.   GotoNextViewBehavior_Object*&
  63.   GotoPreviousViewBehavior_Object*&
  64.   GotoURLBehavior_Object*&
  65.   GotoAnchorBehavior_Object*&
  66.   MovieBehavior_Object*&
  67.   SoundBehavior_Object*&
  68.   ShowHideFieldsBehavior_Object*&
  69.   OpenFileBehavior_Object*&
  70.   CloseWindowBehavior_Object*&
  71.   QuitBehavior_Object*&
  72.   ViewZoomBehavior_Object*&
  73.   GotoPageBehavior_Object*
  74. )
  75. }

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

表40 属性としてのButtonプロパティ
名前 必須 説明
Description string ボタンの詳細
Name string ボタンの名前
VisibilityInPdf VisibilityInPdf_EnumValue PDFでの表示/非表示。VisibleInPdf(表示可能)、HiddenInPdf(非表示)、VisibleButDoesNotPrintInPdf(表示可能・印刷不能)またはHiddenButPrintableInPdf(非表示・印刷可能)
表41 プロパティとしてのButtonプロパティ
名前 必須 説明
PathBoundingBox RectangleBoundsType_TypeDef ボタンの境界線。[x1, y1, x2, y2]
スキーマの例36 State
  1. State_Object = element State {
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }?,
  4.   attribute Active { xsd:boolean }?,
  5.   attribute Enabled { xsd:boolean }?,
  6.   attribute Statetype { StateTypes_EnumValue }?,
  7. (
  8.   FormField_Object*&
  9.   Button_Object*&
  10.   Oval_Object*&
  11.   Rectangle_Object*&
  12.   GraphicLine_Object*&
  13.   TextFrame_Object*&
  14.   Graphic_Object*&
  15.   ImportedPage_Object*&
  16.   Image_Object*&
  17.   EPS_Object*&
  18.   WMF_Object*&
  19.   PICT_Object*&
  20.   PDF_Object*&
  21.   Polygon_Object*&
  22.   Group_Object*&
  23.   EPSText_Object*
  24. )
  25. }
表42 属性としての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の例29 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

Personal tools