home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / ole / drawcli / summinfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.9 KB  |  68 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-1998 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.  
  14. #include "propset.h"
  15. #include <objidl.h>
  16.  
  17. extern const OLECHAR szSummInfo[];
  18.  
  19. DEFINE_GUID( FMTID_SummaryInformation, 0xF29F85E0, 0x4FF9, 0x1068,
  20.     0xAB, 0x91, 0x08, 0x00, 0x2B, 0x27, 0xB3, 0xD9 );
  21.  
  22. class CSummInfo
  23. {
  24. public:
  25.     CSummInfo();
  26.     BOOL SetTitle(LPCTSTR szTitle);
  27.     CString GetTitle();
  28.     BOOL SetSubject(LPCTSTR szSubject);
  29.     CString GetSubject();
  30.     BOOL SetAuthor(LPCTSTR szAuthor);
  31.     CString GetAuthor();
  32.     BOOL SetKeywords(LPCTSTR szKeywords);
  33.     CString GetKeywords();
  34.     BOOL SetComments(LPCTSTR szComments);
  35.     CString GetComments();
  36.     BOOL SetTemplate(LPCTSTR szTemplate);
  37.     CString GetTemplate();
  38.     BOOL SetLastAuthor(LPCTSTR szLastAuthor);
  39.     CString GetLastAuthor();
  40.     BOOL IncrRevNum();
  41.     CString GetRevNum();
  42.     void StartEditTimeCount();
  43.     BOOL AddCountToEditTime();
  44.     CString GetEditTime();
  45.     BOOL RecordPrintDate();
  46.     CString GetLastPrintDate();
  47.     BOOL RecordCreateDate();
  48.     CString GetCreateDate();
  49.     BOOL RecordSaveDate();
  50.     CString GetLastSaveDate();
  51.     BOOL SetNumPages(ULONG nPages);
  52.     CString GetNumPages();
  53.     BOOL SetNumWords(ULONG nWords);
  54.     CString GetNumWords();
  55.     BOOL SetNumChars(ULONG nChars);
  56.     CString GetNumChars();
  57.     BOOL SetAppname(LPCTSTR szAppname);
  58.     CString GetAppname();
  59.     BOOL SetSecurity(ULONG nLevel);
  60.     CString GetSecurity();
  61.     BOOL WriteToStorage(LPSTORAGE lpRootStg);
  62.     BOOL ReadFromStorage(LPSTORAGE lpRootStg);
  63. protected:
  64.     CPropertySet m_propSet;
  65.     CPropertySection* m_pSection;
  66.     __int64 startEdit;
  67. };
  68.