1 2006-02-17 Georg Baum <Georg.Baum@post.rwth-aachen.de>
3 * GraphicsCacheItem.C (findTargetFormat): fix previous fix
5 2006-01-11 Georg Baum <Georg.Baum@post.rwth-aachen.de>
7 * GraphicsCacheItem.C (convertToDisplayFormat): handle unknown
9 * GraphicsConverter.C (Impl, build_script): ditto
11 2005-11-02 Angus Leeming <leeming@lyx.org>
13 * GraphicsCacheItem.C: trivial fix to a MSVS warning.
15 2005-06-12 Angus Leeming <leeming@lyx.org>
17 * PreviewLoader.C (startLoading): quote the name of the LaTeX file
18 passed to the lyxpreview converter script.
20 2005-04-17 Angus Leeming <leeming@lyx.org>
22 * GraphicsConverter.C (c-tor): quote conversion commands correctly.
24 2005-02-15 Angus Leeming <leeming@lyx.org>
26 * GraphicsLoader.C: s/struct/class/ in definition of
27 lyx::graphics::Loader::Impl to silence MSVC warning:
28 "type name first seen using 'class' now seen using 'struct'".
30 2005-01-27 Lars Gullik Bjønnes <larsbj@gullik.net>
32 * PreviewLoader.C (Impl): use convert<> instead of atoi,strToXXX
35 * GraphicsParams.h (class Params): change angle from float to double
37 2005-01-06 Lars Gullik Bjønnes <larsbj@gullik.net>
39 * PreviewLoader.C (unique_filename): tostr -> convert
41 2005-01-04 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
43 * PreviewLoader.C: lyxrc.preview_scale_factor is a string now.
45 2004-11-25 Lars Gullik Bjønnes <larsbj@gullik.net>
47 * rename a lot of InsetOld to InsetBase
49 2004-11-20 Lars Gullik Bjønnes <larsbj@gullik.net>
51 * GraphicsCache.C: include <map> to fix compilation with boost
54 2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
56 * GraphicsCacheItem.C:
57 s/getFormatFromContents/formats.getFormatFromFile/
59 2004-10-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
61 * GraphicsCacheItem.C: s/getExtFromContents/getFormatFromContents/
62 * GraphicsImage.h (loadableFormats): correct documentation
64 2004-10-01 Angus Leeming <leeming@lyx.org>
66 * GraphicsConverter.C (move_file, build_script): protect
67 shell variables with quotes.
69 2004-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
71 * pch.h: use proper signal include
73 * GraphicsCacheItem.[Ch]: Use preferred calling of Boost.Signal
74 * GraphicsConverter.C: ditto
75 * GraphicsImage.h: ditto
76 * GraphicsLoader.[Ch]: ditto
77 * PreviewLoader.[Ch]: ditto
79 2004-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
81 * pch.h: include <boost/function.hpp> instead of
82 <boost/function/function0.hpp>
84 * GraphicsImage.C: Use preferred calling of boost::function
85 * GraphicsImage.h: ditto
87 2004-08-16 José Matos <jamatos@lyx.org>
89 * PreviewLoader.C (Impl::startLoading): remove space at end of line.
91 2004-08-15 Lars Gullik Bjønnes <larsbj@gullik.net>
95 * Makefile.am: support pch
97 2004-07-24 Lars Gullik Bjønnes <larsbj@gullik.net>
99 * PreviewLoader.C, GraphicsParams.C, GraphicsConverter.C: change
100 "support/std_sstream.h" to <sstream>
102 2004-04-19 Angus Leeming <leeming@lyx.org>
104 * Previews.[Ch] (status): new member function, replacing activated.
106 2004-04-15 Angus Leeming <leeming@lyx.org>
108 * PreviewLoader.C (startLoading): change arguments passed to the
109 preview-generation script to include the foreground and background
111 (dumpPreamble): no longer write the foreground and background
112 colours to the latex file as PostScript specials.
113 (setConverter): consider only those 'to' formats that are
114 loadable natively by the GUI library, rather than all formats
115 for which a converter exists.
116 (setAscentFractions): re-written to parse much simplified metrics
119 2004-04-13 Angus Leeming <leeming@lyx.org>
121 * PreviewLoader.C (dumpPreamble):
122 * Previews.C (generateBufferPreviews): re-enable iteration over all
125 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
127 * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
129 * PreviewLoader.C: use always a temp dir
130 * PreviewLoader.C: check successfull creation of LaTeX file
132 2004-01-31 Lars Gullik Bjønnes <larsbj@gullik.net>
134 * PreviewLoader.C (FindFirst): inherit from std::unary_function
135 and make operator() const
136 (FindSnippet): inherit from unary_function, simplify slightly.
138 2004-01-07 Lars Gullik Bjønnes <larsbj@gullik.net>
140 * GraphicsTypes.C: include <string>
142 2003-11-20 Lars Gullik Bjønnes <larsbj@gullik.net>
144 * Previews.C: include paragraph.h
145 * PreviewLoader.C: ditto
147 2003-11-05 José Matos <jamatos@lyx.org>
149 * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
150 and LatexRunParams to OutputParams.
152 2003-10-22 Angus Leeming <leeming@lyx.org>
154 * PreviewImage.C (statusChanged): always pass on the signal, not just
155 when the preview is ready for display.
157 2003-10-22 Angus Leeming <leeming@lyx.org>
159 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
160 to contain the conversion script cannot be opened.
162 2003-10-22 Angus Leeming <leeming@lyx.org>
164 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
167 2003-10-13 Angus Leeming <leeming@lyx.org>
169 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
170 Make displayTranslator a function,
172 2003-10-10 Angus Leeming <leeming@lyx.org>
174 * PreviewedInset.[Ch]: removed.
176 * Makefile.am: remove PreviewedInset.[Ch].
178 2003-10-09 Angus Leeming <leeming@lyx.org>
180 * PreviewedInset.[Ch] (previewReady): remove the side effects.
181 Now simply reports whether the preview is ready.
183 2003-10-09 Angus Leeming <leeming@lyx.org>
185 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
186 Remove the inset and view member functions.
187 Add a new connect member function and preview_ready_signal_ member
188 variable, to enable the class to tell an arbirary connectee that the
191 2003-10-09 Angus Leeming <leeming@lyx.org>
193 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
194 are now passed a 'Buffer const &', eliminating most of the remaining
195 need for PreviewedInset to use a BufferView cache.
197 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
200 * PreviewImage.h: add <string> and other small fixes to make
201 Lars' std::string patch compile with STLport.
203 2003-09-29 Angus Leeming <leeming@lyx.org>
205 * GraphicsParams.[Ch] (asString): removed. Replaced with
206 operator<<(std::ostream &, BoundingBox const &).
208 2003-09-25 Angus Leeming <leeming@lyx.org>
210 * GraphicsParams.[Ch] (asString): new member function.
212 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
214 * Previews.C (Previews): fix new bug
216 * GraphicsCache.C (Cache): fix new bug
218 2003-09-19 Angus Leeming <leeming@lyx.org>
220 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
221 a 'Buffer const &' argument.
223 2003-09-18 Angus Leeming <leeming@lyx.org>
225 * PreviewedInset.C (latexString): add a Buffer const & arg.
226 * PreviewedInset.C (addPreview): pass the buffer to latexString.
228 2003-09-16 Angus Leeming <leeming@lyx.org>
230 * PreviewedInset.[Ch] (c-tor) move out of line.
231 (d-tor): make private.
232 (inset): return a const reference rather than a non-const pointer.
234 2003-09-16 Angus Leeming <leeming@lyx.org>
236 * GraphicsImage.h: separate interface from implementation. Make all the
237 pure virtual functions private.
239 2003-09-16 Angus Leeming <leeming@lyx.org>
241 * PreviewLoader.C: add #include "LColor.h".
243 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
245 * GraphicsConverter.C
246 * PreviewLoader.C: remove usage of STRCONV
248 2003-09-14 Angus Leeming <leeming@lyx.org>
250 * PreviewLoader.C (remove): consider all InProgressProcesses when
251 ascertaining which ones to remove from the list, not every other one.
253 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
255 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
258 2003-09-08 Angus Leeming <leeming@lyx.org>
262 * PreviewLoader.C: remove redundant using directives.
264 2003-09-07 Angus Leeming <leeming@lyx.org>
267 * Previews.h: remove #include "support/std_string.h".
269 2003-09-06 Angus Leeming <leeming@lyx.org>
271 * PreviewedInset.C: add #include "insets/inset.h"
273 2003-09-05 Angus Leeming <leeming@lyx.org>
275 * *.C: strip out redundant #includes. (26 in total.)
277 2003-09-04 Angus Leeming <leeming@lyx.org>
279 * LoaderQueue.C (get):
281 2003-09-04 Angus Leeming <leeming@lyx.org>
284 * GraphicsCacheItem.C:
285 * GraphicsConverter.C:
289 * Previews.C: 'namespace support = lyx::support' rather than
290 'using lyx::support'.
292 * Previews.h: cleaned up some comments.
294 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
296 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
298 * GraphicsTypes.h: do not declare displayTranstor here (and remove
301 2003-07-27 José Matos <jamatos@fep.up.pt>
303 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
306 2003-07-21 Angus Leeming <leeming@lyx.org>
309 * GraphicsCacheItem.[Ch]:
312 * PreviewedInset.[Ch]:
313 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
315 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
317 * Change namespace grfx to lyx::graphics.
319 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
321 * introcude namespace lyx::support
323 2003-06-04 Angus Leeming <leeming@lyx.org>
325 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
326 (operator=): if it has a copy c-tor, it should have this too.
328 2003-06-03 Angus Leeming <leeming@lyx.org>
330 * GraphicsLoader.[Ch] (Loader): add copy constructor.
332 2003-05-23 Angus Leeming <leeming@lyx.org>
334 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
336 2003-05-22 Angus Leeming <leeming@lyx.org>
338 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
339 the inset::latex method.
341 2003-05-22 Angus Leeming <leeming@lyx.org>
343 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
344 the inset::latex method.
346 2003-05-22 Angus Leeming <leeming@lyx.org>
348 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
349 makeLaTeXFile is now encapsulated within runparams.
351 2003-05-22 Angus Leeming <leeming@lyx.org>
353 * PreviewLoader.C (dumpPreamble):
354 pass around a LatexRunParams parameter.
356 2003-05-13 André Pönitz <poenitz@gmx.net>
358 * GraphicsConverter.C:
359 * PreviewLoader.C: use tostr from own header
361 2003-05-12 André Pönitz <poenitz@gmx.net>
363 * PreviewLoader.C: boost::format -> bformat
365 2003-04-15 Angus Leeming <leeming@lyx.org>
367 * GraphicsConverter.C: #include lstrings.h.
369 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
371 * GraphicsConverter.C
372 * PreviewLoader.C: added #include "format.h"
374 2003-02-26 Angus Leeming <leeming@lyx.org>
376 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
377 use the cache of the parent inset instead.
379 * PreviewLoader.C (startLoading): Prevent a crash if the user is
380 not using a tmp directory.
382 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
384 * GraphicsLoader.[Ch],
386 * PreviewedInset.C: Removed unneeded list of owner insets
388 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
390 * GraphicsConverter (startConversion): add the call to
393 * GraphicsLoader.[Ch],
395 * PreviewedInset.C: Removed unneeded BufferView
397 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
399 * LoaderQueue.[Ch]: a simplification of the code, eliminated
400 the unneeded input bucket.
402 * GraphicsCacheItem.C (imageConverted): move warning inside the
405 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
407 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
409 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
411 * LoaderQueue.[Ch] (setPriority): added
413 * PreviewLoader.C (finishedGenerating): reversed the loading order so
414 first images get 'touched' last, and so load first.
416 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
418 * LoaderQueue.[Ch]: added. Implements a service queue that loads
420 * GraphicsSupport.[Ch]: removed
421 * Makefile.am: the changes above
422 * GraphicsLoader.C: use the loading queue
424 2003-01-21 Angus Leeming <leeming@lyx.org>
426 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
427 previews from being generated.
429 2003-01-13 Angus Leeming <leeming@lyx.org>
431 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
432 format to be PPM not XPM.
434 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
436 * Makefile.am (EXTRA_DIST): remove variable
438 2002-12-13 Angus Leeming <leeming@lyx.org>
440 * GraphicsImageXPM.[Ch]: removed.
442 * Makefile.am: associated change.
444 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
446 * several files: ws changes
448 2002-11-21 Angus Leeming <leeming@lyx.org>
450 * GraphicsConverter.C (build_script, move_file):
451 Don't use "if [ $? -ne 0 ]; then..."
453 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
455 * PreviewLoader.C (IncrementedFileName): STRCONV
456 (startLoading): ditto
458 * GraphicsConverter.C (Impl): STRCONV
461 * GraphicsTypes.C: include config.h
463 2002-10-25 Angus Leeming <leeming@lyx.org>
465 * GraphicsConverter.C (Impl::converted)
466 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
467 string as first arg, reflecting change in ForkedCall interface.
469 * PreviewLoader.C: use pid rather than command as identifier in
472 2002-10-18 Angus Leeming <leeming@lyx.org>
474 * GraphicsCacheItem.C (findTargetFormat): add debug message.
476 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
478 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
480 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
482 * GraphicsConverter.C (build_script): do not use ChangeExtension
486 2002-09-05 Angus Leeming <leeming@lyx.org>
488 * all files: modify the headers as discussed on the list.
490 2002-09-04 Angus Leeming <leeming@lyx.org>
492 * PreviewLoader.C (startLoading): pass the desired output format to the
495 2002-09-04 Angus Leeming <leeming@lyx.org>
497 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
499 2002-09-03 Angus Leeming <leeming@lyx.org>
501 * PreviewLoader.C: fix crash reported by Norbert Koksch when
502 generating more than 999 preview snippets. Use filenames with 5 digit
503 numbers, not 3, in the first instance, although more general code is
504 commented out. I don't suppose /anyone/ has 100000 formulae in one
507 2002-09-03 Angus Leeming <leeming@lyx.org>
509 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
511 2002-09-03 Angus Leeming <leeming@lyx.org>
513 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
515 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
517 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
518 convertDefault command with "sh ".
520 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
522 * GraphicsImage.C: small style fix to width/height setting.
524 * GraphicsTypes.h: have a displayTranslator here.
527 * GraphicsTypes.C: new file added for the setDisplayTranslator();
529 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
532 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
533 because this input has gone from the graphics dialog.
535 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
537 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
539 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
540 for support/smart_ptr.h, switch to boost smart ptr.
542 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
543 (~Data): let the smart_ptr handle cleanup
544 (reset): use nifty 3rd arg
546 (free_color_table): free the table manually
548 2002-08-09 Angus Leeming <leeming@lyx.org>
550 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
551 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
552 input@path is now set correctly.
554 2002-08-06 Angus Leeming <leeming@lyx.org>
556 * PreviewLoader.C: add support for preview.sty 0.73 (currently
557 #ifdef-ed out, awaiting the formal release).
559 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
560 the contents of a file that has changed.
562 2002-08-05 Angus Leeming <leeming@lyx.org>
564 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
565 to preview.sty. Works only for versions of preview.sty > 0.72b but
566 doesn't hurt earlier versions. Allows me to test the new parsing of
567 LyX-specific data from the generated log file.
569 2002-08-02 Angus Leeming <leeming@lyx.org>
571 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
573 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
574 (add): don't add empty snippets.
576 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
577 (view, setView): access to to the cache_.
579 2002-08-02 Angus Leeming <leeming@lyx.org>
581 * PreviewedInset.[Ch]: cache the LaTeX snippet.
583 2002-08-01 Angus Leeming <leeming@lyx.org>
585 * PreviewedInset.[Ch]: new files. An abstract base class that can help
586 insets to generate previews.
587 The daughter class must instantiate three small methods.
588 The Inset would own an instance of this daughter class and invoke it
589 as necessary. For example, mathd/formula.C gets previews at the cost
590 of 15 or so lines of code.
592 * Makefile.am: add PreviewedInset.[Ch].
594 * PreviewLoader.C (add): add debug message.
596 * Previews.C (generateBufferPreviews): remove if-block from loop.
598 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
600 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
602 (setAscentFractions): ditto
604 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
606 * PreviewLoader.C (setAscentFractions): modify because of strip
609 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
611 * GraphicsConverter.C (build_script): take a ostream as a more
612 general argument than ostringstream.
614 2002-07-22 Herbert Voss <voss@lyx.org>
616 * GraphicsConverter.C: get the "default converter" run again
618 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
620 * PreviewLoader.C: use BufferParams::getLyXTextClass
622 2002-07-21 Herbert Voss <voss@lyx.org>
624 * GraphicsImage.C: get the LyXAspectRatio run.
626 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
628 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
630 * PreviewLoader.C (startLoading): pass an interger as resolution
631 to the lyxpreview converter
633 * GraphicsParams.C: include <cstdlib>
635 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
637 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
638 preview converter script
640 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
642 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
645 2002-07-18 Angus Leeming <leeming@lyx.org>
647 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
649 (startMonitoring, monitoring, checksum): new methods to interact with
652 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
653 methods invoking the CacheItem methods of the same name.
654 (resetFile): if monitoring and the file changes, start monitoring this
657 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
659 * Makefile.am: remove FileMonitor.[Ch]
661 2002-06-17 Herbert Voss <voss@lyx.org>
663 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
664 for old ps-files (Garst). It's now handled by defining a converter and
665 disabling the ps-support of xforms.
667 2002-07-17 Angus Leeming <leeming@lyx.org>
669 Be true to the Pimpl idiom, moving all signals into the respective
670 Impl classes and defining methods to connect them to an outside slot.
671 Const-ify all visible class methods as they act only on a const pimpl_.
673 * GraphicsCache.[Ch] (add, remove): const-ify.
675 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
676 (statusChanged): move the signal into the Impl class.
677 (connect): new method, enabling a listener to connect to this signal.
679 * GraphicsConverter.[Ch]: (startConversion): const-ify.
680 (finishedConversion): move the signal into the Impl class.
681 (connect): new method, enabling a listener to connect to this signal.
683 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
684 (statusChanged): move the signal into the Impl class.
685 (connect): new method, enabling a listener to connect to this signal.
687 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
688 (imageReady): move the signal into the Impl class.
689 (connect): new method, enabling a listener to connect to this signal.
690 (emitSignal): new method, enabling PreviewImage to tell the outside
691 world that the file has been loaded into memory.
693 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
697 * GraphicsCacheItem.C:
698 * GraphicsConverter.[Ch]:
700 * GraphicsImageXPM.C:
702 * PreviewLoader.[Ch]: whitespace clean-up.
704 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
706 * PreviewLoader.C (setConverter): remove unused variable
708 * GraphicsImageXPM.C (isDrawable): implement
709 (setPixmap): the opaque color is black, not white
711 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
713 * GraphicsImageXPM.C (color_none_id):
714 (contains_color_none): use ascii_lowercase instead of lowercase
716 2002-07-16 Angus Leeming <leeming@lyx.org>
718 * PreviewLoader.C: greater use of STL algorithms.
720 * Previews.[Ch]: use const in more places.
721 (generateBufferPreviews): now takes a Buffer const & argument, not a
724 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
726 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
728 2002-07-12 Angus Leeming <leeming@lyx.org>
730 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
731 if visible 2 secs after the call to load them is first made.
733 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
734 BufferView to ascertain whether the inset is visible or not.
736 * Makefile.am: added GraphicsSupport.[Ch].
738 * PreviewImage.[Ch]: use this smart loader.
740 * PreviewLoader.C: don't load generated image files indiscimminantly.
741 Instead emit the imageReady signal and allow the image owner to decide.
743 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
745 * GraphicsCache.C: remove init_graphics()
747 2002-07-09 Angus Leeming <leeming@lyx.org>
749 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
750 arithmetic when it should be floating.
752 2002-07-09 Angus Leeming <leeming@lyx.org>
754 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
755 Output equation labels as "(#)" if lyxrc preference is set.
756 (setFontScalingFactor): use lyxrc variable preview_scale_factor
757 rather than hard-coding this.
759 2002-07-09 Angus Leeming <leeming@lyx.org>
761 * PreviewLoader.C: Further refactoring of the code. Should now be
764 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
765 past its sell-by date. The code to read the metrics file is now found
766 as a helper function in PreviewLoader.C.
768 * GraphicsImageXPM.C (scale): use boost::tie.
770 2002-07-08 Herbert Voss <voss@lyx.org>
772 * PreviewLoader.C: use of preview_size_factor to get the right
773 font-size! 0.9 is the default.
775 2002-07-08 Angus Leeming <leeming@lyx.org>
777 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
778 invocation of preview.sty.
779 Perform something of an internal clean-up.
781 2002-07-06 Angus Leeming <leeming@lyx.org>
783 * PreviewLoader.C: ensure that the metrics data is used by the
787 * PreviewImage.C: (Impl d-tor): remove all generated files that still
788 exist (perhaps because the process was curtailed before the images
791 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
793 2002-07-05 Angus Leeming <leeming@lyx.org>
802 * Previews.C: new files. The previewed LaTeX snippet stuff.
804 * Makefile.am: add these files.
806 2002-07-05 Angus Leeming <leeming@lyx.org>
808 * GraphicsLoader.h: whitespace.
810 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
812 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
813 boost::function from boost::signal.
815 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
817 * GraphicsConverter.C (convert): do not use ChangeExtension
818 because to_file_base may contain a dot.
820 2002-06-28 Angus Leeming <leeming@lyx.org>
822 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
823 by moving those SignalPtrs into the grfx::Image and grfx::Converter
824 classes where they really belong.
825 Use the Pimpl idiom to hide the class internals from public view.
827 * GraphicsTypes: remove the typedefs, leaving only the enums.
829 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
830 passed a reference to one in the load() method.
832 * GraphicsConverter.[Ch]: totally refactored. An instance of
833 grfx::Converter now represents a single conversion process.
834 Thus grfx::CachItem now has a grfx::Converter * that is set when the
835 conversion is initiated and destroyed on completion.
837 * GraphicsCache.[Ch]:
838 * GraphicsCacheItem.[Ch]:
839 * GraphicsConverter.[Ch]:
840 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
842 Note that I have done this only after making the above changes,
843 so not only should we have a clean, minimal and well documented
844 interface to these classes in the header files, but the class internals
845 should be much clearer too.
848 grfx::GCache -> grfx::Cache,
849 grfx::GCacheItem -> grfx::CacheItem,
850 grfx::GConverter -> grfx::Converter,
851 grfx::GImage -> grfx::Image,
852 grfx::GImageXPM -> grfx::ImageXPM,
853 grfx::GParams -> grfx::Params.
855 2002-06-26 Angus Leeming <leeming@lyx.org>
857 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
858 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
861 2002-06-26 Angus Leeming <leeming@lyx.org>
863 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
864 move the DisplayType enum out of grfx::GParams to here.
866 * GraphicsCacheItem.h: re-write preliminary description to reflect
869 * GraphicsParams.[Ch]:
870 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
871 grfx::DisplayType out of grfx::GParams.
873 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
874 that was in frontends/screen.C and insets/insetgraphics.C into a
875 single, easy-to-use class.
877 * Makefile.am: add these files.
879 2002-06-25 Angus Leeming <leeming@lyx.org>
881 * GraphicsCache.[Ch]:
882 * GraphicsCacheItem.[Ch]:
883 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
884 file into memory. The cache no longer controls the generation of the
885 pixmap. Instead, it just emits a signal when the loading status of an
887 The cache no longer stores InsetGraphics pointers and nor does it
888 assume responsibility for modifying an image (scaling, rotating etc).
889 Instead, that must now be performed elsewhere.
891 2002-06-19 Angus Leeming <leeming@lyx.org>
893 * GraphicsConverter.C: add using std::endl directive.
895 2002-06-17 Herbert Voss <voss@lyx.org>
897 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
898 default when nothing different was found
899 (convertToDisplayFormat): handle zipped files in the right way and
900 choose always convert as a default converter when no other
901 userdefined was found
903 * GraphicsConverter.C: add more lyxerr comments and choose
904 convert when no other userdefined converter was found
906 2002-06-10 Herbert Voss <voss@lyx.org>
908 * GraphicsImageXPM.C (convertTo7chars): get another special color
909 format from convert work in the right way
911 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
913 * GraphicsCache.C: use right colormap incantation
915 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
917 * GraphicsCache.C: use lyx_gui namespace
919 * GraphicsImageXPM.C: back down to using xforms
922 2002-06-07 Angus Leeming <leeming@lyx.org>
924 Fixes needed to compile with Compaq cxx 6.5.
925 * GraphicsConverter.h: forward declare class ConvProcess.
927 * GraphicsImageXPM.C:
928 all c-library variables have been moved into namespace std.
929 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
931 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
933 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
935 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
937 * GraphicsImageXPM.C: SigC to boot::signals changes.
938 (newImage): fix () bug when using new.
940 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
942 * switch from SigC signals to boost::signals.
944 2002-05-29 André Pönitz <poenitz@gmx.net>
946 * GraphicsParam.C: remove unneeded #include, move vomment
948 2002-05-28 André Pönitz <poenitz@gmx.net>
950 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
952 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
954 * GraphicsImageXPM.C: ColorHandler moved
956 2002-05-24 Juergen Vigna <jug@sad.it>
959 * GraphicsImage.h: include LString.h first.
961 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
963 * GraphicsCacheItem.h: use more specific smart_ptr header.
964 * GraphicsTypes.h: ditto
965 * GraphicsImage.h: ditto
966 * GraphicsConverter.h: ditto
968 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
970 * GraphicsImageXPM.C: understand convert's use of "opaque"
973 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
975 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
976 GImage::loadableFormats() that ensures that the signal is connected
977 to the derived class' method.
979 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
981 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
982 only work on the string.
984 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
986 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
987 the simple image loader when it encounters colour strings like
990 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
992 * GraphicsCacheItem.C (convertToDisplayFormat):
993 * GraphicsConverter.C (build_script): remove the Alerts when things go
994 wrong as the inset displays the message anyway. Moreover, Alert seems
995 pretty temperamemtal at the moment.
997 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
999 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
1001 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
1003 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
1004 a reference to a temp object that's going out of scope...
1006 2002-04-09 Herbert Voss <voss@lyx.org>
1008 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
1009 LyXLength::inBP instead of inPixels.
1011 2002-04-10 Herbert Voss <voss@perce.de>
1013 * GraphicsCache.[Ch]:
1014 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
1015 to read the "Bounding Box" from non (e)ps files.
1017 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
1019 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
1020 the EPS file too, to ensure that the clipped Bounding Box is relative
1021 to the original. (From Herbert.)
1023 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
1025 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
1026 variables are initialised. Clean-up parsing of the string (with thanks
1029 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
1031 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
1032 if the file can't be found.
1034 * GraphicsParams.h (c-tor): remove string() as default argument.
1036 * GraphicsCacheItem.C: a couple of changes as a result.
1038 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
1040 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
1041 path to graphics file.
1043 * GraphicsParams.[Ch] (c-tor): now passed filepath.
1045 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
1047 * most files: ws cleanup
1049 * Makefile.am: remove ld -r stuff
1051 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
1053 * Makefile.am: special rules if partial linking
1055 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
1057 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
1059 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
1061 * GraphicsConverter.[Ch] (converted): make first arg const ref.
1063 * GraphicsCacheItem.h: doxy change
1065 * GraphicsCacheItem.C: ws change
1067 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
1069 * Makefile.am: if there is no image loading class leveraging the power
1070 of the appropriate gui library, then compile the basic alternative
1071 found in GraphicsImageXPM.[Ch].
1073 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
1075 * GraphicsCache.C: change associated with move of initialiseGraphics
1078 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
1080 * GraphicsParams.[Ch]:
1082 * GraphicsImageXPM.C: properly resolve more warnings about comparison
1083 between signed and unsigned integer expressions.
1085 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
1087 * GraphicsCache.C: move connections to the GImage-derived classes to
1090 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
1092 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
1093 conversion, then do that.
1095 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1097 * GraphicsCache.C: improve commentary to graphicsInit and where it
1100 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
1101 that became a memory leak properly. (Let the shared_c_ptr free the
1103 (reset, mapcolor): tidy up and introduce a work around for XPM files
1104 with crappy color entries. Print out a nice friendly message on what's
1105 gone wrong and how to resolve it properly.
1107 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1109 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
1110 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
1111 in free_color_table.
1112 (unique_color_string): use the correct string c-tor.
1114 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
1117 * ImageLoaderXPM.[Ch]: removed.
1119 * GraphicsConverter.[Ch]:
1120 * GraphicsImage.[Ch]:
1121 * GraphicsImageXPM.[Ch]:
1122 * GraphicsParams.[Ch]:
1123 * GraphicsTypes.h: new files.
1125 * All files. A total re-write of the graphics cache. The cache now
1126 supports asynchronous file conversion and file loading. Images
1127 can be cropped, rotated and scaled for display on the LyX screen.
1128 The old LyXImage and ImageLoader have been combined in a new class
1129 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1132 2002-02-07 Herbert Voss <voss@lyx.org>
1134 * GraphicsCacheItem.C: use unzipFile() from support/filetools
1136 2002-01-31 Herbert Voss <voss@lyx.org>
1138 * GraphicsCacheItem.h: handle filetype without the file extension;
1139 getting type from contents; handle zipped files
1141 2002-01-27 Herbert Voss <voss@lyx.org>
1143 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1145 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
1147 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1149 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1151 * GraphicsCacheItem.h: do not include <config.h> in header files
1153 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1155 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1156 transparent colour, then set it to the colour of the background.
1157 Also take account of the monochrome, grayscale of color
1160 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1162 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1163 are different. Thus, don't delete the "to" if it's the original!
1165 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1167 * ImageLoadXPM.C: remove setting of alloc colour mask,
1168 led to crash as we don't define a callback
1170 2001-07-29 Baruch Even <baruch@lyx.org>
1172 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1173 colors with closeness of 10000.
1175 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1177 2001-07-29 Baruch Even <baruch@lyx.org>
1179 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1182 2001-07-23 Baruch Even <baruch@lyx.org>
1184 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1185 the image after conversion.
1187 2001-07-17 Baruch Even <baruch@lyx.org>
1189 * GraphicsCacheItem.h:
1190 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1191 from synchronous to asynchronous and to ease the coming changes.
1193 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1195 * ImageLoaderXPM.C (runImageLoader): get display information from
1198 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1201 * GraphicsCacheItem.C:
1203 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1205 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1207 * GraphicsCache.h: inherit privately from noncopyable
1208 * ImageLoader.h: ditto
1209 * GraphicsCacheItem.h: ditto
1211 2001-04-16 Allan Rae <rae@lyx.org>
1213 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1214 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1217 2001-04-02 Baruch Even <baruch@lyx.org>
1219 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1220 of hard coding ImageMagick.
1222 2001-03-10 Baruch Even <baruch@lyx.org>
1224 * GraphicsCache.C: Style change from (*it).field to it->field
1226 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1228 * GraphicsCache.h: noncopyable is in namespace boost
1229 * ImageLoader.h: ditto
1230 * GraphicsCacheItem.h: ditto
1232 2001-03-07 Baruch Even <baruch@lyx.org>
1234 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1235 was false and it's not needed anyhow since the shared_ptr's in the cache
1236 will destroy everything on exit.
1238 2001-02-28 Baruch Even <baruch@ev-en.org>
1241 * GraphicsCache.C: Changed the singleton pattern implementation, the
1242 former version "leaked" in the sense that it was not deallocated at
1245 2001-02-20 Baruch Even <baruch@ev-en.org>
1247 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1248 instead of a pure pointer.
1250 * GraphicsCacheItem.[Ch]:
1251 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1252 removed the reference counting that was inside. Also fixed a bug where
1253 a temporary file wouldn't get erased.
1255 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1256 Ownership is now dropped when the caller requests the image_ pointer.
1258 2001-02-20 Baruch Even <baruch@ev-en.org>
1260 * GraphicsCache.C: Cleared up the confusion on when and how it is
1263 * GraphicsCacheItem.C: Indentation change.
1265 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1266 figure correctly when the image has been loaded successfully.
1268 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1270 * ImageLoader.C: add a "using" directive.
1272 * ImageLoader.h: remove extra comma at the end of enum; add an
1273 std:: qualifier for vector.
1275 2001-01-21 Baruch Even <baruch@ev-en.org>
1277 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1278 height in the image itself and minor cleanups.
1280 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1281 new ImageLoader class instead of the older Renderer class. This
1282 means change of responsibilities.