24 #ifndef __Collection__ 25 #define __Collection__ 31 #include "ContentDropperTypes.h" 32 #include "BravoForwardDecl.h" 34 #include "ContentDropperToolID.h" 43 explicit CCollection(int32 objType,
IDataBase* db): fType(objType),fDb(db),fCaptureID(-1),fLinkPolicy(ContentDropperTypes::kUnknownPolicy) {};
47 virtual bool16 Find(
UID)
const = 0 ;
48 virtual bool16 Remove(
UID) = 0;
49 virtual bool16 RemoveNth(int32) = 0;
51 virtual CCollection* GetNthElement(int16)
const = 0 ;
52 virtual int32 GetNumberOfElements(
void)
const = 0 ;
56 virtual const UIDList GetFlattenedUIDList(bool16 sorted = kTrue)
const = 0 ;
59 virtual bool16 IsExpandable()
const = 0 ;
60 virtual bool16 CanUnbundle()
const= 0 ;
67 virtual int32 GetType()
const {
return fType;}
69 virtual bool16 GetPreview(CAGMImage & newImage,
const uint32 maxWidth,
const uint32 maxHeight)
const = 0;
71 virtual void SetCaptureID(int32
id) {fCaptureID = id;}
72 virtual int32 GetCaptureID()
const {
return fCaptureID;}
74 virtual void SetLinkPolicy(ContentDropperTypes::LinkPolicy linkPolicy) { fLinkPolicy = linkPolicy; }
75 virtual ContentDropperTypes::LinkPolicy GetLinkPolicy()
const {
return fLinkPolicy; }
81 ContentDropperTypes::LinkPolicy fLinkPolicy;