"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Plugins/Pdf/pdf_hummus_renderer.cpp" between
TeXmacs-1.99.8-src.tar.gz and TeXmacs-1.99.9-src.tar.gz

About: GNU TeXmacs is a what-you-see-is-what-you-get scientific text editor, which was both inspired by TeX and GNU Emacs.

pdf_hummus_renderer.cpp  (TeXmacs-1.99.8-src):pdf_hummus_renderer.cpp  (TeXmacs-1.99.9-src)
skipping to change at line 23 skipping to change at line 23
#include "Metafont/tex_files.hpp" #include "Metafont/tex_files.hpp"
#include "Freetype/tt_file.hpp" #include "Freetype/tt_file.hpp"
#include "file.hpp" #include "file.hpp"
#include "image_files.hpp" #include "image_files.hpp"
#include "analyze.hpp" #include "analyze.hpp"
#include "iterator.hpp" #include "iterator.hpp"
#include "merge_sort.hpp" #include "merge_sort.hpp"
#include "scheme.hpp" #include "scheme.hpp"
#include "sys_utils.hpp" #include "sys_utils.hpp"
#include "convert.hpp" #include "convert.hpp"
#include "converter.hpp"
#include "ntuple.hpp" #include "ntuple.hpp"
#include "link.hpp" #include "link.hpp"
#include "frame.hpp" #include "frame.hpp"
#include "Ghostscript/gs_utilities.hpp" // for gs_prefix #include "Ghostscript/gs_utilities.hpp" // for gs_prefix
#include "wencoding.hpp" #include "wencoding.hpp"
#ifdef QTTEXMACS #ifdef QTTEXMACS
#include "Qt/qt_utilities.hpp" #include "Qt/qt_utilities.hpp"
#endif #endif
skipping to change at line 2192 skipping to change at line 2193
nextId = objectsContext.GetInDirectObjectsRegistry().AllocateNewObjectID() ; nextId = objectsContext.GetInDirectObjectsRegistry().AllocateNewObjectID() ;
} else { } else {
// finished this level, go up. // finished this level, go up.
nextId = 0; nextId = 0;
} }
{ {
// write current outline item dictionary // write current outline item dictionary
string dict; string dict;
dict << "<<\r\n" dict << "<<\r\n"
<< "\t/Title (" << prepare_text((oitem).x1) << ")\r\n" << "\t/Title " << utf8_to_pdf_hex_string((oitem).x1) << "\r\n"
<< "\t/Parent " << as_string(parentId) << " 0 R \r\n"; << "\t/Parent " << as_string(parentId) << " 0 R \r\n";
if (prevId != 0) dict << "\t/Prev " << as_string(prevId) << " 0 R \r\n"; if (prevId != 0) dict << "\t/Prev " << as_string(prevId) << " 0 R \r\n";
if (nextId != 0) dict << "\t/Next " << as_string(nextId) << " 0 R \r\n"; if (nextId != 0) dict << "\t/Next " << as_string(nextId) << " 0 R \r\n";
if (subCount > 0) { if (subCount > 0) {
dict << "\t/First " << as_string(subFirstId) << " 0 R \r\n" dict << "\t/First " << as_string(subFirstId) << " 0 R \r\n"
<< "\t/Last " << as_string(subLastId) << " 0 R \r\n" << "\t/Last " << as_string(subLastId) << " 0 R \r\n"
<< "\t/Count " << as_string(-subCount) << "\r\n"; << "\t/Count " << as_string(-subCount) << "\r\n";
} }
dict << "\t/Dest [ " << as_string(page_id((oitem).x2)) << " 0 R /XYZ " dict << "\t/Dest [ " << as_string(page_id((oitem).x2)) << " 0 R /XYZ "
<< as_string(((double)default_dpi / dpi)*((oitem).x3)) << as_string(((double)default_dpi / dpi)*((oitem).x3))
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)