1 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
3 * pch.h: use proper signal include
5 * GraphicsCacheItem.[Ch]: Use preferred calling of Boost.Signal
6 * GraphicsConverter.C: ditto
7 * GraphicsImage.h: ditto
8 * GraphicsLoader.[Ch]: ditto
9 * PreviewLoader.[Ch]: ditto
11 2004-09-26 Lars Gullik Bjonnes <larsbj@gullik.net>
13 * pch.h: include <boost/function.hpp> instead of
14 <boost/function/function0.hpp>
16 * GraphicsImage.C: Use preferred calling of boost::function
17 * GraphicsImage.h: ditto
19 2004-08-16 José Matos <jamatos@lyx.org>
21 * PreviewLoader.C (Impl::startLoading): remove space at end of line.
23 2004-08-15 Lars Gullik Bjonnes <larsbj@gullik.net>
27 * Makefile.am: support pch
29 2004-07-24 Lars Gullik Bjonnes <larsbj@gullik.net>
31 * PreviewLoader.C, GraphicsParams.C, GraphicsConverter.C: change
32 "support/std_sstream.h" to <sstream>
34 2004-04-19 Angus Leeming <leeming@lyx.org>
36 * Previews.[Ch] (status): new member function, replacing activated.
38 2004-04-15 Angus Leeming <leeming@lyx.org>
40 * PreviewLoader.C (startLoading): change arguments passed to the
41 preview-generation script to include the foreground and background
43 (dumpPreamble): no longer write the foreground and background
44 colours to the latex file as PostScript specials.
45 (setConverter): consider only those 'to' formats that are
46 loadable natively by the GUI library, rather than all formats
47 for which a converter exists.
48 (setAscentFractions): re-written to parse much simplified metrics
51 2004-04-13 Angus Leeming <leeming@lyx.org>
53 * PreviewLoader.C (dumpPreamble):
54 * Previews.C (generateBufferPreviews): re-enable iteration over all
57 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
59 * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
61 * PreviewLoader.C: use always a temp dir
62 * PreviewLoader.C: check successfull creation of LaTeX file
64 2004-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
66 * PreviewLoader.C (FindFirst): inherit from std::unary_function
67 and make operator() const
68 (FindSnippet): inherit from unary_function, simplify slightly.
70 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
72 * GraphicsTypes.C: include <string>
74 2003-11-20 Lars Gullik Bjonnes <larsbj@gullik.net>
76 * Previews.C: include paragraph.h
77 * PreviewLoader.C: ditto
79 2003-11-05 José Matos <jamatos@lyx.org>
81 * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
82 and LatexRunParams to OutputParams.
84 2003-10-22 Angus Leeming <leeming@lyx.org>
86 * PreviewImage.C (statusChanged): always pass on the signal, not just
87 when the preview is ready for display.
89 2003-10-22 Angus Leeming <leeming@lyx.org>
91 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
92 to contain the conversion script cannot be opened.
94 2003-10-22 Angus Leeming <leeming@lyx.org>
96 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
99 2003-10-13 Angus Leeming <leeming@lyx.org>
101 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
102 Make displayTranslator a function,
104 2003-10-10 Angus Leeming <leeming@lyx.org>
106 * PreviewedInset.[Ch]: removed.
108 * Makefile.am: remove PreviewedInset.[Ch].
110 2003-10-09 Angus Leeming <leeming@lyx.org>
112 * PreviewedInset.[Ch] (previewReady): remove the side effects.
113 Now simply reports whether the preview is ready.
115 2003-10-09 Angus Leeming <leeming@lyx.org>
117 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
118 Remove the inset and view member functions.
119 Add a new connect member function and preview_ready_signal_ member
120 variable, to enable the class to tell an arbirary connectee that the
123 2003-10-09 Angus Leeming <leeming@lyx.org>
125 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
126 are now passed a 'Buffer const &', eliminating most of the remaining
127 need for PreviewedInset to use a BufferView cache.
129 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
132 * PreviewImage.h: add <string> and other small fixes to make
133 Lars' std::string patch compile with STLport.
135 2003-09-29 Angus Leeming <leeming@lyx.org>
137 * GraphicsParams.[Ch] (asString): removed. Replaced with
138 operator<<(std::ostream &, BoundingBox const &).
140 2003-09-25 Angus Leeming <leeming@lyx.org>
142 * GraphicsParams.[Ch] (asString): new member function.
144 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
146 * Previews.C (Previews): fix new bug
148 * GraphicsCache.C (Cache): fix new bug
150 2003-09-19 Angus Leeming <leeming@lyx.org>
152 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
153 a 'Buffer const &' argument.
155 2003-09-18 Angus Leeming <leeming@lyx.org>
157 * PreviewedInset.C (latexString): add a Buffer const & arg.
158 * PreviewedInset.C (addPreview): pass the buffer to latexString.
160 2003-09-16 Angus Leeming <leeming@lyx.org>
162 * PreviewedInset.[Ch] (c-tor) move out of line.
163 (d-tor): make private.
164 (inset): return a const reference rather than a non-const pointer.
166 2003-09-16 Angus Leeming <leeming@lyx.org>
168 * GraphicsImage.h: separate interface from implementation. Make all the
169 pure virtual functions private.
171 2003-09-16 Angus Leeming <leeming@lyx.org>
173 * PreviewLoader.C: add #include "LColor.h".
175 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
177 * GraphicsConverter.C
178 * PreviewLoader.C: remove usage of STRCONV
180 2003-09-14 Angus Leeming <leeming@lyx.org>
182 * PreviewLoader.C (remove): consider all InProgressProcesses when
183 ascertaining which ones to remove from the list, not every other one.
185 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
187 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
190 2003-09-08 Angus Leeming <leeming@lyx.org>
194 * PreviewLoader.C: remove redundant using directives.
196 2003-09-07 Angus Leeming <leeming@lyx.org>
199 * Previews.h: remove #include "support/std_string.h".
201 2003-09-06 Angus Leeming <leeming@lyx.org>
203 * PreviewedInset.C: add #include "insets/inset.h"
205 2003-09-05 Angus Leeming <leeming@lyx.org>
207 * *.C: strip out redundant #includes. (26 in total.)
209 2003-09-04 Angus Leeming <leeming@lyx.org>
211 * LoaderQueue.C (get):
213 2003-09-04 Angus Leeming <leeming@lyx.org>
216 * GraphicsCacheItem.C:
217 * GraphicsConverter.C:
221 * Previews.C: 'namespace support = lyx::support' rather than
222 'using lyx::support'.
224 * Previews.h: cleaned up some comments.
226 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
228 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
230 * GraphicsTypes.h: do not declare displayTranstor here (and remove
233 2003-07-27 José Matos <jamatos@fep.up.pt>
235 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
238 2003-07-21 Angus Leeming <leeming@lyx.org>
241 * GraphicsCacheItem.[Ch]:
244 * PreviewedInset.[Ch]:
245 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
247 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
249 * Change namespace grfx to lyx::graphics.
251 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
253 * introcude namespace lyx::support
255 2003-06-04 Angus Leeming <leeming@lyx.org>
257 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
258 (operator=): if it has a copy c-tor, it should have this too.
260 2003-06-03 Angus Leeming <leeming@lyx.org>
262 * GraphicsLoader.[Ch] (Loader): add copy constructor.
264 2003-05-23 Angus Leeming <leeming@lyx.org>
266 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
268 2003-05-22 Angus Leeming <leeming@lyx.org>
270 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
271 the inset::latex method.
273 2003-05-22 Angus Leeming <leeming@lyx.org>
275 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
276 the inset::latex method.
278 2003-05-22 Angus Leeming <leeming@lyx.org>
280 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
281 makeLaTeXFile is now encapsulated within runparams.
283 2003-05-22 Angus Leeming <leeming@lyx.org>
285 * PreviewLoader.C (dumpPreamble):
286 pass around a LatexRunParams parameter.
288 2003-05-13 André Pönitz <poenitz@gmx.net>
290 * GraphicsConverter.C:
291 * PreviewLoader.C: use tostr from own header
293 2003-05-12 André Pönitz <poenitz@gmx.net>
295 * PreviewLoader.C: boost::format -> bformat
297 2003-04-15 Angus Leeming <leeming@lyx.org>
299 * GraphicsConverter.C: #include lstrings.h.
301 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
303 * GraphicsConverter.C
304 * PreviewLoader.C: added #include "format.h"
306 2003-02-26 Angus Leeming <leeming@lyx.org>
308 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
309 use the cache of the parent inset instead.
311 * PreviewLoader.C (startLoading): Prevent a crash if the user is
312 not using a tmp directory.
314 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
316 * GraphicsLoader.[Ch],
318 * PreviewedInset.C: Removed unneeded list of owner insets
320 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
322 * GraphicsConverter (startConversion): add the call to
325 * GraphicsLoader.[Ch],
327 * PreviewedInset.C: Removed unneeded BufferView
329 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
331 * LoaderQueue.[Ch]: a simplification of the code, eliminated
332 the unneeded input bucket.
334 * GraphicsCacheItem.C (imageConverted): move warning inside the
337 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
339 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
341 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
343 * LoaderQueue.[Ch] (setPriority): added
345 * PreviewLoader.C (finishedGenerating): reversed the loading order so
346 first images get 'touched' last, and so load first.
348 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
350 * LoaderQueue.[Ch]: added. Implements a service queue that loads
352 * GraphicsSupport.[Ch]: removed
353 * Makefile.am: the changes above
354 * GraphicsLoader.C: use the loading queue
356 2003-01-21 Angus Leeming <leeming@lyx.org>
358 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
359 previews from being generated.
361 2003-01-13 Angus Leeming <leeming@lyx.org>
363 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
364 format to be PPM not XPM.
366 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
368 * Makefile.am (EXTRA_DIST): remove variable
370 2002-12-13 Angus Leeming <leeming@lyx.org>
372 * GraphicsImageXPM.[Ch]: removed.
374 * Makefile.am: associated change.
376 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
378 * several files: ws changes
380 2002-11-21 Angus Leeming <leeming@lyx.org>
382 * GraphicsConverter.C (build_script, move_file):
383 Don't use "if [ $? -ne 0 ]; then..."
385 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
387 * PreviewLoader.C (IncrementedFileName): STRCONV
388 (startLoading): ditto
390 * GraphicsConverter.C (Impl): STRCONV
393 * GraphicsTypes.C: include config.h
395 2002-10-25 Angus Leeming <leeming@lyx.org>
397 * GraphicsConverter.C (Impl::converted)
398 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
399 string as first arg, reflecting change in ForkedCall interface.
401 * PreviewLoader.C: use pid rather than command as identifier in
404 2002-10-18 Angus Leeming <leeming@lyx.org>
406 * GraphicsCacheItem.C (findTargetFormat): add debug message.
408 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
410 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
412 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
414 * GraphicsConverter.C (build_script): do not use ChangeExtension
418 2002-09-05 Angus Leeming <leeming@lyx.org>
420 * all files: modify the headers as discussed on the list.
422 2002-09-04 Angus Leeming <leeming@lyx.org>
424 * PreviewLoader.C (startLoading): pass the desired output format to the
427 2002-09-04 Angus Leeming <leeming@lyx.org>
429 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
431 2002-09-03 Angus Leeming <leeming@lyx.org>
433 * PreviewLoader.C: fix crash reported by Norbert Koksch when
434 generating more than 999 preview snippets. Use filenames with 5 digit
435 numbers, not 3, in the first instance, although more general code is
436 commented out. I don't suppose /anyone/ has 100000 formulae in one
439 2002-09-03 Angus Leeming <leeming@lyx.org>
441 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
443 2002-09-03 Angus Leeming <leeming@lyx.org>
445 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
447 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
449 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
450 convertDefault command with "sh ".
452 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
454 * GraphicsImage.C: small style fix to width/height setting.
456 * GraphicsTypes.h: have a displayTranslator here.
459 * GraphicsTypes.C: new file added for the setDisplayTranslator();
461 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
464 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
465 because this input has gone from the graphics dialog.
467 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
469 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
471 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
472 for support/smart_ptr.h, switch to boost smart ptr.
474 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
475 (~Data): let the smart_ptr handle cleanup
476 (reset): use nifty 3rd arg
478 (free_color_table): free the table manually
480 2002-08-09 Angus Leeming <leeming@lyx.org>
482 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
483 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
484 input@path is now set correctly.
486 2002-08-06 Angus Leeming <leeming@lyx.org>
488 * PreviewLoader.C: add support for preview.sty 0.73 (currently
489 #ifdef-ed out, awaiting the formal release).
491 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
492 the contents of a file that has changed.
494 2002-08-05 Angus Leeming <leeming@lyx.org>
496 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
497 to preview.sty. Works only for versions of preview.sty > 0.72b but
498 doesn't hurt earlier versions. Allows me to test the new parsing of
499 LyX-specific data from the generated log file.
501 2002-08-02 Angus Leeming <leeming@lyx.org>
503 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
505 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
506 (add): don't add empty snippets.
508 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
509 (view, setView): access to to the cache_.
511 2002-08-02 Angus Leeming <leeming@lyx.org>
513 * PreviewedInset.[Ch]: cache the LaTeX snippet.
515 2002-08-01 Angus Leeming <leeming@lyx.org>
517 * PreviewedInset.[Ch]: new files. An abstract base class that can help
518 insets to generate previews.
519 The daughter class must instantiate three small methods.
520 The Inset would own an instance of this daughter class and invoke it
521 as necessary. For example, mathd/formula.C gets previews at the cost
522 of 15 or so lines of code.
524 * Makefile.am: add PreviewedInset.[Ch].
526 * PreviewLoader.C (add): add debug message.
528 * Previews.C (generateBufferPreviews): remove if-block from loop.
530 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
532 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
534 (setAscentFractions): ditto
536 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
538 * PreviewLoader.C (setAscentFractions): modify because of strip
541 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
543 * GraphicsConverter.C (build_script): take a ostream as a more
544 general argument than ostringstream.
546 2002-07-22 Herbert Voss <voss@lyx.org>
548 * GraphicsConverter.C: get the "default converter" run again
550 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
552 * PreviewLoader.C: use BufferParams::getLyXTextClass
554 2002-07-21 Herbert Voss <voss@lyx.org>
556 * GraphicsImage.C: get the LyXAspectRatio run.
558 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
560 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
562 * PreviewLoader.C (startLoading): pass an interger as resolution
563 to the lyxpreview converter
565 * GraphicsParams.C: include <cstdlib>
567 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
569 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
570 preview converter script
572 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
574 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
577 2002-07-18 Angus Leeming <leeming@lyx.org>
579 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
581 (startMonitoring, monitoring, checksum): new methods to interact with
584 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
585 methods invoking the CacheItem methods of the same name.
586 (resetFile): if monitoring and the file changes, start monitoring this
589 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
591 * Makefile.am: remove FileMonitor.[Ch]
593 2002-06-17 Herbert Voss <voss@lyx.org>
595 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
596 for old ps-files (Garst). It's now handled by defining a converter and
597 disabling the ps-support of xforms.
599 2002-07-17 Angus Leeming <leeming@lyx.org>
601 Be true to the Pimpl idiom, moving all signals into the respective
602 Impl classes and defining methods to connect them to an outside slot.
603 Const-ify all visible class methods as they act only on a const pimpl_.
605 * GraphicsCache.[Ch] (add, remove): const-ify.
607 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
608 (statusChanged): move the signal into the Impl class.
609 (connect): new method, enabling a listener to connect to this signal.
611 * GraphicsConverter.[Ch]: (startConversion): const-ify.
612 (finishedConversion): move the signal into the Impl class.
613 (connect): new method, enabling a listener to connect to this signal.
615 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
616 (statusChanged): move the signal into the Impl class.
617 (connect): new method, enabling a listener to connect to this signal.
619 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
620 (imageReady): move the signal into the Impl class.
621 (connect): new method, enabling a listener to connect to this signal.
622 (emitSignal): new method, enabling PreviewImage to tell the outside
623 world that the file has been loaded into memory.
625 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
629 * GraphicsCacheItem.C:
630 * GraphicsConverter.[Ch]:
632 * GraphicsImageXPM.C:
634 * PreviewLoader.[Ch]: whitespace clean-up.
636 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
638 * PreviewLoader.C (setConverter): remove unused variable
640 * GraphicsImageXPM.C (isDrawable): implement
641 (setPixmap): the opaque color is black, not white
643 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
645 * GraphicsImageXPM.C (color_none_id):
646 (contains_color_none): use ascii_lowercase instead of lowercase
648 2002-07-16 Angus Leeming <leeming@lyx.org>
650 * PreviewLoader.C: greater use of STL algorithms.
652 * Previews.[Ch]: use const in more places.
653 (generateBufferPreviews): now takes a Buffer const & argument, not a
656 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
658 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
660 2002-07-12 Angus Leeming <leeming@lyx.org>
662 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
663 if visible 2 secs after the call to load them is first made.
665 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
666 BufferView to ascertain whether the inset is visible or not.
668 * Makefile.am: added GraphicsSupport.[Ch].
670 * PreviewImage.[Ch]: use this smart loader.
672 * PreviewLoader.C: don't load generated image files indiscimminantly.
673 Instead emit the imageReady signal and allow the image owner to decide.
675 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
677 * GraphicsCache.C: remove init_graphics()
679 2002-07-09 Angus Leeming <leeming@lyx.org>
681 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
682 arithmetic when it should be floating.
684 2002-07-09 Angus Leeming <leeming@lyx.org>
686 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
687 Output equation labels as "(#)" if lyxrc preference is set.
688 (setFontScalingFactor): use lyxrc variable preview_scale_factor
689 rather than hard-coding this.
691 2002-07-09 Angus Leeming <leeming@lyx.org>
693 * PreviewLoader.C: Further refactoring of the code. Should now be
696 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
697 past its sell-by date. The code to read the metrics file is now found
698 as a helper function in PreviewLoader.C.
700 * GraphicsImageXPM.C (scale): use boost::tie.
702 2002-07-08 Herbert Voss <voss@lyx.org>
704 * PreviewLoader.C: use of preview_size_factor to get the right
705 font-size! 0.9 is the default.
707 2002-07-08 Angus Leeming <leeming@lyx.org>
709 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
710 invocation of preview.sty.
711 Perform something of an internal clean-up.
713 2002-07-06 Angus Leeming <leeming@lyx.org>
715 * PreviewLoader.C: ensure that the metrics data is used by the
719 * PreviewImage.C: (Impl d-tor): remove all generated files that still
720 exist (perhaps because the process was curtailed before the images
723 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
725 2002-07-05 Angus Leeming <leeming@lyx.org>
734 * Previews.C: new files. The previewed LaTeX snippet stuff.
736 * Makefile.am: add these files.
738 2002-07-05 Angus Leeming <leeming@lyx.org>
740 * GraphicsLoader.h: whitespace.
742 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
744 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
745 boost::function from boost::signal.
747 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
749 * GraphicsConverter.C (convert): do not use ChangeExtension
750 because to_file_base may contain a dot.
752 2002-06-28 Angus Leeming <leeming@lyx.org>
754 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
755 by moving those SignalPtrs into the grfx::Image and grfx::Converter
756 classes where they really belong.
757 Use the Pimpl idiom to hide the class internals from public view.
759 * GraphicsTypes: remove the typedefs, leaving only the enums.
761 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
762 passed a reference to one in the load() method.
764 * GraphicsConverter.[Ch]: totally refactored. An instance of
765 grfx::Converter now represents a single conversion process.
766 Thus grfx::CachItem now has a grfx::Converter * that is set when the
767 conversion is initiated and destroyed on completion.
769 * GraphicsCache.[Ch]:
770 * GraphicsCacheItem.[Ch]:
771 * GraphicsConverter.[Ch]:
772 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
774 Note that I have done this only after making the above changes,
775 so not only should we have a clean, minimal and well documented
776 interface to these classes in the header files, but the class internals
777 should be much clearer too.
780 grfx::GCache -> grfx::Cache,
781 grfx::GCacheItem -> grfx::CacheItem,
782 grfx::GConverter -> grfx::Converter,
783 grfx::GImage -> grfx::Image,
784 grfx::GImageXPM -> grfx::ImageXPM,
785 grfx::GParams -> grfx::Params.
787 2002-06-26 Angus Leeming <leeming@lyx.org>
789 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
790 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
793 2002-06-26 Angus Leeming <leeming@lyx.org>
795 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
796 move the DisplayType enum out of grfx::GParams to here.
798 * GraphicsCacheItem.h: re-write preliminary description to reflect
801 * GraphicsParams.[Ch]:
802 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
803 grfx::DisplayType out of grfx::GParams.
805 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
806 that was in frontends/screen.C and insets/insetgraphics.C into a
807 single, easy-to-use class.
809 * Makefile.am: add these files.
811 2002-06-25 Angus Leeming <leeming@lyx.org>
813 * GraphicsCache.[Ch]:
814 * GraphicsCacheItem.[Ch]:
815 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
816 file into memory. The cache no longer controls the generation of the
817 pixmap. Instead, it just emits a signal when the loading status of an
819 The cache no longer stores InsetGraphics pointers and nor does it
820 assume responsibility for modifying an image (scaling, rotating etc).
821 Instead, that must now be performed elsewhere.
823 2002-06-19 Angus Leeming <leeming@lyx.org>
825 * GraphicsConverter.C: add using std::endl directive.
827 2002-06-17 Herbert Voss <voss@lyx.org>
829 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
830 default when nothing different was found
831 (convertToDisplayFormat): handle zipped files in the right way and
832 choose always convert as a default converter when no other
833 userdefined was found
835 * GraphicsConverter.C: add more lyxerr comments and choose
836 convert when no other userdefined converter was found
838 2002-06-10 Herbert Voss <voss@lyx.org>
840 * GraphicsImageXPM.C (convertTo7chars): get another special color
841 format from convert work in the right way
843 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
845 * GraphicsCache.C: use right colormap incantation
847 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
849 * GraphicsCache.C: use lyx_gui namespace
851 * GraphicsImageXPM.C: back down to using xforms
854 2002-06-07 Angus Leeming <leeming@lyx.org>
856 Fixes needed to compile with Compaq cxx 6.5.
857 * GraphicsConverter.h: forward declare class ConvProcess.
859 * GraphicsImageXPM.C:
860 all c-library variables have been moved into namespace std.
861 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
863 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
865 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
867 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
869 * GraphicsImageXPM.C: SigC to boot::signals changes.
870 (newImage): fix () bug when using new.
872 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
874 * switch from SigC signals to boost::signals.
876 2002-05-29 André Pönitz <poenitz@gmx.net>
878 * GraphicsParam.C: remove unneeded #include, move vomment
880 2002-05-28 André Pönitz <poenitz@gmx.net>
882 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
884 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
886 * GraphicsImageXPM.C: ColorHandler moved
888 2002-05-24 Juergen Vigna <jug@sad.it>
891 * GraphicsImage.h: include LString.h first.
893 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
895 * GraphicsCacheItem.h: use more specific smart_ptr header.
896 * GraphicsTypes.h: ditto
897 * GraphicsImage.h: ditto
898 * GraphicsConverter.h: ditto
900 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
902 * GraphicsImageXPM.C: understand convert's use of "opaque"
905 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
907 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
908 GImage::loadableFormats() that ensures that the signal is connected
909 to the derived class' method.
911 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
913 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
914 only work on the string.
916 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
918 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
919 the simple image loader when it encounters colour strings like
922 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
924 * GraphicsCacheItem.C (convertToDisplayFormat):
925 * GraphicsConverter.C (build_script): remove the Alerts when things go
926 wrong as the inset displays the message anyway. Moreover, Alert seems
927 pretty temperamemtal at the moment.
929 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
931 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
933 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
935 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
936 a reference to a temp object that's going out of scope...
938 2002-04-09 Herbert Voss <voss@lyx.org>
940 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
941 LyXLength::inBP instead of inPixels.
943 2002-04-10 Herbert Voss <voss@perce.de>
945 * GraphicsCache.[Ch]:
946 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
947 to read the "Bounding Box" from non (e)ps files.
949 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
951 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
952 the EPS file too, to ensure that the clipped Bounding Box is relative
953 to the original. (From Herbert.)
955 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
957 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
958 variables are initialised. Clean-up parsing of the string (with thanks
961 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
963 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
964 if the file can't be found.
966 * GraphicsParams.h (c-tor): remove string() as default argument.
968 * GraphicsCacheItem.C: a couple of changes as a result.
970 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
972 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
973 path to graphics file.
975 * GraphicsParams.[Ch] (c-tor): now passed filepath.
977 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
979 * most files: ws cleanup
981 * Makefile.am: remove ld -r stuff
983 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
985 * Makefile.am: special rules if partial linking
987 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
989 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
991 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
993 * GraphicsConverter.[Ch] (converted): make first arg const ref.
995 * GraphicsCacheItem.h: doxy change
997 * GraphicsCacheItem.C: ws change
999 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
1001 * Makefile.am: if there is no image loading class leveraging the power
1002 of the appropriate gui library, then compile the basic alternative
1003 found in GraphicsImageXPM.[Ch].
1005 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
1007 * GraphicsCache.C: change associated with move of initialiseGraphics
1010 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
1012 * GraphicsParams.[Ch]:
1014 * GraphicsImageXPM.C: properly resolve more warnings about comparison
1015 between signed and unsigned integer expressions.
1017 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
1019 * GraphicsCache.C: move connections to the GImage-derived classes to
1022 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
1024 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
1025 conversion, then do that.
1027 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1029 * GraphicsCache.C: improve commentary to graphicsInit and where it
1032 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
1033 that became a memory leak properly. (Let the shared_c_ptr free the
1035 (reset, mapcolor): tidy up and introduce a work around for XPM files
1036 with crappy color entries. Print out a nice friendly message on what's
1037 gone wrong and how to resolve it properly.
1039 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1041 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
1042 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
1043 in free_color_table.
1044 (unique_color_string): use the correct string c-tor.
1046 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
1049 * ImageLoaderXPM.[Ch]: removed.
1051 * GraphicsConverter.[Ch]:
1052 * GraphicsImage.[Ch]:
1053 * GraphicsImageXPM.[Ch]:
1054 * GraphicsParams.[Ch]:
1055 * GraphicsTypes.h: new files.
1057 * All files. A total re-write of the graphics cache. The cache now
1058 supports asynchronous file conversion and file loading. Images
1059 can be cropped, rotated and scaled for display on the LyX screen.
1060 The old LyXImage and ImageLoader have been combined in a new class
1061 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1064 2002-02-07 Herbert Voss <voss@lyx.org>
1066 * GraphicsCacheItem.C: use unzipFile() from support/filetools
1068 2002-01-31 Herbert Voss <voss@lyx.org>
1070 * GraphicsCacheItem.h: handle filetype without the file extension;
1071 getting type from contents; handle zipped files
1073 2002-01-27 Herbert Voss <voss@lyx.org>
1075 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1077 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
1079 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1081 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1083 * GraphicsCacheItem.h: do not include <config.h> in header files
1085 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1087 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1088 transparent colour, then set it to the colour of the background.
1089 Also take account of the monochrome, grayscale of color
1092 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1094 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1095 are different. Thus, don't delete the "to" if it's the original!
1097 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1099 * ImageLoadXPM.C: remove setting of alloc colour mask,
1100 led to crash as we don't define a callback
1102 2001-07-29 Baruch Even <baruch@lyx.org>
1104 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1105 colors with closeness of 10000.
1107 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1109 2001-07-29 Baruch Even <baruch@lyx.org>
1111 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1114 2001-07-23 Baruch Even <baruch@lyx.org>
1116 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1117 the image after conversion.
1119 2001-07-17 Baruch Even <baruch@lyx.org>
1121 * GraphicsCacheItem.h:
1122 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1123 from synchronous to asynchronous and to ease the coming changes.
1125 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1127 * ImageLoaderXPM.C (runImageLoader): get display information from
1130 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1133 * GraphicsCacheItem.C:
1135 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1137 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1139 * GraphicsCache.h: inherit privately from noncopyable
1140 * ImageLoader.h: ditto
1141 * GraphicsCacheItem.h: ditto
1143 2001-04-16 Allan Rae <rae@lyx.org>
1145 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1146 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1149 2001-04-02 Baruch Even <baruch@lyx.org>
1151 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1152 of hard coding ImageMagick.
1154 2001-03-10 Baruch Even <baruch@lyx.org>
1156 * GraphicsCache.C: Style change from (*it).field to it->field
1158 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1160 * GraphicsCache.h: noncopyable is in namespace boost
1161 * ImageLoader.h: ditto
1162 * GraphicsCacheItem.h: ditto
1164 2001-03-07 Baruch Even <baruch@lyx.org>
1166 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1167 was false and it's not needed anyhow since the shared_ptr's in the cache
1168 will destroy everything on exit.
1170 2001-02-28 Baruch Even <baruch@ev-en.org>
1173 * GraphicsCache.C: Changed the singleton pattern implementation, the
1174 former version "leaked" in the sense that it was not deallocated at
1177 2001-02-20 Baruch Even <baruch@ev-en.org>
1179 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1180 instead of a pure pointer.
1182 * GraphicsCacheItem.[Ch]:
1183 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1184 removed the reference counting that was inside. Also fixed a bug where
1185 a temporary file wouldn't get erased.
1187 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1188 Ownership is now dropped when the caller requests the image_ pointer.
1190 2001-02-20 Baruch Even <baruch@ev-en.org>
1192 * GraphicsCache.C: Cleared up the confusion on when and how it is
1195 * GraphicsCacheItem.C: Indentation change.
1197 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1198 figure correctly when the image has been loaded successfully.
1200 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1202 * ImageLoader.C: add a "using" directive.
1204 * ImageLoader.h: remove extra comma at the end of enum; add an
1205 std:: qualifier for vector.
1207 2001-01-21 Baruch Even <baruch@ev-en.org>
1209 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1210 height in the image itself and minor cleanups.
1212 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1213 new ImageLoader class instead of the older Renderer class. This
1214 means change of responsibilities.