Changeset 25 for trunk/Lucide/SOURCE/gui/pluginman.cpp
- Timestamp:
- May 18, 2006, 3:41:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Lucide/SOURCE/gui/pluginman.cpp
r2 r25 87 87 88 88 // 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 90 LuDocument *PluginManager::createDocumentForExt( const char *ext, bool checkOnly ) 90 91 { 92 if ( ext == NULL ) { 93 return NULL; 94 } 95 91 96 LuDocument * APIENTRY (*pCreateObject)(); 92 97 … … 114 119 delete cExt; 115 120 delete cExts; 116 return pCreateObject(); 121 122 if ( checkOnly ) { 123 return (LuDocument *)TRUE; 124 } 125 else { 126 return pCreateObject(); 127 } 117 128 } 118 129 } … … 124 135 return NULL; 125 136 } 137 126 138 127 139 std::string PluginManager::getExtsMask()
Note: See TracChangeset
for help on using the changeset viewer.