Translation:Object Styles
From IDMLWiki
10.8.7 オブジェクトスタイル
段落スタイルや文字スタイルを使用して簡単にテキストを書式設定するように、オブジェクトスタイルを使用してグラフィックやフレームを簡単に書式設定できます。オブジェクトスタイルには、線、カラー、透明度、ドロップシャドウ、段落スタイル、テキストの回り込みなどの設定が含まれます。オブジェクト、塗り、線、およびテキストに対してさまざまな透明効果を割り当てることができます。ページオブジェクトは、ローカルで設定するのではなくオブジェクトスタイルを使うようにしてください。
オブジェクトスタイルは、オブジェクト、グループおよびフレーム(テキストフレームを含む)に適用できます。スタイルを使用すると、すべてのオブジェクト設定を消去して置換することも、その他の設定を変更せずに特定の設定のみを置換することもできます。定義内に設定カテゴリーを含めるか、または除外することで、スタイルが影響を及ぼす設定を制御できます。
InDesignドキュメントでのオブジェクトスタイルは、オブジェクトスタイルグループにまとめることができます。
InDesignドキュメントには、デフォルトのオブジェクトスタイルがあります。
- [なし]
- [基本グラフィックフレーム]
- [基本テキストフレーム]
- [基本グリッド]
[なし]以外のデフォルトオブジェクトスタイルは編集可なので、これらをオブジェクトの書式として使用するならば、IDMLで定義することができます。[なし]には書式が何もありません。このオブジェクトスタイルは、ページオブジェクトにローカルの書式を設定するときに使用します。
デフォルトオブジェクトスタイルについては、InDesignのドキュメントを参照してください。
IDMLパッケージでは、Styles.xmlドキュメントに<RootObjectStyleGroup>エレメントがあり、その中に<ObjectStyle>エレメントと<ObjectStyleGroup>エレメントがあります。<ObjectStyleGroup>エレメントの中に他の<ObjectStyleGroup>エレメントを入れることもできます。
スキーマの例120 ObjectStyleGroup
ObjectStyleGroup_Object = element ObjectStyleGroup{
attribute Self { xsd:string },
attribute Name { xsd:string },
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(ObjectStyle_Object*&ObjectStyleGroup_Object*)}
スキーマの例121 ObjectStyle
ObjectStyle_Object = element ObjectStyle{
attribute Self { xsd:string },
attribute Name { xsd:string },
attribute AppliedParagraphStyle{ xsd:string }?,
attribute ApplyNextParagraphStyle{ xsd:boolean }?,
attribute EnableFill{ xsd:boolean }?,
attribute EnableStroke{ xsd:boolean }?,
attribute EnableParagraphStyle{ xsd:boolean }?,
attribute EnableTextFrameGeneralOptions{ xsd:boolean }?,
attribute EnableTextFrameBaselineOptions{ xsd:boolean }?,
attribute EnableStoryOptions{ xsd:boolean }?,
attribute EnableTextWrapAndOthers{ xsd:boolean }?,
attribute EnableAnchoredObjectOptions{ xsd:boolean }?,
attribute FillColor{ xsd:string }?,
attribute FillTint{ xsd:double }?,
attribute OverprintFill{ xsd:boolean }?,
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 CornerRadius{ 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 GradientFillAngle{ xsd:double }?,
attribute GradientStrokeAngle{ xsd:double }?,
attribute AppliedNamedGrid{ xsd:string }?,
attribute KeyboardShortcut{ list { xsd:short ,xsd:short } }?,
attribute EnableFrameFittingOptions{ xsd:boolean }?,
attribute CornerOption{ CornerOptions_EnumValue }?,
attribute EnableStrokeAndCornerOptions{ xsd:boolean }?,
element Properties {element BasedOn{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(TextFramePreference_Object?&BaselineFrameGridOption_Object?&AnchoredObjectSetting_Object?&TextWrapPreference_Object?&StoryPreference_Object?&FrameFittingOption_Object?&TransparencySetting_Object?&StrokeTransparencySetting_Object?&FillTransparencySetting_Object?&ContentTransparencySetting_Object?&ObjectStyleObjectEffectsCategorySettings_Object?&ObjectStyleStrokeEffectsCategorySettings_Object?&ObjectStyleFillEffectsCategorySettings_Object?&ObjectStyleContentEffectsCategorySettings_Object?)}
オブジェクトスタイルのほとんどの属性とエレメントは、他のエレメントと共有されています。下記のエレメントについては、「10.3 スプレッドとマスタースプレッド」の対応するセクションを参照してください。
- <TextFramePreference>エレメント
- <BaselineFrameGridOption>エレメント
- <TextWrapPreference>エレメント
- <FrameFittingOption>エレメント
- <TransparencySetting>エレメント
- <StrokeTransparencySetting>エレメント
- <ContentTransparencySetting>エレメント
下記のエレメントについては、「10.4 ストーリー」を参照してください。
- <AnchoredObjectSetting>エレメント
- <StoryPreference>エレメント
<ObjectStyleObjectEffectsCategorySettings>エレメント、<ObjectStyleStrokeEffectsCategorySettings>エレメント、<ObjectStyleFillEffectsCategorySettings>エレメントおよび<ObjectStyleContentEffectsCategorySettings>エレメントは、<ObjectStyle>エレメント特有のものです。これらのエレメントには<ObjectStyle>のセクションの有効(true)無効(false)を設定する属性があります。例えば、オブジェクトスタイルのドロップシャドウの設定を、ページオブジェクトの塗りに適用させないようにするには、<ObjectStyleStrokeEffectsCategorySettings>エレメントのEnableDropShadow属性をfalseに設定します。
スキーマの例122 ObjectStyleObjectEffectsCategorySettings
ObjectStyleObjectEffectsCategorySettings_Object = element ObjectStyleObjectEffectsCategorySettings{
attribute Self { xsd:string },
attribute EnableTransparency{ xsd:boolean }?,
attribute EnableDropShadow{ xsd:boolean }?,
attribute EnableFeather{ xsd:boolean }?,
attribute EnableInnerShadow{ xsd:boolean }?,
attribute EnableOuterGlow{ xsd:boolean }?,
attribute EnableInnerGlow{ xsd:boolean }?,
attribute EnableBevelEmboss{ xsd:boolean }?,
attribute EnableSatin{ xsd:boolean }?,
attribute EnableDirectionalFeather{ xsd:boolean }?,
attribute EnableGradientFeather{ xsd:boolean }?
}
スキーマの例123 ObjectStyleStrokeEffectsCategorySettings
ObjectStyleStrokeEffectsCategorySettings_Object = element ObjectStyleStrokeEffectsCategorySettings{
attribute Self { xsd:string },
attribute EnableTransparency{ xsd:boolean }?,
attribute EnableDropShadow{ xsd:boolean }?,
attribute EnableFeather{ xsd:boolean }?,
attribute EnableInnerShadow{ xsd:boolean }?,
attribute EnableOuterGlow{ xsd:boolean }?,
attribute EnableInnerGlow{ xsd:boolean }?,
attribute EnableBevelEmboss{ xsd:boolean }?,
attribute EnableSatin{ xsd:boolean }?,
attribute EnableDirectionalFeather{ xsd:boolean }?,
attribute EnableGradientFeather{ xsd:boolean }?
}
スキーマの例124 ObjectStyleFillEffectsCategorySettings
ObjectStyleFillEffectsCategorySettings_Object = element ObjectStyleFillEffectsCategorySettings{
attribute Self { xsd:string },
attribute EnableTransparency{ xsd:boolean }?,
attribute EnableDropShadow{ xsd:boolean }?,
attribute EnableFeather{ xsd:boolean }?,
attribute EnableInnerShadow{ xsd:boolean }?,
attribute EnableOuterGlow{ xsd:boolean }?,
attribute EnableInnerGlow{ xsd:boolean }?,
attribute EnableBevelEmboss{ xsd:boolean }?,
attribute EnableSatin{ xsd:boolean }?,
attribute EnableDirectionalFeather{ xsd:boolean }?,
attribute EnableGradientFeather{ xsd:boolean }?
}
スキーマの例125 ObjectStyleContentEffectsCategorySettings
ObjectStyleContentEffectsCategorySettings_Object = element ObjectStyleContentEffectsCategorySettings{
attribute Self { xsd:string },
attribute EnableTransparency{ xsd:boolean }?,
attribute EnableDropShadow{ xsd:boolean }?,
attribute EnableFeather{ xsd:boolean }?,
attribute EnableInnerShadow{ xsd:boolean }?,
attribute EnableOuterGlow{ xsd:boolean }?,
attribute EnableInnerGlow{ xsd:boolean }?,
attribute EnableBevelEmboss{ xsd:boolean }?,
attribute EnableSatin{ xsd:boolean }?,
attribute EnableDirectionalFeather{ xsd:boolean }?,
attribute EnableGradientFeather{ xsd:boolean }?
}
文字スタイルと同じように、オブジェクトスタイルはオブジェクトの書式をすべて設定する必要はありません。ページオブジェクトの塗りカラーはそのままでドロップシャドウだけを適用するオブジェクトスタイルを作れます。下記に例を示します。このオブジェクトスタイルと、基本になっているオブジェクトスタイルとの唯一の違いは、<TransparencySetting>エレメントのMode属性がDrop(ドロップシャドウ効果を適用する)に設定されていることです。<TransparencySetting>エレメントの属性については、「透明(Transparency)」を参照してください。
IDMLの例82 ObjectStyle
<ObjectStyle Self="ObjectStyle\ DropShadow" Name="DropShadow"><Properties><BasedOn type="object">ObjectStyle\[ Normal Graphics Frame]</BasedOn>
</Properties><TransparencySetting Self="ud4TransparencySetting1"><DropShadowSetting Self="ud4TransparencySetting1DropShadowSetting1" Mode="Drop"/></TransparencySetting></ObjectStyle>


