IPViewItemCreator.h

Go to the documentation of this file.
00001 
00005 /**********************************************************************
00006  *<
00007     CREATED BY: Oleg Bayborodin
00008 
00009     HISTORY: created 11-11-02
00010 
00011  *> Copyright (c) 2001, All Rights Reserved.
00012  **********************************************************************/
00013 
00014 #pragma once
00015 
00016 #include "PFExport.h"
00017 #include "..\ifnpub.h"
00018 
00019 // interface ID
00020 #define PVIEWITEMCREATOR_INTERFACE Interface_ID(0x74f93d0b, 0x1eb34500)
00021 
00022 #define GetPViewItemCreatorInterface(obj) (IPViewItemCreator*)(obj->GetInterface(PVIEWITEMCREATOR_INTERFACE))
00023 
00024 class IPViewItemCreator : public FPMixinInterface
00025 {
00026 public:
00027 
00038 #pragma warning(push)
00039 #pragma warning(disable:4100)
00040     virtual bool CreateItem(int pviewX, int pviewY, Tab<INode*>* anchorNodes, Tab<INode*>* showNodes) { return false; }
00041 #pragma warning(pop)
00042 
00045     FPInterfaceDesc* GetDesc() { return GetDescByID(PVIEWITEMCREATOR_INTERFACE); }
00046 };
00047