summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
authorahoogol <ahoogol@gmail.com>2017-06-25 07:32:35 (GMT)
committerahoogol <ahoogol@gmail.com>2017-06-25 07:32:35 (GMT)
commit5885c89d6b30ca607f84794d0de6800f49dd327b (patch)
tree4005066c10fd003cd6d93697b92a6cf7ba206266 /src/index.cpp
parente7e62101a1a659740223c32cdd525b1e66b1cf09 (diff)
downloadDoxygen-5885c89d6b30ca607f84794d0de6800f49dd327b.zip
Doxygen-5885c89d6b30ca607f84794d0de6800f49dd327b.tar.gz
Doxygen-5885c89d6b30ca607f84794d0de6800f49dd327b.tar.bz2
Added support for RTL(right to left) languages like Arabic and Persian in HTML output
Diffstat (limited to 'src/index.cpp')
-rw-r--r--src/index.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 10c1dcb..375bdeb 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -3829,6 +3829,18 @@ static void writeIndex(OutputList &ol)
ol.writeSplitBar(indexName);
ol.writeSearchInfo();
bool headerWritten=FALSE;
+ if (Doxygen::mainPage)
+ {
+ if (!Doxygen::mainPage->title().isEmpty())
+ {
+ if (Doxygen::mainPage->title().lower() != "notitle")
+ ol.startPageDoc(Doxygen::mainPage->title());
+ else
+ ol.startPageDoc("");
+ }
+ else
+ ol.startPageDoc(projectName);
+ }
if (Doxygen::mainPage && !Doxygen::mainPage->title().isEmpty())
{
if (Doxygen::mainPage->title().lower()!="notitle")
@@ -3876,6 +3888,7 @@ static void writeIndex(OutputList &ol)
Doxygen::mainPage->documentation(),TRUE,FALSE
/*,Doxygen::mainPage->sectionDict*/);
ol.endTextBlock();
+ ol.endPageDoc();
Doxygen::insideMainPage=FALSE;
}
@@ -4333,7 +4346,7 @@ void renderMemberIndicesAsJs(FTextStream &t,
firstMember=FALSE;
}
t << endl << "{text:\"" << convertToJSString(getInfo(i)->title) << "\",url:\""
- << convertToJSString(getInfo(i)->fname+Doxygen::htmlFileExtension) << "\"";
+ << convertToJSString(getInfo(i)->fname+Doxygen::htmlFileExtension, false) << "\"";
// Check if we have many members, then add sub entries per letter...
// quick alphabetical index
@@ -4363,7 +4376,7 @@ void renderMemberIndicesAsJs(FTextStream &t,
else // other pages of multi page index
anchor=fullName+"_"+is+extension+"#index_";
t << "{text:\"" << convertToJSString(ci) << "\",url:\""
- << convertToJSString(anchor+is) << "\"}";
+ << convertToJSString(anchor+is, false) << "\"}";
firstLetter=FALSE;
}
t << "]";
@@ -4399,7 +4412,7 @@ static bool renderQuickLinksAsJs(FTextStream &t,LayoutNavEntry *root,bool first)
firstChild=FALSE;
QCString url = entry->url();
t << "{text:\"" << convertToJSString(entry->title()) << "\",url:\""
- << convertToJSString(url) << "\"";
+ << convertToJSString(url, false) << "\"";
bool hasChildren=FALSE;
if (entry->kind()==LayoutNavEntry::NamespaceMembers)
{