1 2005-11-02 Angus Leeming <leeming@lyx.org>
3 * GraphicsCacheItem.C: trivial fix to a MSVS warning.
5 2005-06-12 Angus Leeming <leeming@lyx.org>
7 * PreviewLoader.C (startLoading): quote the name of the LaTeX file
8 passed to the lyxpreview converter script.
10 2005-04-17 Angus Leeming <leeming@lyx.org>
12 * GraphicsConverter.C (c-tor): quote conversion commands correctly.
14 2005-02-15 Angus Leeming <leeming@lyx.org>
16 * GraphicsLoader.C: s/struct/class/ in definition of
17 lyx::graphics::Loader::Impl to silence MSVC warning:
18 "type name first seen using 'class' now seen using 'struct'".
20 2005-01-27 Lars Gullik Bjønnes <larsbj@gullik.net>
22 * PreviewLoader.C (Impl): use convert<> instead of atoi,strToXXX
25 * GraphicsParams.h (class Params): change angle from float to double
27 2005-01-06 Lars Gullik Bjønnes <larsbj@gullik.net>
29 * PreviewLoader.C (unique_filename): tostr -> convert
31 2005-01-04 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
33 * PreviewLoader.C: lyxrc.preview_scale_factor is a string now.
35 2004-11-25 Lars Gullik Bjønnes <larsbj@gullik.net>
37 * rename a lot of InsetOld to InsetBase
39 2004-11-20 Lars Gullik Bjønnes <larsbj@gullik.net>
41 * GraphicsCache.C: include <map> to fix compilation with boost
44 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
46 * GraphicsCacheItem.C:
47 s/getFormatFromContents/formats.getFormatFromFile/
49 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
51 * GraphicsCacheItem.C: s/getExtFromContents/getFormatFromContents/
52 * GraphicsImage.h (loadableFormats): correct documentation
54 2004-10-01 Angus Leeming <leeming@lyx.org>
56 * GraphicsConverter.C (move_file, build_script): protect
57 shell variables with quotes.
59 2004-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
61 * pch.h: use proper signal include
63 * GraphicsCacheItem.[Ch]: Use preferred calling of Boost.Signal
64 * GraphicsConverter.C: ditto
65 * GraphicsImage.h: ditto
66 * GraphicsLoader.[Ch]: ditto
67 * PreviewLoader.[Ch]: ditto
69 2004-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
71 * pch.h: include <boost/function.hpp> instead of
72 <boost/function/function0.hpp>
74 * GraphicsImage.C: Use preferred calling of boost::function
75 * GraphicsImage.h: ditto
77 2004-08-16 José Matos <jamatos@lyx.org>
79 * PreviewLoader.C (Impl::startLoading): remove space at end of line.
81 2004-08-15 Lars Gullik Bjønnes <larsbj@gullik.net>
85 * Makefile.am: support pch
87 2004-07-24 Lars Gullik Bjønnes <larsbj@gullik.net>
89 * PreviewLoader.C, GraphicsParams.C, GraphicsConverter.C: change
90 "support/std_sstream.h" to <sstream>
92 2004-04-19 Angus Leeming <leeming@lyx.org>
94 * Previews.[Ch] (status): new member function, replacing activated.
96 2004-04-15 Angus Leeming <leeming@lyx.org>
98 * PreviewLoader.C (startLoading): change arguments passed to the
99 preview-generation script to include the foreground and background
101 (dumpPreamble): no longer write the foreground and background
102 colours to the latex file as PostScript specials.
103 (setConverter): consider only those 'to' formats that are
104 loadable natively by the GUI library, rather than all formats
105 for which a converter exists.
106 (setAscentFractions): re-written to parse much simplified metrics
109 2004-04-13 Angus Leeming <leeming@lyx.org>
111 * PreviewLoader.C (dumpPreamble):
112 * Previews.C (generateBufferPreviews): re-enable iteration over all
115 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
117 * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
119 * PreviewLoader.C: use always a temp dir
120 * PreviewLoader.C: check successfull creation of LaTeX file
122 2004-01-31 Lars Gullik Bjønnes <larsbj@gullik.net>
124 * PreviewLoader.C (FindFirst): inherit from std::unary_function
125 and make operator() const
126 (FindSnippet): inherit from unary_function, simplify slightly.
128 2004-01-07 Lars Gullik Bjønnes <larsbj@gullik.net>
130 * GraphicsTypes.C: include <string>
132 2003-11-20 Lars Gullik Bjønnes <larsbj@gullik.net>
134 * Previews.C: include paragraph.h
135 * PreviewLoader.C: ditto
137 2003-11-05 José Matos <jamatos@lyx.org>
139 * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
140 and LatexRunParams to OutputParams.
142 2003-10-22 Angus Leeming <leeming@lyx.org>
144 * PreviewImage.C (statusChanged): always pass on the signal, not just
145 when the preview is ready for display.
147 2003-10-22 Angus Leeming <leeming@lyx.org>
149 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
150 to contain the conversion script cannot be opened.
152 2003-10-22 Angus Leeming <leeming@lyx.org>
154 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
157 2003-10-13 Angus Leeming <leeming@lyx.org>
159 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
160 Make displayTranslator a function,
162 2003-10-10 Angus Leeming <leeming@lyx.org>
164 * PreviewedInset.[Ch]: removed.
166 * Makefile.am: remove PreviewedInset.[Ch].
168 2003-10-09 Angus Leeming <leeming@lyx.org>
170 * PreviewedInset.[Ch] (previewReady): remove the side effects.
171 Now simply reports whether the preview is ready.
173 2003-10-09 Angus Leeming <leeming@lyx.org>
175 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
176 Remove the inset and view member functions.
177 Add a new connect member function and preview_ready_signal_ member
178 variable, to enable the class to tell an arbirary connectee that the
181 2003-10-09 Angus Leeming <leeming@lyx.org>
183 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
184 are now passed a 'Buffer const &', eliminating most of the remaining
185 need for PreviewedInset to use a BufferView cache.
187 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
190 * PreviewImage.h: add <string> and other small fixes to make
191 Lars' std::string patch compile with STLport.
193 2003-09-29 Angus Leeming <leeming@lyx.org>
195 * GraphicsParams.[Ch] (asString): removed. Replaced with
196 operator<<(std::ostream &, BoundingBox const &).
198 2003-09-25 Angus Leeming <leeming@lyx.org>
200 * GraphicsParams.[Ch] (asString): new member function.
202 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
204 * Previews.C (Previews): fix new bug
206 * GraphicsCache.C (Cache): fix new bug
208 2003-09-19 Angus Leeming <leeming@lyx.org>
210 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
211 a 'Buffer const &' argument.
213 2003-09-18 Angus Leeming <leeming@lyx.org>
215 * PreviewedInset.C (latexString): add a Buffer const & arg.
216 * PreviewedInset.C (addPreview): pass the buffer to latexString.
218 2003-09-16 Angus Leeming <leeming@lyx.org>
220 * PreviewedInset.[Ch] (c-tor) move out of line.
221 (d-tor): make private.
222 (inset): return a const reference rather than a non-const pointer.
224 2003-09-16 Angus Leeming <leeming@lyx.org>
226 * GraphicsImage.h: separate interface from implementation. Make all the
227 pure virtual functions private.
229 2003-09-16 Angus Leeming <leeming@lyx.org>
231 * PreviewLoader.C: add #include "LColor.h".
233 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
235 * GraphicsConverter.C
236 * PreviewLoader.C: remove usage of STRCONV
238 2003-09-14 Angus Leeming <leeming@lyx.org>
240 * PreviewLoader.C (remove): consider all InProgressProcesses when
241 ascertaining which ones to remove from the list, not every other one.
243 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
245 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
248 2003-09-08 Angus Leeming <leeming@lyx.org>
252 * PreviewLoader.C: remove redundant using directives.
254 2003-09-07 Angus Leeming <leeming@lyx.org>
257 * Previews.h: remove #include "support/std_string.h".
259 2003-09-06 Angus Leeming <leeming@lyx.org>
261 * PreviewedInset.C: add #include "insets/inset.h"
263 2003-09-05 Angus Leeming <leeming@lyx.org>
265 * *.C: strip out redundant #includes. (26 in total.)
267 2003-09-04 Angus Leeming <leeming@lyx.org>
269 * LoaderQueue.C (get):
271 2003-09-04 Angus Leeming <leeming@lyx.org>
274 * GraphicsCacheItem.C:
275 * GraphicsConverter.C:
279 * Previews.C: 'namespace support = lyx::support' rather than
280 'using lyx::support'.
282 * Previews.h: cleaned up some comments.
284 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
286 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
288 * GraphicsTypes.h: do not declare displayTranstor here (and remove
291 2003-07-27 José Matos <jamatos@fep.up.pt>
293 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
296 2003-07-21 Angus Leeming <leeming@lyx.org>
299 * GraphicsCacheItem.[Ch]:
302 * PreviewedInset.[Ch]:
303 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
305 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
307 * Change namespace grfx to lyx::graphics.
309 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
311 * introcude namespace lyx::support
313 2003-06-04 Angus Leeming <leeming@lyx.org>
315 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
316 (operator=): if it has a copy c-tor, it should have this too.
318 2003-06-03 Angus Leeming <leeming@lyx.org>
320 * GraphicsLoader.[Ch] (Loader): add copy constructor.
322 2003-05-23 Angus Leeming <leeming@lyx.org>
324 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
326 2003-05-22 Angus Leeming <leeming@lyx.org>
328 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
329 the inset::latex method.
331 2003-05-22 Angus Leeming <leeming@lyx.org>
333 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
334 the inset::latex method.
336 2003-05-22 Angus Leeming <leeming@lyx.org>
338 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
339 makeLaTeXFile is now encapsulated within runparams.
341 2003-05-22 Angus Leeming <leeming@lyx.org>
343 * PreviewLoader.C (dumpPreamble):
344 pass around a LatexRunParams parameter.
346 2003-05-13 André Pönitz <poenitz@gmx.net>
348 * GraphicsConverter.C:
349 * PreviewLoader.C: use tostr from own header
351 2003-05-12 André Pönitz <poenitz@gmx.net>
353 * PreviewLoader.C: boost::format -> bformat
355 2003-04-15 Angus Leeming <leeming@lyx.org>
357 * GraphicsConverter.C: #include lstrings.h.
359 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
361 * GraphicsConverter.C
362 * PreviewLoader.C: added #include "format.h"
364 2003-02-26 Angus Leeming <leeming@lyx.org>
366 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
367 use the cache of the parent inset instead.
369 * PreviewLoader.C (startLoading): Prevent a crash if the user is
370 not using a tmp directory.
372 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
374 * GraphicsLoader.[Ch],
376 * PreviewedInset.C: Removed unneeded list of owner insets
378 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
380 * GraphicsConverter (startConversion): add the call to
383 * GraphicsLoader.[Ch],
385 * PreviewedInset.C: Removed unneeded BufferView
387 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
389 * LoaderQueue.[Ch]: a simplification of the code, eliminated
390 the unneeded input bucket.
392 * GraphicsCacheItem.C (imageConverted): move warning inside the
395 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
397 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
399 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
401 * LoaderQueue.[Ch] (setPriority): added
403 * PreviewLoader.C (finishedGenerating): reversed the loading order so
404 first images get 'touched' last, and so load first.
406 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
408 * LoaderQueue.[Ch]: added. Implements a service queue that loads
410 * GraphicsSupport.[Ch]: removed
411 * Makefile.am: the changes above
412 * GraphicsLoader.C: use the loading queue
414 2003-01-21 Angus Leeming <leeming@lyx.org>
416 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
417 previews from being generated.
419 2003-01-13 Angus Leeming <leeming@lyx.org>
421 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
422 format to be PPM not XPM.
424 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
426 * Makefile.am (EXTRA_DIST): remove variable
428 2002-12-13 Angus Leeming <leeming@lyx.org>
430 * GraphicsImageXPM.[Ch]: removed.
432 * Makefile.am: associated change.
434 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
436 * several files: ws changes
438 2002-11-21 Angus Leeming <leeming@lyx.org>
440 * GraphicsConverter.C (build_script, move_file):
441 Don't use "if [ $? -ne 0 ]; then..."
443 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
445 * PreviewLoader.C (IncrementedFileName): STRCONV
446 (startLoading): ditto
448 * GraphicsConverter.C (Impl): STRCONV
451 * GraphicsTypes.C: include config.h
453 2002-10-25 Angus Leeming <leeming@lyx.org>
455 * GraphicsConverter.C (Impl::converted)
456 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
457 string as first arg, reflecting change in ForkedCall interface.
459 * PreviewLoader.C: use pid rather than command as identifier in
462 2002-10-18 Angus Leeming <leeming@lyx.org>
464 * GraphicsCacheItem.C (findTargetFormat): add debug message.
466 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
468 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
470 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
472 * GraphicsConverter.C (build_script): do not use ChangeExtension
476 2002-09-05 Angus Leeming <leeming@lyx.org>
478 * all files: modify the headers as discussed on the list.
480 2002-09-04 Angus Leeming <leeming@lyx.org>
482 * PreviewLoader.C (startLoading): pass the desired output format to the
485 2002-09-04 Angus Leeming <leeming@lyx.org>
487 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
489 2002-09-03 Angus Leeming <leeming@lyx.org>
491 * PreviewLoader.C: fix crash reported by Norbert Koksch when
492 generating more than 999 preview snippets. Use filenames with 5 digit
493 numbers, not 3, in the first instance, although more general code is
494 commented out. I don't suppose /anyone/ has 100000 formulae in one
497 2002-09-03 Angus Leeming <leeming@lyx.org>
499 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
501 2002-09-03 Angus Leeming <leeming@lyx.org>
503 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
505 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
507 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
508 convertDefault command with "sh ".
510 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
512 * GraphicsImage.C: small style fix to width/height setting.
514 * GraphicsTypes.h: have a displayTranslator here.
517 * GraphicsTypes.C: new file added for the setDisplayTranslator();
519 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
522 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
523 because this input has gone from the graphics dialog.
525 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
527 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
529 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
530 for support/smart_ptr.h, switch to boost smart ptr.
532 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
533 (~Data): let the smart_ptr handle cleanup
534 (reset): use nifty 3rd arg
536 (free_color_table): free the table manually
538 2002-08-09 Angus Leeming <leeming@lyx.org>
540 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
541 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
542 input@path is now set correctly.
544 2002-08-06 Angus Leeming <leeming@lyx.org>
546 * PreviewLoader.C: add support for preview.sty 0.73 (currently
547 #ifdef-ed out, awaiting the formal release).
549 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
550 the contents of a file that has changed.
552 2002-08-05 Angus Leeming <leeming@lyx.org>
554 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
555 to preview.sty. Works only for versions of preview.sty > 0.72b but
556 doesn't hurt earlier versions. Allows me to test the new parsing of
557 LyX-specific data from the generated log file.
559 2002-08-02 Angus Leeming <leeming@lyx.org>
561 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
563 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
564 (add): don't add empty snippets.
566 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
567 (view, setView): access to to the cache_.
569 2002-08-02 Angus Leeming <leeming@lyx.org>
571 * PreviewedInset.[Ch]: cache the LaTeX snippet.
573 2002-08-01 Angus Leeming <leeming@lyx.org>
575 * PreviewedInset.[Ch]: new files. An abstract base class that can help
576 insets to generate previews.
577 The daughter class must instantiate three small methods.
578 The Inset would own an instance of this daughter class and invoke it
579 as necessary. For example, mathd/formula.C gets previews at the cost
580 of 15 or so lines of code.
582 * Makefile.am: add PreviewedInset.[Ch].
584 * PreviewLoader.C (add): add debug message.
586 * Previews.C (generateBufferPreviews): remove if-block from loop.
588 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
590 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
592 (setAscentFractions): ditto
594 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
596 * PreviewLoader.C (setAscentFractions): modify because of strip
599 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
601 * GraphicsConverter.C (build_script): take a ostream as a more
602 general argument than ostringstream.
604 2002-07-22 Herbert Voss <voss@lyx.org>
606 * GraphicsConverter.C: get the "default converter" run again
608 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
610 * PreviewLoader.C: use BufferParams::getLyXTextClass
612 2002-07-21 Herbert Voss <voss@lyx.org>
614 * GraphicsImage.C: get the LyXAspectRatio run.
616 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
618 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
620 * PreviewLoader.C (startLoading): pass an interger as resolution
621 to the lyxpreview converter
623 * GraphicsParams.C: include <cstdlib>
625 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
627 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
628 preview converter script
630 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
632 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
635 2002-07-18 Angus Leeming <leeming@lyx.org>
637 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
639 (startMonitoring, monitoring, checksum): new methods to interact with
642 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
643 methods invoking the CacheItem methods of the same name.
644 (resetFile): if monitoring and the file changes, start monitoring this
647 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
649 * Makefile.am: remove FileMonitor.[Ch]
651 2002-06-17 Herbert Voss <voss@lyx.org>
653 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
654 for old ps-files (Garst). It's now handled by defining a converter and
655 disabling the ps-support of xforms.
657 2002-07-17 Angus Leeming <leeming@lyx.org>
659 Be true to the Pimpl idiom, moving all signals into the respective
660 Impl classes and defining methods to connect them to an outside slot.
661 Const-ify all visible class methods as they act only on a const pimpl_.
663 * GraphicsCache.[Ch] (add, remove): const-ify.
665 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
666 (statusChanged): move the signal into the Impl class.
667 (connect): new method, enabling a listener to connect to this signal.
669 * GraphicsConverter.[Ch]: (startConversion): const-ify.
670 (finishedConversion): move the signal into the Impl class.
671 (connect): new method, enabling a listener to connect to this signal.
673 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
674 (statusChanged): move the signal into the Impl class.
675 (connect): new method, enabling a listener to connect to this signal.
677 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
678 (imageReady): move the signal into the Impl class.
679 (connect): new method, enabling a listener to connect to this signal.
680 (emitSignal): new method, enabling PreviewImage to tell the outside
681 world that the file has been loaded into memory.
683 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
687 * GraphicsCacheItem.C:
688 * GraphicsConverter.[Ch]:
690 * GraphicsImageXPM.C:
692 * PreviewLoader.[Ch]: whitespace clean-up.
694 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
696 * PreviewLoader.C (setConverter): remove unused variable
698 * GraphicsImageXPM.C (isDrawable): implement
699 (setPixmap): the opaque color is black, not white
701 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
703 * GraphicsImageXPM.C (color_none_id):
704 (contains_color_none): use ascii_lowercase instead of lowercase
706 2002-07-16 Angus Leeming <leeming@lyx.org>
708 * PreviewLoader.C: greater use of STL algorithms.
710 * Previews.[Ch]: use const in more places.
711 (generateBufferPreviews): now takes a Buffer const & argument, not a
714 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
716 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
718 2002-07-12 Angus Leeming <leeming@lyx.org>
720 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
721 if visible 2 secs after the call to load them is first made.
723 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
724 BufferView to ascertain whether the inset is visible or not.
726 * Makefile.am: added GraphicsSupport.[Ch].
728 * PreviewImage.[Ch]: use this smart loader.
730 * PreviewLoader.C: don't load generated image files indiscimminantly.
731 Instead emit the imageReady signal and allow the image owner to decide.
733 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
735 * GraphicsCache.C: remove init_graphics()
737 2002-07-09 Angus Leeming <leeming@lyx.org>
739 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
740 arithmetic when it should be floating.
742 2002-07-09 Angus Leeming <leeming@lyx.org>
744 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
745 Output equation labels as "(#)" if lyxrc preference is set.
746 (setFontScalingFactor): use lyxrc variable preview_scale_factor
747 rather than hard-coding this.
749 2002-07-09 Angus Leeming <leeming@lyx.org>
751 * PreviewLoader.C: Further refactoring of the code. Should now be
754 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
755 past its sell-by date. The code to read the metrics file is now found
756 as a helper function in PreviewLoader.C.
758 * GraphicsImageXPM.C (scale): use boost::tie.
760 2002-07-08 Herbert Voss <voss@lyx.org>
762 * PreviewLoader.C: use of preview_size_factor to get the right
763 font-size! 0.9 is the default.
765 2002-07-08 Angus Leeming <leeming@lyx.org>
767 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
768 invocation of preview.sty.
769 Perform something of an internal clean-up.
771 2002-07-06 Angus Leeming <leeming@lyx.org>
773 * PreviewLoader.C: ensure that the metrics data is used by the
777 * PreviewImage.C: (Impl d-tor): remove all generated files that still
778 exist (perhaps because the process was curtailed before the images
781 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
783 2002-07-05 Angus Leeming <leeming@lyx.org>
792 * Previews.C: new files. The previewed LaTeX snippet stuff.
794 * Makefile.am: add these files.
796 2002-07-05 Angus Leeming <leeming@lyx.org>
798 * GraphicsLoader.h: whitespace.
800 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
802 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
803 boost::function from boost::signal.
805 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
807 * GraphicsConverter.C (convert): do not use ChangeExtension
808 because to_file_base may contain a dot.
810 2002-06-28 Angus Leeming <leeming@lyx.org>
812 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
813 by moving those SignalPtrs into the grfx::Image and grfx::Converter
814 classes where they really belong.
815 Use the Pimpl idiom to hide the class internals from public view.
817 * GraphicsTypes: remove the typedefs, leaving only the enums.
819 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
820 passed a reference to one in the load() method.
822 * GraphicsConverter.[Ch]: totally refactored. An instance of
823 grfx::Converter now represents a single conversion process.
824 Thus grfx::CachItem now has a grfx::Converter * that is set when the
825 conversion is initiated and destroyed on completion.
827 * GraphicsCache.[Ch]:
828 * GraphicsCacheItem.[Ch]:
829 * GraphicsConverter.[Ch]:
830 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
832 Note that I have done this only after making the above changes,
833 so not only should we have a clean, minimal and well documented
834 interface to these classes in the header files, but the class internals
835 should be much clearer too.
838 grfx::GCache -> grfx::Cache,
839 grfx::GCacheItem -> grfx::CacheItem,
840 grfx::GConverter -> grfx::Converter,
841 grfx::GImage -> grfx::Image,
842 grfx::GImageXPM -> grfx::ImageXPM,
843 grfx::GParams -> grfx::Params.
845 2002-06-26 Angus Leeming <leeming@lyx.org>
847 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
848 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
851 2002-06-26 Angus Leeming <leeming@lyx.org>
853 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
854 move the DisplayType enum out of grfx::GParams to here.
856 * GraphicsCacheItem.h: re-write preliminary description to reflect
859 * GraphicsParams.[Ch]:
860 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
861 grfx::DisplayType out of grfx::GParams.
863 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
864 that was in frontends/screen.C and insets/insetgraphics.C into a
865 single, easy-to-use class.
867 * Makefile.am: add these files.
869 2002-06-25 Angus Leeming <leeming@lyx.org>
871 * GraphicsCache.[Ch]:
872 * GraphicsCacheItem.[Ch]:
873 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
874 file into memory. The cache no longer controls the generation of the
875 pixmap. Instead, it just emits a signal when the loading status of an
877 The cache no longer stores InsetGraphics pointers and nor does it
878 assume responsibility for modifying an image (scaling, rotating etc).
879 Instead, that must now be performed elsewhere.
881 2002-06-19 Angus Leeming <leeming@lyx.org>
883 * GraphicsConverter.C: add using std::endl directive.
885 2002-06-17 Herbert Voss <voss@lyx.org>
887 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
888 default when nothing different was found
889 (convertToDisplayFormat): handle zipped files in the right way and
890 choose always convert as a default converter when no other
891 userdefined was found
893 * GraphicsConverter.C: add more lyxerr comments and choose
894 convert when no other userdefined converter was found
896 2002-06-10 Herbert Voss <voss@lyx.org>
898 * GraphicsImageXPM.C (convertTo7chars): get another special color
899 format from convert work in the right way
901 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
903 * GraphicsCache.C: use right colormap incantation
905 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
907 * GraphicsCache.C: use lyx_gui namespace
909 * GraphicsImageXPM.C: back down to using xforms
912 2002-06-07 Angus Leeming <leeming@lyx.org>
914 Fixes needed to compile with Compaq cxx 6.5.
915 * GraphicsConverter.h: forward declare class ConvProcess.
917 * GraphicsImageXPM.C:
918 all c-library variables have been moved into namespace std.
919 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
921 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
923 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
925 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
927 * GraphicsImageXPM.C: SigC to boot::signals changes.
928 (newImage): fix () bug when using new.
930 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
932 * switch from SigC signals to boost::signals.
934 2002-05-29 André Pönitz <poenitz@gmx.net>
936 * GraphicsParam.C: remove unneeded #include, move vomment
938 2002-05-28 André Pönitz <poenitz@gmx.net>
940 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
942 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
944 * GraphicsImageXPM.C: ColorHandler moved
946 2002-05-24 Juergen Vigna <jug@sad.it>
949 * GraphicsImage.h: include LString.h first.
951 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
953 * GraphicsCacheItem.h: use more specific smart_ptr header.
954 * GraphicsTypes.h: ditto
955 * GraphicsImage.h: ditto
956 * GraphicsConverter.h: ditto
958 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
960 * GraphicsImageXPM.C: understand convert's use of "opaque"
963 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
965 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
966 GImage::loadableFormats() that ensures that the signal is connected
967 to the derived class' method.
969 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
971 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
972 only work on the string.
974 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
976 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
977 the simple image loader when it encounters colour strings like
980 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
982 * GraphicsCacheItem.C (convertToDisplayFormat):
983 * GraphicsConverter.C (build_script): remove the Alerts when things go
984 wrong as the inset displays the message anyway. Moreover, Alert seems
985 pretty temperamemtal at the moment.
987 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
989 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
991 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
993 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
994 a reference to a temp object that's going out of scope...
996 2002-04-09 Herbert Voss <voss@lyx.org>
998 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
999 LyXLength::inBP instead of inPixels.
1001 2002-04-10 Herbert Voss <voss@perce.de>
1003 * GraphicsCache.[Ch]:
1004 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
1005 to read the "Bounding Box" from non (e)ps files.
1007 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
1009 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
1010 the EPS file too, to ensure that the clipped Bounding Box is relative
1011 to the original. (From Herbert.)
1013 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
1015 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
1016 variables are initialised. Clean-up parsing of the string (with thanks
1019 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
1021 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
1022 if the file can't be found.
1024 * GraphicsParams.h (c-tor): remove string() as default argument.
1026 * GraphicsCacheItem.C: a couple of changes as a result.
1028 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
1030 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
1031 path to graphics file.
1033 * GraphicsParams.[Ch] (c-tor): now passed filepath.
1035 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
1037 * most files: ws cleanup
1039 * Makefile.am: remove ld -r stuff
1041 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1043 * Makefile.am: special rules if partial linking
1045 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
1047 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
1049 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
1051 * GraphicsConverter.[Ch] (converted): make first arg const ref.
1053 * GraphicsCacheItem.h: doxy change
1055 * GraphicsCacheItem.C: ws change
1057 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
1059 * Makefile.am: if there is no image loading class leveraging the power
1060 of the appropriate gui library, then compile the basic alternative
1061 found in GraphicsImageXPM.[Ch].
1063 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
1065 * GraphicsCache.C: change associated with move of initialiseGraphics
1068 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
1070 * GraphicsParams.[Ch]:
1072 * GraphicsImageXPM.C: properly resolve more warnings about comparison
1073 between signed and unsigned integer expressions.
1075 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
1077 * GraphicsCache.C: move connections to the GImage-derived classes to
1080 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
1082 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
1083 conversion, then do that.
1085 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1087 * GraphicsCache.C: improve commentary to graphicsInit and where it
1090 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
1091 that became a memory leak properly. (Let the shared_c_ptr free the
1093 (reset, mapcolor): tidy up and introduce a work around for XPM files
1094 with crappy color entries. Print out a nice friendly message on what's
1095 gone wrong and how to resolve it properly.
1097 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1099 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
1100 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
1101 in free_color_table.
1102 (unique_color_string): use the correct string c-tor.
1104 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
1107 * ImageLoaderXPM.[Ch]: removed.
1109 * GraphicsConverter.[Ch]:
1110 * GraphicsImage.[Ch]:
1111 * GraphicsImageXPM.[Ch]:
1112 * GraphicsParams.[Ch]:
1113 * GraphicsTypes.h: new files.
1115 * All files. A total re-write of the graphics cache. The cache now
1116 supports asynchronous file conversion and file loading. Images
1117 can be cropped, rotated and scaled for display on the LyX screen.
1118 The old LyXImage and ImageLoader have been combined in a new class
1119 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1122 2002-02-07 Herbert Voss <voss@lyx.org>
1124 * GraphicsCacheItem.C: use unzipFile() from support/filetools
1126 2002-01-31 Herbert Voss <voss@lyx.org>
1128 * GraphicsCacheItem.h: handle filetype without the file extension;
1129 getting type from contents; handle zipped files
1131 2002-01-27 Herbert Voss <voss@lyx.org>
1133 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1135 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
1137 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1139 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1141 * GraphicsCacheItem.h: do not include <config.h> in header files
1143 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1145 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1146 transparent colour, then set it to the colour of the background.
1147 Also take account of the monochrome, grayscale of color
1150 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1152 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1153 are different. Thus, don't delete the "to" if it's the original!
1155 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1157 * ImageLoadXPM.C: remove setting of alloc colour mask,
1158 led to crash as we don't define a callback
1160 2001-07-29 Baruch Even <baruch@lyx.org>
1162 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1163 colors with closeness of 10000.
1165 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1167 2001-07-29 Baruch Even <baruch@lyx.org>
1169 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1172 2001-07-23 Baruch Even <baruch@lyx.org>
1174 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1175 the image after conversion.
1177 2001-07-17 Baruch Even <baruch@lyx.org>
1179 * GraphicsCacheItem.h:
1180 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1181 from synchronous to asynchronous and to ease the coming changes.
1183 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1185 * ImageLoaderXPM.C (runImageLoader): get display information from
1188 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1191 * GraphicsCacheItem.C:
1193 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1195 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1197 * GraphicsCache.h: inherit privately from noncopyable
1198 * ImageLoader.h: ditto
1199 * GraphicsCacheItem.h: ditto
1201 2001-04-16 Allan Rae <rae@lyx.org>
1203 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1204 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1207 2001-04-02 Baruch Even <baruch@lyx.org>
1209 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1210 of hard coding ImageMagick.
1212 2001-03-10 Baruch Even <baruch@lyx.org>
1214 * GraphicsCache.C: Style change from (*it).field to it->field
1216 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1218 * GraphicsCache.h: noncopyable is in namespace boost
1219 * ImageLoader.h: ditto
1220 * GraphicsCacheItem.h: ditto
1222 2001-03-07 Baruch Even <baruch@lyx.org>
1224 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1225 was false and it's not needed anyhow since the shared_ptr's in the cache
1226 will destroy everything on exit.
1228 2001-02-28 Baruch Even <baruch@ev-en.org>
1231 * GraphicsCache.C: Changed the singleton pattern implementation, the
1232 former version "leaked" in the sense that it was not deallocated at
1235 2001-02-20 Baruch Even <baruch@ev-en.org>
1237 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1238 instead of a pure pointer.
1240 * GraphicsCacheItem.[Ch]:
1241 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1242 removed the reference counting that was inside. Also fixed a bug where
1243 a temporary file wouldn't get erased.
1245 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1246 Ownership is now dropped when the caller requests the image_ pointer.
1248 2001-02-20 Baruch Even <baruch@ev-en.org>
1250 * GraphicsCache.C: Cleared up the confusion on when and how it is
1253 * GraphicsCacheItem.C: Indentation change.
1255 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1256 figure correctly when the image has been loaded successfully.
1258 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1260 * ImageLoader.C: add a "using" directive.
1262 * ImageLoader.h: remove extra comma at the end of enum; add an
1263 std:: qualifier for vector.
1265 2001-01-21 Baruch Even <baruch@ev-en.org>
1267 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1268 height in the image itself and minor cleanups.
1270 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1271 new ImageLoader class instead of the older Renderer class. This
1272 means change of responsibilities.