HTMLFormatAggregator.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #pragma once
  2. #include "IClipAggregator.h"
  3. class CHTMLFormatAggregator : public IClipAggregator
  4. {
  5. public:
  6. CHTMLFormatAggregator(CStringA csSepator);
  7. ~CHTMLFormatAggregator(void);
  8. virtual bool AddClip(LPVOID lpData, int nDataSize, int nPos, int nCount);
  9. virtual HGLOBAL GetHGlobal();
  10. protected:
  11. CStringA m_csSeparator;
  12. CStringA m_csNewText;
  13. CStringA m_csSourceURL;
  14. CStringA m_csVersion;
  15. };
  16. class CHTMFormatStruct
  17. {
  18. public:
  19. CHTMFormatStruct()
  20. {
  21. m_lStartHTML = 0;
  22. m_lEndHTML = 0;
  23. m_lStartFragment = 0;
  24. m_lEndFragment = 0;
  25. }
  26. bool GetData(LPCSTR HTML);
  27. bool Serialize(CStringA &csHTMLFormat);
  28. const CStringA &GetFragment() { return m_csFragment; }
  29. const CStringA &GetURL() { return m_csSourceURL; }
  30. const CStringA &GetVersion() { return m_csVersion; }
  31. void SetFragment(const CStringA &cs){ m_csFragment = cs; }
  32. void SetURL(const CStringA &cs) { m_csSourceURL = cs; }
  33. void SetVersion(const CStringA &cs) { m_csVersion = cs; }
  34. protected:
  35. CStringA m_csVersion;
  36. long m_lStartHTML;
  37. long m_lEndHTML;
  38. long m_lStartFragment;
  39. long m_lEndFragment;
  40. CStringA m_csSourceURL;
  41. CStringA m_csFragment;
  42. };