1 2005-06-12 Angus Leeming <leeming@lyx.org>
3 * PreviewLoader.C (startLoading): quote the name of the LaTeX file
4 passed to the lyxpreview converter script.
6 2005-04-17 Angus Leeming <leeming@lyx.org>
8 * GraphicsConverter.C (c-tor): quote conversion commands correctly.
10 2005-02-15 Angus Leeming <leeming@lyx.org>
12 * GraphicsLoader.C: s/struct/class/ in definition of
13 lyx::graphics::Loader::Impl to silence MSVC warning:
14 "type name first seen using 'class' now seen using 'struct'".
16 2005-01-27 Lars Gullik Bjønnes <larsbj@gullik.net>
18 * PreviewLoader.C (Impl): use convert<> instead of atoi,strToXXX
21 * GraphicsParams.h (class Params): change angle from float to double
23 2005-01-06 Lars Gullik Bjønnes <larsbj@gullik.net>
25 * PreviewLoader.C (unique_filename): tostr -> convert
27 2005-01-04 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
29 * PreviewLoader.C: lyxrc.preview_scale_factor is a string now.
31 2004-11-25 Lars Gullik Bjønnes <larsbj@gullik.net>
33 * rename a lot of InsetOld to InsetBase
35 2004-11-20 Lars Gullik Bjønnes <larsbj@gullik.net>
37 * GraphicsCache.C: include <map> to fix compilation with boost
40 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
42 * GraphicsCacheItem.C:
43 s/getFormatFromContents/formats.getFormatFromFile/
45 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
47 * GraphicsCacheItem.C: s/getExtFromContents/getFormatFromContents/
48 * GraphicsImage.h (loadableFormats): correct documentation
50 2004-10-01 Angus Leeming <leeming@lyx.org>
52 * GraphicsConverter.C (move_file, build_script): protect
53 shell variables with quotes.
55 2004-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
57 * pch.h: use proper signal include
59 * GraphicsCacheItem.[Ch]: Use preferred calling of Boost.Signal
60 * GraphicsConverter.C: ditto
61 * GraphicsImage.h: ditto
62 * GraphicsLoader.[Ch]: ditto
63 * PreviewLoader.[Ch]: ditto
65 2004-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
67 * pch.h: include <boost/function.hpp> instead of
68 <boost/function/function0.hpp>
70 * GraphicsImage.C: Use preferred calling of boost::function
71 * GraphicsImage.h: ditto
73 2004-08-16 José Matos <jamatos@lyx.org>
75 * PreviewLoader.C (Impl::startLoading): remove space at end of line.
77 2004-08-15 Lars Gullik Bjønnes <larsbj@gullik.net>
81 * Makefile.am: support pch
83 2004-07-24 Lars Gullik Bjønnes <larsbj@gullik.net>
85 * PreviewLoader.C, GraphicsParams.C, GraphicsConverter.C: change
86 "support/std_sstream.h" to <sstream>
88 2004-04-19 Angus Leeming <leeming@lyx.org>
90 * Previews.[Ch] (status): new member function, replacing activated.
92 2004-04-15 Angus Leeming <leeming@lyx.org>
94 * PreviewLoader.C (startLoading): change arguments passed to the
95 preview-generation script to include the foreground and background
97 (dumpPreamble): no longer write the foreground and background
98 colours to the latex file as PostScript specials.
99 (setConverter): consider only those 'to' formats that are
100 loadable natively by the GUI library, rather than all formats
101 for which a converter exists.
102 (setAscentFractions): re-written to parse much simplified metrics
105 2004-04-13 Angus Leeming <leeming@lyx.org>
107 * PreviewLoader.C (dumpPreamble):
108 * Previews.C (generateBufferPreviews): re-enable iteration over all
111 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
113 * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
115 * PreviewLoader.C: use always a temp dir
116 * PreviewLoader.C: check successfull creation of LaTeX file
118 2004-01-31 Lars Gullik Bjønnes <larsbj@gullik.net>
120 * PreviewLoader.C (FindFirst): inherit from std::unary_function
121 and make operator() const
122 (FindSnippet): inherit from unary_function, simplify slightly.
124 2004-01-07 Lars Gullik Bjønnes <larsbj@gullik.net>
126 * GraphicsTypes.C: include <string>
128 2003-11-20 Lars Gullik Bjønnes <larsbj@gullik.net>
130 * Previews.C: include paragraph.h
131 * PreviewLoader.C: ditto
133 2003-11-05 José Matos <jamatos@lyx.org>
135 * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
136 and LatexRunParams to OutputParams.
138 2003-10-22 Angus Leeming <leeming@lyx.org>
140 * PreviewImage.C (statusChanged): always pass on the signal, not just
141 when the preview is ready for display.
143 2003-10-22 Angus Leeming <leeming@lyx.org>
145 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
146 to contain the conversion script cannot be opened.
148 2003-10-22 Angus Leeming <leeming@lyx.org>
150 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
153 2003-10-13 Angus Leeming <leeming@lyx.org>
155 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
156 Make displayTranslator a function,
158 2003-10-10 Angus Leeming <leeming@lyx.org>
160 * PreviewedInset.[Ch]: removed.
162 * Makefile.am: remove PreviewedInset.[Ch].
164 2003-10-09 Angus Leeming <leeming@lyx.org>
166 * PreviewedInset.[Ch] (previewReady): remove the side effects.
167 Now simply reports whether the preview is ready.
169 2003-10-09 Angus Leeming <leeming@lyx.org>
171 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
172 Remove the inset and view member functions.
173 Add a new connect member function and preview_ready_signal_ member
174 variable, to enable the class to tell an arbirary connectee that the
177 2003-10-09 Angus Leeming <leeming@lyx.org>
179 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
180 are now passed a 'Buffer const &', eliminating most of the remaining
181 need for PreviewedInset to use a BufferView cache.
183 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
186 * PreviewImage.h: add <string> and other small fixes to make
187 Lars' std::string patch compile with STLport.
189 2003-09-29 Angus Leeming <leeming@lyx.org>
191 * GraphicsParams.[Ch] (asString): removed. Replaced with
192 operator<<(std::ostream &, BoundingBox const &).
194 2003-09-25 Angus Leeming <leeming@lyx.org>
196 * GraphicsParams.[Ch] (asString): new member function.
198 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
200 * Previews.C (Previews): fix new bug
202 * GraphicsCache.C (Cache): fix new bug
204 2003-09-19 Angus Leeming <leeming@lyx.org>
206 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
207 a 'Buffer const &' argument.
209 2003-09-18 Angus Leeming <leeming@lyx.org>
211 * PreviewedInset.C (latexString): add a Buffer const & arg.
212 * PreviewedInset.C (addPreview): pass the buffer to latexString.
214 2003-09-16 Angus Leeming <leeming@lyx.org>
216 * PreviewedInset.[Ch] (c-tor) move out of line.
217 (d-tor): make private.
218 (inset): return a const reference rather than a non-const pointer.
220 2003-09-16 Angus Leeming <leeming@lyx.org>
222 * GraphicsImage.h: separate interface from implementation. Make all the
223 pure virtual functions private.
225 2003-09-16 Angus Leeming <leeming@lyx.org>
227 * PreviewLoader.C: add #include "LColor.h".
229 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
231 * GraphicsConverter.C
232 * PreviewLoader.C: remove usage of STRCONV
234 2003-09-14 Angus Leeming <leeming@lyx.org>
236 * PreviewLoader.C (remove): consider all InProgressProcesses when
237 ascertaining which ones to remove from the list, not every other one.
239 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
241 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
244 2003-09-08 Angus Leeming <leeming@lyx.org>
248 * PreviewLoader.C: remove redundant using directives.
250 2003-09-07 Angus Leeming <leeming@lyx.org>
253 * Previews.h: remove #include "support/std_string.h".
255 2003-09-06 Angus Leeming <leeming@lyx.org>
257 * PreviewedInset.C: add #include "insets/inset.h"
259 2003-09-05 Angus Leeming <leeming@lyx.org>
261 * *.C: strip out redundant #includes. (26 in total.)
263 2003-09-04 Angus Leeming <leeming@lyx.org>
265 * LoaderQueue.C (get):
267 2003-09-04 Angus Leeming <leeming@lyx.org>
270 * GraphicsCacheItem.C:
271 * GraphicsConverter.C:
275 * Previews.C: 'namespace support = lyx::support' rather than
276 'using lyx::support'.
278 * Previews.h: cleaned up some comments.
280 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
282 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
284 * GraphicsTypes.h: do not declare displayTranstor here (and remove
287 2003-07-27 José Matos <jamatos@fep.up.pt>
289 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
292 2003-07-21 Angus Leeming <leeming@lyx.org>
295 * GraphicsCacheItem.[Ch]:
298 * PreviewedInset.[Ch]:
299 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
301 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
303 * Change namespace grfx to lyx::graphics.
305 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
307 * introcude namespace lyx::support
309 2003-06-04 Angus Leeming <leeming@lyx.org>
311 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
312 (operator=): if it has a copy c-tor, it should have this too.
314 2003-06-03 Angus Leeming <leeming@lyx.org>
316 * GraphicsLoader.[Ch] (Loader): add copy constructor.
318 2003-05-23 Angus Leeming <leeming@lyx.org>
320 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
322 2003-05-22 Angus Leeming <leeming@lyx.org>
324 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
325 the inset::latex method.
327 2003-05-22 Angus Leeming <leeming@lyx.org>
329 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
330 the inset::latex method.
332 2003-05-22 Angus Leeming <leeming@lyx.org>
334 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
335 makeLaTeXFile is now encapsulated within runparams.
337 2003-05-22 Angus Leeming <leeming@lyx.org>
339 * PreviewLoader.C (dumpPreamble):
340 pass around a LatexRunParams parameter.
342 2003-05-13 André Pönitz <poenitz@gmx.net>
344 * GraphicsConverter.C:
345 * PreviewLoader.C: use tostr from own header
347 2003-05-12 André Pönitz <poenitz@gmx.net>
349 * PreviewLoader.C: boost::format -> bformat
351 2003-04-15 Angus Leeming <leeming@lyx.org>
353 * GraphicsConverter.C: #include lstrings.h.
355 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
357 * GraphicsConverter.C
358 * PreviewLoader.C: added #include "format.h"
360 2003-02-26 Angus Leeming <leeming@lyx.org>
362 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
363 use the cache of the parent inset instead.
365 * PreviewLoader.C (startLoading): Prevent a crash if the user is
366 not using a tmp directory.
368 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
370 * GraphicsLoader.[Ch],
372 * PreviewedInset.C: Removed unneeded list of owner insets
374 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
376 * GraphicsConverter (startConversion): add the call to
379 * GraphicsLoader.[Ch],
381 * PreviewedInset.C: Removed unneeded BufferView
383 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
385 * LoaderQueue.[Ch]: a simplification of the code, eliminated
386 the unneeded input bucket.
388 * GraphicsCacheItem.C (imageConverted): move warning inside the
391 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
393 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
395 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
397 * LoaderQueue.[Ch] (setPriority): added
399 * PreviewLoader.C (finishedGenerating): reversed the loading order so
400 first images get 'touched' last, and so load first.
402 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
404 * LoaderQueue.[Ch]: added. Implements a service queue that loads
406 * GraphicsSupport.[Ch]: removed
407 * Makefile.am: the changes above
408 * GraphicsLoader.C: use the loading queue
410 2003-01-21 Angus Leeming <leeming@lyx.org>
412 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
413 previews from being generated.
415 2003-01-13 Angus Leeming <leeming@lyx.org>
417 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
418 format to be PPM not XPM.
420 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
422 * Makefile.am (EXTRA_DIST): remove variable
424 2002-12-13 Angus Leeming <leeming@lyx.org>
426 * GraphicsImageXPM.[Ch]: removed.
428 * Makefile.am: associated change.
430 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
432 * several files: ws changes
434 2002-11-21 Angus Leeming <leeming@lyx.org>
436 * GraphicsConverter.C (build_script, move_file):
437 Don't use "if [ $? -ne 0 ]; then..."
439 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
441 * PreviewLoader.C (IncrementedFileName): STRCONV
442 (startLoading): ditto
444 * GraphicsConverter.C (Impl): STRCONV
447 * GraphicsTypes.C: include config.h
449 2002-10-25 Angus Leeming <leeming@lyx.org>
451 * GraphicsConverter.C (Impl::converted)
452 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
453 string as first arg, reflecting change in ForkedCall interface.
455 * PreviewLoader.C: use pid rather than command as identifier in
458 2002-10-18 Angus Leeming <leeming@lyx.org>
460 * GraphicsCacheItem.C (findTargetFormat): add debug message.
462 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
464 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
466 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
468 * GraphicsConverter.C (build_script): do not use ChangeExtension
472 2002-09-05 Angus Leeming <leeming@lyx.org>
474 * all files: modify the headers as discussed on the list.
476 2002-09-04 Angus Leeming <leeming@lyx.org>
478 * PreviewLoader.C (startLoading): pass the desired output format to the
481 2002-09-04 Angus Leeming <leeming@lyx.org>
483 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
485 2002-09-03 Angus Leeming <leeming@lyx.org>
487 * PreviewLoader.C: fix crash reported by Norbert Koksch when
488 generating more than 999 preview snippets. Use filenames with 5 digit
489 numbers, not 3, in the first instance, although more general code is
490 commented out. I don't suppose /anyone/ has 100000 formulae in one
493 2002-09-03 Angus Leeming <leeming@lyx.org>
495 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
497 2002-09-03 Angus Leeming <leeming@lyx.org>
499 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
501 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
503 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
504 convertDefault command with "sh ".
506 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
508 * GraphicsImage.C: small style fix to width/height setting.
510 * GraphicsTypes.h: have a displayTranslator here.
513 * GraphicsTypes.C: new file added for the setDisplayTranslator();
515 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
518 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
519 because this input has gone from the graphics dialog.
521 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
523 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
525 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
526 for support/smart_ptr.h, switch to boost smart ptr.
528 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
529 (~Data): let the smart_ptr handle cleanup
530 (reset): use nifty 3rd arg
532 (free_color_table): free the table manually
534 2002-08-09 Angus Leeming <leeming@lyx.org>
536 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
537 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
538 input@path is now set correctly.
540 2002-08-06 Angus Leeming <leeming@lyx.org>
542 * PreviewLoader.C: add support for preview.sty 0.73 (currently
543 #ifdef-ed out, awaiting the formal release).
545 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
546 the contents of a file that has changed.
548 2002-08-05 Angus Leeming <leeming@lyx.org>
550 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
551 to preview.sty. Works only for versions of preview.sty > 0.72b but
552 doesn't hurt earlier versions. Allows me to test the new parsing of
553 LyX-specific data from the generated log file.
555 2002-08-02 Angus Leeming <leeming@lyx.org>
557 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
559 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
560 (add): don't add empty snippets.
562 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
563 (view, setView): access to to the cache_.
565 2002-08-02 Angus Leeming <leeming@lyx.org>
567 * PreviewedInset.[Ch]: cache the LaTeX snippet.
569 2002-08-01 Angus Leeming <leeming@lyx.org>
571 * PreviewedInset.[Ch]: new files. An abstract base class that can help
572 insets to generate previews.
573 The daughter class must instantiate three small methods.
574 The Inset would own an instance of this daughter class and invoke it
575 as necessary. For example, mathd/formula.C gets previews at the cost
576 of 15 or so lines of code.
578 * Makefile.am: add PreviewedInset.[Ch].
580 * PreviewLoader.C (add): add debug message.
582 * Previews.C (generateBufferPreviews): remove if-block from loop.
584 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
586 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
588 (setAscentFractions): ditto
590 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
592 * PreviewLoader.C (setAscentFractions): modify because of strip
595 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
597 * GraphicsConverter.C (build_script): take a ostream as a more
598 general argument than ostringstream.
600 2002-07-22 Herbert Voss <voss@lyx.org>
602 * GraphicsConverter.C: get the "default converter" run again
604 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
606 * PreviewLoader.C: use BufferParams::getLyXTextClass
608 2002-07-21 Herbert Voss <voss@lyx.org>
610 * GraphicsImage.C: get the LyXAspectRatio run.
612 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
614 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
616 * PreviewLoader.C (startLoading): pass an interger as resolution
617 to the lyxpreview converter
619 * GraphicsParams.C: include <cstdlib>
621 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
623 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
624 preview converter script
626 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
628 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
631 2002-07-18 Angus Leeming <leeming@lyx.org>
633 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
635 (startMonitoring, monitoring, checksum): new methods to interact with
638 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
639 methods invoking the CacheItem methods of the same name.
640 (resetFile): if monitoring and the file changes, start monitoring this
643 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
645 * Makefile.am: remove FileMonitor.[Ch]
647 2002-06-17 Herbert Voss <voss@lyx.org>
649 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
650 for old ps-files (Garst). It's now handled by defining a converter and
651 disabling the ps-support of xforms.
653 2002-07-17 Angus Leeming <leeming@lyx.org>
655 Be true to the Pimpl idiom, moving all signals into the respective
656 Impl classes and defining methods to connect them to an outside slot.
657 Const-ify all visible class methods as they act only on a const pimpl_.
659 * GraphicsCache.[Ch] (add, remove): const-ify.
661 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
662 (statusChanged): move the signal into the Impl class.
663 (connect): new method, enabling a listener to connect to this signal.
665 * GraphicsConverter.[Ch]: (startConversion): const-ify.
666 (finishedConversion): move the signal into the Impl class.
667 (connect): new method, enabling a listener to connect to this signal.
669 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
670 (statusChanged): move the signal into the Impl class.
671 (connect): new method, enabling a listener to connect to this signal.
673 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
674 (imageReady): move the signal into the Impl class.
675 (connect): new method, enabling a listener to connect to this signal.
676 (emitSignal): new method, enabling PreviewImage to tell the outside
677 world that the file has been loaded into memory.
679 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
683 * GraphicsCacheItem.C:
684 * GraphicsConverter.[Ch]:
686 * GraphicsImageXPM.C:
688 * PreviewLoader.[Ch]: whitespace clean-up.
690 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
692 * PreviewLoader.C (setConverter): remove unused variable
694 * GraphicsImageXPM.C (isDrawable): implement
695 (setPixmap): the opaque color is black, not white
697 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
699 * GraphicsImageXPM.C (color_none_id):
700 (contains_color_none): use ascii_lowercase instead of lowercase
702 2002-07-16 Angus Leeming <leeming@lyx.org>
704 * PreviewLoader.C: greater use of STL algorithms.
706 * Previews.[Ch]: use const in more places.
707 (generateBufferPreviews): now takes a Buffer const & argument, not a
710 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
712 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
714 2002-07-12 Angus Leeming <leeming@lyx.org>
716 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
717 if visible 2 secs after the call to load them is first made.
719 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
720 BufferView to ascertain whether the inset is visible or not.
722 * Makefile.am: added GraphicsSupport.[Ch].
724 * PreviewImage.[Ch]: use this smart loader.
726 * PreviewLoader.C: don't load generated image files indiscimminantly.
727 Instead emit the imageReady signal and allow the image owner to decide.
729 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
731 * GraphicsCache.C: remove init_graphics()
733 2002-07-09 Angus Leeming <leeming@lyx.org>
735 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
736 arithmetic when it should be floating.
738 2002-07-09 Angus Leeming <leeming@lyx.org>
740 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
741 Output equation labels as "(#)" if lyxrc preference is set.
742 (setFontScalingFactor): use lyxrc variable preview_scale_factor
743 rather than hard-coding this.
745 2002-07-09 Angus Leeming <leeming@lyx.org>
747 * PreviewLoader.C: Further refactoring of the code. Should now be
750 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
751 past its sell-by date. The code to read the metrics file is now found
752 as a helper function in PreviewLoader.C.
754 * GraphicsImageXPM.C (scale): use boost::tie.
756 2002-07-08 Herbert Voss <voss@lyx.org>
758 * PreviewLoader.C: use of preview_size_factor to get the right
759 font-size! 0.9 is the default.
761 2002-07-08 Angus Leeming <leeming@lyx.org>
763 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
764 invocation of preview.sty.
765 Perform something of an internal clean-up.
767 2002-07-06 Angus Leeming <leeming@lyx.org>
769 * PreviewLoader.C: ensure that the metrics data is used by the
773 * PreviewImage.C: (Impl d-tor): remove all generated files that still
774 exist (perhaps because the process was curtailed before the images
777 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
779 2002-07-05 Angus Leeming <leeming@lyx.org>
788 * Previews.C: new files. The previewed LaTeX snippet stuff.
790 * Makefile.am: add these files.
792 2002-07-05 Angus Leeming <leeming@lyx.org>
794 * GraphicsLoader.h: whitespace.
796 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
798 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
799 boost::function from boost::signal.
801 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
803 * GraphicsConverter.C (convert): do not use ChangeExtension
804 because to_file_base may contain a dot.
806 2002-06-28 Angus Leeming <leeming@lyx.org>
808 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
809 by moving those SignalPtrs into the grfx::Image and grfx::Converter
810 classes where they really belong.
811 Use the Pimpl idiom to hide the class internals from public view.
813 * GraphicsTypes: remove the typedefs, leaving only the enums.
815 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
816 passed a reference to one in the load() method.
818 * GraphicsConverter.[Ch]: totally refactored. An instance of
819 grfx::Converter now represents a single conversion process.
820 Thus grfx::CachItem now has a grfx::Converter * that is set when the
821 conversion is initiated and destroyed on completion.
823 * GraphicsCache.[Ch]:
824 * GraphicsCacheItem.[Ch]:
825 * GraphicsConverter.[Ch]:
826 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
828 Note that I have done this only after making the above changes,
829 so not only should we have a clean, minimal and well documented
830 interface to these classes in the header files, but the class internals
831 should be much clearer too.
834 grfx::GCache -> grfx::Cache,
835 grfx::GCacheItem -> grfx::CacheItem,
836 grfx::GConverter -> grfx::Converter,
837 grfx::GImage -> grfx::Image,
838 grfx::GImageXPM -> grfx::ImageXPM,
839 grfx::GParams -> grfx::Params.
841 2002-06-26 Angus Leeming <leeming@lyx.org>
843 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
844 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
847 2002-06-26 Angus Leeming <leeming@lyx.org>
849 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
850 move the DisplayType enum out of grfx::GParams to here.
852 * GraphicsCacheItem.h: re-write preliminary description to reflect
855 * GraphicsParams.[Ch]:
856 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
857 grfx::DisplayType out of grfx::GParams.
859 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
860 that was in frontends/screen.C and insets/insetgraphics.C into a
861 single, easy-to-use class.
863 * Makefile.am: add these files.
865 2002-06-25 Angus Leeming <leeming@lyx.org>
867 * GraphicsCache.[Ch]:
868 * GraphicsCacheItem.[Ch]:
869 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
870 file into memory. The cache no longer controls the generation of the
871 pixmap. Instead, it just emits a signal when the loading status of an
873 The cache no longer stores InsetGraphics pointers and nor does it
874 assume responsibility for modifying an image (scaling, rotating etc).
875 Instead, that must now be performed elsewhere.
877 2002-06-19 Angus Leeming <leeming@lyx.org>
879 * GraphicsConverter.C: add using std::endl directive.
881 2002-06-17 Herbert Voss <voss@lyx.org>
883 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
884 default when nothing different was found
885 (convertToDisplayFormat): handle zipped files in the right way and
886 choose always convert as a default converter when no other
887 userdefined was found
889 * GraphicsConverter.C: add more lyxerr comments and choose
890 convert when no other userdefined converter was found
892 2002-06-10 Herbert Voss <voss@lyx.org>
894 * GraphicsImageXPM.C (convertTo7chars): get another special color
895 format from convert work in the right way
897 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
899 * GraphicsCache.C: use right colormap incantation
901 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
903 * GraphicsCache.C: use lyx_gui namespace
905 * GraphicsImageXPM.C: back down to using xforms
908 2002-06-07 Angus Leeming <leeming@lyx.org>
910 Fixes needed to compile with Compaq cxx 6.5.
911 * GraphicsConverter.h: forward declare class ConvProcess.
913 * GraphicsImageXPM.C:
914 all c-library variables have been moved into namespace std.
915 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
917 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
919 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
921 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
923 * GraphicsImageXPM.C: SigC to boot::signals changes.
924 (newImage): fix () bug when using new.
926 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
928 * switch from SigC signals to boost::signals.
930 2002-05-29 André Pönitz <poenitz@gmx.net>
932 * GraphicsParam.C: remove unneeded #include, move vomment
934 2002-05-28 André Pönitz <poenitz@gmx.net>
936 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
938 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
940 * GraphicsImageXPM.C: ColorHandler moved
942 2002-05-24 Juergen Vigna <jug@sad.it>
945 * GraphicsImage.h: include LString.h first.
947 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
949 * GraphicsCacheItem.h: use more specific smart_ptr header.
950 * GraphicsTypes.h: ditto
951 * GraphicsImage.h: ditto
952 * GraphicsConverter.h: ditto
954 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
956 * GraphicsImageXPM.C: understand convert's use of "opaque"
959 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
961 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
962 GImage::loadableFormats() that ensures that the signal is connected
963 to the derived class' method.
965 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
967 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
968 only work on the string.
970 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
972 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
973 the simple image loader when it encounters colour strings like
976 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
978 * GraphicsCacheItem.C (convertToDisplayFormat):
979 * GraphicsConverter.C (build_script): remove the Alerts when things go
980 wrong as the inset displays the message anyway. Moreover, Alert seems
981 pretty temperamemtal at the moment.
983 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
985 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
987 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
989 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
990 a reference to a temp object that's going out of scope...
992 2002-04-09 Herbert Voss <voss@lyx.org>
994 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
995 LyXLength::inBP instead of inPixels.
997 2002-04-10 Herbert Voss <voss@perce.de>
999 * GraphicsCache.[Ch]:
1000 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
1001 to read the "Bounding Box" from non (e)ps files.
1003 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
1005 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
1006 the EPS file too, to ensure that the clipped Bounding Box is relative
1007 to the original. (From Herbert.)
1009 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
1011 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
1012 variables are initialised. Clean-up parsing of the string (with thanks
1015 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
1017 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
1018 if the file can't be found.
1020 * GraphicsParams.h (c-tor): remove string() as default argument.
1022 * GraphicsCacheItem.C: a couple of changes as a result.
1024 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
1026 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
1027 path to graphics file.
1029 * GraphicsParams.[Ch] (c-tor): now passed filepath.
1031 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
1033 * most files: ws cleanup
1035 * Makefile.am: remove ld -r stuff
1037 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1039 * Makefile.am: special rules if partial linking
1041 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
1043 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
1045 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
1047 * GraphicsConverter.[Ch] (converted): make first arg const ref.
1049 * GraphicsCacheItem.h: doxy change
1051 * GraphicsCacheItem.C: ws change
1053 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
1055 * Makefile.am: if there is no image loading class leveraging the power
1056 of the appropriate gui library, then compile the basic alternative
1057 found in GraphicsImageXPM.[Ch].
1059 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
1061 * GraphicsCache.C: change associated with move of initialiseGraphics
1064 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
1066 * GraphicsParams.[Ch]:
1068 * GraphicsImageXPM.C: properly resolve more warnings about comparison
1069 between signed and unsigned integer expressions.
1071 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
1073 * GraphicsCache.C: move connections to the GImage-derived classes to
1076 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
1078 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
1079 conversion, then do that.
1081 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1083 * GraphicsCache.C: improve commentary to graphicsInit and where it
1086 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
1087 that became a memory leak properly. (Let the shared_c_ptr free the
1089 (reset, mapcolor): tidy up and introduce a work around for XPM files
1090 with crappy color entries. Print out a nice friendly message on what's
1091 gone wrong and how to resolve it properly.
1093 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1095 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
1096 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
1097 in free_color_table.
1098 (unique_color_string): use the correct string c-tor.
1100 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
1103 * ImageLoaderXPM.[Ch]: removed.
1105 * GraphicsConverter.[Ch]:
1106 * GraphicsImage.[Ch]:
1107 * GraphicsImageXPM.[Ch]:
1108 * GraphicsParams.[Ch]:
1109 * GraphicsTypes.h: new files.
1111 * All files. A total re-write of the graphics cache. The cache now
1112 supports asynchronous file conversion and file loading. Images
1113 can be cropped, rotated and scaled for display on the LyX screen.
1114 The old LyXImage and ImageLoader have been combined in a new class
1115 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1118 2002-02-07 Herbert Voss <voss@lyx.org>
1120 * GraphicsCacheItem.C: use unzipFile() from support/filetools
1122 2002-01-31 Herbert Voss <voss@lyx.org>
1124 * GraphicsCacheItem.h: handle filetype without the file extension;
1125 getting type from contents; handle zipped files
1127 2002-01-27 Herbert Voss <voss@lyx.org>
1129 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1131 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
1133 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1135 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1137 * GraphicsCacheItem.h: do not include <config.h> in header files
1139 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1141 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1142 transparent colour, then set it to the colour of the background.
1143 Also take account of the monochrome, grayscale of color
1146 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1148 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1149 are different. Thus, don't delete the "to" if it's the original!
1151 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1153 * ImageLoadXPM.C: remove setting of alloc colour mask,
1154 led to crash as we don't define a callback
1156 2001-07-29 Baruch Even <baruch@lyx.org>
1158 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1159 colors with closeness of 10000.
1161 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1163 2001-07-29 Baruch Even <baruch@lyx.org>
1165 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1168 2001-07-23 Baruch Even <baruch@lyx.org>
1170 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1171 the image after conversion.
1173 2001-07-17 Baruch Even <baruch@lyx.org>
1175 * GraphicsCacheItem.h:
1176 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1177 from synchronous to asynchronous and to ease the coming changes.
1179 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1181 * ImageLoaderXPM.C (runImageLoader): get display information from
1184 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1187 * GraphicsCacheItem.C:
1189 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1191 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1193 * GraphicsCache.h: inherit privately from noncopyable
1194 * ImageLoader.h: ditto
1195 * GraphicsCacheItem.h: ditto
1197 2001-04-16 Allan Rae <rae@lyx.org>
1199 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1200 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1203 2001-04-02 Baruch Even <baruch@lyx.org>
1205 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1206 of hard coding ImageMagick.
1208 2001-03-10 Baruch Even <baruch@lyx.org>
1210 * GraphicsCache.C: Style change from (*it).field to it->field
1212 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1214 * GraphicsCache.h: noncopyable is in namespace boost
1215 * ImageLoader.h: ditto
1216 * GraphicsCacheItem.h: ditto
1218 2001-03-07 Baruch Even <baruch@lyx.org>
1220 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1221 was false and it's not needed anyhow since the shared_ptr's in the cache
1222 will destroy everything on exit.
1224 2001-02-28 Baruch Even <baruch@ev-en.org>
1227 * GraphicsCache.C: Changed the singleton pattern implementation, the
1228 former version "leaked" in the sense that it was not deallocated at
1231 2001-02-20 Baruch Even <baruch@ev-en.org>
1233 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1234 instead of a pure pointer.
1236 * GraphicsCacheItem.[Ch]:
1237 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1238 removed the reference counting that was inside. Also fixed a bug where
1239 a temporary file wouldn't get erased.
1241 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1242 Ownership is now dropped when the caller requests the image_ pointer.
1244 2001-02-20 Baruch Even <baruch@ev-en.org>
1246 * GraphicsCache.C: Cleared up the confusion on when and how it is
1249 * GraphicsCacheItem.C: Indentation change.
1251 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1252 figure correctly when the image has been loaded successfully.
1254 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1256 * ImageLoader.C: add a "using" directive.
1258 * ImageLoader.h: remove extra comma at the end of enum; add an
1259 std:: qualifier for vector.
1261 2001-01-21 Baruch Even <baruch@ev-en.org>
1263 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1264 height in the image itself and minor cleanups.
1266 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1267 new ImageLoader class instead of the older Renderer class. This
1268 means change of responsibilities.