зеркало из https://github.com/mozilla/pjs.git
added nsXIFFormatConverter
This commit is contained in:
Родитель
cae0d17a42
Коммит
939e3f3617
|
@ -51,6 +51,7 @@
|
|||
//#include "DataObj.h"
|
||||
#include "nsClipboard.h"
|
||||
#include "nsTransferable.h"
|
||||
#include "nsXIFFormatConverter.h"
|
||||
#include "nsDataFlavor.h"
|
||||
#include "nsDragService.h"
|
||||
#include "nsDragSource.h"
|
||||
|
@ -87,6 +88,7 @@ static NS_DEFINE_IID(kCMenuButton, NS_MENUBUTTON_CID);
|
|||
static NS_DEFINE_IID(kCDataObj, NS_DATAOBJ_CID);
|
||||
static NS_DEFINE_IID(kCClipboard, NS_CLIPBOARD_CID);
|
||||
static NS_DEFINE_IID(kCTransferable, NS_TRANSFERABLE_CID);
|
||||
static NS_DEFINE_IID(kCXIFFormatConverter, NS_XIFFORMATCONVERTER_CID);
|
||||
static NS_DEFINE_IID(kCDataFlavor, NS_DATAFLAVOR_CID);
|
||||
static NS_DEFINE_IID(kCDragService, NS_DRAGSERVICE_CID);
|
||||
static NS_DEFINE_IID(kCDragSource, NS_DRAGSOURCE_CID);
|
||||
|
@ -250,6 +252,9 @@ nsresult nsWidgetFactory::CreateInstance( nsISupports* aOuter,
|
|||
else if (mClassID.Equals(kCTransferable)) {
|
||||
inst = (nsISupports*)new nsTransferable();
|
||||
}
|
||||
else if (mClassID.Equals(kCXIFFormatConverter)) {
|
||||
inst = (nsISupports*)new nsXIFFormatConverter();
|
||||
}
|
||||
else if (mClassID.Equals(kCClipboard)) {
|
||||
inst = (nsISupports*)new nsClipboard();
|
||||
}
|
||||
|
@ -265,6 +270,9 @@ nsresult nsWidgetFactory::CreateInstance( nsISupports* aOuter,
|
|||
else if (mClassID.Equals(kCDraggedObject)) {
|
||||
inst = (nsISupports*)new nsDraggedObject();
|
||||
}
|
||||
else if (mClassID.Equals(kCXIFFormatConverter)) {
|
||||
inst = (nsISupports*)new nsDraggedObject();
|
||||
}
|
||||
#ifdef DRAG_DROP
|
||||
//else if (mClassID.Equals(kCDataObj)) {
|
||||
//inst = (nsISupports*)new CfDataObj();
|
||||
|
|
Загрузка…
Ссылка в новой задаче