InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
COwnedItem.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: dwaterfa
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 __COwnedItem__
25 #define __COwnedItem__
26 
27 #include "IOwnedItem.h"
28 #include "IParcelList.h"
29 #include "IWaxLine.h"
30 #include "IWaxRun.h"
31 
32 #include "HelperInterface.h"
33 
34 
35 class COwnedItem : public IOwnedItem
36 {
37 public:
38  COwnedItem(IPMUnknown *boss);
39 
40  virtual void SetDiskPage(UID diskPage);
41 
42  virtual UID GetDiskPage() const;
43 
44  virtual TextIndex GetTextIndex() const;
45 
46  virtual UID GetTextModelUID() const;
47 
48  virtual ITextModel* QueryTextModel() const;
49 
50  virtual UIDRef GetFrameRef() const;
51 
52  virtual ITextFrameColumn* QueryFrame() const;
53 
54  virtual PMRect GetInkBounds(void) const;
55 
56  // Must implement QueryRemoveFromDocumentCmd()
57 
58  // Must implement QueryMemento()
59 
60  // Must implement GetNumSpecialAnchorChars()
61 
62  virtual bool16 GetIsParcelPositionDependent() const;
63 
64  virtual void CollectStoryRanges(Text::StoryRangeList* rList,
65  TextIndex hIndex,
66  Text::HIndexList* hIndexList) const;
67 
68  virtual void CollectChildren(VisitorHelperList* rList,
69  const PMRect* pHitRect,
70  const bool16 useParcelInkBounds) const;
71 
72  virtual void CollectChildren(VisitorHelperList* rList) const;
73 
74  virtual bool16 Moved(ITextModel* textModel,
75  IParcelList* pl,
76  const IWaxLine* waxLine,
77  TextIndex ownedItemTextIndex,
78  TextIndex waxLineTextIndex);
79 
80  virtual void MovedIntoOverset(IParcelList* pl);
81 
82  virtual void Applied(ITextModel* textModel,
83  IParcelList* pl,
84  const IWaxLine* waxLine,
85  TextIndex ownedItemTextIndex,
86  TextIndex waxLineTextIndex);
87 
88  virtual void StoryThreadChanged(UID newDictUID, uint32 newDictKey);
89 
90  virtual void StoryDirectionChanged();
91 
92  virtual IParagraphComposer* QueryComposer() const;
93 
94  virtual void StoryAccessChanged(TextStory_StoryAccess);
95 
96  virtual bool16 GetAreAnchorCharsFindable() const;
97 
98  virtual bool16 GetHasStandOff() const;
99 
100  virtual void Rebuilt(ITextModel* textModel,
101  IParcelList* pl,
102  const IWaxLine* waxLine,
103  IWaxRun* waxRun,
104  TextIndex ownedItemTextIndex,
105  TextIndex waxLineTextIndex);
106 
107  virtual void Rebuilt(ITextModel* textModel,
108  IParcelList* pl,
109  const IWaxLine* waxLine,
110  IWaxRun* waxRun,
111  TextIndex ownedItemTextIndex,
112  TextIndex waxLineTextIndex,
113  bool16* damagedBack);
114 
115  virtual void LayerChanged(const IDocumentLayer* newDocLayer);
116 
117  virtual void VisibilityChanged();
118 
119  virtual void ZOrderChanged();
120 
121  virtual bool16 GetContainsOversetContent() const;
122 
123  virtual void ParcelMoved();
124 
125  virtual void ParcelResized();
126 
127  virtual ITextStoryThread* QueryStoryThread() const;
128 
129  virtual IParcelList* QueryParcelList() const;
130 
131  virtual ITextParcelList* QueryTextParcelList() const;
132 
136  bool16 GetCanReturnIScript() const;
137 
138  IScript* QueryIScript(const ScriptInfo::RequestContext& context) const;
139 
140  void ReadWrite(IPMStream *s, ImplementationID i);
141 
142 protected:
143  UID fDiskPage;
144 
145 
146 };
147 
148 
149 #endif