1 2002-10-25 Angus Leeming <leeming@lyx.org>
3 * GraphicsConverter.C (Impl::converted)
4 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
5 string as first arg, reflecting change in ForkedCall interface.
7 * PreviewLoader.C: use pid rather than command as identifier in
10 2002-10-18 Angus Leeming <leeming@lyx.org>
12 * GraphicsCacheItem.C (findTargetFormat): add debug message.
14 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
16 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
18 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
20 * GraphicsConverter.C (build_script): do not use ChangeExtension
24 2002-09-05 Angus Leeming <leeming@lyx.org>
26 * all files: modify the headers as discussed on the list.
28 2002-09-04 Angus Leeming <leeming@lyx.org>
30 * PreviewLoader.C (startLoading): pass the desired output format to the
33 2002-09-04 Angus Leeming <leeming@lyx.org>
35 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
37 2002-09-03 Angus Leeming <leeming@lyx.org>
39 * PreviewLoader.C: fix crash reported by Norbert Koksch when
40 generating more than 999 preview snippets. Use filenames with 5 digit
41 numbers, not 3, in the first instance, although more general code is
42 commented out. I don't suppose /anyone/ has 100000 formulae in one
45 2002-09-03 Angus Leeming <leeming@lyx.org>
47 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
49 2002-09-03 Angus Leeming <leeming@lyx.org>
51 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
53 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
55 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
56 convertDefault command with "sh ".
58 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
60 * GraphicsImage.C: small style fix to width/height setting.
62 * GraphicsTypes.h: have a displayTranslator here.
65 * GraphicsTypes.C: new file added for the setDisplayTranslator();
67 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
70 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
71 because this input has gone from the graphics dialog.
73 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
75 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
77 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
78 for support/smart_ptr.h, switch to boost smart ptr.
80 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
81 (~Data): let the smart_ptr handle cleanup
82 (reset): use nifty 3rd arg
84 (free_color_table): free the table manually
86 2002-08-09 Angus Leeming <leeming@lyx.org>
88 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
89 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
90 input@path is now set correctly.
92 2002-08-06 Angus Leeming <leeming@lyx.org>
94 * PreviewLoader.C: add support for preview.sty 0.73 (currently
95 #ifdef-ed out, awaiting the formal release).
97 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
98 the contents of a file that has changed.
100 2002-08-05 Angus Leeming <leeming@lyx.org>
102 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
103 to preview.sty. Works only for versions of preview.sty > 0.72b but
104 doesn't hurt earlier versions. Allows me to test the new parsing of
105 LyX-specific data from the generated log file.
107 2002-08-02 Angus Leeming <leeming@lyx.org>
109 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
111 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
112 (add): don't add empty snippets.
114 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
115 (view, setView): access to to the cache_.
117 2002-08-02 Angus Leeming <leeming@lyx.org>
119 * PreviewedInset.[Ch]: cache the LaTeX snippet.
121 2002-08-01 Angus Leeming <leeming@lyx.org>
123 * PreviewedInset.[Ch]: new files. An abstract base class that can help
124 insets to generate previews.
125 The daughter class must instantiate three small methods.
126 The Inset would own an instance of this daughter class and invoke it
127 as necessary. For example, mathd/formula.C gets previews at the cost
128 of 15 or so lines of code.
130 * Makefile.am: add PreviewedInset.[Ch].
132 * PreviewLoader.C (add): add debug message.
134 * Previews.C (generateBufferPreviews): remove if-block from loop.
136 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
138 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
140 (setAscentFractions): ditto
142 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
144 * PreviewLoader.C (setAscentFractions): modify because of strip
147 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
149 * GraphicsConverter.C (build_script): take a ostream as a more
150 general argument than ostringstream.
152 2002-07-22 Herbert Voss <voss@lyx.org>
154 * GraphicsConverter.C: get the "default converter" run again
156 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
158 * PreviewLoader.C: use BufferParams::getLyXTextClass
160 2002-07-21 Herbert Voss <voss@lyx.org>
162 * GraphicsImage.C: get the LyXAspectRatio run.
164 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
166 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
168 * PreviewLoader.C (startLoading): pass an interger as resolution
169 to the lyxpreview converter
171 * GraphicsParams.C: include <cstdlib>
173 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
175 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
176 preview converter script
178 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
180 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
183 2002-07-18 Angus Leeming <leeming@lyx.org>
185 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
187 (startMonitoring, monitoring, checksum): new methods to interact with
190 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
191 methods invoking the CacheItem methods of the same name.
192 (resetFile): if monitoring and the file changes, start monitoring this
195 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
197 * Makefile.am: remove FileMonitor.[Ch]
199 2002-06-17 Herbert Voss <voss@lyx.org>
201 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
202 for old ps-files (Garst). It's now handled by defining a converter and
203 disabling the ps-support of xforms.
205 2002-07-17 Angus Leeming <leeming@lyx.org>
207 Be true to the Pimpl idiom, moving all signals into the respective
208 Impl classes and defining methods to connect them to an outside slot.
209 Const-ify all visible class methods as they act only on a const pimpl_.
211 * GraphicsCache.[Ch] (add, remove): const-ify.
213 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
214 (statusChanged): move the signal into the Impl class.
215 (connect): new method, enabling a listener to connect to this signal.
217 * GraphicsConverter.[Ch]: (startConversion): const-ify.
218 (finishedConversion): move the signal into the Impl class.
219 (connect): new method, enabling a listener to connect to this signal.
221 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
222 (statusChanged): move the signal into the Impl class.
223 (connect): new method, enabling a listener to connect to this signal.
225 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
226 (imageReady): move the signal into the Impl class.
227 (connect): new method, enabling a listener to connect to this signal.
228 (emitSignal): new method, enabling PreviewImage to tell the outside
229 world that the file has been loaded into memory.
231 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
235 * GraphicsCacheItem.C:
236 * GraphicsConverter.[Ch]:
238 * GraphicsImageXPM.C:
240 * PreviewLoader.[Ch]: whitespace clean-up.
242 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
244 * PreviewLoader.C (setConverter): remove unused variable
246 * GraphicsImageXPM.C (isDrawable): implement
247 (setPixmap): the opaque color is black, not white
249 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
251 * GraphicsImageXPM.C (color_none_id):
252 (contains_color_none): use ascii_lowercase instead of lowercase
254 2002-07-16 Angus Leeming <leeming@lyx.org>
256 * PreviewLoader.C: greater use of STL algorithms.
258 * Previews.[Ch]: use const in more places.
259 (generateBufferPreviews): now takes a Buffer const & argument, not a
262 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
264 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
266 2002-07-12 Angus Leeming <leeming@lyx.org>
268 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
269 if visible 2 secs after the call to load them is first made.
271 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
272 BufferView to ascertain whether the inset is visible or not.
274 * Makefile.am: added GraphicsSupport.[Ch].
276 * PreviewImage.[Ch]: use this smart loader.
278 * PreviewLoader.C: don't load generated image files indiscimminantly.
279 Instead emit the imageReady signal and allow the image owner to decide.
281 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
283 * GraphicsCache.C: remove init_graphics()
285 2002-07-09 Angus Leeming <leeming@lyx.org>
287 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
288 arithmetic when it should be floating.
290 2002-07-09 Angus Leeming <leeming@lyx.org>
292 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
293 Output equation labels as "(#)" if lyxrc preference is set.
294 (setFontScalingFactor): use lyxrc variable preview_scale_factor
295 rather than hard-coding this.
297 2002-07-09 Angus Leeming <leeming@lyx.org>
299 * PreviewLoader.C: Further refactoring of the code. Should now be
302 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
303 past its sell-by date. The code to read the metrics file is now found
304 as a helper function in PreviewLoader.C.
306 * GraphicsImageXPM.C (scale): use boost::tie.
308 2002-07-08 Herbert Voss <voss@lyx.org>
310 * PreviewLoader.C: use of preview_size_factor to get the right
311 font-size! 0.9 is the default.
313 2002-07-08 Angus Leeming <leeming@lyx.org>
315 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
316 invocation of preview.sty.
317 Perform something of an internal clean-up.
319 2002-07-06 Angus Leeming <leeming@lyx.org>
321 * PreviewLoader.C: ensure that the metrics data is used by the
325 * PreviewImage.C: (Impl d-tor): remove all generated files that still
326 exist (perhaps because the process was curtailed before the images
329 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
331 2002-07-05 Angus Leeming <leeming@lyx.org>
340 * Previews.C: new files. The previewed LaTeX snippet stuff.
342 * Makefile.am: add these files.
344 2002-07-05 Angus Leeming <leeming@lyx.org>
346 * GraphicsLoader.h: whitespace.
348 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
350 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
351 boost::function from boost::signal.
353 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
355 * GraphicsConverter.C (convert): do not use ChangeExtension
356 because to_file_base may contain a dot.
358 2002-06-28 Angus Leeming <leeming@lyx.org>
360 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
361 by moving those SignalPtrs into the grfx::Image and grfx::Converter
362 classes where they really belong.
363 Use the Pimpl idiom to hide the class internals from public view.
365 * GraphicsTypes: remove the typedefs, leaving only the enums.
367 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
368 passed a reference to one in the load() method.
370 * GraphicsConverter.[Ch]: totally refactored. An instance of
371 grfx::Converter now represents a single conversion process.
372 Thus grfx::CachItem now has a grfx::Converter * that is set when the
373 conversion is initiated and destroyed on completion.
375 * GraphicsCache.[Ch]:
376 * GraphicsCacheItem.[Ch]:
377 * GraphicsConverter.[Ch]:
378 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
380 Note that I have done this only after making the above changes,
381 so not only should we have a clean, minimal and well documented
382 interface to these classes in the header files, but the class internals
383 should be much clearer too.
386 grfx::GCache -> grfx::Cache,
387 grfx::GCacheItem -> grfx::CacheItem,
388 grfx::GConverter -> grfx::Converter,
389 grfx::GImage -> grfx::Image,
390 grfx::GImageXPM -> grfx::ImageXPM,
391 grfx::GParams -> grfx::Params.
393 2002-06-26 Angus Leeming <leeming@lyx.org>
395 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
396 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
399 2002-06-26 Angus Leeming <leeming@lyx.org>
401 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
402 move the DisplayType enum out of grfx::GParams to here.
404 * GraphicsCacheItem.h: re-write preliminary description to reflect
407 * GraphicsParams.[Ch]:
408 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
409 grfx::DisplayType out of grfx::GParams.
411 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
412 that was in frontends/screen.C and insets/insetgraphics.C into a
413 single, easy-to-use class.
415 * Makefile.am: add these files.
417 2002-06-25 Angus Leeming <leeming@lyx.org>
419 * GraphicsCache.[Ch]:
420 * GraphicsCacheItem.[Ch]:
421 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
422 file into memory. The cache no longer controls the generation of the
423 pixmap. Instead, it just emits a signal when the loading status of an
425 The cache no longer stores InsetGraphics pointers and nor does it
426 assume responsibility for modifying an image (scaling, rotating etc).
427 Instead, that must now be performed elsewhere.
429 2002-06-19 Angus Leeming <leeming@lyx.org>
431 * GraphicsConverter.C: add using std::endl directive.
433 2002-06-17 Herbert Voss <voss@lyx.org>
435 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
436 default when nothing different was found
437 (convertToDisplayFormat): handle zipped files in the right way and
438 choose always convert as a default converter when no other
439 userdefined was found
441 * GraphicsConverter.C: add more lyxerr comments and choose
442 convert when no other userdefined converter was found
444 2002-06-10 Herbert Voss <voss@lyx.org>
446 * GraphicsImageXPM.C (convertTo7chars): get another special color
447 format from convert work in the right way
449 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
451 * GraphicsCache.C: use right colormap incantation
453 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
455 * GraphicsCache.C: use lyx_gui namespace
457 * GraphicsImageXPM.C: back down to using xforms
460 2002-06-07 Angus Leeming <leeming@lyx.org>
462 Fixes needed to compile with Compaq cxx 6.5.
463 * GraphicsConverter.h: forward declare class ConvProcess.
465 * GraphicsImageXPM.C:
466 all c-library variables have been moved into namespace std.
467 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
469 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
471 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
473 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
475 * GraphicsImageXPM.C: SigC to boot::signals changes.
476 (newImage): fix () bug when using new.
478 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
480 * switch from SigC signals to boost::signals.
482 2002-05-29 André Pönitz <poenitz@gmx.net>
484 * GraphicsParam.C: remove unneeded #include, move vomment
486 2002-05-28 André Pönitz <poenitz@gmx.net>
488 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
490 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
492 * GraphicsImageXPM.C: ColorHandler moved
494 2002-05-24 Juergen Vigna <jug@sad.it>
497 * GraphicsImage.h: include LString.h first.
499 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
501 * GraphicsCacheItem.h: use more specific smart_ptr header.
502 * GraphicsTypes.h: ditto
503 * GraphicsImage.h: ditto
504 * GraphicsConverter.h: ditto
506 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
508 * GraphicsImageXPM.C: understand convert's use of "opaque"
511 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
513 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
514 GImage::loadableFormats() that ensures that the signal is connected
515 to the derived class' method.
517 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
519 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
520 only work on the string.
522 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
524 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
525 the simple image loader when it encounters colour strings like
528 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
530 * GraphicsCacheItem.C (convertToDisplayFormat):
531 * GraphicsConverter.C (build_script): remove the Alerts when things go
532 wrong as the inset displays the message anyway. Moreover, Alert seems
533 pretty temperamemtal at the moment.
535 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
537 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
539 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
541 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
542 a reference to a temp object that's going out of scope...
544 2002-04-09 Herbert Voss <voss@lyx.org>
546 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
547 LyXLength::inBP instead of inPixels.
549 2002-04-10 Herbert Voss <voss@perce.de>
551 * GraphicsCache.[Ch]:
552 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
553 to read the "Bounding Box" from non (e)ps files.
555 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
557 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
558 the EPS file too, to ensure that the clipped Bounding Box is relative
559 to the original. (From Herbert.)
561 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
563 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
564 variables are initialised. Clean-up parsing of the string (with thanks
567 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
569 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
570 if the file can't be found.
572 * GraphicsParams.h (c-tor): remove string() as default argument.
574 * GraphicsCacheItem.C: a couple of changes as a result.
576 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
578 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
579 path to graphics file.
581 * GraphicsParams.[Ch] (c-tor): now passed filepath.
583 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
585 * most files: ws cleanup
587 * Makefile.am: remove ld -r stuff
589 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
591 * Makefile.am: special rules if partial linking
593 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
595 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
597 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
599 * GraphicsConverter.[Ch] (converted): make first arg const ref.
601 * GraphicsCacheItem.h: doxy change
603 * GraphicsCacheItem.C: ws change
605 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
607 * Makefile.am: if there is no image loading class leveraging the power
608 of the appropriate gui library, then compile the basic alternative
609 found in GraphicsImageXPM.[Ch].
611 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
613 * GraphicsCache.C: change associated with move of initialiseGraphics
616 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
618 * GraphicsParams.[Ch]:
620 * GraphicsImageXPM.C: properly resolve more warnings about comparison
621 between signed and unsigned integer expressions.
623 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
625 * GraphicsCache.C: move connections to the GImage-derived classes to
628 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
630 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
631 conversion, then do that.
633 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
635 * GraphicsCache.C: improve commentary to graphicsInit and where it
638 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
639 that became a memory leak properly. (Let the shared_c_ptr free the
641 (reset, mapcolor): tidy up and introduce a work around for XPM files
642 with crappy color entries. Print out a nice friendly message on what's
643 gone wrong and how to resolve it properly.
645 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
647 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
648 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
650 (unique_color_string): use the correct string c-tor.
652 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
655 * ImageLoaderXPM.[Ch]: removed.
657 * GraphicsConverter.[Ch]:
658 * GraphicsImage.[Ch]:
659 * GraphicsImageXPM.[Ch]:
660 * GraphicsParams.[Ch]:
661 * GraphicsTypes.h: new files.
663 * All files. A total re-write of the graphics cache. The cache now
664 supports asynchronous file conversion and file loading. Images
665 can be cropped, rotated and scaled for display on the LyX screen.
666 The old LyXImage and ImageLoader have been combined in a new class
667 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
670 2002-02-07 Herbert Voss <voss@lyx.org>
672 * GraphicsCacheItem.C: use unzipFile() from support/filetools
674 2002-01-31 Herbert Voss <voss@lyx.org>
676 * GraphicsCacheItem.h: handle filetype without the file extension;
677 getting type from contents; handle zipped files
679 2002-01-27 Herbert Voss <voss@lyx.org>
681 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
683 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
685 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
687 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
689 * GraphicsCacheItem.h: do not include <config.h> in header files
691 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
693 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
694 transparent colour, then set it to the colour of the background.
695 Also take account of the monochrome, grayscale of color
698 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
700 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
701 are different. Thus, don't delete the "to" if it's the original!
703 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
705 * ImageLoadXPM.C: remove setting of alloc colour mask,
706 led to crash as we don't define a callback
708 2001-07-29 Baruch Even <baruch@lyx.org>
710 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
711 colors with closeness of 10000.
713 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
715 2001-07-29 Baruch Even <baruch@lyx.org>
717 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
720 2001-07-23 Baruch Even <baruch@lyx.org>
722 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
723 the image after conversion.
725 2001-07-17 Baruch Even <baruch@lyx.org>
727 * GraphicsCacheItem.h:
728 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
729 from synchronous to asynchronous and to ease the coming changes.
731 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
733 * ImageLoaderXPM.C (runImageLoader): get display information from
736 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
739 * GraphicsCacheItem.C:
741 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
743 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
745 * GraphicsCache.h: inherit privately from noncopyable
746 * ImageLoader.h: ditto
747 * GraphicsCacheItem.h: ditto
749 2001-04-16 Allan Rae <rae@lyx.org>
751 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
752 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
755 2001-04-02 Baruch Even <baruch@lyx.org>
757 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
758 of hard coding ImageMagick.
760 2001-03-10 Baruch Even <baruch@lyx.org>
762 * GraphicsCache.C: Style change from (*it).field to it->field
764 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
766 * GraphicsCache.h: noncopyable is in namespace boost
767 * ImageLoader.h: ditto
768 * GraphicsCacheItem.h: ditto
770 2001-03-07 Baruch Even <baruch@lyx.org>
772 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
773 was false and it's not needed anyhow since the shared_ptr's in the cache
774 will destroy everything on exit.
776 2001-02-28 Baruch Even <baruch@ev-en.org>
779 * GraphicsCache.C: Changed the singleton pattern implementation, the
780 former version "leaked" in the sense that it was not deallocated at
783 2001-02-20 Baruch Even <baruch@ev-en.org>
785 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
786 instead of a pure pointer.
788 * GraphicsCacheItem.[Ch]:
789 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
790 removed the reference counting that was inside. Also fixed a bug where
791 a temporary file wouldn't get erased.
793 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
794 Ownership is now dropped when the caller requests the image_ pointer.
796 2001-02-20 Baruch Even <baruch@ev-en.org>
798 * GraphicsCache.C: Cleared up the confusion on when and how it is
801 * GraphicsCacheItem.C: Indentation change.
803 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
804 figure correctly when the image has been loaded successfully.
806 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
808 * ImageLoader.C: add a "using" directive.
810 * ImageLoader.h: remove extra comma at the end of enum; add an
811 std:: qualifier for vector.
813 2001-01-21 Baruch Even <baruch@ev-en.org>
815 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
816 height in the image itself and minor cleanups.
818 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
819 new ImageLoader class instead of the older Renderer class. This
820 means change of responsibilities.