InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IOwnedItem.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 __IOwnedItem__
25 #define __IOwnedItem__
26 
27 #include "IPMUnknown.h"
28 #include "TextID.h"
29 #include "K2Vector.h"
30 #include "IVisitorHelper.h"
31 #include "RangeData.h" // for Text::StoryRangeList
32 #include "RequestContext.h"
33 #include "PMTextUtils.h" // for Text::HIndexList
34 #include "textstoryaccesstypes.h"
35 
36 class ICommand;
37 class IDocumentLayer;
38 class ITextModel;
39 class ITextModelMemento;
40 class ITextFrameColumn;
41 class IWaxLine;
42 class IWaxRun;
43 class IParcelList;
44 class IParagraphComposer;
45 class IScript;
46 class ITextStoryThread;
47 class ITextParcelList;
48 
50 
85 class IOwnedItem : public IPMUnknown
86 {
87 public:
88  enum { kDefaultIID = IID_IOWNEDITEM };
89 
98  virtual void SetDiskPage(UID diskPage) = 0;
99 
104  virtual UID GetDiskPage() const = 0;
105 
112  virtual TextIndex GetTextIndex() const = 0;
113 
120  virtual UID GetTextModelUID() const = 0;
121 
128  virtual ITextModel* QueryTextModel() const = 0;
129 
136  virtual UIDRef GetFrameRef() const = 0;
137 
144  virtual ITextFrameColumn* QueryFrame() const = 0;
145 
152  virtual PMRect GetInkBounds(void) const = 0;
153 
169  virtual ICommand* QueryRemoveFromDocumentCmd() const = 0;
170 
176  virtual ITextModelMemento* QueryMemento() const = 0;
177 
186  virtual int32 GetNumSpecialAnchorChars() const = 0;
187 
198  virtual bool16 GetIsParcelPositionDependent() const = 0;
199 
219  virtual void CollectStoryRanges(Text::StoryRangeList* rList,
220  TextIndex hIndex = kInvalidTextIndex,
221  Text::HIndexList* hIndexList = nil
222  ) const = 0;
223 
228  virtual void CollectChildren(VisitorHelperList* rList) const = 0;
229 
237  virtual void CollectChildren(VisitorHelperList* rList,
238  const PMRect* pHitRect,
239  const bool16 useParcelInkBounds
240  ) const = 0;
252  virtual bool16 Moved(ITextModel* textModel,
253  IParcelList* pl,
254  const IWaxLine* waxLine,
255  TextIndex ownedItemTextIndex,
256  TextIndex waxLineTextIndex) = 0;
257 
264  virtual void MovedIntoOverset(IParcelList* pl) = 0;
265 
276  virtual void Applied(ITextModel* textModel,
277  IParcelList* pl,
278  const IWaxLine* waxLine,
279  TextIndex ownedItemTextIndex,
280  TextIndex waxLineTextIndex) = 0;
281 
288  virtual void StoryThreadChanged(UID newDictUID, uint32 newDictKey) = 0;
289 
293  virtual void StoryDirectionChanged() = 0;
294 
310  virtual IParagraphComposer* QueryComposer() const = 0;
311 
318  virtual void StoryAccessChanged(TextStory_StoryAccess access) = 0;
319 
325  virtual bool16 GetAreAnchorCharsFindable() const = 0;
326 
332  virtual bool16 GetHasStandOff() const = 0;
333 
347  virtual void Rebuilt(ITextModel* textModel,
348  IParcelList* pl,
349  const IWaxLine* waxLine,
350  IWaxRun* waxRun,
351  TextIndex ownedItemTextIndex,
352  TextIndex waxLineTextIndex) = 0;
353 
380  virtual void Rebuilt(ITextModel* textModel,
381  IParcelList* pl,
382  const IWaxLine* waxLine,
383  IWaxRun* waxRun,
384  TextIndex ownedItemTextIndex,
385  TextIndex waxLineTextIndex,
386  bool16* damagedBack) = 0;
387 
391  virtual void LayerChanged(const IDocumentLayer* newDocLayer) = 0;
392 
396  virtual void VisibilityChanged() = 0;
397 
402  virtual void ZOrderChanged() = 0;
403 
409  virtual bool16 GetContainsOversetContent() const = 0;
410 
420  virtual void ParcelMoved() = 0;
421 
432  virtual void ParcelResized() = 0;
433 
438  virtual ITextStoryThread* QueryStoryThread() const = 0;
439 
444  virtual IParcelList* QueryParcelList() const = 0;
445 
452  virtual ITextParcelList* QueryTextParcelList() const = 0;
453 
460  virtual bool16 GetCanReturnIScript() const = 0;
461 
469  virtual IScript* QueryIScript(const ScriptInfo::RequestContext& context) const = 0;
470 
471 };
472 
473 #endif