1 2002-09-03 Angus Leeming <leeming@lyx.org>
3 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
5 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
7 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
8 convertDefault command with "sh ".
10 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
12 * GraphicsImage.C: small style fix to width/height setting.
14 * GraphicsTypes.h: have a displayTranslator here.
17 * GraphicsTypes.C: new file added for the setDisplayTranslator();
19 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
22 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
23 because this input has gone from the graphics dialog.
25 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
27 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
29 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
30 for support/smart_ptr.h, switch to boost smart ptr.
32 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
33 (~Data): let the smart_ptr handle cleanup
34 (reset): use nifty 3rd arg
36 (free_color_table): free the table manually
38 2002-08-09 Angus Leeming <leeming@lyx.org>
40 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
41 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
42 input@path is now set correctly.
44 2002-08-06 Angus Leeming <leeming@lyx.org>
46 * PreviewLoader.C: add support for preview.sty 0.73 (currently
47 #ifdef-ed out, awaiting the formal release).
49 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
50 the contents of a file that has changed.
52 2002-08-05 Angus Leeming <leeming@lyx.org>
54 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
55 to preview.sty. Works only for versions of preview.sty > 0.72b but
56 doesn't hurt earlier versions. Allows me to test the new parsing of
57 LyX-specific data from the generated log file.
59 2002-08-02 Angus Leeming <leeming@lyx.org>
61 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
63 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
64 (add): don't add empty snippets.
66 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
67 (view, setView): access to to the cache_.
69 2002-08-02 Angus Leeming <leeming@lyx.org>
71 * PreviewedInset.[Ch]: cache the LaTeX snippet.
73 2002-08-01 Angus Leeming <leeming@lyx.org>
75 * PreviewedInset.[Ch]: new files. An abstract base class that can help
76 insets to generate previews.
77 The daughter class must instantiate three small methods.
78 The Inset would own an instance of this daughter class and invoke it
79 as necessary. For example, mathd/formula.C gets previews at the cost
80 of 15 or so lines of code.
82 * Makefile.am: add PreviewedInset.[Ch].
84 * PreviewLoader.C (add): add debug message.
86 * Previews.C (generateBufferPreviews): remove if-block from loop.
88 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
90 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
92 (setAscentFractions): ditto
94 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
96 * PreviewLoader.C (setAscentFractions): modify because of strip
99 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
101 * GraphicsConverter.C (build_script): take a ostream as a more
102 general argument than ostringstream.
104 2002-07-22 Herbert Voss <voss@lyx.org>
106 * GraphicsConverter.C: get the "default converter" run again
108 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
110 * PreviewLoader.C: use BufferParams::getLyXTextClass
112 2002-07-21 Herbert Voss <voss@lyx.org>
114 * GraphicsImage.C: get the LyXAspectRatio run.
116 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
118 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
120 * PreviewLoader.C (startLoading): pass an interger as resolution
121 to the lyxpreview converter
123 * GraphicsParams.C: include <cstdlib>
125 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
127 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
128 preview converter script
130 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
132 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
135 2002-07-18 Angus Leeming <leeming@lyx.org>
137 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
139 (startMonitoring, monitoring, checksum): new methods to interact with
142 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
143 methods invoking the CacheItem methods of the same name.
144 (resetFile): if monitoring and the file changes, start monitoring this
147 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
149 * Makefile.am: remove FileMonitor.[Ch]
151 2002-06-17 Herbert Voss <voss@lyx.org>
153 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
154 for old ps-files (Garst). It's now handled by defining a converter and
155 disabling the ps-support of xforms.
157 2002-07-17 Angus Leeming <leeming@lyx.org>
159 Be true to the Pimpl idiom, moving all signals into the respective
160 Impl classes and defining methods to connect them to an outside slot.
161 Const-ify all visible class methods as they act only on a const pimpl_.
163 * GraphicsCache.[Ch] (add, remove): const-ify.
165 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
166 (statusChanged): move the signal into the Impl class.
167 (connect): new method, enabling a listener to connect to this signal.
169 * GraphicsConverter.[Ch]: (startConversion): const-ify.
170 (finishedConversion): move the signal into the Impl class.
171 (connect): new method, enabling a listener to connect to this signal.
173 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
174 (statusChanged): move the signal into the Impl class.
175 (connect): new method, enabling a listener to connect to this signal.
177 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
178 (imageReady): move the signal into the Impl class.
179 (connect): new method, enabling a listener to connect to this signal.
180 (emitSignal): new method, enabling PreviewImage to tell the outside
181 world that the file has been loaded into memory.
183 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
187 * GraphicsCacheItem.C:
188 * GraphicsConverter.[Ch]:
190 * GraphicsImageXPM.C:
192 * PreviewLoader.[Ch]: whitespace clean-up.
194 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
196 * PreviewLoader.C (setConverter): remove unused variable
198 * GraphicsImageXPM.C (isDrawable): implement
199 (setPixmap): the opaque color is black, not white
201 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
203 * GraphicsImageXPM.C (color_none_id):
204 (contains_color_none): use ascii_lowercase instead of lowercase
206 2002-07-16 Angus Leeming <leeming@lyx.org>
208 * PreviewLoader.C: greater use of STL algorithms.
210 * Previews.[Ch]: use const in more places.
211 (generateBufferPreviews): now takes a Buffer const & argument, not a
214 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
216 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
218 2002-07-12 Angus Leeming <leeming@lyx.org>
220 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
221 if visible 2 secs after the call to load them is first made.
223 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
224 BufferView to ascertain whether the inset is visible or not.
226 * Makefile.am: added GraphicsSupport.[Ch].
228 * PreviewImage.[Ch]: use this smart loader.
230 * PreviewLoader.C: don't load generated image files indiscimminantly.
231 Instead emit the imageReady signal and allow the image owner to decide.
233 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
235 * GraphicsCache.C: remove init_graphics()
237 2002-07-09 Angus Leeming <leeming@lyx.org>
239 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
240 arithmetic when it should be floating.
242 2002-07-09 Angus Leeming <leeming@lyx.org>
244 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
245 Output equation labels as "(#)" if lyxrc preference is set.
246 (setFontScalingFactor): use lyxrc variable preview_scale_factor
247 rather than hard-coding this.
249 2002-07-09 Angus Leeming <leeming@lyx.org>
251 * PreviewLoader.C: Further refactoring of the code. Should now be
254 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
255 past its sell-by date. The code to read the metrics file is now found
256 as a helper function in PreviewLoader.C.
258 * GraphicsImageXPM.C (scale): use boost::tie.
260 2002-07-08 Herbert Voss <voss@lyx.org>
262 * PreviewLoader.C: use of preview_size_factor to get the right
263 font-size! 0.9 is the default.
265 2002-07-08 Angus Leeming <leeming@lyx.org>
267 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
268 invocation of preview.sty.
269 Perform something of an internal clean-up.
271 2002-07-06 Angus Leeming <leeming@lyx.org>
273 * PreviewLoader.C: ensure that the metrics data is used by the
277 * PreviewImage.C: (Impl d-tor): remove all generated files that still
278 exist (perhaps because the process was curtailed before the images
281 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
283 2002-07-05 Angus Leeming <leeming@lyx.org>
292 * Previews.C: new files. The previewed LaTeX snippet stuff.
294 * Makefile.am: add these files.
296 2002-07-05 Angus Leeming <leeming@lyx.org>
298 * GraphicsLoader.h: whitespace.
300 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
302 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
303 boost::function from boost::signal.
305 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
307 * GraphicsConverter.C (convert): do not use ChangeExtension
308 because to_file_base may contain a dot.
310 2002-06-28 Angus Leeming <leeming@lyx.org>
312 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
313 by moving those SignalPtrs into the grfx::Image and grfx::Converter
314 classes where they really belong.
315 Use the Pimpl idiom to hide the class internals from public view.
317 * GraphicsTypes: remove the typedefs, leaving only the enums.
319 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
320 passed a reference to one in the load() method.
322 * GraphicsConverter.[Ch]: totally refactored. An instance of
323 grfx::Converter now represents a single conversion process.
324 Thus grfx::CachItem now has a grfx::Converter * that is set when the
325 conversion is initiated and destroyed on completion.
327 * GraphicsCache.[Ch]:
328 * GraphicsCacheItem.[Ch]:
329 * GraphicsConverter.[Ch]:
330 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
332 Note that I have done this only after making the above changes,
333 so not only should we have a clean, minimal and well documented
334 interface to these classes in the header files, but the class internals
335 should be much clearer too.
338 grfx::GCache -> grfx::Cache,
339 grfx::GCacheItem -> grfx::CacheItem,
340 grfx::GConverter -> grfx::Converter,
341 grfx::GImage -> grfx::Image,
342 grfx::GImageXPM -> grfx::ImageXPM,
343 grfx::GParams -> grfx::Params.
345 2002-06-26 Angus Leeming <leeming@lyx.org>
347 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
348 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
351 2002-06-26 Angus Leeming <leeming@lyx.org>
353 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
354 move the DisplayType enum out of grfx::GParams to here.
356 * GraphicsCacheItem.h: re-write preliminary description to reflect
359 * GraphicsParams.[Ch]:
360 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
361 grfx::DisplayType out of grfx::GParams.
363 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
364 that was in frontends/screen.C and insets/insetgraphics.C into a
365 single, easy-to-use class.
367 * Makefile.am: add these files.
369 2002-06-25 Angus Leeming <leeming@lyx.org>
371 * GraphicsCache.[Ch]:
372 * GraphicsCacheItem.[Ch]:
373 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
374 file into memory. The cache no longer controls the generation of the
375 pixmap. Instead, it just emits a signal when the loading status of an
377 The cache no longer stores InsetGraphics pointers and nor does it
378 assume responsibility for modifying an image (scaling, rotating etc).
379 Instead, that must now be performed elsewhere.
381 2002-06-19 Angus Leeming <leeming@lyx.org>
383 * GraphicsConverter.C: add using std::endl directive.
385 2002-06-17 Herbert Voss <voss@lyx.org>
387 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
388 default when nothing different was found
389 (convertToDisplayFormat): handle zipped files in the right way and
390 choose always convert as a default converter when no other
391 userdefined was found
393 * GraphicsConverter.C: add more lyxerr comments and choose
394 convert when no other userdefined converter was found
396 2002-06-10 Herbert Voss <voss@lyx.org>
398 * GraphicsImageXPM.C (convertTo7chars): get another special color
399 format from convert work in the right way
401 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
403 * GraphicsCache.C: use right colormap incantation
405 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
407 * GraphicsCache.C: use lyx_gui namespace
409 * GraphicsImageXPM.C: back down to using xforms
412 2002-06-07 Angus Leeming <leeming@lyx.org>
414 Fixes needed to compile with Compaq cxx 6.5.
415 * GraphicsConverter.h: forward declare class ConvProcess.
417 * GraphicsImageXPM.C:
418 all c-library variables have been moved into namespace std.
419 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
421 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
423 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
425 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
427 * GraphicsImageXPM.C: SigC to boot::signals changes.
428 (newImage): fix () bug when using new.
430 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
432 * switch from SigC signals to boost::signals.
434 2002-05-29 André Pönitz <poenitz@gmx.net>
436 * GraphicsParam.C: remove unneeded #include, move vomment
438 2002-05-28 André Pönitz <poenitz@gmx.net>
440 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
442 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
444 * GraphicsImageXPM.C: ColorHandler moved
446 2002-05-24 Juergen Vigna <jug@sad.it>
449 * GraphicsImage.h: include LString.h first.
451 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
453 * GraphicsCacheItem.h: use more specific smart_ptr header.
454 * GraphicsTypes.h: ditto
455 * GraphicsImage.h: ditto
456 * GraphicsConverter.h: ditto
458 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
460 * GraphicsImageXPM.C: understand convert's use of "opaque"
463 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
465 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
466 GImage::loadableFormats() that ensures that the signal is connected
467 to the derived class' method.
469 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
471 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
472 only work on the string.
474 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
476 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
477 the simple image loader when it encounters colour strings like
480 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
482 * GraphicsCacheItem.C (convertToDisplayFormat):
483 * GraphicsConverter.C (build_script): remove the Alerts when things go
484 wrong as the inset displays the message anyway. Moreover, Alert seems
485 pretty temperamemtal at the moment.
487 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
489 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
491 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
493 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
494 a reference to a temp object that's going out of scope...
496 2002-04-09 Herbert Voss <voss@lyx.org>
498 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
499 LyXLength::inBP instead of inPixels.
501 2002-04-10 Herbert Voss <voss@perce.de>
503 * GraphicsCache.[Ch]:
504 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
505 to read the "Bounding Box" from non (e)ps files.
507 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
509 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
510 the EPS file too, to ensure that the clipped Bounding Box is relative
511 to the original. (From Herbert.)
513 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
515 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
516 variables are initialised. Clean-up parsing of the string (with thanks
519 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
521 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
522 if the file can't be found.
524 * GraphicsParams.h (c-tor): remove string() as default argument.
526 * GraphicsCacheItem.C: a couple of changes as a result.
528 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
530 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
531 path to graphics file.
533 * GraphicsParams.[Ch] (c-tor): now passed filepath.
535 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
537 * most files: ws cleanup
539 * Makefile.am: remove ld -r stuff
541 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
543 * Makefile.am: special rules if partial linking
545 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
547 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
549 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
551 * GraphicsConverter.[Ch] (converted): make first arg const ref.
553 * GraphicsCacheItem.h: doxy change
555 * GraphicsCacheItem.C: ws change
557 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
559 * Makefile.am: if there is no image loading class leveraging the power
560 of the appropriate gui library, then compile the basic alternative
561 found in GraphicsImageXPM.[Ch].
563 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
565 * GraphicsCache.C: change associated with move of initialiseGraphics
568 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
570 * GraphicsParams.[Ch]:
572 * GraphicsImageXPM.C: properly resolve more warnings about comparison
573 between signed and unsigned integer expressions.
575 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
577 * GraphicsCache.C: move connections to the GImage-derived classes to
580 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
582 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
583 conversion, then do that.
585 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
587 * GraphicsCache.C: improve commentary to graphicsInit and where it
590 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
591 that became a memory leak properly. (Let the shared_c_ptr free the
593 (reset, mapcolor): tidy up and introduce a work around for XPM files
594 with crappy color entries. Print out a nice friendly message on what's
595 gone wrong and how to resolve it properly.
597 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
599 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
600 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
602 (unique_color_string): use the correct string c-tor.
604 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
607 * ImageLoaderXPM.[Ch]: removed.
609 * GraphicsConverter.[Ch]:
610 * GraphicsImage.[Ch]:
611 * GraphicsImageXPM.[Ch]:
612 * GraphicsParams.[Ch]:
613 * GraphicsTypes.h: new files.
615 * All files. A total re-write of the graphics cache. The cache now
616 supports asynchronous file conversion and file loading. Images
617 can be cropped, rotated and scaled for display on the LyX screen.
618 The old LyXImage and ImageLoader have been combined in a new class
619 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
622 2002-02-07 Herbert Voss <voss@lyx.org>
624 * GraphicsCacheItem.C: use unzipFile() from support/filetools
626 2002-01-31 Herbert Voss <voss@lyx.org>
628 * GraphicsCacheItem.h: handle filetype without the file extension;
629 getting type from contents; handle zipped files
631 2002-01-27 Herbert Voss <voss@lyx.org>
633 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
635 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
637 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
639 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
641 * GraphicsCacheItem.h: do not include <config.h> in header files
643 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
645 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
646 transparent colour, then set it to the colour of the background.
647 Also take account of the monochrome, grayscale of color
650 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
652 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
653 are different. Thus, don't delete the "to" if it's the original!
655 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
657 * ImageLoadXPM.C: remove setting of alloc colour mask,
658 led to crash as we don't define a callback
660 2001-07-29 Baruch Even <baruch@lyx.org>
662 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
663 colors with closeness of 10000.
665 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
667 2001-07-29 Baruch Even <baruch@lyx.org>
669 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
672 2001-07-23 Baruch Even <baruch@lyx.org>
674 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
675 the image after conversion.
677 2001-07-17 Baruch Even <baruch@lyx.org>
679 * GraphicsCacheItem.h:
680 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
681 from synchronous to asynchronous and to ease the coming changes.
683 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
685 * ImageLoaderXPM.C (runImageLoader): get display information from
688 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
691 * GraphicsCacheItem.C:
693 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
695 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
697 * GraphicsCache.h: inherit privately from noncopyable
698 * ImageLoader.h: ditto
699 * GraphicsCacheItem.h: ditto
701 2001-04-16 Allan Rae <rae@lyx.org>
703 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
704 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
707 2001-04-02 Baruch Even <baruch@lyx.org>
709 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
710 of hard coding ImageMagick.
712 2001-03-10 Baruch Even <baruch@lyx.org>
714 * GraphicsCache.C: Style change from (*it).field to it->field
716 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
718 * GraphicsCache.h: noncopyable is in namespace boost
719 * ImageLoader.h: ditto
720 * GraphicsCacheItem.h: ditto
722 2001-03-07 Baruch Even <baruch@lyx.org>
724 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
725 was false and it's not needed anyhow since the shared_ptr's in the cache
726 will destroy everything on exit.
728 2001-02-28 Baruch Even <baruch@ev-en.org>
731 * GraphicsCache.C: Changed the singleton pattern implementation, the
732 former version "leaked" in the sense that it was not deallocated at
735 2001-02-20 Baruch Even <baruch@ev-en.org>
737 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
738 instead of a pure pointer.
740 * GraphicsCacheItem.[Ch]:
741 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
742 removed the reference counting that was inside. Also fixed a bug where
743 a temporary file wouldn't get erased.
745 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
746 Ownership is now dropped when the caller requests the image_ pointer.
748 2001-02-20 Baruch Even <baruch@ev-en.org>
750 * GraphicsCache.C: Cleared up the confusion on when and how it is
753 * GraphicsCacheItem.C: Indentation change.
755 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
756 figure correctly when the image has been loaded successfully.
758 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
760 * ImageLoader.C: add a "using" directive.
762 * ImageLoader.h: remove extra comma at the end of enum; add an
763 std:: qualifier for vector.
765 2001-01-21 Baruch Even <baruch@ev-en.org>
767 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
768 height in the image itself and minor cleanups.
770 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
771 new ImageLoader class instead of the older Renderer class. This
772 means change of responsibilities.