InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
INotePaletteUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Wai Cheuk
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 __INOTEPALETTEUTILS__
25 #define __INOTEPALETTEUTILS__
26 
27 #include "IPMUnknown.h"
28 #include "UIDList.h"
29 #include "NoteID.h"
30 
31 //-----------------------------------
32 // Forward References
33 //
34 class IPanelControlData;
35 class ITextLines;
36 class RangeData;
37 class IControlView;
38 
40 {
41 public:
42  enum { kDefaultIID = IID_INOTEPALETTEUTILS };
43 
48  virtual void SetNoteToPalette(UIDRef docRef, UIDRef storyRef, UID noteDataUID, bool16 setSelection = kTrue, const RangeData* range = nil) = 0;
49 
51  virtual void TextLineInit(IControlView* writingView, UIDRef storyRef) = 0;
52 
59  virtual void ResetNotePalette( bool16 resetDocument /*= kFalse*/, bool16 deactivatePalette /*= kFalse*/, bool16 callingDuringResetView = kFalse) = 0;
60 
62  virtual void ClearOneButtonWidget(IPanelControlData* containerPanelData, WidgetID thisWidgetID) = 0;
63 
65  virtual void SetOneInfoWidget(IPanelControlData* containerPanelData, WidgetID thisWidget, const PMString& thisString) = 0;
66 
71  virtual IControlView* GetNoteWritingPad() = 0;
72 
75  virtual UIDRef GetNotePaletteUIDRef() = 0;
76 
79  virtual UIDRef GetNotePaletteStoryRef() = 0;
80 
82  virtual IControlView* GetNotePanel() = 0;
83 
84  virtual bool16 IsNotePanelVisible() = 0;
85  virtual bool16 ShowNotePanel(bool16 show = kTrue) = 0;
86 
88  virtual bool16 InitializePaletteData() = 0;
89 
92  virtual bool16 DisplayedNoteActive() = 0;
93 
95  virtual void UpdatePaletteButtons(bool16 collapsed) = 0;
96 
98  virtual void UpdateStoryLabel() = 0;
99 
101  virtual void UpdateTotalNotesDisplay() = 0;
102 
104  virtual void UpdatePaletteNoteModifyTime(UIDRef noteDataRef) = 0;
105 
108  virtual void InitPaletteWidgets(UIDRef storyRef, UIDRef docRef, UIDRef noteRef = UIDRef::gNull) = 0;
109 
111  virtual void SuspendDisplay() = 0;
112 
114  virtual void ResumeDisplay() = 0;
115 
116 };
117 
118 #endif // __INOTEPALETTEUTILS__