InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IInCopyStyleContext.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jeff Argast
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 
24 #ifndef __IInCopyStyleContext__
25 #define __IInCopyStyleContext__
26 
27 #include "IPMUnknown.h"
28 
29 #include "InCopyWorkflowID.h"
30 
31 class WideString;
32 class AttributeBossList;
33 
35 {
36 public:
37  enum { kDefaultIID = IID_IINCOPYSTYLECONTEXT };
38 
39  // Init the list with the story. Also, tell the context whether
40  // to create paragraph styles or character styles
41  virtual void Initialize (const UIDRef& storyRef, bool16 isParagraph) = 0;
42 
43  // Add the style. This takes ownership of the text attributes
44  virtual void AddStyle
45  (
46  const WideString& styleName,
47  const WideString& basedOnStyleName,
48  const WideString& nextStyleName,
49  bool16 isImported,
50  AttributeBossList* textAttributes
51  ) = 0;
52 
53  // The style context doesn't do anything until Create is called. This is because
54  // some styles are based on other styles and have follow on styles that might not be
55  // defined at the time we are processing the style. Therefore the style context caches
56  // a list of the styles as they are processed and then creates them when Create is called
57  virtual void CreateStyles() = 0;
58 
59 };
60 
61 
62 #endif // __IInCopyWorkflow__
63 
64 
65 
66