1 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
3 * GraphicsCacheItem.C: s/getExtFromContents/getFormatFromContents/
4 * GraphicsImage.h (loadableFormats): correct documentation
6 2004-10-01 Angus Leeming <leeming@lyx.org>
8 * GraphicsConverter.C (move_file, build_script): protect
9 shell variables with quotes.
11 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
13 * pch.h: use proper signal include
15 * GraphicsCacheItem.[Ch]: Use preferred calling of Boost.Signal
16 * GraphicsConverter.C: ditto
17 * GraphicsImage.h: ditto
18 * GraphicsLoader.[Ch]: ditto
19 * PreviewLoader.[Ch]: ditto
21 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
23 * pch.h: include <boost/function.hpp> instead of
24 <boost/function/function0.hpp>
26 * GraphicsImage.C: Use preferred calling of boost::function
27 * GraphicsImage.h: ditto
29 2004-08-16 José Matos <jamatos@lyx.org>
31 * PreviewLoader.C (Impl::startLoading): remove space at end of line.
33 2004-08-15 Lars Gullik Bjonnes <larsbj@gullik.net>
37 * Makefile.am: support pch
39 2004-07-24 Lars Gullik Bjonnes <larsbj@gullik.net>
41 * PreviewLoader.C, GraphicsParams.C, GraphicsConverter.C: change
42 "support/std_sstream.h" to <sstream>
44 2004-04-19 Angus Leeming <leeming@lyx.org>
46 * Previews.[Ch] (status): new member function, replacing activated.
48 2004-04-15 Angus Leeming <leeming@lyx.org>
50 * PreviewLoader.C (startLoading): change arguments passed to the
51 preview-generation script to include the foreground and background
53 (dumpPreamble): no longer write the foreground and background
54 colours to the latex file as PostScript specials.
55 (setConverter): consider only those 'to' formats that are
56 loadable natively by the GUI library, rather than all formats
57 for which a converter exists.
58 (setAscentFractions): re-written to parse much simplified metrics
61 2004-04-13 Angus Leeming <leeming@lyx.org>
63 * PreviewLoader.C (dumpPreamble):
64 * Previews.C (generateBufferPreviews): re-enable iteration over all
67 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
69 * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
71 * PreviewLoader.C: use always a temp dir
72 * PreviewLoader.C: check successfull creation of LaTeX file
74 2004-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
76 * PreviewLoader.C (FindFirst): inherit from std::unary_function
77 and make operator() const
78 (FindSnippet): inherit from unary_function, simplify slightly.
80 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
82 * GraphicsTypes.C: include <string>
84 2003-11-20 Lars Gullik Bjonnes <larsbj@gullik.net>
86 * Previews.C: include paragraph.h
87 * PreviewLoader.C: ditto
89 2003-11-05 José Matos <jamatos@lyx.org>
91 * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
92 and LatexRunParams to OutputParams.
94 2003-10-22 Angus Leeming <leeming@lyx.org>
96 * PreviewImage.C (statusChanged): always pass on the signal, not just
97 when the preview is ready for display.
99 2003-10-22 Angus Leeming <leeming@lyx.org>
101 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
102 to contain the conversion script cannot be opened.
104 2003-10-22 Angus Leeming <leeming@lyx.org>
106 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
109 2003-10-13 Angus Leeming <leeming@lyx.org>
111 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
112 Make displayTranslator a function,
114 2003-10-10 Angus Leeming <leeming@lyx.org>
116 * PreviewedInset.[Ch]: removed.
118 * Makefile.am: remove PreviewedInset.[Ch].
120 2003-10-09 Angus Leeming <leeming@lyx.org>
122 * PreviewedInset.[Ch] (previewReady): remove the side effects.
123 Now simply reports whether the preview is ready.
125 2003-10-09 Angus Leeming <leeming@lyx.org>
127 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
128 Remove the inset and view member functions.
129 Add a new connect member function and preview_ready_signal_ member
130 variable, to enable the class to tell an arbirary connectee that the
133 2003-10-09 Angus Leeming <leeming@lyx.org>
135 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
136 are now passed a 'Buffer const &', eliminating most of the remaining
137 need for PreviewedInset to use a BufferView cache.
139 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
142 * PreviewImage.h: add <string> and other small fixes to make
143 Lars' std::string patch compile with STLport.
145 2003-09-29 Angus Leeming <leeming@lyx.org>
147 * GraphicsParams.[Ch] (asString): removed. Replaced with
148 operator<<(std::ostream &, BoundingBox const &).
150 2003-09-25 Angus Leeming <leeming@lyx.org>
152 * GraphicsParams.[Ch] (asString): new member function.
154 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
156 * Previews.C (Previews): fix new bug
158 * GraphicsCache.C (Cache): fix new bug
160 2003-09-19 Angus Leeming <leeming@lyx.org>
162 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
163 a 'Buffer const &' argument.
165 2003-09-18 Angus Leeming <leeming@lyx.org>
167 * PreviewedInset.C (latexString): add a Buffer const & arg.
168 * PreviewedInset.C (addPreview): pass the buffer to latexString.
170 2003-09-16 Angus Leeming <leeming@lyx.org>
172 * PreviewedInset.[Ch] (c-tor) move out of line.
173 (d-tor): make private.
174 (inset): return a const reference rather than a non-const pointer.
176 2003-09-16 Angus Leeming <leeming@lyx.org>
178 * GraphicsImage.h: separate interface from implementation. Make all the
179 pure virtual functions private.
181 2003-09-16 Angus Leeming <leeming@lyx.org>
183 * PreviewLoader.C: add #include "LColor.h".
185 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
187 * GraphicsConverter.C
188 * PreviewLoader.C: remove usage of STRCONV
190 2003-09-14 Angus Leeming <leeming@lyx.org>
192 * PreviewLoader.C (remove): consider all InProgressProcesses when
193 ascertaining which ones to remove from the list, not every other one.
195 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
197 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
200 2003-09-08 Angus Leeming <leeming@lyx.org>
204 * PreviewLoader.C: remove redundant using directives.
206 2003-09-07 Angus Leeming <leeming@lyx.org>
209 * Previews.h: remove #include "support/std_string.h".
211 2003-09-06 Angus Leeming <leeming@lyx.org>
213 * PreviewedInset.C: add #include "insets/inset.h"
215 2003-09-05 Angus Leeming <leeming@lyx.org>
217 * *.C: strip out redundant #includes. (26 in total.)
219 2003-09-04 Angus Leeming <leeming@lyx.org>
221 * LoaderQueue.C (get):
223 2003-09-04 Angus Leeming <leeming@lyx.org>
226 * GraphicsCacheItem.C:
227 * GraphicsConverter.C:
231 * Previews.C: 'namespace support = lyx::support' rather than
232 'using lyx::support'.
234 * Previews.h: cleaned up some comments.
236 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
238 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
240 * GraphicsTypes.h: do not declare displayTranstor here (and remove
243 2003-07-27 José Matos <jamatos@fep.up.pt>
245 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
248 2003-07-21 Angus Leeming <leeming@lyx.org>
251 * GraphicsCacheItem.[Ch]:
254 * PreviewedInset.[Ch]:
255 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
257 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
259 * Change namespace grfx to lyx::graphics.
261 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
263 * introcude namespace lyx::support
265 2003-06-04 Angus Leeming <leeming@lyx.org>
267 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
268 (operator=): if it has a copy c-tor, it should have this too.
270 2003-06-03 Angus Leeming <leeming@lyx.org>
272 * GraphicsLoader.[Ch] (Loader): add copy constructor.
274 2003-05-23 Angus Leeming <leeming@lyx.org>
276 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
278 2003-05-22 Angus Leeming <leeming@lyx.org>
280 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
281 the inset::latex method.
283 2003-05-22 Angus Leeming <leeming@lyx.org>
285 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
286 the inset::latex method.
288 2003-05-22 Angus Leeming <leeming@lyx.org>
290 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
291 makeLaTeXFile is now encapsulated within runparams.
293 2003-05-22 Angus Leeming <leeming@lyx.org>
295 * PreviewLoader.C (dumpPreamble):
296 pass around a LatexRunParams parameter.
298 2003-05-13 André Pönitz <poenitz@gmx.net>
300 * GraphicsConverter.C:
301 * PreviewLoader.C: use tostr from own header
303 2003-05-12 André Pönitz <poenitz@gmx.net>
305 * PreviewLoader.C: boost::format -> bformat
307 2003-04-15 Angus Leeming <leeming@lyx.org>
309 * GraphicsConverter.C: #include lstrings.h.
311 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
313 * GraphicsConverter.C
314 * PreviewLoader.C: added #include "format.h"
316 2003-02-26 Angus Leeming <leeming@lyx.org>
318 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
319 use the cache of the parent inset instead.
321 * PreviewLoader.C (startLoading): Prevent a crash if the user is
322 not using a tmp directory.
324 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
326 * GraphicsLoader.[Ch],
328 * PreviewedInset.C: Removed unneeded list of owner insets
330 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
332 * GraphicsConverter (startConversion): add the call to
335 * GraphicsLoader.[Ch],
337 * PreviewedInset.C: Removed unneeded BufferView
339 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
341 * LoaderQueue.[Ch]: a simplification of the code, eliminated
342 the unneeded input bucket.
344 * GraphicsCacheItem.C (imageConverted): move warning inside the
347 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
349 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
351 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
353 * LoaderQueue.[Ch] (setPriority): added
355 * PreviewLoader.C (finishedGenerating): reversed the loading order so
356 first images get 'touched' last, and so load first.
358 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
360 * LoaderQueue.[Ch]: added. Implements a service queue that loads
362 * GraphicsSupport.[Ch]: removed
363 * Makefile.am: the changes above
364 * GraphicsLoader.C: use the loading queue
366 2003-01-21 Angus Leeming <leeming@lyx.org>
368 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
369 previews from being generated.
371 2003-01-13 Angus Leeming <leeming@lyx.org>
373 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
374 format to be PPM not XPM.
376 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
378 * Makefile.am (EXTRA_DIST): remove variable
380 2002-12-13 Angus Leeming <leeming@lyx.org>
382 * GraphicsImageXPM.[Ch]: removed.
384 * Makefile.am: associated change.
386 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
388 * several files: ws changes
390 2002-11-21 Angus Leeming <leeming@lyx.org>
392 * GraphicsConverter.C (build_script, move_file):
393 Don't use "if [ $? -ne 0 ]; then..."
395 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
397 * PreviewLoader.C (IncrementedFileName): STRCONV
398 (startLoading): ditto
400 * GraphicsConverter.C (Impl): STRCONV
403 * GraphicsTypes.C: include config.h
405 2002-10-25 Angus Leeming <leeming@lyx.org>
407 * GraphicsConverter.C (Impl::converted)
408 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
409 string as first arg, reflecting change in ForkedCall interface.
411 * PreviewLoader.C: use pid rather than command as identifier in
414 2002-10-18 Angus Leeming <leeming@lyx.org>
416 * GraphicsCacheItem.C (findTargetFormat): add debug message.
418 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
420 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
422 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
424 * GraphicsConverter.C (build_script): do not use ChangeExtension
428 2002-09-05 Angus Leeming <leeming@lyx.org>
430 * all files: modify the headers as discussed on the list.
432 2002-09-04 Angus Leeming <leeming@lyx.org>
434 * PreviewLoader.C (startLoading): pass the desired output format to the
437 2002-09-04 Angus Leeming <leeming@lyx.org>
439 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
441 2002-09-03 Angus Leeming <leeming@lyx.org>
443 * PreviewLoader.C: fix crash reported by Norbert Koksch when
444 generating more than 999 preview snippets. Use filenames with 5 digit
445 numbers, not 3, in the first instance, although more general code is
446 commented out. I don't suppose /anyone/ has 100000 formulae in one
449 2002-09-03 Angus Leeming <leeming@lyx.org>
451 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
453 2002-09-03 Angus Leeming <leeming@lyx.org>
455 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
457 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
459 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
460 convertDefault command with "sh ".
462 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
464 * GraphicsImage.C: small style fix to width/height setting.
466 * GraphicsTypes.h: have a displayTranslator here.
469 * GraphicsTypes.C: new file added for the setDisplayTranslator();
471 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
474 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
475 because this input has gone from the graphics dialog.
477 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
479 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
481 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
482 for support/smart_ptr.h, switch to boost smart ptr.
484 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
485 (~Data): let the smart_ptr handle cleanup
486 (reset): use nifty 3rd arg
488 (free_color_table): free the table manually
490 2002-08-09 Angus Leeming <leeming@lyx.org>
492 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
493 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
494 input@path is now set correctly.
496 2002-08-06 Angus Leeming <leeming@lyx.org>
498 * PreviewLoader.C: add support for preview.sty 0.73 (currently
499 #ifdef-ed out, awaiting the formal release).
501 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
502 the contents of a file that has changed.
504 2002-08-05 Angus Leeming <leeming@lyx.org>
506 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
507 to preview.sty. Works only for versions of preview.sty > 0.72b but
508 doesn't hurt earlier versions. Allows me to test the new parsing of
509 LyX-specific data from the generated log file.
511 2002-08-02 Angus Leeming <leeming@lyx.org>
513 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
515 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
516 (add): don't add empty snippets.
518 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
519 (view, setView): access to to the cache_.
521 2002-08-02 Angus Leeming <leeming@lyx.org>
523 * PreviewedInset.[Ch]: cache the LaTeX snippet.
525 2002-08-01 Angus Leeming <leeming@lyx.org>
527 * PreviewedInset.[Ch]: new files. An abstract base class that can help
528 insets to generate previews.
529 The daughter class must instantiate three small methods.
530 The Inset would own an instance of this daughter class and invoke it
531 as necessary. For example, mathd/formula.C gets previews at the cost
532 of 15 or so lines of code.
534 * Makefile.am: add PreviewedInset.[Ch].
536 * PreviewLoader.C (add): add debug message.
538 * Previews.C (generateBufferPreviews): remove if-block from loop.
540 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
542 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
544 (setAscentFractions): ditto
546 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
548 * PreviewLoader.C (setAscentFractions): modify because of strip
551 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
553 * GraphicsConverter.C (build_script): take a ostream as a more
554 general argument than ostringstream.
556 2002-07-22 Herbert Voss <voss@lyx.org>
558 * GraphicsConverter.C: get the "default converter" run again
560 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
562 * PreviewLoader.C: use BufferParams::getLyXTextClass
564 2002-07-21 Herbert Voss <voss@lyx.org>
566 * GraphicsImage.C: get the LyXAspectRatio run.
568 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
570 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
572 * PreviewLoader.C (startLoading): pass an interger as resolution
573 to the lyxpreview converter
575 * GraphicsParams.C: include <cstdlib>
577 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
579 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
580 preview converter script
582 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
584 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
587 2002-07-18 Angus Leeming <leeming@lyx.org>
589 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
591 (startMonitoring, monitoring, checksum): new methods to interact with
594 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
595 methods invoking the CacheItem methods of the same name.
596 (resetFile): if monitoring and the file changes, start monitoring this
599 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
601 * Makefile.am: remove FileMonitor.[Ch]
603 2002-06-17 Herbert Voss <voss@lyx.org>
605 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
606 for old ps-files (Garst). It's now handled by defining a converter and
607 disabling the ps-support of xforms.
609 2002-07-17 Angus Leeming <leeming@lyx.org>
611 Be true to the Pimpl idiom, moving all signals into the respective
612 Impl classes and defining methods to connect them to an outside slot.
613 Const-ify all visible class methods as they act only on a const pimpl_.
615 * GraphicsCache.[Ch] (add, remove): const-ify.
617 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
618 (statusChanged): move the signal into the Impl class.
619 (connect): new method, enabling a listener to connect to this signal.
621 * GraphicsConverter.[Ch]: (startConversion): const-ify.
622 (finishedConversion): move the signal into the Impl class.
623 (connect): new method, enabling a listener to connect to this signal.
625 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
626 (statusChanged): move the signal into the Impl class.
627 (connect): new method, enabling a listener to connect to this signal.
629 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
630 (imageReady): move the signal into the Impl class.
631 (connect): new method, enabling a listener to connect to this signal.
632 (emitSignal): new method, enabling PreviewImage to tell the outside
633 world that the file has been loaded into memory.
635 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
639 * GraphicsCacheItem.C:
640 * GraphicsConverter.[Ch]:
642 * GraphicsImageXPM.C:
644 * PreviewLoader.[Ch]: whitespace clean-up.
646 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
648 * PreviewLoader.C (setConverter): remove unused variable
650 * GraphicsImageXPM.C (isDrawable): implement
651 (setPixmap): the opaque color is black, not white
653 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
655 * GraphicsImageXPM.C (color_none_id):
656 (contains_color_none): use ascii_lowercase instead of lowercase
658 2002-07-16 Angus Leeming <leeming@lyx.org>
660 * PreviewLoader.C: greater use of STL algorithms.
662 * Previews.[Ch]: use const in more places.
663 (generateBufferPreviews): now takes a Buffer const & argument, not a
666 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
668 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
670 2002-07-12 Angus Leeming <leeming@lyx.org>
672 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
673 if visible 2 secs after the call to load them is first made.
675 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
676 BufferView to ascertain whether the inset is visible or not.
678 * Makefile.am: added GraphicsSupport.[Ch].
680 * PreviewImage.[Ch]: use this smart loader.
682 * PreviewLoader.C: don't load generated image files indiscimminantly.
683 Instead emit the imageReady signal and allow the image owner to decide.
685 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
687 * GraphicsCache.C: remove init_graphics()
689 2002-07-09 Angus Leeming <leeming@lyx.org>
691 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
692 arithmetic when it should be floating.
694 2002-07-09 Angus Leeming <leeming@lyx.org>
696 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
697 Output equation labels as "(#)" if lyxrc preference is set.
698 (setFontScalingFactor): use lyxrc variable preview_scale_factor
699 rather than hard-coding this.
701 2002-07-09 Angus Leeming <leeming@lyx.org>
703 * PreviewLoader.C: Further refactoring of the code. Should now be
706 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
707 past its sell-by date. The code to read the metrics file is now found
708 as a helper function in PreviewLoader.C.
710 * GraphicsImageXPM.C (scale): use boost::tie.
712 2002-07-08 Herbert Voss <voss@lyx.org>
714 * PreviewLoader.C: use of preview_size_factor to get the right
715 font-size! 0.9 is the default.
717 2002-07-08 Angus Leeming <leeming@lyx.org>
719 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
720 invocation of preview.sty.
721 Perform something of an internal clean-up.
723 2002-07-06 Angus Leeming <leeming@lyx.org>
725 * PreviewLoader.C: ensure that the metrics data is used by the
729 * PreviewImage.C: (Impl d-tor): remove all generated files that still
730 exist (perhaps because the process was curtailed before the images
733 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
735 2002-07-05 Angus Leeming <leeming@lyx.org>
744 * Previews.C: new files. The previewed LaTeX snippet stuff.
746 * Makefile.am: add these files.
748 2002-07-05 Angus Leeming <leeming@lyx.org>
750 * GraphicsLoader.h: whitespace.
752 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
754 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
755 boost::function from boost::signal.
757 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
759 * GraphicsConverter.C (convert): do not use ChangeExtension
760 because to_file_base may contain a dot.
762 2002-06-28 Angus Leeming <leeming@lyx.org>
764 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
765 by moving those SignalPtrs into the grfx::Image and grfx::Converter
766 classes where they really belong.
767 Use the Pimpl idiom to hide the class internals from public view.
769 * GraphicsTypes: remove the typedefs, leaving only the enums.
771 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
772 passed a reference to one in the load() method.
774 * GraphicsConverter.[Ch]: totally refactored. An instance of
775 grfx::Converter now represents a single conversion process.
776 Thus grfx::CachItem now has a grfx::Converter * that is set when the
777 conversion is initiated and destroyed on completion.
779 * GraphicsCache.[Ch]:
780 * GraphicsCacheItem.[Ch]:
781 * GraphicsConverter.[Ch]:
782 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
784 Note that I have done this only after making the above changes,
785 so not only should we have a clean, minimal and well documented
786 interface to these classes in the header files, but the class internals
787 should be much clearer too.
790 grfx::GCache -> grfx::Cache,
791 grfx::GCacheItem -> grfx::CacheItem,
792 grfx::GConverter -> grfx::Converter,
793 grfx::GImage -> grfx::Image,
794 grfx::GImageXPM -> grfx::ImageXPM,
795 grfx::GParams -> grfx::Params.
797 2002-06-26 Angus Leeming <leeming@lyx.org>
799 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
800 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
803 2002-06-26 Angus Leeming <leeming@lyx.org>
805 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
806 move the DisplayType enum out of grfx::GParams to here.
808 * GraphicsCacheItem.h: re-write preliminary description to reflect
811 * GraphicsParams.[Ch]:
812 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
813 grfx::DisplayType out of grfx::GParams.
815 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
816 that was in frontends/screen.C and insets/insetgraphics.C into a
817 single, easy-to-use class.
819 * Makefile.am: add these files.
821 2002-06-25 Angus Leeming <leeming@lyx.org>
823 * GraphicsCache.[Ch]:
824 * GraphicsCacheItem.[Ch]:
825 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
826 file into memory. The cache no longer controls the generation of the
827 pixmap. Instead, it just emits a signal when the loading status of an
829 The cache no longer stores InsetGraphics pointers and nor does it
830 assume responsibility for modifying an image (scaling, rotating etc).
831 Instead, that must now be performed elsewhere.
833 2002-06-19 Angus Leeming <leeming@lyx.org>
835 * GraphicsConverter.C: add using std::endl directive.
837 2002-06-17 Herbert Voss <voss@lyx.org>
839 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
840 default when nothing different was found
841 (convertToDisplayFormat): handle zipped files in the right way and
842 choose always convert as a default converter when no other
843 userdefined was found
845 * GraphicsConverter.C: add more lyxerr comments and choose
846 convert when no other userdefined converter was found
848 2002-06-10 Herbert Voss <voss@lyx.org>
850 * GraphicsImageXPM.C (convertTo7chars): get another special color
851 format from convert work in the right way
853 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
855 * GraphicsCache.C: use right colormap incantation
857 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
859 * GraphicsCache.C: use lyx_gui namespace
861 * GraphicsImageXPM.C: back down to using xforms
864 2002-06-07 Angus Leeming <leeming@lyx.org>
866 Fixes needed to compile with Compaq cxx 6.5.
867 * GraphicsConverter.h: forward declare class ConvProcess.
869 * GraphicsImageXPM.C:
870 all c-library variables have been moved into namespace std.
871 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
873 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
875 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
877 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
879 * GraphicsImageXPM.C: SigC to boot::signals changes.
880 (newImage): fix () bug when using new.
882 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
884 * switch from SigC signals to boost::signals.
886 2002-05-29 André Pönitz <poenitz@gmx.net>
888 * GraphicsParam.C: remove unneeded #include, move vomment
890 2002-05-28 André Pönitz <poenitz@gmx.net>
892 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
894 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
896 * GraphicsImageXPM.C: ColorHandler moved
898 2002-05-24 Juergen Vigna <jug@sad.it>
901 * GraphicsImage.h: include LString.h first.
903 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
905 * GraphicsCacheItem.h: use more specific smart_ptr header.
906 * GraphicsTypes.h: ditto
907 * GraphicsImage.h: ditto
908 * GraphicsConverter.h: ditto
910 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
912 * GraphicsImageXPM.C: understand convert's use of "opaque"
915 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
917 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
918 GImage::loadableFormats() that ensures that the signal is connected
919 to the derived class' method.
921 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
923 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
924 only work on the string.
926 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
928 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
929 the simple image loader when it encounters colour strings like
932 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
934 * GraphicsCacheItem.C (convertToDisplayFormat):
935 * GraphicsConverter.C (build_script): remove the Alerts when things go
936 wrong as the inset displays the message anyway. Moreover, Alert seems
937 pretty temperamemtal at the moment.
939 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
941 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
943 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
945 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
946 a reference to a temp object that's going out of scope...
948 2002-04-09 Herbert Voss <voss@lyx.org>
950 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
951 LyXLength::inBP instead of inPixels.
953 2002-04-10 Herbert Voss <voss@perce.de>
955 * GraphicsCache.[Ch]:
956 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
957 to read the "Bounding Box" from non (e)ps files.
959 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
961 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
962 the EPS file too, to ensure that the clipped Bounding Box is relative
963 to the original. (From Herbert.)
965 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
967 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
968 variables are initialised. Clean-up parsing of the string (with thanks
971 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
973 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
974 if the file can't be found.
976 * GraphicsParams.h (c-tor): remove string() as default argument.
978 * GraphicsCacheItem.C: a couple of changes as a result.
980 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
982 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
983 path to graphics file.
985 * GraphicsParams.[Ch] (c-tor): now passed filepath.
987 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
989 * most files: ws cleanup
991 * Makefile.am: remove ld -r stuff
993 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
995 * Makefile.am: special rules if partial linking
997 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
999 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
1001 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
1003 * GraphicsConverter.[Ch] (converted): make first arg const ref.
1005 * GraphicsCacheItem.h: doxy change
1007 * GraphicsCacheItem.C: ws change
1009 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
1011 * Makefile.am: if there is no image loading class leveraging the power
1012 of the appropriate gui library, then compile the basic alternative
1013 found in GraphicsImageXPM.[Ch].
1015 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
1017 * GraphicsCache.C: change associated with move of initialiseGraphics
1020 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
1022 * GraphicsParams.[Ch]:
1024 * GraphicsImageXPM.C: properly resolve more warnings about comparison
1025 between signed and unsigned integer expressions.
1027 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
1029 * GraphicsCache.C: move connections to the GImage-derived classes to
1032 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
1034 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
1035 conversion, then do that.
1037 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1039 * GraphicsCache.C: improve commentary to graphicsInit and where it
1042 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
1043 that became a memory leak properly. (Let the shared_c_ptr free the
1045 (reset, mapcolor): tidy up and introduce a work around for XPM files
1046 with crappy color entries. Print out a nice friendly message on what's
1047 gone wrong and how to resolve it properly.
1049 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1051 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
1052 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
1053 in free_color_table.
1054 (unique_color_string): use the correct string c-tor.
1056 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
1059 * ImageLoaderXPM.[Ch]: removed.
1061 * GraphicsConverter.[Ch]:
1062 * GraphicsImage.[Ch]:
1063 * GraphicsImageXPM.[Ch]:
1064 * GraphicsParams.[Ch]:
1065 * GraphicsTypes.h: new files.
1067 * All files. A total re-write of the graphics cache. The cache now
1068 supports asynchronous file conversion and file loading. Images
1069 can be cropped, rotated and scaled for display on the LyX screen.
1070 The old LyXImage and ImageLoader have been combined in a new class
1071 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1074 2002-02-07 Herbert Voss <voss@lyx.org>
1076 * GraphicsCacheItem.C: use unzipFile() from support/filetools
1078 2002-01-31 Herbert Voss <voss@lyx.org>
1080 * GraphicsCacheItem.h: handle filetype without the file extension;
1081 getting type from contents; handle zipped files
1083 2002-01-27 Herbert Voss <voss@lyx.org>
1085 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1087 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
1089 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1091 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1093 * GraphicsCacheItem.h: do not include <config.h> in header files
1095 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1097 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1098 transparent colour, then set it to the colour of the background.
1099 Also take account of the monochrome, grayscale of color
1102 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1104 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1105 are different. Thus, don't delete the "to" if it's the original!
1107 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1109 * ImageLoadXPM.C: remove setting of alloc colour mask,
1110 led to crash as we don't define a callback
1112 2001-07-29 Baruch Even <baruch@lyx.org>
1114 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1115 colors with closeness of 10000.
1117 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1119 2001-07-29 Baruch Even <baruch@lyx.org>
1121 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1124 2001-07-23 Baruch Even <baruch@lyx.org>
1126 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1127 the image after conversion.
1129 2001-07-17 Baruch Even <baruch@lyx.org>
1131 * GraphicsCacheItem.h:
1132 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1133 from synchronous to asynchronous and to ease the coming changes.
1135 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1137 * ImageLoaderXPM.C (runImageLoader): get display information from
1140 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1143 * GraphicsCacheItem.C:
1145 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1147 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1149 * GraphicsCache.h: inherit privately from noncopyable
1150 * ImageLoader.h: ditto
1151 * GraphicsCacheItem.h: ditto
1153 2001-04-16 Allan Rae <rae@lyx.org>
1155 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1156 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1159 2001-04-02 Baruch Even <baruch@lyx.org>
1161 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1162 of hard coding ImageMagick.
1164 2001-03-10 Baruch Even <baruch@lyx.org>
1166 * GraphicsCache.C: Style change from (*it).field to it->field
1168 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1170 * GraphicsCache.h: noncopyable is in namespace boost
1171 * ImageLoader.h: ditto
1172 * GraphicsCacheItem.h: ditto
1174 2001-03-07 Baruch Even <baruch@lyx.org>
1176 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1177 was false and it's not needed anyhow since the shared_ptr's in the cache
1178 will destroy everything on exit.
1180 2001-02-28 Baruch Even <baruch@ev-en.org>
1183 * GraphicsCache.C: Changed the singleton pattern implementation, the
1184 former version "leaked" in the sense that it was not deallocated at
1187 2001-02-20 Baruch Even <baruch@ev-en.org>
1189 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1190 instead of a pure pointer.
1192 * GraphicsCacheItem.[Ch]:
1193 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1194 removed the reference counting that was inside. Also fixed a bug where
1195 a temporary file wouldn't get erased.
1197 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1198 Ownership is now dropped when the caller requests the image_ pointer.
1200 2001-02-20 Baruch Even <baruch@ev-en.org>
1202 * GraphicsCache.C: Cleared up the confusion on when and how it is
1205 * GraphicsCacheItem.C: Indentation change.
1207 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1208 figure correctly when the image has been loaded successfully.
1210 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1212 * ImageLoader.C: add a "using" directive.
1214 * ImageLoader.h: remove extra comma at the end of enum; add an
1215 std:: qualifier for vector.
1217 2001-01-21 Baruch Even <baruch@ev-en.org>
1219 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1220 height in the image itself and minor cleanups.
1222 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1223 new ImageLoader class instead of the older Renderer class. This
1224 means change of responsibilities.