home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / DRAWCL.PAK / SUMMINFO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  2.6 KB  |  91 lines

  1. // summinfo.h : interface of the CSummInfo classes
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #if !defined(_MAC)
  14.  
  15. #include "propset.h"
  16.  
  17. extern const OLECHAR szSummInfo[];
  18.  
  19. DEFINE_GUID( FMTID_SummaryInformation, 0xF29F85E0, 0x4FF9, 0x1068, 0xAB, 0x91, 0x08, 0x00, 0x2B, 0x27, 0xB3, 0xD9 ) ;
  20.  
  21. #define PID_DICTIONARY 0X00000000
  22. #define PID_CODEPAGE 0X00000001
  23. #define PID_TITLE 0X00000002
  24. #define PID_SUBJECT 0X00000003
  25. #define PID_AUTHOR 0X00000004
  26. #define PID_KEYWORDS 0X00000005
  27. #define PID_COMMENTS 0X00000006
  28. #define PID_TEMPLATE 0X00000007
  29. #define PID_LASTAUTHOR 0X00000008
  30. #define PID_REVNUMBER 0X00000009
  31. #define PID_EDITTIME 0X0000000A
  32. #define PID_LASTPRINTED 0X0000000B
  33. #define PID_CREATE_DTM 0X0000000C
  34. #define PID_LASTSAVE_DTM 0X0000000D
  35. #define PID_PAGECOUNT 0X0000000E
  36. #define PID_WORDCOUNT 0X0000000F
  37. #define PID_CHARCOUNT 0X00000010
  38. #define PID_THUMBNAIL 0X00000011
  39. #define PID_APPNAME 0X00000012
  40. #define PID_SECURITY 0X00000013
  41. #define cPID_STANDARD (PID_SECURITY+1-2)
  42.  
  43. class CSummInfo
  44. {
  45. public:
  46.     CSummInfo();
  47.     BOOL SetTitle(LPCTSTR szTitle);
  48.     CString GetTitle();
  49.     BOOL SetSubject(LPCTSTR szSubject);
  50.     CString GetSubject();
  51.     BOOL SetAuthor(LPCTSTR szAuthor);
  52.     CString GetAuthor();
  53.     BOOL SetKeywords(LPCTSTR szKeywords);
  54.     CString GetKeywords();
  55.     BOOL SetComments(LPCTSTR szComments);
  56.     CString GetComments();
  57.     BOOL SetTemplate(LPCTSTR szTemplate);
  58.     CString GetTemplate();
  59.     BOOL SetLastAuthor(LPCTSTR szLastAuthor);
  60.     CString GetLastAuthor();
  61.     BOOL IncrRevNum();
  62.     CString GetRevNum();
  63.     void StartEditTimeCount();
  64.     BOOL AddCountToEditTime();
  65.     CString GetEditTime();
  66.     BOOL RecordPrintDate();
  67.     CString GetLastPrintDate();
  68.     BOOL RecordCreateDate();
  69.     CString GetCreateDate();
  70.     BOOL RecordSaveDate();
  71.     CString GetLastSaveDate();
  72.     BOOL SetNumPages(ULONG nPages);
  73.     CString GetNumPages();
  74.     BOOL SetNumWords(ULONG nWords);
  75.     CString GetNumWords();
  76.     BOOL SetNumChars(ULONG nChars);
  77.     CString GetNumChars();
  78.     BOOL SetAppname(LPCTSTR szAppname);
  79.     CString GetAppname();
  80.     BOOL SetSecurity(ULONG nLevel);
  81.     CString GetSecurity();
  82.     BOOL WriteToStorage(LPSTORAGE lpRootStg);
  83.     BOOL ReadFromStorage(LPSTORAGE lpRootStg);
  84. protected:
  85.     CPropertySet m_propSet;
  86.     CPropertySection* m_pSection;
  87.     double startEdit;
  88. };
  89.  
  90. #endif // !defined(_MAC)
  91.