InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAddNoteDataCmdData.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 // Comments:
24 //
25 //========================================================================================
26 
27 #ifndef IADDNOTEDATACMDDATA_H
28 #define IADDNOTEDATACMDDATA_H
29 
30 #include "IPMUnknown.h"
31 #include "NoteID.h"
32 #include "WideString.h"
33 
34 /* Data interface for kAddNoteDataCmdBoss. Sets the properties of Note to be added.
35 */
37 
38 public:
39  enum { kDefaultIID = IID_IADDNOTEDATACMDDATA };
40 
41  // IMPORTANT NOTE!
42  // SHOULD NEVER HAVE TO SET THE STORY REFERENCE VIA THIS INTERFACE
43  // SINCE IT CAN BE QUERIED DIRECTLY FROM THE NOTE OWNED ITEM INTERFACE.
44  // CALLING THESE TWO METHODS WILL RESULT IN ASSERTS AND kInvalidUID
45  // WILL RETURN IN GETTEXTMODEL.
46 
51  virtual const UID GetTextModel() const = 0;
52 
56  virtual void SetTextModel(const UID textModelUID) = 0;
57 
58 
63  virtual const WideString& GetAuthor() const = 0;
64 
69  virtual void SetAuthor(const WideString& author) = 0;
70 
71 
76  virtual bool16 GetCollapse() const = 0;
77 
82  virtual void SetCollapse(bool16 collapsedState) = 0;
83 };
84 
85 #endif // IADDNOTEDATACMDDATA_H