1 2004-11-20 Lars Gullik Bjonnes <larsbj@gullik.net>
3 * GraphicsCache.C: include <map> to fix compilation with boost
6 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
9 s/getFormatFromContents/formats.getFormatFromFile/
11 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
13 * GraphicsCacheItem.C: s/getExtFromContents/getFormatFromContents/
14 * GraphicsImage.h (loadableFormats): correct documentation
16 2004-10-01 Angus Leeming <leeming@lyx.org>
18 * GraphicsConverter.C (move_file, build_script): protect
19 shell variables with quotes.
21 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
23 * pch.h: use proper signal include
25 * GraphicsCacheItem.[Ch]: Use preferred calling of Boost.Signal
26 * GraphicsConverter.C: ditto
27 * GraphicsImage.h: ditto
28 * GraphicsLoader.[Ch]: ditto
29 * PreviewLoader.[Ch]: ditto
31 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
33 * pch.h: include <boost/function.hpp> instead of
34 <boost/function/function0.hpp>
36 * GraphicsImage.C: Use preferred calling of boost::function
37 * GraphicsImage.h: ditto
39 2004-08-16 José Matos <jamatos@lyx.org>
41 * PreviewLoader.C (Impl::startLoading): remove space at end of line.
43 2004-08-15 Lars Gullik Bjonnes <larsbj@gullik.net>
47 * Makefile.am: support pch
49 2004-07-24 Lars Gullik Bjonnes <larsbj@gullik.net>
51 * PreviewLoader.C, GraphicsParams.C, GraphicsConverter.C: change
52 "support/std_sstream.h" to <sstream>
54 2004-04-19 Angus Leeming <leeming@lyx.org>
56 * Previews.[Ch] (status): new member function, replacing activated.
58 2004-04-15 Angus Leeming <leeming@lyx.org>
60 * PreviewLoader.C (startLoading): change arguments passed to the
61 preview-generation script to include the foreground and background
63 (dumpPreamble): no longer write the foreground and background
64 colours to the latex file as PostScript specials.
65 (setConverter): consider only those 'to' formats that are
66 loadable natively by the GUI library, rather than all formats
67 for which a converter exists.
68 (setAscentFractions): re-written to parse much simplified metrics
71 2004-04-13 Angus Leeming <leeming@lyx.org>
73 * PreviewLoader.C (dumpPreamble):
74 * Previews.C (generateBufferPreviews): re-enable iteration over all
77 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
79 * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
81 * PreviewLoader.C: use always a temp dir
82 * PreviewLoader.C: check successfull creation of LaTeX file
84 2004-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
86 * PreviewLoader.C (FindFirst): inherit from std::unary_function
87 and make operator() const
88 (FindSnippet): inherit from unary_function, simplify slightly.
90 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
92 * GraphicsTypes.C: include <string>
94 2003-11-20 Lars Gullik Bjonnes <larsbj@gullik.net>
96 * Previews.C: include paragraph.h
97 * PreviewLoader.C: ditto
99 2003-11-05 José Matos <jamatos@lyx.org>
101 * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
102 and LatexRunParams to OutputParams.
104 2003-10-22 Angus Leeming <leeming@lyx.org>
106 * PreviewImage.C (statusChanged): always pass on the signal, not just
107 when the preview is ready for display.
109 2003-10-22 Angus Leeming <leeming@lyx.org>
111 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
112 to contain the conversion script cannot be opened.
114 2003-10-22 Angus Leeming <leeming@lyx.org>
116 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
119 2003-10-13 Angus Leeming <leeming@lyx.org>
121 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
122 Make displayTranslator a function,
124 2003-10-10 Angus Leeming <leeming@lyx.org>
126 * PreviewedInset.[Ch]: removed.
128 * Makefile.am: remove PreviewedInset.[Ch].
130 2003-10-09 Angus Leeming <leeming@lyx.org>
132 * PreviewedInset.[Ch] (previewReady): remove the side effects.
133 Now simply reports whether the preview is ready.
135 2003-10-09 Angus Leeming <leeming@lyx.org>
137 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
138 Remove the inset and view member functions.
139 Add a new connect member function and preview_ready_signal_ member
140 variable, to enable the class to tell an arbirary connectee that the
143 2003-10-09 Angus Leeming <leeming@lyx.org>
145 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
146 are now passed a 'Buffer const &', eliminating most of the remaining
147 need for PreviewedInset to use a BufferView cache.
149 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
152 * PreviewImage.h: add <string> and other small fixes to make
153 Lars' std::string patch compile with STLport.
155 2003-09-29 Angus Leeming <leeming@lyx.org>
157 * GraphicsParams.[Ch] (asString): removed. Replaced with
158 operator<<(std::ostream &, BoundingBox const &).
160 2003-09-25 Angus Leeming <leeming@lyx.org>
162 * GraphicsParams.[Ch] (asString): new member function.
164 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
166 * Previews.C (Previews): fix new bug
168 * GraphicsCache.C (Cache): fix new bug
170 2003-09-19 Angus Leeming <leeming@lyx.org>
172 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
173 a 'Buffer const &' argument.
175 2003-09-18 Angus Leeming <leeming@lyx.org>
177 * PreviewedInset.C (latexString): add a Buffer const & arg.
178 * PreviewedInset.C (addPreview): pass the buffer to latexString.
180 2003-09-16 Angus Leeming <leeming@lyx.org>
182 * PreviewedInset.[Ch] (c-tor) move out of line.
183 (d-tor): make private.
184 (inset): return a const reference rather than a non-const pointer.
186 2003-09-16 Angus Leeming <leeming@lyx.org>
188 * GraphicsImage.h: separate interface from implementation. Make all the
189 pure virtual functions private.
191 2003-09-16 Angus Leeming <leeming@lyx.org>
193 * PreviewLoader.C: add #include "LColor.h".
195 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
197 * GraphicsConverter.C
198 * PreviewLoader.C: remove usage of STRCONV
200 2003-09-14 Angus Leeming <leeming@lyx.org>
202 * PreviewLoader.C (remove): consider all InProgressProcesses when
203 ascertaining which ones to remove from the list, not every other one.
205 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
207 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
210 2003-09-08 Angus Leeming <leeming@lyx.org>
214 * PreviewLoader.C: remove redundant using directives.
216 2003-09-07 Angus Leeming <leeming@lyx.org>
219 * Previews.h: remove #include "support/std_string.h".
221 2003-09-06 Angus Leeming <leeming@lyx.org>
223 * PreviewedInset.C: add #include "insets/inset.h"
225 2003-09-05 Angus Leeming <leeming@lyx.org>
227 * *.C: strip out redundant #includes. (26 in total.)
229 2003-09-04 Angus Leeming <leeming@lyx.org>
231 * LoaderQueue.C (get):
233 2003-09-04 Angus Leeming <leeming@lyx.org>
236 * GraphicsCacheItem.C:
237 * GraphicsConverter.C:
241 * Previews.C: 'namespace support = lyx::support' rather than
242 'using lyx::support'.
244 * Previews.h: cleaned up some comments.
246 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
248 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
250 * GraphicsTypes.h: do not declare displayTranstor here (and remove
253 2003-07-27 José Matos <jamatos@fep.up.pt>
255 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
258 2003-07-21 Angus Leeming <leeming@lyx.org>
261 * GraphicsCacheItem.[Ch]:
264 * PreviewedInset.[Ch]:
265 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
267 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
269 * Change namespace grfx to lyx::graphics.
271 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
273 * introcude namespace lyx::support
275 2003-06-04 Angus Leeming <leeming@lyx.org>
277 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
278 (operator=): if it has a copy c-tor, it should have this too.
280 2003-06-03 Angus Leeming <leeming@lyx.org>
282 * GraphicsLoader.[Ch] (Loader): add copy constructor.
284 2003-05-23 Angus Leeming <leeming@lyx.org>
286 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
288 2003-05-22 Angus Leeming <leeming@lyx.org>
290 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
291 the inset::latex method.
293 2003-05-22 Angus Leeming <leeming@lyx.org>
295 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
296 the inset::latex method.
298 2003-05-22 Angus Leeming <leeming@lyx.org>
300 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
301 makeLaTeXFile is now encapsulated within runparams.
303 2003-05-22 Angus Leeming <leeming@lyx.org>
305 * PreviewLoader.C (dumpPreamble):
306 pass around a LatexRunParams parameter.
308 2003-05-13 André Pönitz <poenitz@gmx.net>
310 * GraphicsConverter.C:
311 * PreviewLoader.C: use tostr from own header
313 2003-05-12 André Pönitz <poenitz@gmx.net>
315 * PreviewLoader.C: boost::format -> bformat
317 2003-04-15 Angus Leeming <leeming@lyx.org>
319 * GraphicsConverter.C: #include lstrings.h.
321 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
323 * GraphicsConverter.C
324 * PreviewLoader.C: added #include "format.h"
326 2003-02-26 Angus Leeming <leeming@lyx.org>
328 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
329 use the cache of the parent inset instead.
331 * PreviewLoader.C (startLoading): Prevent a crash if the user is
332 not using a tmp directory.
334 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
336 * GraphicsLoader.[Ch],
338 * PreviewedInset.C: Removed unneeded list of owner insets
340 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
342 * GraphicsConverter (startConversion): add the call to
345 * GraphicsLoader.[Ch],
347 * PreviewedInset.C: Removed unneeded BufferView
349 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
351 * LoaderQueue.[Ch]: a simplification of the code, eliminated
352 the unneeded input bucket.
354 * GraphicsCacheItem.C (imageConverted): move warning inside the
357 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
359 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
361 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
363 * LoaderQueue.[Ch] (setPriority): added
365 * PreviewLoader.C (finishedGenerating): reversed the loading order so
366 first images get 'touched' last, and so load first.
368 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
370 * LoaderQueue.[Ch]: added. Implements a service queue that loads
372 * GraphicsSupport.[Ch]: removed
373 * Makefile.am: the changes above
374 * GraphicsLoader.C: use the loading queue
376 2003-01-21 Angus Leeming <leeming@lyx.org>
378 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
379 previews from being generated.
381 2003-01-13 Angus Leeming <leeming@lyx.org>
383 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
384 format to be PPM not XPM.
386 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
388 * Makefile.am (EXTRA_DIST): remove variable
390 2002-12-13 Angus Leeming <leeming@lyx.org>
392 * GraphicsImageXPM.[Ch]: removed.
394 * Makefile.am: associated change.
396 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
398 * several files: ws changes
400 2002-11-21 Angus Leeming <leeming@lyx.org>
402 * GraphicsConverter.C (build_script, move_file):
403 Don't use "if [ $? -ne 0 ]; then..."
405 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
407 * PreviewLoader.C (IncrementedFileName): STRCONV
408 (startLoading): ditto
410 * GraphicsConverter.C (Impl): STRCONV
413 * GraphicsTypes.C: include config.h
415 2002-10-25 Angus Leeming <leeming@lyx.org>
417 * GraphicsConverter.C (Impl::converted)
418 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
419 string as first arg, reflecting change in ForkedCall interface.
421 * PreviewLoader.C: use pid rather than command as identifier in
424 2002-10-18 Angus Leeming <leeming@lyx.org>
426 * GraphicsCacheItem.C (findTargetFormat): add debug message.
428 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
430 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
432 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
434 * GraphicsConverter.C (build_script): do not use ChangeExtension
438 2002-09-05 Angus Leeming <leeming@lyx.org>
440 * all files: modify the headers as discussed on the list.
442 2002-09-04 Angus Leeming <leeming@lyx.org>
444 * PreviewLoader.C (startLoading): pass the desired output format to the
447 2002-09-04 Angus Leeming <leeming@lyx.org>
449 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
451 2002-09-03 Angus Leeming <leeming@lyx.org>
453 * PreviewLoader.C: fix crash reported by Norbert Koksch when
454 generating more than 999 preview snippets. Use filenames with 5 digit
455 numbers, not 3, in the first instance, although more general code is
456 commented out. I don't suppose /anyone/ has 100000 formulae in one
459 2002-09-03 Angus Leeming <leeming@lyx.org>
461 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
463 2002-09-03 Angus Leeming <leeming@lyx.org>
465 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
467 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
469 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
470 convertDefault command with "sh ".
472 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
474 * GraphicsImage.C: small style fix to width/height setting.
476 * GraphicsTypes.h: have a displayTranslator here.
479 * GraphicsTypes.C: new file added for the setDisplayTranslator();
481 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
484 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
485 because this input has gone from the graphics dialog.
487 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
489 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
491 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
492 for support/smart_ptr.h, switch to boost smart ptr.
494 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
495 (~Data): let the smart_ptr handle cleanup
496 (reset): use nifty 3rd arg
498 (free_color_table): free the table manually
500 2002-08-09 Angus Leeming <leeming@lyx.org>
502 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
503 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
504 input@path is now set correctly.
506 2002-08-06 Angus Leeming <leeming@lyx.org>
508 * PreviewLoader.C: add support for preview.sty 0.73 (currently
509 #ifdef-ed out, awaiting the formal release).
511 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
512 the contents of a file that has changed.
514 2002-08-05 Angus Leeming <leeming@lyx.org>
516 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
517 to preview.sty. Works only for versions of preview.sty > 0.72b but
518 doesn't hurt earlier versions. Allows me to test the new parsing of
519 LyX-specific data from the generated log file.
521 2002-08-02 Angus Leeming <leeming@lyx.org>
523 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
525 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
526 (add): don't add empty snippets.
528 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
529 (view, setView): access to to the cache_.
531 2002-08-02 Angus Leeming <leeming@lyx.org>
533 * PreviewedInset.[Ch]: cache the LaTeX snippet.
535 2002-08-01 Angus Leeming <leeming@lyx.org>
537 * PreviewedInset.[Ch]: new files. An abstract base class that can help
538 insets to generate previews.
539 The daughter class must instantiate three small methods.
540 The Inset would own an instance of this daughter class and invoke it
541 as necessary. For example, mathd/formula.C gets previews at the cost
542 of 15 or so lines of code.
544 * Makefile.am: add PreviewedInset.[Ch].
546 * PreviewLoader.C (add): add debug message.
548 * Previews.C (generateBufferPreviews): remove if-block from loop.
550 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
552 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
554 (setAscentFractions): ditto
556 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
558 * PreviewLoader.C (setAscentFractions): modify because of strip
561 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
563 * GraphicsConverter.C (build_script): take a ostream as a more
564 general argument than ostringstream.
566 2002-07-22 Herbert Voss <voss@lyx.org>
568 * GraphicsConverter.C: get the "default converter" run again
570 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
572 * PreviewLoader.C: use BufferParams::getLyXTextClass
574 2002-07-21 Herbert Voss <voss@lyx.org>
576 * GraphicsImage.C: get the LyXAspectRatio run.
578 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
580 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
582 * PreviewLoader.C (startLoading): pass an interger as resolution
583 to the lyxpreview converter
585 * GraphicsParams.C: include <cstdlib>
587 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
589 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
590 preview converter script
592 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
594 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
597 2002-07-18 Angus Leeming <leeming@lyx.org>
599 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
601 (startMonitoring, monitoring, checksum): new methods to interact with
604 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
605 methods invoking the CacheItem methods of the same name.
606 (resetFile): if monitoring and the file changes, start monitoring this
609 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
611 * Makefile.am: remove FileMonitor.[Ch]
613 2002-06-17 Herbert Voss <voss@lyx.org>
615 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
616 for old ps-files (Garst). It's now handled by defining a converter and
617 disabling the ps-support of xforms.
619 2002-07-17 Angus Leeming <leeming@lyx.org>
621 Be true to the Pimpl idiom, moving all signals into the respective
622 Impl classes and defining methods to connect them to an outside slot.
623 Const-ify all visible class methods as they act only on a const pimpl_.
625 * GraphicsCache.[Ch] (add, remove): const-ify.
627 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
628 (statusChanged): move the signal into the Impl class.
629 (connect): new method, enabling a listener to connect to this signal.
631 * GraphicsConverter.[Ch]: (startConversion): const-ify.
632 (finishedConversion): move the signal into the Impl class.
633 (connect): new method, enabling a listener to connect to this signal.
635 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
636 (statusChanged): move the signal into the Impl class.
637 (connect): new method, enabling a listener to connect to this signal.
639 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
640 (imageReady): move the signal into the Impl class.
641 (connect): new method, enabling a listener to connect to this signal.
642 (emitSignal): new method, enabling PreviewImage to tell the outside
643 world that the file has been loaded into memory.
645 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
649 * GraphicsCacheItem.C:
650 * GraphicsConverter.[Ch]:
652 * GraphicsImageXPM.C:
654 * PreviewLoader.[Ch]: whitespace clean-up.
656 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
658 * PreviewLoader.C (setConverter): remove unused variable
660 * GraphicsImageXPM.C (isDrawable): implement
661 (setPixmap): the opaque color is black, not white
663 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
665 * GraphicsImageXPM.C (color_none_id):
666 (contains_color_none): use ascii_lowercase instead of lowercase
668 2002-07-16 Angus Leeming <leeming@lyx.org>
670 * PreviewLoader.C: greater use of STL algorithms.
672 * Previews.[Ch]: use const in more places.
673 (generateBufferPreviews): now takes a Buffer const & argument, not a
676 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
678 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
680 2002-07-12 Angus Leeming <leeming@lyx.org>
682 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
683 if visible 2 secs after the call to load them is first made.
685 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
686 BufferView to ascertain whether the inset is visible or not.
688 * Makefile.am: added GraphicsSupport.[Ch].
690 * PreviewImage.[Ch]: use this smart loader.
692 * PreviewLoader.C: don't load generated image files indiscimminantly.
693 Instead emit the imageReady signal and allow the image owner to decide.
695 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
697 * GraphicsCache.C: remove init_graphics()
699 2002-07-09 Angus Leeming <leeming@lyx.org>
701 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
702 arithmetic when it should be floating.
704 2002-07-09 Angus Leeming <leeming@lyx.org>
706 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
707 Output equation labels as "(#)" if lyxrc preference is set.
708 (setFontScalingFactor): use lyxrc variable preview_scale_factor
709 rather than hard-coding this.
711 2002-07-09 Angus Leeming <leeming@lyx.org>
713 * PreviewLoader.C: Further refactoring of the code. Should now be
716 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
717 past its sell-by date. The code to read the metrics file is now found
718 as a helper function in PreviewLoader.C.
720 * GraphicsImageXPM.C (scale): use boost::tie.
722 2002-07-08 Herbert Voss <voss@lyx.org>
724 * PreviewLoader.C: use of preview_size_factor to get the right
725 font-size! 0.9 is the default.
727 2002-07-08 Angus Leeming <leeming@lyx.org>
729 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
730 invocation of preview.sty.
731 Perform something of an internal clean-up.
733 2002-07-06 Angus Leeming <leeming@lyx.org>
735 * PreviewLoader.C: ensure that the metrics data is used by the
739 * PreviewImage.C: (Impl d-tor): remove all generated files that still
740 exist (perhaps because the process was curtailed before the images
743 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
745 2002-07-05 Angus Leeming <leeming@lyx.org>
754 * Previews.C: new files. The previewed LaTeX snippet stuff.
756 * Makefile.am: add these files.
758 2002-07-05 Angus Leeming <leeming@lyx.org>
760 * GraphicsLoader.h: whitespace.
762 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
764 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
765 boost::function from boost::signal.
767 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
769 * GraphicsConverter.C (convert): do not use ChangeExtension
770 because to_file_base may contain a dot.
772 2002-06-28 Angus Leeming <leeming@lyx.org>
774 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
775 by moving those SignalPtrs into the grfx::Image and grfx::Converter
776 classes where they really belong.
777 Use the Pimpl idiom to hide the class internals from public view.
779 * GraphicsTypes: remove the typedefs, leaving only the enums.
781 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
782 passed a reference to one in the load() method.
784 * GraphicsConverter.[Ch]: totally refactored. An instance of
785 grfx::Converter now represents a single conversion process.
786 Thus grfx::CachItem now has a grfx::Converter * that is set when the
787 conversion is initiated and destroyed on completion.
789 * GraphicsCache.[Ch]:
790 * GraphicsCacheItem.[Ch]:
791 * GraphicsConverter.[Ch]:
792 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
794 Note that I have done this only after making the above changes,
795 so not only should we have a clean, minimal and well documented
796 interface to these classes in the header files, but the class internals
797 should be much clearer too.
800 grfx::GCache -> grfx::Cache,
801 grfx::GCacheItem -> grfx::CacheItem,
802 grfx::GConverter -> grfx::Converter,
803 grfx::GImage -> grfx::Image,
804 grfx::GImageXPM -> grfx::ImageXPM,
805 grfx::GParams -> grfx::Params.
807 2002-06-26 Angus Leeming <leeming@lyx.org>
809 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
810 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
813 2002-06-26 Angus Leeming <leeming@lyx.org>
815 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
816 move the DisplayType enum out of grfx::GParams to here.
818 * GraphicsCacheItem.h: re-write preliminary description to reflect
821 * GraphicsParams.[Ch]:
822 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
823 grfx::DisplayType out of grfx::GParams.
825 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
826 that was in frontends/screen.C and insets/insetgraphics.C into a
827 single, easy-to-use class.
829 * Makefile.am: add these files.
831 2002-06-25 Angus Leeming <leeming@lyx.org>
833 * GraphicsCache.[Ch]:
834 * GraphicsCacheItem.[Ch]:
835 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
836 file into memory. The cache no longer controls the generation of the
837 pixmap. Instead, it just emits a signal when the loading status of an
839 The cache no longer stores InsetGraphics pointers and nor does it
840 assume responsibility for modifying an image (scaling, rotating etc).
841 Instead, that must now be performed elsewhere.
843 2002-06-19 Angus Leeming <leeming@lyx.org>
845 * GraphicsConverter.C: add using std::endl directive.
847 2002-06-17 Herbert Voss <voss@lyx.org>
849 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
850 default when nothing different was found
851 (convertToDisplayFormat): handle zipped files in the right way and
852 choose always convert as a default converter when no other
853 userdefined was found
855 * GraphicsConverter.C: add more lyxerr comments and choose
856 convert when no other userdefined converter was found
858 2002-06-10 Herbert Voss <voss@lyx.org>
860 * GraphicsImageXPM.C (convertTo7chars): get another special color
861 format from convert work in the right way
863 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
865 * GraphicsCache.C: use right colormap incantation
867 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
869 * GraphicsCache.C: use lyx_gui namespace
871 * GraphicsImageXPM.C: back down to using xforms
874 2002-06-07 Angus Leeming <leeming@lyx.org>
876 Fixes needed to compile with Compaq cxx 6.5.
877 * GraphicsConverter.h: forward declare class ConvProcess.
879 * GraphicsImageXPM.C:
880 all c-library variables have been moved into namespace std.
881 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
883 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
885 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
887 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
889 * GraphicsImageXPM.C: SigC to boot::signals changes.
890 (newImage): fix () bug when using new.
892 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
894 * switch from SigC signals to boost::signals.
896 2002-05-29 André Pönitz <poenitz@gmx.net>
898 * GraphicsParam.C: remove unneeded #include, move vomment
900 2002-05-28 André Pönitz <poenitz@gmx.net>
902 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
904 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
906 * GraphicsImageXPM.C: ColorHandler moved
908 2002-05-24 Juergen Vigna <jug@sad.it>
911 * GraphicsImage.h: include LString.h first.
913 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
915 * GraphicsCacheItem.h: use more specific smart_ptr header.
916 * GraphicsTypes.h: ditto
917 * GraphicsImage.h: ditto
918 * GraphicsConverter.h: ditto
920 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
922 * GraphicsImageXPM.C: understand convert's use of "opaque"
925 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
927 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
928 GImage::loadableFormats() that ensures that the signal is connected
929 to the derived class' method.
931 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
933 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
934 only work on the string.
936 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
938 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
939 the simple image loader when it encounters colour strings like
942 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
944 * GraphicsCacheItem.C (convertToDisplayFormat):
945 * GraphicsConverter.C (build_script): remove the Alerts when things go
946 wrong as the inset displays the message anyway. Moreover, Alert seems
947 pretty temperamemtal at the moment.
949 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
951 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
953 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
955 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
956 a reference to a temp object that's going out of scope...
958 2002-04-09 Herbert Voss <voss@lyx.org>
960 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
961 LyXLength::inBP instead of inPixels.
963 2002-04-10 Herbert Voss <voss@perce.de>
965 * GraphicsCache.[Ch]:
966 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
967 to read the "Bounding Box" from non (e)ps files.
969 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
971 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
972 the EPS file too, to ensure that the clipped Bounding Box is relative
973 to the original. (From Herbert.)
975 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
977 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
978 variables are initialised. Clean-up parsing of the string (with thanks
981 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
983 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
984 if the file can't be found.
986 * GraphicsParams.h (c-tor): remove string() as default argument.
988 * GraphicsCacheItem.C: a couple of changes as a result.
990 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
992 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
993 path to graphics file.
995 * GraphicsParams.[Ch] (c-tor): now passed filepath.
997 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
999 * most files: ws cleanup
1001 * Makefile.am: remove ld -r stuff
1003 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1005 * Makefile.am: special rules if partial linking
1007 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
1009 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
1011 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
1013 * GraphicsConverter.[Ch] (converted): make first arg const ref.
1015 * GraphicsCacheItem.h: doxy change
1017 * GraphicsCacheItem.C: ws change
1019 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
1021 * Makefile.am: if there is no image loading class leveraging the power
1022 of the appropriate gui library, then compile the basic alternative
1023 found in GraphicsImageXPM.[Ch].
1025 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
1027 * GraphicsCache.C: change associated with move of initialiseGraphics
1030 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
1032 * GraphicsParams.[Ch]:
1034 * GraphicsImageXPM.C: properly resolve more warnings about comparison
1035 between signed and unsigned integer expressions.
1037 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
1039 * GraphicsCache.C: move connections to the GImage-derived classes to
1042 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
1044 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
1045 conversion, then do that.
1047 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1049 * GraphicsCache.C: improve commentary to graphicsInit and where it
1052 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
1053 that became a memory leak properly. (Let the shared_c_ptr free the
1055 (reset, mapcolor): tidy up and introduce a work around for XPM files
1056 with crappy color entries. Print out a nice friendly message on what's
1057 gone wrong and how to resolve it properly.
1059 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1061 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
1062 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
1063 in free_color_table.
1064 (unique_color_string): use the correct string c-tor.
1066 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
1069 * ImageLoaderXPM.[Ch]: removed.
1071 * GraphicsConverter.[Ch]:
1072 * GraphicsImage.[Ch]:
1073 * GraphicsImageXPM.[Ch]:
1074 * GraphicsParams.[Ch]:
1075 * GraphicsTypes.h: new files.
1077 * All files. A total re-write of the graphics cache. The cache now
1078 supports asynchronous file conversion and file loading. Images
1079 can be cropped, rotated and scaled for display on the LyX screen.
1080 The old LyXImage and ImageLoader have been combined in a new class
1081 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1084 2002-02-07 Herbert Voss <voss@lyx.org>
1086 * GraphicsCacheItem.C: use unzipFile() from support/filetools
1088 2002-01-31 Herbert Voss <voss@lyx.org>
1090 * GraphicsCacheItem.h: handle filetype without the file extension;
1091 getting type from contents; handle zipped files
1093 2002-01-27 Herbert Voss <voss@lyx.org>
1095 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1097 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
1099 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1101 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1103 * GraphicsCacheItem.h: do not include <config.h> in header files
1105 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1107 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1108 transparent colour, then set it to the colour of the background.
1109 Also take account of the monochrome, grayscale of color
1112 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1114 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1115 are different. Thus, don't delete the "to" if it's the original!
1117 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1119 * ImageLoadXPM.C: remove setting of alloc colour mask,
1120 led to crash as we don't define a callback
1122 2001-07-29 Baruch Even <baruch@lyx.org>
1124 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1125 colors with closeness of 10000.
1127 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1129 2001-07-29 Baruch Even <baruch@lyx.org>
1131 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1134 2001-07-23 Baruch Even <baruch@lyx.org>
1136 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1137 the image after conversion.
1139 2001-07-17 Baruch Even <baruch@lyx.org>
1141 * GraphicsCacheItem.h:
1142 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1143 from synchronous to asynchronous and to ease the coming changes.
1145 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1147 * ImageLoaderXPM.C (runImageLoader): get display information from
1150 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1153 * GraphicsCacheItem.C:
1155 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1157 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1159 * GraphicsCache.h: inherit privately from noncopyable
1160 * ImageLoader.h: ditto
1161 * GraphicsCacheItem.h: ditto
1163 2001-04-16 Allan Rae <rae@lyx.org>
1165 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1166 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1169 2001-04-02 Baruch Even <baruch@lyx.org>
1171 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1172 of hard coding ImageMagick.
1174 2001-03-10 Baruch Even <baruch@lyx.org>
1176 * GraphicsCache.C: Style change from (*it).field to it->field
1178 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1180 * GraphicsCache.h: noncopyable is in namespace boost
1181 * ImageLoader.h: ditto
1182 * GraphicsCacheItem.h: ditto
1184 2001-03-07 Baruch Even <baruch@lyx.org>
1186 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1187 was false and it's not needed anyhow since the shared_ptr's in the cache
1188 will destroy everything on exit.
1190 2001-02-28 Baruch Even <baruch@ev-en.org>
1193 * GraphicsCache.C: Changed the singleton pattern implementation, the
1194 former version "leaked" in the sense that it was not deallocated at
1197 2001-02-20 Baruch Even <baruch@ev-en.org>
1199 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1200 instead of a pure pointer.
1202 * GraphicsCacheItem.[Ch]:
1203 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1204 removed the reference counting that was inside. Also fixed a bug where
1205 a temporary file wouldn't get erased.
1207 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1208 Ownership is now dropped when the caller requests the image_ pointer.
1210 2001-02-20 Baruch Even <baruch@ev-en.org>
1212 * GraphicsCache.C: Cleared up the confusion on when and how it is
1215 * GraphicsCacheItem.C: Indentation change.
1217 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1218 figure correctly when the image has been loaded successfully.
1220 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1222 * ImageLoader.C: add a "using" directive.
1224 * ImageLoader.h: remove extra comma at the end of enum; add an
1225 std:: qualifier for vector.
1227 2001-01-21 Baruch Even <baruch@ev-en.org>
1229 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1230 height in the image itself and minor cleanups.
1232 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1233 new ImageLoader class instead of the older Renderer class. This
1234 means change of responsibilities.