void PCommandManager::Init(void)
{
	commandMap		= map<BString,PCommand *>();
	undoList		= new BList();
	macroList		= new BList();
	undoStatus		= 0;
	recording		= NULL;

	PluginManager	*pluginManager	= (doc->BelongTo())->GetPluginManager();
	BList 			*commands		= pluginManager->GetPluginsByType(P_C_COMMANDO_PLUGIN_TYPE);
	if (commands)
	{
		for (int32 i=0; i<commands->CountItems();i++)
		{
			RegisterPCommand((BasePlugin *)commands->ItemAt(i));
		}
	}
}