InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StyleSyncService.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Yeming Liu
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Comments: This class is used for book to synchronize styles.
24 //
25 //========================================================================================
26 
27 #ifndef __STYLESYNCSERVICE__
28 #define __STYLESYNCSERVICE__
29 
30 #include "IStyleSyncService.h"
31 
32 #include "HelperInterface.h"
33 #include "ShuksanID.h"
34 
35 #ifdef PUBLIC_BUILD
36 #endif
37 
38 //----------------------------------------------------------------
39 // Class declaration
40 //----------------------------------------------------------------
42 {
43  public:
45  : HELPER_METHODS_INIT(boss),fUseStyleMatchingStrategy(StyleClashResolutionTypes::kMatchStyleFullPath) { }
46 
47  virtual ~StyleSyncService() { }
48 
49  virtual PMIID GetStyleInterfaceID() { return kInvalidInterfaceID; }
50 
51  virtual PMString GetGroupName() { return PMString(); }
52 
53  virtual PMString GetStyleName() { return PMString(); }
54 
55  virtual bool16 IsCJKStyle() { return kFalse; }
56 
57  virtual bool16 IsOptionOnByDefault() { return kTrue; }
58 
59  virtual void DoSynchronization(IDFile sourceFile, IDocument* target);
60 
62  { fUseStyleMatchingStrategy = styleMatchingStrategy; }
63 
65  { return fUseStyleMatchingStrategy;}
66 
67  private:
69 
70 
71 };
72 
73 
74 #ifdef PUBLIC_BUILD
75 #endif
76 
77 #endif // __STYLESYNCSERVICE__