ClipIds.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #include "IClipAggregator.h"
  3. #include "sqlite\CppSQLite3.h"
  4. class CClipIDs : public CArrayEx<int>
  5. {
  6. public:
  7. // PASTING FUNCTIONS
  8. // allocate an HGLOBAL of the given Format Type representing the Clip IDs in this array.
  9. HGLOBAL Render(UINT cfType);
  10. // Fills "types" with the Format Types corresponding to the Clip IDs in this array.
  11. void GetTypes(CClipTypes& types);
  12. bool AggregateData(IClipAggregator &Aggregator, UINT cfType, BOOL bReverse);
  13. // MANAGEMENT FUNCTIONS
  14. // Blindly Moves IDs into the lParentID Group sequentially with the given order
  15. // (i.e. this does not check to see if the IDs' order conflict)
  16. // if( dIncrement < 0 ), this does not change the order
  17. BOOL MoveTo(long lParentID, double dFirst = 0, double dIncrement = -1);
  18. // reorders the "lParentID" Group, inserting before the given id.
  19. // if the id cannot be found, this appends the IDs.
  20. // BOOL ReorderGroupInsert( long lParentID, long lInsertBeforeID = 0 );
  21. // Empties this array and fills it with the elements of the given group ID
  22. BOOL LoadElementsOf(int groupId);
  23. BOOL CopyTo(int parentId);
  24. BOOL DeleteIDs(bool fromClipWindow, CppSQLite3DB& db);
  25. BOOL Export(CString csFilePath);
  26. protected:
  27. BOOL CreateExportSqliteDB(CppSQLite3DB &db);
  28. protected:
  29. };