]> OCCT Git - occt-wok.git/commitdiff
Improvments for OCCTDocumentation generation and WOK tuning for IRIX64 platform
authorcascade <cascade@opencascade.com>
Wed, 2 Aug 2006 17:43:31 +0000 (17:43 +0000)
committercascade <cascade@opencascade.com>
Wed, 2 Aug 2006 17:43:31 +0000 (17:43 +0000)
src/WOKTclLib/DocGenerate.tcl
src/WOKTclLib/OCCTDocumentation.tcl

index 357b79b5221a2e97fbd70c90ea44983019108703..d1f35b975267225ffa076b4153e79e4c6865d9bb 100755 (executable)
@@ -1,6 +1,6 @@
 
 
-proc DocGenerate {theModule outDir} {
+proc DocGenerate {theModule outDir isSearch} {
 
  global tcl_platform
  global env
@@ -94,7 +94,10 @@ proc DocGenerate {theModule outDir} {
  puts $fileid "GENERATE_HTML   = YES"
  puts $fileid "GENERATE_LATEX   = NO"
  puts $fileid "SEARCH_INCLUDES  = YES"
- puts $fileid "GENERATE_TAGFILE = $outDir/${theModule}.tag"
+# puts $fileid "GENERATE_TAGFILE = $outDir/${theModule}.tag"
+ if {[string compare $isSearch "TRUE"] == 0} {
+     puts $fileid "SEARCHENGINE     = YES"
+ }
  puts $fileid "HAVE_DOT                = YES"
  puts $fileid "DOT_PATH                = [wokparam -v %CSF_GRAPHVIZ_HOME]"
  puts $fileid "COLLABORATION_GRAPH = NO"
index e5dc2055b48c41f16993d3d4fb38b23aec459af3..c47628be9f8ecf293b3434a661259aeaf8eff17f 100755 (executable)
@@ -1,9 +1,6 @@
-set OCCTDoc_DocLocation $env(OCCTDoc_Location)
-
 set OCCTDoc_DescriptionUnit "OS"
 
-proc OCCTDoc_UpdateDoxygenDocumentation {} {
-    global OCCTDoc_RWorkbench
+proc OCCTDoc_UpdateDoxygenDocumentation {OCCTDoc_DocLocation isSearch} {
     global OCCTDoc_DescriptionUnit
     
     set path_RWorkbench [pwd]
@@ -59,22 +56,20 @@ proc OCCTDoc_UpdateDoxygenDocumentation {} {
     }
 
     # creating of main HTML page
-    set retValue [OCCTDoc_CreateMainDoc $modulesList $toolkitsListOfList $packagesListOfListOfList]
+    set retValue [OCCTDoc_CreateMainDoc $OCCTDoc_DocLocation $isSearch $modulesList $toolkitsListOfList $packagesListOfListOfList]
     if {$retValue == 1} {
        puts "It is impossible to update documentation created by doxygen."
        return
     }
 }
 
-proc OCCTDoc_CreateMainDoc {modulesList toolkitsListOfList packagesListOfListOfList} {
-    global OCCTDoc_DocLocation
+proc OCCTDoc_CreateMainDoc {OCCTDoc_DocLocation isSearch modulesList toolkitsListOfList packagesListOfListOfList} {
     set file_modulesHTML [open $OCCTDoc_DocLocation/index.html {CREAT TRUNC RDWR}]
     puts $file_modulesHTML "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"
     puts $file_modulesHTML "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=iso-8859-1\">"
     puts $file_modulesHTML "<title>OpenCASCADE Modules</title>"
     puts $file_modulesHTML "<link href=\"doxygen.css\" rel=\"stylesheet\" type=\"text/css\">"
     puts $file_modulesHTML "</head><body>"
-#    puts $file_modulesHTML "<div class=\"qindex\"><a class=\"qindex\" href=\"index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindexHL\" href=\"modules.html\">OCC&nbsp;Modules</a></div>"
     puts $file_modulesHTML "<h1>OpenCASCADE<br>Modules</h1>"
     puts $file_modulesHTML "<hr size=\"1\">"
     puts $file_modulesHTML "<ul>"
@@ -86,9 +81,9 @@ proc OCCTDoc_CreateMainDoc {modulesList toolkitsListOfList packagesListOfListOfL
                if {[file exists $OCCTDoc_DocLocation/$moduleName/html/doxygen.css] == 1} {
                    exec cp $OCCTDoc_DocLocation/$moduleName/html/index.html $OCCTDoc_DocLocation/$moduleName/html/$moduleName\_index.html
                    puts $file_modulesHTML "<li><a class=\"el\" href=\"$moduleName/html/$moduleName\_index.html\">$moduleName</a>"
-                   OCCTDoc_UpdateModuleIndex $moduleName
-                   OCCTDoc_CreateToolkitHTML $moduleName [lindex $toolkitsListOfList $indexOfList] [lindex $packagesListOfListOfList $indexOfList]
-                   OCCTDoc_CreatePackageHTML $moduleName [lindex $toolkitsListOfList $indexOfList] [lindex $packagesListOfListOfList $indexOfList]
+                   OCCTDoc_UpdateModuleIndex $OCCTDoc_DocLocation $isSearch $moduleName
+                   OCCTDoc_CreateToolkitHTML $OCCTDoc_DocLocation $isSearch $moduleName [lindex $toolkitsListOfList $indexOfList] [lindex $packagesListOfListOfList $indexOfList]
+                   OCCTDoc_CreatePackageHTML $OCCTDoc_DocLocation $isSearch $moduleName [lindex $toolkitsListOfList $indexOfList] [lindex $packagesListOfListOfList $indexOfList]
                    if {$isPrepared == 0} {
                        exec cp $OCCTDoc_DocLocation/$moduleName/html/doxygen.css $OCCTDoc_DocLocation/doxygen.css
                        set isPrepared 1
@@ -113,8 +108,7 @@ proc OCCTDoc_CreateMainDoc {modulesList toolkitsListOfList packagesListOfListOfL
     return 0
 }
 
-proc OCCTDoc_UpdateModuleIndex {moduleName} {
-    global OCCTDoc_DocLocation
+proc OCCTDoc_UpdateModuleIndex {OCCTDoc_DocLocation isSearch moduleName} {
     if {[file exists $OCCTDoc_DocLocation/$moduleName/html/$moduleName\_index.html] == 1} {
        set file_newModuleIndex [open $OCCTDoc_DocLocation/$moduleName/html/$moduleName\_index.html {TRUNC RDWR}]
        set file_oldModuleIndex [open $OCCTDoc_DocLocation/$moduleName/html/index.html RDONLY]
@@ -125,9 +119,16 @@ proc OCCTDoc_UpdateModuleIndex {moduleName} {
                puts $file_newModuleIndex "<title>OpenCASCADE: $moduleName</title>"
                set isLineWrited 1
            }
-           if {[string compare [string range $line_OfFile 0 6] "<div cl"] == 0} {
-               puts $file_newModuleIndex "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindexHL\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-               set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $line_OfFile 0 8] "<a class="] == 0} {
+                   puts $file_newModuleIndex "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindexHL\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                   set isLineWrited 1
+               }
+           } else {
+               if {[string compare [string range $line_OfFile 0 10] "<div class="] == 0} {
+                   puts $file_newModuleIndex "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindexHL\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                   set isLineWrited 1
+               }
            }
            if {[string compare [string range $line_OfFile 0 3] "<h1>"] == 0} {
                puts $file_newModuleIndex "<h1>$moduleName Documentation</h1>"
@@ -139,15 +140,14 @@ proc OCCTDoc_UpdateModuleIndex {moduleName} {
        }
        close $file_oldModuleIndex
        close $file_newModuleIndex
-       OCCTDoc_UpdateModuleHTMLFiles $moduleName
+       OCCTDoc_UpdateModuleHTMLFiles $OCCTDoc_DocLocation $isSearch $moduleName
     } else {
        puts "File $OCCTDoc_DocLocation/$moduleName/html/$moduleName\_index.html is absent."
        puts "     Documentation for $moduleName is not updated."
     }
 }
 
-proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
-    global OCCTDoc_DocLocation
+proc OCCTDoc_UpdateModuleHTMLFiles {OCCTDoc_DocLocation isSearch moduleName} {
     # Processing the file annotated.html
     if {[file exists $OCCTDoc_DocLocation/$moduleName/html/annotated.html] == 1} {
        exec cp $OCCTDoc_DocLocation/$moduleName/html/annotated.html $OCCTDoc_DocLocation/$moduleName/html/annotated.html.old
@@ -156,15 +156,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/annotated.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindexHL\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindexHL\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindexHL\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -178,15 +191,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/files.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindexHL\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindexHL\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindexHL\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -200,15 +226,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/functions.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -222,15 +261,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/functions_enum.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -244,15 +296,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/functions_eval.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -266,15 +331,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/functions_func.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -288,15 +366,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/functions_rela.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -310,15 +401,63 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/functions_vars.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
+           } else {
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
+           }
+       }
+       close $file_old
+       close $file_new
+    }
+    # Processing the file functions_type.html
+    if {[file exists $OCCTDoc_DocLocation/$moduleName/html/functions_type.html] == 1} {
+       exec cp $OCCTDoc_DocLocation/$moduleName/html/functions_type.html $OCCTDoc_DocLocation/$moduleName/html/functions_type.html.old
+       set isLineWrited 0
+       set file_new [open $OCCTDoc_DocLocation/$moduleName/html/functions_type.html {RDWR TRUNC}]
+       set file_old [open $OCCTDoc_DocLocation/$moduleName/html/functions_type.html.old RDONLY]
+       while {[eof $file_old] == 0} {
+           set fileLine [string trim [gets $file_old]]
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindexHL\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -332,15 +471,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/globals.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -354,15 +506,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/globals_defs.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -376,15 +541,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/globals_enum.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -398,15 +576,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/globals_eval.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -420,15 +611,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/globals_func.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -442,15 +646,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/globals_type.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -464,15 +681,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/globals_vars.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindexHL\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -486,15 +716,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/graph_legend.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -508,15 +751,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/hierarchy.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindexHL\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindexHL\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindexHL\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -530,15 +786,28 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
        set file_old [open $OCCTDoc_DocLocation/$moduleName/html/inherits.html.old RDONLY]
        while {[eof $file_old] == 0} {
            set fileLine [string trim [gets $file_old]]
-           if {[string compare [string range $fileLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-                   puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $fileLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
                } else {
                    puts $file_new $fileLine
                }
            } else {
-               puts $file_new $fileLine
+               if {[string compare [string range $fileLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_new $fileLine
+                   }
+               } else {
+                   puts $file_new $fileLine
+               }
            }
        }
        close $file_old
@@ -546,8 +815,7 @@ proc OCCTDoc_UpdateModuleHTMLFiles {moduleName} {
     }
 }
 
-proc OCCTDoc_CreateToolkitHTML {moduleName toolkitsList packagesListOfList} {
-    global OCCTDoc_DocLocation
+proc OCCTDoc_CreateToolkitHTML {OCCTDoc_DocLocation isSearch moduleName toolkitsList packagesListOfList} {
     if {[file exists $OCCTDoc_DocLocation/$moduleName/html/toolkits] == 0} {
        exec mkdir $OCCTDoc_DocLocation/$moduleName/html/toolkits
     }
@@ -557,14 +825,19 @@ proc OCCTDoc_CreateToolkitHTML {moduleName toolkitsList packagesListOfList} {
     puts $file_toolkitsHTML "<title>$moduleName: Toolkits</title>"
     puts $file_toolkitsHTML "<link href=\"doxygen.css\" rel=\"stylesheet\" type=\"text/css\">"
     puts $file_toolkitsHTML "</head><body>"
-    puts $file_toolkitsHTML "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+    if {[string compare $isSearch "TRUE"] == 0} {
+       puts $file_toolkitsHTML "<div class=\"qindex\"> <form class=\"search\" action=\"search.php\" method=\"get\">"
+       puts $file_toolkitsHTML "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindexHL\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+    } else {
+       puts $file_toolkitsHTML "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindexHL\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+    }
     puts $file_toolkitsHTML "<h1>$moduleName<br>Toolkits</h1>"
     puts $file_toolkitsHTML "<hr size=\"1\">"
     puts $file_toolkitsHTML "<ul>"
     for {set indexOfList 0} {$indexOfList < [llength $toolkitsList]} {incr indexOfList 1} {
        set toolkitName [lindex $toolkitsList $indexOfList]
        puts $file_toolkitsHTML "<li><a class=\"el\" href=\"toolkits/$toolkitName.html\">$toolkitName</a>"
-       OCCTDoc_ProcessToolkitsHTML $moduleName $toolkitName [lindex $packagesListOfList $indexOfList]
+       OCCTDoc_ProcessToolkitsHTML $OCCTDoc_DocLocation $isSearch $moduleName $toolkitName [lindex $packagesListOfList $indexOfList]
     }
     puts $file_toolkitsHTML "</ul>"
     puts $file_toolkitsHTML "<hr size=\"1\">"
@@ -573,8 +846,7 @@ proc OCCTDoc_CreateToolkitHTML {moduleName toolkitsList packagesListOfList} {
     close $file_toolkitsHTML
 }
 
-proc OCCTDoc_CreatePackageHTML {moduleName toolkitsList packagesListOfList} {
-    global OCCTDoc_DocLocation
+proc OCCTDoc_CreatePackageHTML {OCCTDoc_DocLocation isSearch moduleName toolkitsList packagesListOfList} {
     if {[file exists $OCCTDoc_DocLocation/$moduleName/html/packages] == 0} {
        exec mkdir $OCCTDoc_DocLocation/$moduleName/html/packages
     }
@@ -584,7 +856,12 @@ proc OCCTDoc_CreatePackageHTML {moduleName toolkitsList packagesListOfList} {
     puts $file_packagesHTML "<title>$moduleName: Packages</title>"
     puts $file_packagesHTML "<link href=\"doxygen.css\" rel=\"stylesheet\" type=\"text/css\">"
     puts $file_packagesHTML "</head><body>"
-    puts $file_packagesHTML "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindexHL\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+    if {[string compare $isSearch "TRUE"] == 0} {
+       puts $file_packagesHTML "<div class=\"qindex\"> <form class=\"search\" action=\"search.php\" method=\"get\">"
+       puts $file_packagesHTML "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindexHL\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+    } else {
+       puts $file_packagesHTML "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindexHL\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+    }
     puts $file_packagesHTML "<h1>$moduleName<br>Packages</h1>"
     puts $file_packagesHTML "<hr size=\"1\">"
     puts $file_packagesHTML "<ul>"
@@ -594,7 +871,7 @@ proc OCCTDoc_CreatePackageHTML {moduleName toolkitsList packagesListOfList} {
        for {set indexOfList_2 0} {$indexOfList_2 < [llength $packagesList]} {incr indexOfList_2 1} {
            set packageName [lindex $packagesList $indexOfList_2]
            puts $file_packagesHTML "<li><a class=\"el\" href=\"packages/$packageName.html\">$packageName</a>"
-           OCCTDoc_ProcessPackagesHTML $moduleName $toolkitName $packageName
+           OCCTDoc_ProcessPackagesHTML $OCCTDoc_DocLocation $isSearch $moduleName $toolkitName $packageName
        }
     }
     puts $file_packagesHTML "</ul>"
@@ -604,8 +881,7 @@ proc OCCTDoc_CreatePackageHTML {moduleName toolkitsList packagesListOfList} {
     close $file_packagesHTML
 }
 
-proc OCCTDoc_ProcessToolkitsHTML {moduleName toolkitName packagesList} {
-    global OCCTDoc_DocLocation
+proc OCCTDoc_ProcessToolkitsHTML {OCCTDoc_DocLocation isSearch moduleName toolkitName packagesList} {
     if {[file exists $OCCTDoc_DocLocation/$moduleName/html/toolkits] == 0} {
        exec mkdir $OCCTDoc_DocLocation/$moduleName/html/toolkits
     }
@@ -615,7 +891,12 @@ proc OCCTDoc_ProcessToolkitsHTML {moduleName toolkitName packagesList} {
     puts $file_toolkitHTML "<title>$moduleName: $toolkitName: Packages</title>"
     puts $file_toolkitHTML "<link href=\"../doxygen.css\" rel=\"stylesheet\" type=\"text/css\">"
     puts $file_toolkitHTML "</head><body>"
-    puts $file_toolkitHTML "<div class=\"qindex\"><a class=\"qindex\" href=\"../../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"../$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"../toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"../packages.html\">Packages</a> | <a class=\"qindex\" href=\"../hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"../annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"../files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"../functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"../globals.html\">Globals</a></div>"
+    if {[string compare $isSearch "TRUE"] == 0} {
+       puts $file_toolkitHTML "<div class=\"qindex\"> <form class=\"search\" action=\"../search.php\" method=\"get\">"
+       puts $file_toolkitHTML "<a class=\"qindex\" href=\"../../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"../$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"../toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"../packages.html\">Packages</a> | <a class=\"qindex\" href=\"../hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"../annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"../files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"../functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"../globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+    } else {
+       puts $file_toolkitHTML "<div class=\"qindex\"><a class=\"qindex\" href=\"../../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"../$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"../toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"../packages.html\">Packages</a> | <a class=\"qindex\" href=\"../hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"../annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"../files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"../functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"../globals.html\">Globals</a></div>"
+    }
     puts $file_toolkitHTML "<h1>$moduleName<br>$toolkitName<br>Packages</h1>"
     puts $file_toolkitHTML "<hr size=\"1\">"
     puts $file_toolkitHTML "<ul>"
@@ -630,8 +911,7 @@ proc OCCTDoc_ProcessToolkitsHTML {moduleName toolkitName packagesList} {
     close $file_toolkitHTML
 }
 
-proc OCCTDoc_ProcessPackagesHTML {moduleName toolkitName packageName} {
-    global OCCTDoc_DocLocation
+proc OCCTDoc_ProcessPackagesHTML {OCCTDoc_DocLocation isSearch moduleName toolkitName packageName} {
     if {[file exists $OCCTDoc_DocLocation/$moduleName/html/packages] == 0} {
        exec mkdir $OCCTDoc_DocLocation/$moduleName/html/packages
     }
@@ -641,7 +921,12 @@ proc OCCTDoc_ProcessPackagesHTML {moduleName toolkitName packageName} {
     puts $file_packageHTML "<title>$moduleName: $toolkitName: $packageName: Classes</title>"
     puts $file_packageHTML "<link href=\"../doxygen.css\" rel=\"stylesheet\" type=\"text/css\">"
     puts $file_packageHTML "</head><body>"
-    puts $file_packageHTML "<div class=\"qindex\"><a class=\"qindex\" href=\"../../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"../$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"../toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"../packages.html\">Packages</a> | <a class=\"qindex\" href=\"../hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"../annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"../files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"../functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"../globals.html\">Globals</a></div>"
+    if {[string compare $isSearch "TRUE"] == 0} {
+       puts $file_packageHTML "<div class=\"qindex\"> <form class=\"search\" action=\"../search.php\" method=\"get\">"
+       puts $file_packageHTML "<a class=\"qindex\" href=\"../../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"../$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"../toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"../packages.html\">Packages</a> | <a class=\"qindex\" href=\"../hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"../annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"../files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"../functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"../globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+    } else {
+       puts $file_packageHTML "<div class=\"qindex\"><a class=\"qindex\" href=\"../../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"../$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"../toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"../packages.html\">Packages</a> | <a class=\"qindex\" href=\"../hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"../annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"../files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"../functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"../globals.html\">Globals</a></div>"
+    }
     puts $file_packageHTML "<h1>$moduleName<br><a href=\"../toolkits/$toolkitName.html\">$toolkitName</a><br>$packageName<br>Classes</h1>"
     puts $file_packageHTML "<hr size=\"1\">"
     puts $file_packageHTML "<ul>"
@@ -660,7 +945,7 @@ proc OCCTDoc_ProcessPackagesHTML {moduleName toolkitName packageName} {
                        set linkPath [string trim [ string range $linkPath [expr {[string last \" $linkPath] + 1}] [string length $linkPath]]]
                        if {[string length $className] != 0} {
                            lappend linksList $className
-                           OCCTDoc_UpdateClassDescriptionFile $linkPath $moduleName $toolkitName $packageName
+                           OCCTDoc_UpdateClassDescriptionFile $OCCTDoc_DocLocation $isSearch $linkPath $moduleName $toolkitName $packageName
                            puts $file_packageHTML "<li><a class=\"el\" href=\"../$linkPath\">$className</a>"
                        }
                    }
@@ -677,8 +962,7 @@ proc OCCTDoc_ProcessPackagesHTML {moduleName toolkitName packageName} {
     close $file_packageHTML
 }
 
-proc OCCTDoc_UpdateClassDescriptionFile {pathToFile moduleName toolkitName packageName} {
-    global OCCTDoc_DocLocation
+proc OCCTDoc_UpdateClassDescriptionFile {OCCTDoc_DocLocation isSearch pathToFile moduleName toolkitName packageName} {
     set updatedPath [string trim $pathToFile]
     set backPath ""
     set empty 0
@@ -700,18 +984,32 @@ proc OCCTDoc_UpdateClassDescriptionFile {pathToFile moduleName toolkitName packa
        set file_classHTML_old [open $file_ClassHTML_old RDONLY]
        while {[eof $file_classHTML_old] == 0} {
            set classLine [string trim [gets $file_classHTML_old]]
-           if {[string compare [string range $classLine 0 6] "<div cl"] == 0} {
-               if {$isLineWrited == 0} {
-#                  puts $file_classHTML_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../$backPath\index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$backPath$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"$backPath\toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"$backPath\packages.html\">Packages</a> | <a class=\"qindex\" href=\"$backPath\hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"$backPath\\annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"$backPath\\files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"$backPath\\functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"$backPath\globals.html\">Globals</a></div>"
-                   puts $file_classHTML_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
-                   puts $file_classHTML_new "<h1>$moduleName<br><a href=\"toolkits/$toolkitName.html\">$toolkitName</a><br><a href=\"packages/$packageName.html\">$packageName</a></h1>"
-                   puts $file_classHTML_new "<hr size=\"1\">"
-                   set isLineWrited 1
+           if {[string compare $isSearch "TRUE"] == 0} {
+               if {[string compare [string range $classLine 0 8] "<a class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_classHTML_new "<a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a> | <span class=\"search\"><u>S</u>earch&nbsp;for&nbsp;<input class=\"search\" type=\"text\" name=\"query\" value=\"\" size=\"20\" accesskey=\"s\"/></span></form></div>"
+                       puts $file_classHTML_new "<h1>$moduleName<br><a href=\"toolkits/$toolkitName.html\">$toolkitName</a><br><a href=\"packages/$packageName.html\">$packageName</a></h1>"
+                       puts $file_classHTML_new "<hr size=\"1\">"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_classHTML_new $classLine
+                   }
                } else {
                    puts $file_classHTML_new $classLine
                }
            } else {
-               puts $file_classHTML_new $classLine
+               if {[string compare [string range $classLine 0 10] "<div class="] == 0} {
+                   if {$isLineWrited == 0} {
+                       puts $file_classHTML_new "<div class=\"qindex\"><a class=\"qindex\" href=\"../../index.html\">OCC&nbsp;Main&nbsp;Page</a> | <a class=\"qindex\" href=\"$moduleName\_index.html\">$moduleName</a> | <a class=\"qindex\" href=\"toolkits.html\">Toolkits</a> | <a class=\"qindex\" href=\"packages.html\">Packages</a> | <a class=\"qindex\" href=\"hierarchy.html\">Class&nbsp;Hierarchy</a> | <a class=\"qindex\" href=\"annotated.html\">Data&nbsp;Structures</a> | <a class=\"qindex\" href=\"files.html\">File&nbsp;List</a> | <a class=\"qindex\" href=\"functions.html\">Data&nbsp;Fields</a> | <a class=\"qindex\" href=\"globals.html\">Globals</a></div>"
+                       puts $file_classHTML_new "<h1>$moduleName<br><a href=\"toolkits/$toolkitName.html\">$toolkitName</a><br><a href=\"packages/$packageName.html\">$packageName</a></h1>"
+                       puts $file_classHTML_new "<hr size=\"1\">"
+                       set isLineWrited 1
+                   } else {
+                       puts $file_classHTML_new $classLine
+                   }
+               } else {
+                   puts $file_classHTML_new $classLine
+               }
            }
        }
        close $file_classHTML_old