![]() | InDesign SDK 20.5 |
#include <idocumentlog.h>

Classes | |
| class | DocEvent |
Public Types | |
| enum | { kDefaultIID = IID_IDOCUMENTLOG } |
| enum | PlatformType { kMacintosh = 0, kWindows = 1, kMacintoshX64 = 2, kWindowsX64 = 3, kWasm = 4 } |
| enum | EventType { kFirstEventType = 0, kNoEvent = kFirstEventType, kRecoveredFile = 1, kRecoveredMiniSave = 2, kConverted = 3, kOpenACopy = 4, kOpenWithMissingPlugins = 5, kSaveAs = 6, kCreated = 7, kTransfered = 8, kConvertedFromQXP = 9, kConvertedFromPM = 10, kBookSync = 11, kBookRepage = 12, kConvertedFromINX = 13, kMostRecentSave = 14, kBookUpdateXRef = 15, kOpenAClone = 16, kUsedContentDropper = 17, kUsedLayoutAdjustment = 18, kExportedEPUB2 = 19, kExportedEPUB3 = 20, kExportedHTMLFXL = 22, kCreatedInTWS = 23, kCreatedInComp = 24, kLastEventType = 25 } |
| enum | LineBreaking { kPlatformLineBreaks, kCLineBreaks } |
Public Member Functions | |
| virtual void | SetMaxEntries (int32 maximumNumberOfEvents)=0 |
| virtual bool16 | InfoIsAvailable () const =0 |
| virtual void | AddEvent (EventType what)=0 |
| virtual int32 | EventCount () const =0 |
| virtual int32 | EventCountOfType (EventType what) const =0 |
| virtual bool16 | GetEventInfo (int32 i, DocEvent &event) const =0 |
| virtual bool16 | GetEventInfoOfType (EventType what, int32 i, DocEvent &event) const =0 |
| virtual bool16 | HasHadEvent (EventType what) const =0 |
| virtual void | SerializeAsEventLog (IPMStream *s, IDocumentLog::LineBreaking lineBreaks) const =0 |
| virtual const char * | GetEventDescription (EventType what) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface records a little bit of information about major events that have happened to a document. The document log maintains information about a certain set of events. The document log has 2 sets of information about these events. 1) It knows whether the document has ever experienced a certain event. 2) It keeps a list of the most recent events, with additional information about each of them. This list is finite length to avoid growing the log too much. This means that you cannot rely on the document log still having information about any particular event. For example, you can't count on using the document log to determine what version of InDesign a document was created in, because the creation event may no longer be available.
It's sometimes useful to examine this information when a document is discovered that has some problems. If you open a document in InDesign or InCopy, you can view the document log by holding down cmd/cntrl and bringing up the 'About InDesign...' or 'About InCopy...' dialog. Click the 'Write Log File' button to get a text file with this log information written to it.
| pure virtual |
Add a new event to the log. May remove an old entry to make room for the new one.
| what | type of new event to record |
| pure virtual |
Return the number of events in the log.
| pure virtual |
Return the number of events in the log of a certain type
| what | type of event to count |
| pure virtual |
Return a human readable version of the event type
| pure virtual |
Return the n'th event
| i | index of the event |
| pure virtual |
Return the n'th event of type what.
| what | type of event to return |
| i | index of the event |
| pure virtual |
Return true if there have ever been any events of this type. There may be events of this type that were purged out of the log; if so, this will still return true.
| what | type of event to check for |
| pure virtual |
Returns true if the log has been initialized & written to disk
| pure virtual |
Return a human readable version of the log, written out into the stream.
| s | the stream to write to |
| lineBreaks | the style of linebreaks to put into the stream |
| pure virtual |
Set the maximum number of entries that the log will keep
| maximumNumberOfEvents | how many MRU entries to keep |