1 2005-04-17 Angus Leeming <leeming@lyx.org>
3 * GraphicsConverter.C (c-tor): quote conversion commands correctly.
5 2005-02-15 Angus Leeming <leeming@lyx.org>
7 * GraphicsLoader.C: s/struct/class/ in definition of
8 lyx::graphics::Loader::Impl to silence MSVC warning:
9 "type name first seen using 'class' now seen using 'struct'".
11 2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
13 * PreviewLoader.C (Impl): use convert<> instead of atoi,strToXXX
16 * GraphicsParams.h (class Params): change angle from float to double
18 2005-01-06 Lars Gullik Bjonnes <larsbj@gullik.net>
20 * PreviewLoader.C (unique_filename): tostr -> convert
22 2005-01-04 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
24 * PreviewLoader.C: lyxrc.preview_scale_factor is a string now.
26 2004-11-25 Lars Gullik Bjonnes <larsbj@gullik.net>
28 * rename a lot of InsetOld to InsetBase
30 2004-11-20 Lars Gullik Bjonnes <larsbj@gullik.net>
32 * GraphicsCache.C: include <map> to fix compilation with boost
35 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
37 * GraphicsCacheItem.C:
38 s/getFormatFromContents/formats.getFormatFromFile/
40 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
42 * GraphicsCacheItem.C: s/getExtFromContents/getFormatFromContents/
43 * GraphicsImage.h (loadableFormats): correct documentation
45 2004-10-01 Angus Leeming <leeming@lyx.org>
47 * GraphicsConverter.C (move_file, build_script): protect
48 shell variables with quotes.
50 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
52 * pch.h: use proper signal include
54 * GraphicsCacheItem.[Ch]: Use preferred calling of Boost.Signal
55 * GraphicsConverter.C: ditto
56 * GraphicsImage.h: ditto
57 * GraphicsLoader.[Ch]: ditto
58 * PreviewLoader.[Ch]: ditto
60 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
62 * pch.h: include <boost/function.hpp> instead of
63 <boost/function/function0.hpp>
65 * GraphicsImage.C: Use preferred calling of boost::function
66 * GraphicsImage.h: ditto
68 2004-08-16 José Matos <jamatos@lyx.org>
70 * PreviewLoader.C (Impl::startLoading): remove space at end of line.
72 2004-08-15 Lars Gullik Bjonnes <larsbj@gullik.net>
76 * Makefile.am: support pch
78 2004-07-24 Lars Gullik Bjonnes <larsbj@gullik.net>
80 * PreviewLoader.C, GraphicsParams.C, GraphicsConverter.C: change
81 "support/std_sstream.h" to <sstream>
83 2004-04-19 Angus Leeming <leeming@lyx.org>
85 * Previews.[Ch] (status): new member function, replacing activated.
87 2004-04-15 Angus Leeming <leeming@lyx.org>
89 * PreviewLoader.C (startLoading): change arguments passed to the
90 preview-generation script to include the foreground and background
92 (dumpPreamble): no longer write the foreground and background
93 colours to the latex file as PostScript specials.
94 (setConverter): consider only those 'to' formats that are
95 loadable natively by the GUI library, rather than all formats
96 for which a converter exists.
97 (setAscentFractions): re-written to parse much simplified metrics
100 2004-04-13 Angus Leeming <leeming@lyx.org>
102 * PreviewLoader.C (dumpPreamble):
103 * Previews.C (generateBufferPreviews): re-enable iteration over all
106 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
108 * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
110 * PreviewLoader.C: use always a temp dir
111 * PreviewLoader.C: check successfull creation of LaTeX file
113 2004-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
115 * PreviewLoader.C (FindFirst): inherit from std::unary_function
116 and make operator() const
117 (FindSnippet): inherit from unary_function, simplify slightly.
119 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
121 * GraphicsTypes.C: include <string>
123 2003-11-20 Lars Gullik Bjonnes <larsbj@gullik.net>
125 * Previews.C: include paragraph.h
126 * PreviewLoader.C: ditto
128 2003-11-05 José Matos <jamatos@lyx.org>
130 * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
131 and LatexRunParams to OutputParams.
133 2003-10-22 Angus Leeming <leeming@lyx.org>
135 * PreviewImage.C (statusChanged): always pass on the signal, not just
136 when the preview is ready for display.
138 2003-10-22 Angus Leeming <leeming@lyx.org>
140 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
141 to contain the conversion script cannot be opened.
143 2003-10-22 Angus Leeming <leeming@lyx.org>
145 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
148 2003-10-13 Angus Leeming <leeming@lyx.org>
150 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
151 Make displayTranslator a function,
153 2003-10-10 Angus Leeming <leeming@lyx.org>
155 * PreviewedInset.[Ch]: removed.
157 * Makefile.am: remove PreviewedInset.[Ch].
159 2003-10-09 Angus Leeming <leeming@lyx.org>
161 * PreviewedInset.[Ch] (previewReady): remove the side effects.
162 Now simply reports whether the preview is ready.
164 2003-10-09 Angus Leeming <leeming@lyx.org>
166 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
167 Remove the inset and view member functions.
168 Add a new connect member function and preview_ready_signal_ member
169 variable, to enable the class to tell an arbirary connectee that the
172 2003-10-09 Angus Leeming <leeming@lyx.org>
174 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
175 are now passed a 'Buffer const &', eliminating most of the remaining
176 need for PreviewedInset to use a BufferView cache.
178 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
181 * PreviewImage.h: add <string> and other small fixes to make
182 Lars' std::string patch compile with STLport.
184 2003-09-29 Angus Leeming <leeming@lyx.org>
186 * GraphicsParams.[Ch] (asString): removed. Replaced with
187 operator<<(std::ostream &, BoundingBox const &).
189 2003-09-25 Angus Leeming <leeming@lyx.org>
191 * GraphicsParams.[Ch] (asString): new member function.
193 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
195 * Previews.C (Previews): fix new bug
197 * GraphicsCache.C (Cache): fix new bug
199 2003-09-19 Angus Leeming <leeming@lyx.org>
201 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
202 a 'Buffer const &' argument.
204 2003-09-18 Angus Leeming <leeming@lyx.org>
206 * PreviewedInset.C (latexString): add a Buffer const & arg.
207 * PreviewedInset.C (addPreview): pass the buffer to latexString.
209 2003-09-16 Angus Leeming <leeming@lyx.org>
211 * PreviewedInset.[Ch] (c-tor) move out of line.
212 (d-tor): make private.
213 (inset): return a const reference rather than a non-const pointer.
215 2003-09-16 Angus Leeming <leeming@lyx.org>
217 * GraphicsImage.h: separate interface from implementation. Make all the
218 pure virtual functions private.
220 2003-09-16 Angus Leeming <leeming@lyx.org>
222 * PreviewLoader.C: add #include "LColor.h".
224 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
226 * GraphicsConverter.C
227 * PreviewLoader.C: remove usage of STRCONV
229 2003-09-14 Angus Leeming <leeming@lyx.org>
231 * PreviewLoader.C (remove): consider all InProgressProcesses when
232 ascertaining which ones to remove from the list, not every other one.
234 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
236 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
239 2003-09-08 Angus Leeming <leeming@lyx.org>
243 * PreviewLoader.C: remove redundant using directives.
245 2003-09-07 Angus Leeming <leeming@lyx.org>
248 * Previews.h: remove #include "support/std_string.h".
250 2003-09-06 Angus Leeming <leeming@lyx.org>
252 * PreviewedInset.C: add #include "insets/inset.h"
254 2003-09-05 Angus Leeming <leeming@lyx.org>
256 * *.C: strip out redundant #includes. (26 in total.)
258 2003-09-04 Angus Leeming <leeming@lyx.org>
260 * LoaderQueue.C (get):
262 2003-09-04 Angus Leeming <leeming@lyx.org>
265 * GraphicsCacheItem.C:
266 * GraphicsConverter.C:
270 * Previews.C: 'namespace support = lyx::support' rather than
271 'using lyx::support'.
273 * Previews.h: cleaned up some comments.
275 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
277 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
279 * GraphicsTypes.h: do not declare displayTranstor here (and remove
282 2003-07-27 José Matos <jamatos@fep.up.pt>
284 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
287 2003-07-21 Angus Leeming <leeming@lyx.org>
290 * GraphicsCacheItem.[Ch]:
293 * PreviewedInset.[Ch]:
294 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
296 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
298 * Change namespace grfx to lyx::graphics.
300 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
302 * introcude namespace lyx::support
304 2003-06-04 Angus Leeming <leeming@lyx.org>
306 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
307 (operator=): if it has a copy c-tor, it should have this too.
309 2003-06-03 Angus Leeming <leeming@lyx.org>
311 * GraphicsLoader.[Ch] (Loader): add copy constructor.
313 2003-05-23 Angus Leeming <leeming@lyx.org>
315 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
317 2003-05-22 Angus Leeming <leeming@lyx.org>
319 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
320 the inset::latex method.
322 2003-05-22 Angus Leeming <leeming@lyx.org>
324 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
325 the inset::latex method.
327 2003-05-22 Angus Leeming <leeming@lyx.org>
329 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
330 makeLaTeXFile is now encapsulated within runparams.
332 2003-05-22 Angus Leeming <leeming@lyx.org>
334 * PreviewLoader.C (dumpPreamble):
335 pass around a LatexRunParams parameter.
337 2003-05-13 André Pönitz <poenitz@gmx.net>
339 * GraphicsConverter.C:
340 * PreviewLoader.C: use tostr from own header
342 2003-05-12 André Pönitz <poenitz@gmx.net>
344 * PreviewLoader.C: boost::format -> bformat
346 2003-04-15 Angus Leeming <leeming@lyx.org>
348 * GraphicsConverter.C: #include lstrings.h.
350 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
352 * GraphicsConverter.C
353 * PreviewLoader.C: added #include "format.h"
355 2003-02-26 Angus Leeming <leeming@lyx.org>
357 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
358 use the cache of the parent inset instead.
360 * PreviewLoader.C (startLoading): Prevent a crash if the user is
361 not using a tmp directory.
363 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
365 * GraphicsLoader.[Ch],
367 * PreviewedInset.C: Removed unneeded list of owner insets
369 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
371 * GraphicsConverter (startConversion): add the call to
374 * GraphicsLoader.[Ch],
376 * PreviewedInset.C: Removed unneeded BufferView
378 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
380 * LoaderQueue.[Ch]: a simplification of the code, eliminated
381 the unneeded input bucket.
383 * GraphicsCacheItem.C (imageConverted): move warning inside the
386 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
388 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
390 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
392 * LoaderQueue.[Ch] (setPriority): added
394 * PreviewLoader.C (finishedGenerating): reversed the loading order so
395 first images get 'touched' last, and so load first.
397 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
399 * LoaderQueue.[Ch]: added. Implements a service queue that loads
401 * GraphicsSupport.[Ch]: removed
402 * Makefile.am: the changes above
403 * GraphicsLoader.C: use the loading queue
405 2003-01-21 Angus Leeming <leeming@lyx.org>
407 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
408 previews from being generated.
410 2003-01-13 Angus Leeming <leeming@lyx.org>
412 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
413 format to be PPM not XPM.
415 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
417 * Makefile.am (EXTRA_DIST): remove variable
419 2002-12-13 Angus Leeming <leeming@lyx.org>
421 * GraphicsImageXPM.[Ch]: removed.
423 * Makefile.am: associated change.
425 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
427 * several files: ws changes
429 2002-11-21 Angus Leeming <leeming@lyx.org>
431 * GraphicsConverter.C (build_script, move_file):
432 Don't use "if [ $? -ne 0 ]; then..."
434 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
436 * PreviewLoader.C (IncrementedFileName): STRCONV
437 (startLoading): ditto
439 * GraphicsConverter.C (Impl): STRCONV
442 * GraphicsTypes.C: include config.h
444 2002-10-25 Angus Leeming <leeming@lyx.org>
446 * GraphicsConverter.C (Impl::converted)
447 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
448 string as first arg, reflecting change in ForkedCall interface.
450 * PreviewLoader.C: use pid rather than command as identifier in
453 2002-10-18 Angus Leeming <leeming@lyx.org>
455 * GraphicsCacheItem.C (findTargetFormat): add debug message.
457 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
459 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
461 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
463 * GraphicsConverter.C (build_script): do not use ChangeExtension
467 2002-09-05 Angus Leeming <leeming@lyx.org>
469 * all files: modify the headers as discussed on the list.
471 2002-09-04 Angus Leeming <leeming@lyx.org>
473 * PreviewLoader.C (startLoading): pass the desired output format to the
476 2002-09-04 Angus Leeming <leeming@lyx.org>
478 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
480 2002-09-03 Angus Leeming <leeming@lyx.org>
482 * PreviewLoader.C: fix crash reported by Norbert Koksch when
483 generating more than 999 preview snippets. Use filenames with 5 digit
484 numbers, not 3, in the first instance, although more general code is
485 commented out. I don't suppose /anyone/ has 100000 formulae in one
488 2002-09-03 Angus Leeming <leeming@lyx.org>
490 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
492 2002-09-03 Angus Leeming <leeming@lyx.org>
494 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
496 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
498 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
499 convertDefault command with "sh ".
501 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
503 * GraphicsImage.C: small style fix to width/height setting.
505 * GraphicsTypes.h: have a displayTranslator here.
508 * GraphicsTypes.C: new file added for the setDisplayTranslator();
510 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
513 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
514 because this input has gone from the graphics dialog.
516 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
518 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
520 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
521 for support/smart_ptr.h, switch to boost smart ptr.
523 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
524 (~Data): let the smart_ptr handle cleanup
525 (reset): use nifty 3rd arg
527 (free_color_table): free the table manually
529 2002-08-09 Angus Leeming <leeming@lyx.org>
531 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
532 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
533 input@path is now set correctly.
535 2002-08-06 Angus Leeming <leeming@lyx.org>
537 * PreviewLoader.C: add support for preview.sty 0.73 (currently
538 #ifdef-ed out, awaiting the formal release).
540 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
541 the contents of a file that has changed.
543 2002-08-05 Angus Leeming <leeming@lyx.org>
545 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
546 to preview.sty. Works only for versions of preview.sty > 0.72b but
547 doesn't hurt earlier versions. Allows me to test the new parsing of
548 LyX-specific data from the generated log file.
550 2002-08-02 Angus Leeming <leeming@lyx.org>
552 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
554 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
555 (add): don't add empty snippets.
557 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
558 (view, setView): access to to the cache_.
560 2002-08-02 Angus Leeming <leeming@lyx.org>
562 * PreviewedInset.[Ch]: cache the LaTeX snippet.
564 2002-08-01 Angus Leeming <leeming@lyx.org>
566 * PreviewedInset.[Ch]: new files. An abstract base class that can help
567 insets to generate previews.
568 The daughter class must instantiate three small methods.
569 The Inset would own an instance of this daughter class and invoke it
570 as necessary. For example, mathd/formula.C gets previews at the cost
571 of 15 or so lines of code.
573 * Makefile.am: add PreviewedInset.[Ch].
575 * PreviewLoader.C (add): add debug message.
577 * Previews.C (generateBufferPreviews): remove if-block from loop.
579 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
581 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
583 (setAscentFractions): ditto
585 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
587 * PreviewLoader.C (setAscentFractions): modify because of strip
590 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
592 * GraphicsConverter.C (build_script): take a ostream as a more
593 general argument than ostringstream.
595 2002-07-22 Herbert Voss <voss@lyx.org>
597 * GraphicsConverter.C: get the "default converter" run again
599 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
601 * PreviewLoader.C: use BufferParams::getLyXTextClass
603 2002-07-21 Herbert Voss <voss@lyx.org>
605 * GraphicsImage.C: get the LyXAspectRatio run.
607 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
609 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
611 * PreviewLoader.C (startLoading): pass an interger as resolution
612 to the lyxpreview converter
614 * GraphicsParams.C: include <cstdlib>
616 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
618 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
619 preview converter script
621 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
623 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
626 2002-07-18 Angus Leeming <leeming@lyx.org>
628 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
630 (startMonitoring, monitoring, checksum): new methods to interact with
633 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
634 methods invoking the CacheItem methods of the same name.
635 (resetFile): if monitoring and the file changes, start monitoring this
638 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
640 * Makefile.am: remove FileMonitor.[Ch]
642 2002-06-17 Herbert Voss <voss@lyx.org>
644 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
645 for old ps-files (Garst). It's now handled by defining a converter and
646 disabling the ps-support of xforms.
648 2002-07-17 Angus Leeming <leeming@lyx.org>
650 Be true to the Pimpl idiom, moving all signals into the respective
651 Impl classes and defining methods to connect them to an outside slot.
652 Const-ify all visible class methods as they act only on a const pimpl_.
654 * GraphicsCache.[Ch] (add, remove): const-ify.
656 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
657 (statusChanged): move the signal into the Impl class.
658 (connect): new method, enabling a listener to connect to this signal.
660 * GraphicsConverter.[Ch]: (startConversion): const-ify.
661 (finishedConversion): move the signal into the Impl class.
662 (connect): new method, enabling a listener to connect to this signal.
664 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
665 (statusChanged): move the signal into the Impl class.
666 (connect): new method, enabling a listener to connect to this signal.
668 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
669 (imageReady): move the signal into the Impl class.
670 (connect): new method, enabling a listener to connect to this signal.
671 (emitSignal): new method, enabling PreviewImage to tell the outside
672 world that the file has been loaded into memory.
674 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
678 * GraphicsCacheItem.C:
679 * GraphicsConverter.[Ch]:
681 * GraphicsImageXPM.C:
683 * PreviewLoader.[Ch]: whitespace clean-up.
685 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
687 * PreviewLoader.C (setConverter): remove unused variable
689 * GraphicsImageXPM.C (isDrawable): implement
690 (setPixmap): the opaque color is black, not white
692 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
694 * GraphicsImageXPM.C (color_none_id):
695 (contains_color_none): use ascii_lowercase instead of lowercase
697 2002-07-16 Angus Leeming <leeming@lyx.org>
699 * PreviewLoader.C: greater use of STL algorithms.
701 * Previews.[Ch]: use const in more places.
702 (generateBufferPreviews): now takes a Buffer const & argument, not a
705 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
707 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
709 2002-07-12 Angus Leeming <leeming@lyx.org>
711 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
712 if visible 2 secs after the call to load them is first made.
714 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
715 BufferView to ascertain whether the inset is visible or not.
717 * Makefile.am: added GraphicsSupport.[Ch].
719 * PreviewImage.[Ch]: use this smart loader.
721 * PreviewLoader.C: don't load generated image files indiscimminantly.
722 Instead emit the imageReady signal and allow the image owner to decide.
724 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
726 * GraphicsCache.C: remove init_graphics()
728 2002-07-09 Angus Leeming <leeming@lyx.org>
730 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
731 arithmetic when it should be floating.
733 2002-07-09 Angus Leeming <leeming@lyx.org>
735 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
736 Output equation labels as "(#)" if lyxrc preference is set.
737 (setFontScalingFactor): use lyxrc variable preview_scale_factor
738 rather than hard-coding this.
740 2002-07-09 Angus Leeming <leeming@lyx.org>
742 * PreviewLoader.C: Further refactoring of the code. Should now be
745 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
746 past its sell-by date. The code to read the metrics file is now found
747 as a helper function in PreviewLoader.C.
749 * GraphicsImageXPM.C (scale): use boost::tie.
751 2002-07-08 Herbert Voss <voss@lyx.org>
753 * PreviewLoader.C: use of preview_size_factor to get the right
754 font-size! 0.9 is the default.
756 2002-07-08 Angus Leeming <leeming@lyx.org>
758 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
759 invocation of preview.sty.
760 Perform something of an internal clean-up.
762 2002-07-06 Angus Leeming <leeming@lyx.org>
764 * PreviewLoader.C: ensure that the metrics data is used by the
768 * PreviewImage.C: (Impl d-tor): remove all generated files that still
769 exist (perhaps because the process was curtailed before the images
772 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
774 2002-07-05 Angus Leeming <leeming@lyx.org>
783 * Previews.C: new files. The previewed LaTeX snippet stuff.
785 * Makefile.am: add these files.
787 2002-07-05 Angus Leeming <leeming@lyx.org>
789 * GraphicsLoader.h: whitespace.
791 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
793 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
794 boost::function from boost::signal.
796 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
798 * GraphicsConverter.C (convert): do not use ChangeExtension
799 because to_file_base may contain a dot.
801 2002-06-28 Angus Leeming <leeming@lyx.org>
803 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
804 by moving those SignalPtrs into the grfx::Image and grfx::Converter
805 classes where they really belong.
806 Use the Pimpl idiom to hide the class internals from public view.
808 * GraphicsTypes: remove the typedefs, leaving only the enums.
810 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
811 passed a reference to one in the load() method.
813 * GraphicsConverter.[Ch]: totally refactored. An instance of
814 grfx::Converter now represents a single conversion process.
815 Thus grfx::CachItem now has a grfx::Converter * that is set when the
816 conversion is initiated and destroyed on completion.
818 * GraphicsCache.[Ch]:
819 * GraphicsCacheItem.[Ch]:
820 * GraphicsConverter.[Ch]:
821 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
823 Note that I have done this only after making the above changes,
824 so not only should we have a clean, minimal and well documented
825 interface to these classes in the header files, but the class internals
826 should be much clearer too.
829 grfx::GCache -> grfx::Cache,
830 grfx::GCacheItem -> grfx::CacheItem,
831 grfx::GConverter -> grfx::Converter,
832 grfx::GImage -> grfx::Image,
833 grfx::GImageXPM -> grfx::ImageXPM,
834 grfx::GParams -> grfx::Params.
836 2002-06-26 Angus Leeming <leeming@lyx.org>
838 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
839 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
842 2002-06-26 Angus Leeming <leeming@lyx.org>
844 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
845 move the DisplayType enum out of grfx::GParams to here.
847 * GraphicsCacheItem.h: re-write preliminary description to reflect
850 * GraphicsParams.[Ch]:
851 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
852 grfx::DisplayType out of grfx::GParams.
854 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
855 that was in frontends/screen.C and insets/insetgraphics.C into a
856 single, easy-to-use class.
858 * Makefile.am: add these files.
860 2002-06-25 Angus Leeming <leeming@lyx.org>
862 * GraphicsCache.[Ch]:
863 * GraphicsCacheItem.[Ch]:
864 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
865 file into memory. The cache no longer controls the generation of the
866 pixmap. Instead, it just emits a signal when the loading status of an
868 The cache no longer stores InsetGraphics pointers and nor does it
869 assume responsibility for modifying an image (scaling, rotating etc).
870 Instead, that must now be performed elsewhere.
872 2002-06-19 Angus Leeming <leeming@lyx.org>
874 * GraphicsConverter.C: add using std::endl directive.
876 2002-06-17 Herbert Voss <voss@lyx.org>
878 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
879 default when nothing different was found
880 (convertToDisplayFormat): handle zipped files in the right way and
881 choose always convert as a default converter when no other
882 userdefined was found
884 * GraphicsConverter.C: add more lyxerr comments and choose
885 convert when no other userdefined converter was found
887 2002-06-10 Herbert Voss <voss@lyx.org>
889 * GraphicsImageXPM.C (convertTo7chars): get another special color
890 format from convert work in the right way
892 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
894 * GraphicsCache.C: use right colormap incantation
896 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
898 * GraphicsCache.C: use lyx_gui namespace
900 * GraphicsImageXPM.C: back down to using xforms
903 2002-06-07 Angus Leeming <leeming@lyx.org>
905 Fixes needed to compile with Compaq cxx 6.5.
906 * GraphicsConverter.h: forward declare class ConvProcess.
908 * GraphicsImageXPM.C:
909 all c-library variables have been moved into namespace std.
910 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
912 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
914 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
916 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
918 * GraphicsImageXPM.C: SigC to boot::signals changes.
919 (newImage): fix () bug when using new.
921 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
923 * switch from SigC signals to boost::signals.
925 2002-05-29 André Pönitz <poenitz@gmx.net>
927 * GraphicsParam.C: remove unneeded #include, move vomment
929 2002-05-28 André Pönitz <poenitz@gmx.net>
931 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
933 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
935 * GraphicsImageXPM.C: ColorHandler moved
937 2002-05-24 Juergen Vigna <jug@sad.it>
940 * GraphicsImage.h: include LString.h first.
942 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
944 * GraphicsCacheItem.h: use more specific smart_ptr header.
945 * GraphicsTypes.h: ditto
946 * GraphicsImage.h: ditto
947 * GraphicsConverter.h: ditto
949 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
951 * GraphicsImageXPM.C: understand convert's use of "opaque"
954 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
956 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
957 GImage::loadableFormats() that ensures that the signal is connected
958 to the derived class' method.
960 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
962 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
963 only work on the string.
965 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
967 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
968 the simple image loader when it encounters colour strings like
971 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
973 * GraphicsCacheItem.C (convertToDisplayFormat):
974 * GraphicsConverter.C (build_script): remove the Alerts when things go
975 wrong as the inset displays the message anyway. Moreover, Alert seems
976 pretty temperamemtal at the moment.
978 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
980 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
982 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
984 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
985 a reference to a temp object that's going out of scope...
987 2002-04-09 Herbert Voss <voss@lyx.org>
989 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
990 LyXLength::inBP instead of inPixels.
992 2002-04-10 Herbert Voss <voss@perce.de>
994 * GraphicsCache.[Ch]:
995 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
996 to read the "Bounding Box" from non (e)ps files.
998 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
1000 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
1001 the EPS file too, to ensure that the clipped Bounding Box is relative
1002 to the original. (From Herbert.)
1004 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
1006 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
1007 variables are initialised. Clean-up parsing of the string (with thanks
1010 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
1012 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
1013 if the file can't be found.
1015 * GraphicsParams.h (c-tor): remove string() as default argument.
1017 * GraphicsCacheItem.C: a couple of changes as a result.
1019 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
1021 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
1022 path to graphics file.
1024 * GraphicsParams.[Ch] (c-tor): now passed filepath.
1026 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
1028 * most files: ws cleanup
1030 * Makefile.am: remove ld -r stuff
1032 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1034 * Makefile.am: special rules if partial linking
1036 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
1038 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
1040 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
1042 * GraphicsConverter.[Ch] (converted): make first arg const ref.
1044 * GraphicsCacheItem.h: doxy change
1046 * GraphicsCacheItem.C: ws change
1048 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
1050 * Makefile.am: if there is no image loading class leveraging the power
1051 of the appropriate gui library, then compile the basic alternative
1052 found in GraphicsImageXPM.[Ch].
1054 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
1056 * GraphicsCache.C: change associated with move of initialiseGraphics
1059 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
1061 * GraphicsParams.[Ch]:
1063 * GraphicsImageXPM.C: properly resolve more warnings about comparison
1064 between signed and unsigned integer expressions.
1066 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
1068 * GraphicsCache.C: move connections to the GImage-derived classes to
1071 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
1073 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
1074 conversion, then do that.
1076 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1078 * GraphicsCache.C: improve commentary to graphicsInit and where it
1081 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
1082 that became a memory leak properly. (Let the shared_c_ptr free the
1084 (reset, mapcolor): tidy up and introduce a work around for XPM files
1085 with crappy color entries. Print out a nice friendly message on what's
1086 gone wrong and how to resolve it properly.
1088 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1090 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
1091 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
1092 in free_color_table.
1093 (unique_color_string): use the correct string c-tor.
1095 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
1098 * ImageLoaderXPM.[Ch]: removed.
1100 * GraphicsConverter.[Ch]:
1101 * GraphicsImage.[Ch]:
1102 * GraphicsImageXPM.[Ch]:
1103 * GraphicsParams.[Ch]:
1104 * GraphicsTypes.h: new files.
1106 * All files. A total re-write of the graphics cache. The cache now
1107 supports asynchronous file conversion and file loading. Images
1108 can be cropped, rotated and scaled for display on the LyX screen.
1109 The old LyXImage and ImageLoader have been combined in a new class
1110 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1113 2002-02-07 Herbert Voss <voss@lyx.org>
1115 * GraphicsCacheItem.C: use unzipFile() from support/filetools
1117 2002-01-31 Herbert Voss <voss@lyx.org>
1119 * GraphicsCacheItem.h: handle filetype without the file extension;
1120 getting type from contents; handle zipped files
1122 2002-01-27 Herbert Voss <voss@lyx.org>
1124 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1126 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
1128 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1130 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1132 * GraphicsCacheItem.h: do not include <config.h> in header files
1134 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1136 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1137 transparent colour, then set it to the colour of the background.
1138 Also take account of the monochrome, grayscale of color
1141 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1143 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1144 are different. Thus, don't delete the "to" if it's the original!
1146 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1148 * ImageLoadXPM.C: remove setting of alloc colour mask,
1149 led to crash as we don't define a callback
1151 2001-07-29 Baruch Even <baruch@lyx.org>
1153 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1154 colors with closeness of 10000.
1156 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1158 2001-07-29 Baruch Even <baruch@lyx.org>
1160 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1163 2001-07-23 Baruch Even <baruch@lyx.org>
1165 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1166 the image after conversion.
1168 2001-07-17 Baruch Even <baruch@lyx.org>
1170 * GraphicsCacheItem.h:
1171 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1172 from synchronous to asynchronous and to ease the coming changes.
1174 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1176 * ImageLoaderXPM.C (runImageLoader): get display information from
1179 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1182 * GraphicsCacheItem.C:
1184 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1186 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1188 * GraphicsCache.h: inherit privately from noncopyable
1189 * ImageLoader.h: ditto
1190 * GraphicsCacheItem.h: ditto
1192 2001-04-16 Allan Rae <rae@lyx.org>
1194 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1195 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1198 2001-04-02 Baruch Even <baruch@lyx.org>
1200 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1201 of hard coding ImageMagick.
1203 2001-03-10 Baruch Even <baruch@lyx.org>
1205 * GraphicsCache.C: Style change from (*it).field to it->field
1207 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1209 * GraphicsCache.h: noncopyable is in namespace boost
1210 * ImageLoader.h: ditto
1211 * GraphicsCacheItem.h: ditto
1213 2001-03-07 Baruch Even <baruch@lyx.org>
1215 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1216 was false and it's not needed anyhow since the shared_ptr's in the cache
1217 will destroy everything on exit.
1219 2001-02-28 Baruch Even <baruch@ev-en.org>
1222 * GraphicsCache.C: Changed the singleton pattern implementation, the
1223 former version "leaked" in the sense that it was not deallocated at
1226 2001-02-20 Baruch Even <baruch@ev-en.org>
1228 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1229 instead of a pure pointer.
1231 * GraphicsCacheItem.[Ch]:
1232 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1233 removed the reference counting that was inside. Also fixed a bug where
1234 a temporary file wouldn't get erased.
1236 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1237 Ownership is now dropped when the caller requests the image_ pointer.
1239 2001-02-20 Baruch Even <baruch@ev-en.org>
1241 * GraphicsCache.C: Cleared up the confusion on when and how it is
1244 * GraphicsCacheItem.C: Indentation change.
1246 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1247 figure correctly when the image has been loaded successfully.
1249 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1251 * ImageLoader.C: add a "using" directive.
1253 * ImageLoader.h: remove extra comma at the end of enum; add an
1254 std:: qualifier for vector.
1256 2001-01-21 Baruch Even <baruch@ev-en.org>
1258 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1259 height in the image itself and minor cleanups.
1261 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1262 new ImageLoader class instead of the older Renderer class. This
1263 means change of responsibilities.