equal
deleted
inserted
replaced
1 /****************************************************************************** |
1 /****************************************************************************** |
2 * |
2 * |
3 * |
3 * |
4 * |
4 * |
5 * |
5 * |
6 * Copyright (C) 1997-2008 by Dimitri van Heesch. |
6 * Copyright (C) 1997-2010 by Dimitri van Heesch. |
7 * |
7 * |
8 * Permission to use, copy, modify, and distribute this software and its |
8 * Permission to use, copy, modify, and distribute this software and its |
9 * documentation under the terms of the GNU General Public License is hereby |
9 * documentation under the terms of the GNU General Public License is hereby |
10 * granted. No representations are made about the suitability of this software |
10 * granted. No representations are made about the suitability of this software |
11 * for any purpose. It is provided "as is" without express or implied warranty. |
11 * for any purpose. It is provided "as is" without express or implied warranty. |
183 m_t << "\\^{\\i}"; |
183 m_t << "\\^{\\i}"; |
184 else |
184 else |
185 m_t << "\\^{" << s->letter() << "}"; |
185 m_t << "\\^{" << s->letter() << "}"; |
186 break; |
186 break; |
187 case DocSymbol::Slash: if (tolower(s->letter())=='o') |
187 case DocSymbol::Slash: if (tolower(s->letter())=='o') |
188 m_t << "\\" << s->letter(); |
188 m_t << "{\\" << s->letter() << "}"; |
189 else |
189 else |
190 m_t << s->letter(); |
190 m_t << s->letter(); |
191 break; |
191 break; |
192 case DocSymbol::Tilde: m_t << "\\~{" << s->letter() << "}"; break; |
192 case DocSymbol::Tilde: m_t << "\\~{" << s->letter() << "}"; break; |
193 case DocSymbol::Szlig: m_t << "{\\ss}"; break; |
193 case DocSymbol::Szlig: m_t << "{\\ss}"; break; |
1358 } |
1358 } |
1359 } |
1359 } |
1360 |
1360 |
1361 void LatexDocVisitor::writeMscFile(const QString &baseName) |
1361 void LatexDocVisitor::writeMscFile(const QString &baseName) |
1362 { |
1362 { |
|
1363 QString shortName = baseName; |
|
1364 int i; |
|
1365 if ((i=shortName.findRev('/'))!=-1) |
|
1366 { |
|
1367 shortName=shortName.right(shortName.length()-i-1); |
|
1368 } |
1363 QString outDir = Config_getString("LATEX_OUTPUT"); |
1369 QString outDir = Config_getString("LATEX_OUTPUT"); |
1364 writeMscGraphFromFile(baseName,outDir,baseName,MSC_EPS); |
1370 writeMscGraphFromFile(baseName,outDir,baseName,MSC_EPS); |
1365 m_t << "\n\\begin{DoxyImageNoCaption}" |
1371 m_t << "\n\\begin{DoxyImageNoCaption}" |
1366 " \\mbox{\\includegraphics"; |
1372 " \\mbox{\\includegraphics"; |
1367 //if (!width.isEmpty()) |
1373 m_t << "{" << shortName << "}"; |
1368 //{ |
|
1369 // m_t << "[width=" << width << "]"; |
|
1370 //} |
|
1371 //else if (!height.isEmpty()) |
|
1372 //{ |
|
1373 // m_t << "[height=" << height << "]"; |
|
1374 //} |
|
1375 m_t << "{" << baseName << "}"; |
|
1376 |
|
1377 m_t << "}\n"; // end mbox |
1374 m_t << "}\n"; // end mbox |
1378 m_t << "\\end{DoxyImageNoCaption}\n"; |
1375 m_t << "\\end{DoxyImageNoCaption}\n"; |
1379 } |
1376 } |
1380 |
1377 |