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