+ void Factory::ShowGraphTypes(const std::string& name) const
+ {
+ bool found = false;
+ PackageMapType::const_iterator i;
+ for (i = mPackageMap.begin(); i!=mPackageMap.end(); ++i )
+ {
+ if (i->second.mPackage->ContainsBlackBox(name))
+ {
+ std::string separator = ConfigurationFile::GetInstance().Get_file_separator ();
+
+ // Don't pollute the file store with "temp_dir" directories ...
+ std::string default_doc_dir = ConfigurationFile::GetInstance().Get_default_temp_dir();
+ std::string directory = "\"" + default_doc_dir + separator + "temp_dir" +separator + "\"";
+ std::string filename2 = default_doc_dir + separator + "temp_dir" + separator + "tmp.html";
+
+#if defined(_WIN32)
+ std::string command("start \"Titre\" /D ");
+#else
+ std::string command("gnome-open ");
+#endif
+ command=command + directory +" tmp.html";
+ FILE *ff;
+ ff=fopen(filename2.c_str(),"w");
+
+ fprintf(ff,"<html><head><title>TMP</title> <script type=\"text/javascript\"> <!--\n");
+ fprintf(ff," window.location=\"%s#%s\";\n" , i->second.mPackage->GetDocURL().c_str(),name.c_str() );
+ fprintf(ff,"//--></script></head><body></body></html>\n");
+
+
+ //fprintf(ff, "<a href=\"%s#%s\">Link</a>\n", i->second.mPackage->GetDocURL().c_str(),name.c_str() );
+ fclose(ff);
+ system( command.c_str() );
+ found = true;
+ }
+ }
+
+ bbtkDebugDecTab("Kernel",9);
+ if (!found)
+ {
+ bbtkError("No package of the factory contains any black box <"
+ <<name<<">");
+ }
+ }
+
+
+
+
+ void Factory::CreateHtmlIndex(IndexEntryType type,
+ const std::string& filename)