InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IFootnoteNumber.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner:
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 __IFootnoteNumber__
25 #define __IFootnoteNumber__
26 
27 #include "IPMUnknown.h"
28 #include "TextID.h"
29 
30 class PMString;
31 class IFootnoteNumbering;
32 
33 
34 const int32 kInvalidFootnoteNumber = -1;
35 
40 {
41 public:
42  enum { kDefaultIID = IID_IFOOTNOTENUMBER };
43 
44  typedef enum { kFootnoteReferenceInText, kFootnoteNumberInFootnote } FootnoteLocation;
45 
48  virtual int32 GetTheNumber(bool16 calculateWhenInvalid) const = 0;
49 
53  virtual void GetNumberString(FootnoteLocation location, PMString& noteNum) const = 0;
54 
59  virtual void GetNominalNumberString(FootnoteLocation location, PMString& noteNum) const = 0;
60 
66  virtual bool16 ResetFootnoteNumber(int32 n = kInvalidFootnoteNumber, bool16 damageIfChanged = kTrue) = 0;
67 
71  virtual bool16 RecalculateFootnoteNumber() = 0;
72 
76  virtual IFootnoteNumbering* QueryFootnoteNumbering() const = 0;
77 
78 };
79 
80 #endif
81  // __IFootNoteNumber__