Ignore:
Timestamp:
May 18, 2006, 3:41:24 PM (15 years ago)
Author:
Eugene Romanenko
Message:

implemented D&D into view window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/pluginman.cpp

    r2 r25  
    8787
    8888// returns NULL if not suitable plugin found
    89 LuDocument *PluginManager::createDocumentForExt( const char *ext )
     89// if checkOnly is true - just check if suitable plugin exist
     90LuDocument *PluginManager::createDocumentForExt( const char *ext, bool checkOnly )
    9091{
     92        if ( ext == NULL ) {
     93                return NULL;
     94        }
     95
    9196    LuDocument * APIENTRY (*pCreateObject)();
    9297
     
    114119                delete cExt;
    115120                delete cExts;
    116                 return pCreateObject();
     121
     122                if ( checkOnly ) {
     123                    return (LuDocument *)TRUE;
     124                }
     125                else {
     126                    return pCreateObject();
     127                }
    117128            }
    118129        }
     
    124135    return NULL;
    125136}
     137
    126138
    127139std::string PluginManager::getExtsMask()
Note: See TracChangeset for help on using the changeset viewer.