InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StyleSyncService Class Reference
Inheritance diagram for StyleSyncService:
IStyleSyncServiceIPMUnknown

Public Member Functions

 StyleSyncService (IPMUnknown *boss)
 
virtual PMIID GetStyleInterfaceID ()
 
virtual PMString GetGroupName ()
 
virtual PMString GetStyleName ()
 
virtual bool16 IsCJKStyle ()
 
virtual bool16 IsOptionOnByDefault ()
 
virtual void DoSynchronization (IDFile sourceFile, IDocument *target)
 
virtual void SetStyleMatchingStrategy (StyleClashResolutionTypes::StyleMatchingStrategyEnum styleMatchingStrategy)
 
virtual
StyleClashResolutionTypes::StyleMatchingStrategyEnum 
GetStyleMatchingStrategy () const
 

Member Function Documentation

virtual void StyleSyncService::DoSynchronization (IDFile sourceFile,
IDocumenttarget 
)
virtual

Do the actual synchronization, e.g., copy/modify the styles from source document to target document.

Parameters
sourceFilerefers to the master document(also called style source) of the book.
targetrefers to the document whose styles may be modified or new styles may be added into.
Returns
void.

Implements IStyleSyncService.

virtual PMString StyleSyncService::GetGroupName ()
inlinevirtual

Get the group name that the style belongs to. For Roman version, there is only one group("All Styles"); for J version, we have two groups("All Styles" and "CJK Styles").

Returns
PMString the group name.

Implements IStyleSyncService.

virtual PMIID StyleSyncService::GetStyleInterfaceID ()
inlinevirtual

Get the interface ID of style.

Returns
PMIID interface ID of style.

Implements IStyleSyncService.

virtual StyleClashResolutionTypes::StyleMatchingStrategyEnum StyleSyncService::GetStyleMatchingStrategy () const
inlinevirtual
Return the style matching method. 

Returns
the style matching method set via SetStyleMatchingMethod.

Implements IStyleSyncService.

virtual PMString StyleSyncService::GetStyleName ()
inlinevirtual

Get the registered synchronizable style name.

Returns
PMString the style name(e.g., TOC Style, Paragraph Style, Character Style etc.)

Implements IStyleSyncService.

virtual bool16 StyleSyncService::IsCJKStyle ()
inlinevirtual

Check if this is a CJK style or not.

Returns
bool16 kTrue is CJK style, kFalse is NOT CJK style.

Implements IStyleSyncService.

virtual bool16 StyleSyncService::IsOptionOnByDefault ()
inlinevirtual

Check if this option is turned on or off by default.

Returns
bool16 kTrue if it is turned on, otherwise return kFalse.

Implements IStyleSyncService.

virtual void StyleSyncService::SetStyleMatchingStrategy (StyleClashResolutionTypes::StyleMatchingStrategyEnum styleMatchingStrategy)
inlinevirtual
Sets the Style matching Strategy, This choice is not on per style type basis. If set then this will

be used for all the style types for that load style command.

Note
This value will be only used if the global clash resolution strategy is StyleClashResolutionTypes::kLoadAllWithOverwrite or Individual styles resolve strategy is StyleClashResolutionStrategy::kUseIncomingStyleDefinition. In all other cases style's full path will be used for matching the styles in target.
Parameters
styleMatchingStrategy[IN] To find the clashing style in target, Uses full path of style if kMatchStyleFullPath is passed if kMatchStyleName is passed then matches style with the same name at any location if the style is unique in target. if same name style exist in more then one location then falls back to matching styles path.

Implements IStyleSyncService.