DittoRulerRichEditCtrl.h 732 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "rulerricheditctrl\rulerricheditctrl.h"
  3. #define SAVED_CLIP_TO_DB 1
  4. #define DIDNT_NEED_TO_SAVE 2
  5. class CDittoRulerRichEditCtrl : public CRulerRichEditCtrl
  6. {
  7. public:
  8. CDittoRulerRichEditCtrl(void);
  9. ~CDittoRulerRichEditCtrl(void);
  10. enum eSaveTypes{stNONE = 0x1, stCF_TEXT = 0x2, stCF_UNICODETEXT = 0x4, stRTF = 0x8};
  11. bool LoadItem(long lID, CString csDesc);
  12. int SaveToDB(BOOL bUpdateDesc);
  13. long GetTypeFlags(long lID);
  14. bool CloseEdit(bool bPrompt, BOOL bUpdateDesc);
  15. long GetDBID() { return m_lID; }
  16. CString GetDesc() { return m_csDescription; }
  17. void d();
  18. protected:
  19. long m_lID;
  20. long m_SaveTypes;
  21. CString m_csDescription;
  22. bool LoadRTFData(CClip &Clip);
  23. bool LoadTextData(CClip &Clip);
  24. };