InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IOwnedItemIcons.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Kevin Van Wiel
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 // ADOBE CONFIDENTIAL
24 //
25 //========================================================================================
26 
27 #ifndef __IOwnedItemIcons__
28 #define __IOwnedItemIcons__
29 
30 #include "IPMUnknown.h"
31 #include "ILayoutViewLineData.h"
32 
33 #include "WritingModeUIID2.h"
34 #include "UIDRef.h"
35 
36 class IWaxLine;
37 class IGraphicsContext;
38 class LineDescription;
39 class IGraphicsPort;
40 
46 {
47  public:
48  enum { kDefaultIID = IID_IOWNEDITEMICONS };
49 
52  enum ItemType {
54  kTable = 0,
83  };
84 
95  virtual ItemType GetItemType(UIDRef textModelRef, UTF32TextChar character, TextIndex position, UID storyThreadUID = kInvalidUID) = 0;
96 
107  virtual PMReal GetIconWidth(ItemType type, UIDRef textModelRef, TextIndex position, UID storyThreadUID = kInvalidUID) = 0;
108 
123  virtual void Draw(ItemType type, const PMRect &itemRect, PMReal textYPosition, IGraphicsPort *gPort, UIDRef textModelRef,
124  TextIndex position, int32 lineIndex, UID storyThreadUID = kInvalidUID) = 0;
125 
126 };
127 
128 #endif // __IOwnedItemIcons__