InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICommandSequence.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Roey Horns
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 // Reviewed: 10/5/98
24 //
25 //========================================================================================
26 
27 #ifndef __ICOMMANDSEQUENCE__
28 #define __ICOMMANDSEQUENCE__
29 #include "K2SmartPtr.h"
30 class PMString;
31 
33 {
34  virtual ~Opaque_SequenceMarkInfo(){};
35  virtual bool IsValid() const = 0;
36 };
37 
38 typedef boost::shared_ptr<Opaque_SequenceMarkInfo> SequenceMark;
39 
51 class I_Base_CommandSequence // regular c++ class - not a K2 boss
52 {
53  public:
58  virtual ICommand::Undoability GetUndoability() const = 0;
59 
64  virtual void SetUndoability(ICommand::Undoability newUndoability) = 0;
65 
70  virtual void GetName(PMString *name) const = 0;
71 
76  virtual void SetName(const PMString& newName) = 0;
77 
80  virtual void AddReference() = 0;
81 
84  virtual void ReleaseReference() = 0;
85 
88  virtual const char* GetTrackingData() = 0;
89 
90 };
91 
131 {
132 };
133 
164 class IAbortableCmdSeq : public I_Base_CommandSequence // regular c++ class - not a K2 boss
165 {
166 };
167 
182 {
183  public:
185  virtual const char* GetTrackingData() = 0;
186 };
187 
188 
189 #endif // __ICOMMANDSEQUENCE__