InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IInCopyStoryContext.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 __IInCopyStoryContext__
25 #define __IInCopyStoryContext__
26 
27 #include "IPMUnknown.h"
28 
29 #include "InCopyWorkflowID.h"
30 
31 class WideString;
33 class IAttrReport;
34 class InCopyHyperlinkSource;
35 class InCopyHyperlinkDestination;
36 class InCopyInlineSpec;
37 class ITableAttrReport;
38 class ITableModel;
39 class GridAddress;
41 
43 {
44 public:
45  enum { kDefaultIID = IID_IINCOPYSTORYCONTEXT };
46 
47  virtual void BeginStory (const UIDRef& storyRef, int32 textIndex, IInCopyImportOptions* options) = 0;
48 
49  virtual void EndStory () = 0;
50 
51  virtual void AppendContent (const WideString& content) = 0;
52 
53  virtual void ChangeTextAttribute (IAttrReport* iReport) = 0;
54 
55  //----------------------------------------------------------------------------------------
56  virtual void AddMissingColorTextAttribute(
57  IAttrReport* iReport,
58  const PMString& colorName
59  ) = 0;
60 
61  virtual void EndTextAttribute (ClassID attrClass) = 0;
62 
63  virtual void ChangeParagraphStyle (const WideString& styleName) = 0;
64 
65  virtual void ChangeCharacterStyle (const WideString& styleName) = 0;
66 
67  virtual void StartChangeRecord (int32 type, uint64& time, bool16 moved, PMString& user, UID ownedItem = kInvalidUID) = 0;
68 
69  virtual void EndChangeRecord () = 0;
70 
71  virtual void ApplyHyperlinkSource (InCopyHyperlinkSource& source) = 0;
72 
73  virtual void ApplyHyperlinkDestination(InCopyHyperlinkDestination& source) = 0;
74 
75  virtual void ApplyInline(InCopyInlineSpec& inlineSpec) = 0;
76 
77  virtual void PushElement
78  (
79  const WideString& localName,
80  const WideString& qName,
81  IInCopyXMLElementAttr* iAttrs,
82  bool16 bIsInline = kFalse
83  ) = 0;
84 
85 
86  virtual void PopElement
87  (
88  const WideString& localName,
89  const WideString& qName
90  ) = 0;
91 
95  virtual void XMLComment(const WideString& comment) = 0;
96 
101  virtual void XMLProcessingInstruction(const WideString& piTarget, const WideString& piData) = 0;
102 
103  //----------------------------------------------------------------------------------------
104  virtual void BeginTable (
105  ) = 0;
106 
107  //----------------------------------------------------------------------------------------
108  virtual void EndTable(
109  int32 numRows
110  ) = 0;
111 
112  //----------------------------------------------------------------------------------------
113  virtual void BeginCell(
114  ITableModel* tableModel,
115  GridAddress cellAnchor,
116  const UIDRef& storyRef,
117  int32 textIndex
118  ) = 0;
119 
120  //----------------------------------------------------------------------------------------
121  virtual void AddCellAttribute (
122  ITableAttrReport* cellAttr
123  ) = 0;
124 
125  //----------------------------------------------------------------------------------------
126  virtual void EndCell() = 0;
127 
128  virtual int32 GetCurrentIndex() const = 0;
129 
130  virtual void SetDefaultFont(
131  const WideString& defaultFontName
132  ) = 0;
133 };
134 
135 
136 #endif // __IInCopyStoryContext__
137 
138 
139