]> git.lyx.org Git - lyx.git/blob - src/graphics/ChangeLog
Fix #1736
[lyx.git] / src / graphics / ChangeLog
1 2004-10-29  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
2
3         * GraphicsCacheItem.C: s/getExtFromContents/getFormatFromContents/
4         * GraphicsImage.h (loadableFormats): correct documentation
5
6 2004-10-01  Angus Leeming  <leeming@lyx.org>
7
8         * GraphicsConverter.C (move_file, build_script): protect
9         shell variables with quotes.
10
11 2004-09-26  Lars Gullik Bjonnes  <larsbj@gullik.net>
12
13         * pch.h: use proper signal include
14
15         * GraphicsCacheItem.[Ch]: Use preferred calling of Boost.Signal
16         * GraphicsConverter.C: ditto
17         * GraphicsImage.h: ditto
18         * GraphicsLoader.[Ch]: ditto
19         * PreviewLoader.[Ch]: ditto
20
21 2004-09-26  Lars Gullik Bjonnes  <larsbj@gullik.net>
22
23         * pch.h: include <boost/function.hpp> instead of
24         <boost/function/function0.hpp>
25
26         * GraphicsImage.C: Use preferred calling of boost::function
27         * GraphicsImage.h: ditto
28
29 2004-08-16  José Matos  <jamatos@lyx.org>
30
31         * PreviewLoader.C (Impl::startLoading): remove space at end of line.
32
33 2004-08-15  Lars Gullik Bjonnes  <larsbj@gullik.net>
34
35         * pch.h: new file
36
37         * Makefile.am: support pch
38
39 2004-07-24  Lars Gullik Bjonnes  <larsbj@gullik.net>
40
41         * PreviewLoader.C, GraphicsParams.C, GraphicsConverter.C: change
42         "support/std_sstream.h" to <sstream>
43
44 2004-04-19  Angus Leeming  <leeming@lyx.org>
45
46         * Previews.[Ch] (status): new member function, replacing activated.
47
48 2004-04-15  Angus Leeming  <leeming@lyx.org>
49
50         * PreviewLoader.C (startLoading): change arguments passed to the
51         preview-generation script to include the foreground and background
52         colours.
53         (dumpPreamble): no longer write the foreground and background
54         colours to the latex file as PostScript specials.
55         (setConverter): consider only those 'to' formats that are
56         loadable natively by the GUI library, rather than all formats
57         for which a converter exists.
58         (setAscentFractions): re-written to parse much simplified metrics
59         file.
60
61 2004-04-13  Angus Leeming  <leeming@lyx.org>
62
63         * PreviewLoader.C (dumpPreamble):
64         * Previews.C (generateBufferPreviews): re-enable iteration over all
65         insets.
66
67 2004-02-21  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
68
69         * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
70         to a temporary file
71         * PreviewLoader.C: use always a temp dir
72         * PreviewLoader.C: check successfull creation of LaTeX file
73
74 2004-01-31  Lars Gullik Bjonnes  <larsbj@gullik.net>
75
76         * PreviewLoader.C (FindFirst): inherit from std::unary_function
77         and make operator() const
78         (FindSnippet): inherit from unary_function, simplify slightly.
79
80 2004-01-07  Lars Gullik Bjonnes  <larsbj@gullik.net>
81
82         * GraphicsTypes.C: include <string>
83
84 2003-11-20  Lars Gullik Bjonnes  <larsbj@gullik.net>
85
86         * Previews.C: include paragraph.h
87         * PreviewLoader.C: ditto
88
89 2003-11-05  José Matos  <jamatos@lyx.org>
90
91         * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
92         and LatexRunParams to OutputParams.
93
94 2003-10-22  Angus Leeming  <leeming@lyx.org>
95
96         * PreviewImage.C (statusChanged): always pass on the signal, not just
97         when the preview is ready for display.
98
99 2003-10-22  Angus Leeming  <leeming@lyx.org>
100
101         * GraphicsConverter.C (Impl c-tor): add a warning message if the file
102         to contain the conversion script cannot be opened.
103
104 2003-10-22  Angus Leeming  <leeming@lyx.org>
105
106         * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
107         loaded.
108
109 2003-10-13  Angus Leeming  <leeming@lyx.org>
110
111         * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
112         Make displayTranslator a function,
113
114 2003-10-10  Angus Leeming  <leeming@lyx.org>
115
116         * PreviewedInset.[Ch]: removed.
117
118         * Makefile.am: remove PreviewedInset.[Ch].
119
120 2003-10-09  Angus Leeming  <leeming@lyx.org>
121
122         * PreviewedInset.[Ch] (previewReady): remove the side effects.
123         Now simply reports whether the preview is ready.
124
125 2003-10-09  Angus Leeming  <leeming@lyx.org>
126
127         * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
128         Remove the inset and view member functions.
129         Add a new connect member function and preview_ready_signal_ member
130         variable, to enable the class to tell an arbirary connectee that the
131         preview is ready.
132
133 2003-10-09  Angus Leeming  <leeming@lyx.org>
134
135         * PreviewedInset.[Ch] (removePreview, previewReady): these functions
136         are now passed a 'Buffer const &', eliminating most of the remaining
137         need for PreviewedInset to use a BufferView cache.
138
139 2003-10-07  Martin Vermeer  <martin.vermeer@hut.fi>
140
141         * GraphicsCache.h:
142         * PreviewImage.h: add <string> and other small fixes to make
143         Lars' std::string patch compile with STLport.
144
145 2003-09-29  Angus Leeming  <leeming@lyx.org>
146
147         * GraphicsParams.[Ch] (asString): removed. Replaced with
148         operator<<(std::ostream &, BoundingBox const &).
149
150 2003-09-25  Angus Leeming  <leeming@lyx.org>
151
152         * GraphicsParams.[Ch] (asString): new member function.
153
154 2003-09-21  Lars Gullik Bjønnes  <larsbj@gullik.net>
155
156         * Previews.C (Previews): fix new bug
157
158         * GraphicsCache.C (Cache): fix new bug
159
160 2003-09-19  Angus Leeming  <leeming@lyx.org>
161
162         * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
163         a 'Buffer const &' argument.
164
165 2003-09-18  Angus Leeming  <leeming@lyx.org>
166
167         * PreviewedInset.C (latexString): add a Buffer const & arg.
168         * PreviewedInset.C (addPreview): pass the buffer to latexString.
169
170 2003-09-16  Angus Leeming  <leeming@lyx.org>
171
172         * PreviewedInset.[Ch] (c-tor) move out of line.
173         (d-tor): make private.
174         (inset): return a const reference rather than a non-const pointer.
175
176 2003-09-16  Angus Leeming  <leeming@lyx.org>
177
178         * GraphicsImage.h: separate interface from implementation. Make all the
179         pure virtual functions private.
180
181 2003-09-16  Angus Leeming  <leeming@lyx.org>
182
183         * PreviewLoader.C: add #include "LColor.h".
184
185 2003-09-15  Lars Gullik Bjønnes  <larsbj@gullik.net>
186
187         * GraphicsConverter.C
188         * PreviewLoader.C: remove usage of STRCONV
189
190 2003-09-14  Angus Leeming  <leeming@lyx.org>
191
192         * PreviewLoader.C (remove): consider all InProgressProcesses when
193         ascertaining which ones to remove from the list, not every other one.
194
195 2003-09-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
196
197         * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
198         * Previews.C: ditto
199
200 2003-09-08  Angus Leeming  <leeming@lyx.org>
201
202         * GraphicsImage.C:
203         * GraphicsParams.C:
204         * PreviewLoader.C: remove redundant using directives.
205
206 2003-09-07  Angus Leeming  <leeming@lyx.org>
207
208         * GraphicsTypes.h:
209         * Previews.h: remove #include "support/std_string.h".
210
211 2003-09-06  Angus Leeming  <leeming@lyx.org>
212
213         * PreviewedInset.C: add #include "insets/inset.h"
214
215 2003-09-05  Angus Leeming  <leeming@lyx.org>
216
217         * *.C: strip out redundant #includes. (26 in total.)
218
219 2003-09-04  Angus Leeming  <leeming@lyx.org>
220
221         * LoaderQueue.C (get):
222
223 2003-09-04  Angus Leeming  <leeming@lyx.org>
224
225         * GraphicsCache.C:
226         * GraphicsCacheItem.C:
227         * GraphicsConverter.C:
228         * PreviewImage.C:
229         * PreviewLoader.C:
230         * PreviewedInset.C:
231         * Previews.C: 'namespace support = lyx::support' rather than
232         'using lyx::support'.
233
234         * Previews.h: cleaned up some comments.
235
236         * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
237
238 2003-07-26  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
239
240         * GraphicsTypes.h: do not declare displayTranstor here (and remove
241         extra include)
242
243 2003-07-27  José Matos  <jamatos@fep.up.pt>
244
245         * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
246         argument change.
247
248 2003-07-21  Angus Leeming  <leeming@lyx.org>
249
250         * GraphicsCache.h:
251         * GraphicsCacheItem.[Ch]:
252         * GraphicsParams.h:
253         * PreviewLoader.h:
254         * PreviewedInset.[Ch]:
255         * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
256
257 2003-07-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
258
259         * Change namespace grfx to lyx::graphics.
260
261 2003-07-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
262
263         * introcude namespace lyx::support
264
265 2003-06-04  Angus Leeming  <leeming@lyx.org>
266
267         * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
268         (operator=): if it has a copy c-tor, it should have this too.
269
270 2003-06-03  Angus Leeming  <leeming@lyx.org>
271
272         * GraphicsLoader.[Ch] (Loader): add copy constructor.
273
274 2003-05-23  Angus Leeming  <leeming@lyx.org>
275
276         * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
277
278 2003-05-22  Angus Leeming  <leeming@lyx.org>
279
280         * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
281         the inset::latex method.
282
283 2003-05-22  Angus Leeming  <leeming@lyx.org>
284
285         * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
286         the inset::latex method.
287
288 2003-05-22  Angus Leeming  <leeming@lyx.org>
289
290         * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
291         makeLaTeXFile is now encapsulated within runparams.
292
293 2003-05-22  Angus Leeming  <leeming@lyx.org>
294
295         * PreviewLoader.C (dumpPreamble):
296         pass around a LatexRunParams parameter.
297
298 2003-05-13 André Pönitz <poenitz@gmx.net>
299
300         * GraphicsConverter.C:
301         * PreviewLoader.C: use tostr from own header
302
303 2003-05-12 André Pönitz <poenitz@gmx.net>
304
305         * PreviewLoader.C:  boost::format -> bformat
306
307 2003-04-15  Angus Leeming  <leeming@lyx.org>
308
309         * GraphicsConverter.C: #include lstrings.h.
310
311 2003-02-28  Alfredo Braunstein <abraunst@libero.it>
312
313         * GraphicsConverter.C
314         * PreviewLoader.C: added #include "format.h"
315
316 2003-02-26  Angus Leeming  <leeming@lyx.org>
317
318         * PreviewedInset.[Ch]: strip out the caching of the BufferView and
319         use the cache of the parent inset instead.
320
321         * PreviewLoader.C (startLoading): Prevent a crash if the user is
322         not using a tmp directory.
323
324 2003-02-26  Alfredo Braunstein  <abraunst@libero.it>
325
326         * GraphicsLoader.[Ch],
327         * PreviewImage.[Ch],
328         * PreviewedInset.C: Removed unneeded list of owner insets
329
330 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
331
332         * GraphicsConverter (startConversion): add the call to
333         ForkedCallQueue::add
334
335         * GraphicsLoader.[Ch],
336         * PreviewImage.[Ch],
337         * PreviewedInset.C: Removed unneeded BufferView
338
339 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
340
341         * LoaderQueue.[Ch]: a simplification of the code, eliminated
342         the unneeded input bucket.
343
344         * GraphicsCacheItem.C (imageConverted): move warning inside the
345         !success block.
346
347 2003-02-25  Alfredo Braunstein  <abraunst@libero.it>
348
349         * PreviewLoader.C (FindFirst): use ==, not < with std::find.
350
351 2003-02-21  Alfredo Braunstein  <abraunst@libero.it>
352
353         * LoaderQueue.[Ch] (setPriority): added
354
355         * PreviewLoader.C (finishedGenerating): reversed the loading order so
356         first images get 'touched' last, and so load first.
357
358 2003-02-20  Alfredo Braunstein  <abraunst@libero.it>
359
360         * LoaderQueue.[Ch]: added. Implements a service queue that loads
361         images in background
362         * GraphicsSupport.[Ch]: removed
363         * Makefile.am: the changes above
364         * GraphicsLoader.C: use the loading queue
365
366 2003-01-21  Angus Leeming  <leeming@lyx.org>
367
368         * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
369         previews from being generated.
370
371 2003-01-13  Angus Leeming  <leeming@lyx.org>
372
373         * GraphicsCacheItem.C (findTargetFormat): define the default conversion
374         format to be PPM not XPM.
375
376 2002-12-17  Lars Gullik Bjønnes  <larsbj@gullik.net>
377
378         * Makefile.am (EXTRA_DIST): remove variable
379
380 2002-12-13  Angus Leeming  <leeming@lyx.org>
381
382         * GraphicsImageXPM.[Ch]: removed.
383
384         * Makefile.am: associated change.
385
386 2002-12-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
387
388         * several files: ws changes
389
390 2002-11-21  Angus Leeming  <leeming@lyx.org>
391
392         * GraphicsConverter.C (build_script, move_file):
393         Don't use "if [ $? -ne 0 ]; then..."
394
395 2002-11-04  Lars Gullik Bjønnes  <larsbj@gullik.net>
396
397         * PreviewLoader.C (IncrementedFileName): STRCONV
398         (startLoading): ditto
399
400         * GraphicsConverter.C (Impl): STRCONV
401         (move_file): ditto
402
403         * GraphicsTypes.C: include config.h
404
405 2002-10-25  Angus Leeming  <leeming@lyx.org>
406
407         * GraphicsConverter.C (Impl::converted)
408         * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
409         string as first arg, reflecting change in ForkedCall interface.
410
411         * PreviewLoader.C: use pid rather than command as identifier in
412         InProgress map.
413
414 2002-10-18  Angus Leeming  <leeming@lyx.org>
415
416         * GraphicsCacheItem.C (findTargetFormat): add debug message.
417
418 2002-09-24  Lars Gullik Bjønnes  <larsbj@gullik.net>
419
420         * Makefile.am (INCLUDES): loose SIGC_INCLUDES
421
422 2002-09-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
423
424         * GraphicsConverter.C (build_script): do not use ChangeExtension
425         on a base name
426         (Impl): ditto
427
428 2002-09-05  Angus Leeming  <leeming@lyx.org>
429
430         * all files: modify the headers as discussed on the list.
431
432 2002-09-04  Angus Leeming  <leeming@lyx.org>
433
434         * PreviewLoader.C (startLoading): pass the desired output format to the
435         conversion script.
436
437 2002-09-04  Angus Leeming  <leeming@lyx.org>
438
439         * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
440
441 2002-09-03  Angus Leeming  <leeming@lyx.org>
442
443         * PreviewLoader.C: fix crash reported by Norbert Koksch when
444         generating more than 999 preview snippets. Use filenames with 5 digit
445         numbers, not 3, in the first instance, although more general code is
446         commented out. I don't suppose /anyone/ has 100000 formulae in one
447         document...
448
449 2002-09-03  Angus Leeming  <leeming@lyx.org>
450
451         * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
452
453 2002-09-03  Angus Leeming  <leeming@lyx.org>
454
455         * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
456
457 2002-09-03  Martin Vermeer  <martin.vermeer@hut.fi>
458
459         * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
460         convertDefault command with "sh ".
461
462 2002-08-28  Rob Lahaye  <lahaye@snu.ac.kr>
463
464         * GraphicsImage.C: small style fix to width/height setting.
465
466         * GraphicsTypes.h: have a displayTranslator here.
467
468         * Makefile.am:
469         * GraphicsTypes.C: new file added for the setDisplayTranslator();
470
471 2002-08-23  Rob Lahaye  <lahaye@snu.ac.kr>
472
473         * GraphicsImage.C:
474         * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
475         because this input has gone from the graphics dialog.
476
477         * GraphicsTypes.h: add enum DisplayType DefaultDisplay
478
479 2002-08-20  Lars Gullik Bjønnes  <larsbj@birdstep.com>
480
481         * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
482         for support/smart_ptr.h, switch to boost smart ptr.
483
484         * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
485         (~Data): let the smart_ptr handle cleanup
486         (reset): use nifty 3rd arg
487         (resetData): ditto
488         (free_color_table): free the table manually
489
490 2002-08-09  Angus Leeming  <leeming@lyx.org>
491
492         * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
493         Buffer::makeLaTeXFile() so that LaTeX can find \input files because
494         input@path is now set correctly.
495
496 2002-08-06  Angus Leeming  <leeming@lyx.org>
497
498         * PreviewLoader.C: add support for preview.sty 0.73 (currently
499         #ifdef-ed out, awaiting the formal release).
500
501         * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
502         the contents of a file that has changed.
503
504 2002-08-05  Angus Leeming  <leeming@lyx.org>
505
506         * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
507         to preview.sty. Works only for versions of preview.sty > 0.72b but
508         doesn't hurt earlier versions. Allows me to test the new parsing of
509         LyX-specific data from the generated log file.
510
511 2002-08-02  Angus Leeming  <leeming@lyx.org>
512
513         * GraphicsLoader.C: cache the BufferView as a weak_ptr.
514
515         * PreviewLoader.[Ch] (buffer): new method, returning the owner.
516         (add): don't add empty snippets.
517
518         * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
519         (view, setView): access to to the cache_.
520
521 2002-08-02  Angus Leeming  <leeming@lyx.org>
522
523         * PreviewedInset.[Ch]: cache the LaTeX snippet.
524
525 2002-08-01  Angus Leeming  <leeming@lyx.org>
526
527         * PreviewedInset.[Ch]: new files. An abstract base class that can help
528         insets to generate previews.
529         The daughter class must instantiate three small methods.
530         The Inset would own an instance of this daughter class and invoke it
531         as necessary. For example, mathd/formula.C gets previews at the cost
532         of 15 or so lines of code.
533
534         * Makefile.am: add PreviewedInset.[Ch].
535
536         * PreviewLoader.C (add): add debug message.
537
538         * Previews.C (generateBufferPreviews): remove if-block from loop.
539
540 2002-07-29  Lars Gullik Bjønnes  <larsbj@gullik.net>
541
542         * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
543         trim,ltrim,rtrim
544         (setAscentFractions): ditto
545
546 2002-07-28  Lars Gullik Bjønnes  <larsbj@gullik.net>
547
548         * PreviewLoader.C (setAscentFractions): modify because of strip
549         changes
550
551 2002-07-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
552
553         * GraphicsConverter.C (build_script): take a ostream as a more
554         general argument than ostringstream.
555
556 2002-07-22  Herbert Voss  <voss@lyx.org>
557
558         * GraphicsConverter.C: get the "default converter" run again
559
560 2002-07-21  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
561
562         * PreviewLoader.C: use BufferParams::getLyXTextClass
563
564 2002-07-21  Herbert Voss  <voss@lyx.org>
565
566         * GraphicsImage.C: get the LyXAspectRatio run.
567
568         * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
569
570 2002-07-20  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
571
572         * PreviewLoader.C (startLoading): pass an interger as resolution
573         to the lyxpreview converter
574
575         * GraphicsParams.C: include <cstdlib>
576
577 2002-07-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
578
579         * PreviewLoader.C (startLoading): use LibScriptSearch to find the
580         preview converter script
581
582 2002-07-18  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
583
584         * GraphicsCacheItem.C (reset): use erase() instead of clear() for
585         strings
586
587 2002-07-18  Angus Leeming  <leeming@lyx.org>
588
589         * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
590         class.
591         (startMonitoring, monitoring, checksum): new methods to interact with
592         the FileMonitor.
593
594         * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
595         methods invoking the CacheItem methods of the same name.
596         (resetFile): if monitoring and the file changes, start monitoring this
597         new file.
598
599 2002-07-17  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
600
601         * Makefile.am: remove FileMonitor.[Ch]
602
603 2002-06-17  Herbert Voss  <voss@lyx.org>
604
605         * GraphicsCachItem.C (findTargetFormat): remove the speciell case
606         for old ps-files (Garst). It's now handled by defining a converter and
607         disabling the ps-support of xforms.
608
609 2002-07-17  Angus Leeming  <leeming@lyx.org>
610
611         Be true to the Pimpl idiom, moving all signals into the respective
612         Impl classes and defining methods to connect them to an outside slot.
613         Const-ify all visible class methods as they act only on a const pimpl_.
614
615         * GraphicsCache.[Ch] (add, remove): const-ify.
616
617         * GraphicsCacheItem.[Ch] (startLoading): const-ify.
618         (statusChanged): move the signal into the Impl class.
619         (connect): new method, enabling a listener to connect to this signal.
620
621         * GraphicsConverter.[Ch]: (startConversion): const-ify.
622         (finishedConversion): move the signal into the Impl class.
623         (connect): new method, enabling a listener to connect to this signal.
624
625         * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
626         (statusChanged): move the signal into the Impl class.
627         (connect): new method, enabling a listener to connect to this signal.
628
629         * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
630         (imageReady): move the signal into the Impl class.
631         (connect): new method, enabling a listener to connect to this signal.
632         (emitSignal): new method, enabling PreviewImage to tell the outside
633         world that the file has been loaded into memory.
634
635         * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
636         const-ify.
637
638         * GraphicsCache.C:
639         * GraphicsCacheItem.C:
640         * GraphicsConverter.[Ch]:
641         * GraphicsImage.h:
642         * GraphicsImageXPM.C:
643         * GraphicsLoader.C:
644         * PreviewLoader.[Ch]: whitespace clean-up.
645
646 2002-07-16  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
647
648         * PreviewLoader.C (setConverter): remove unused variable
649
650         * GraphicsImageXPM.C (isDrawable): implement
651         (setPixmap): the opaque color is black, not white
652
653 2002-07-15  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
654
655         * GraphicsImageXPM.C (color_none_id):
656         (contains_color_none): use ascii_lowercase instead of lowercase
657
658 2002-07-16  Angus Leeming  <leeming@lyx.org>
659
660         * PreviewLoader.C: greater use of STL algorithms.
661
662         * Previews.[Ch]: use const in more places.
663         (generateBufferPreviews): now takes a Buffer const & argument, not a
664         pointer.
665
666 2002-07-15  John Levon  <moz@compsoc.man.ac.uk>
667
668         * GraphicsImage.h: remove getPixmap/X, add isDrawable()
669
670 2002-07-12  Angus Leeming  <leeming@lyx.org>
671
672         * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
673         if visible 2 secs after the call to load them is first made.
674
675         * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
676         BufferView to ascertain whether the inset is visible or not.
677
678         * Makefile.am: added GraphicsSupport.[Ch].
679
680         * PreviewImage.[Ch]: use this smart loader.
681
682         * PreviewLoader.C: don't load generated image files indiscimminantly.
683         Instead emit the imageReady signal and allow the image owner to decide.
684
685 2002-07-12  John Levon  <moz@compsoc.man.ac.uk>
686
687         * GraphicsCache.C: remove init_graphics()
688
689 2002-07-09  Angus Leeming  <leeming@lyx.org>
690
691         * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
692         arithmetic when it should be floating.
693
694 2002-07-09  Angus Leeming  <leeming@lyx.org>
695
696         * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
697         Output equation labels as "(#)" if lyxrc preference is set.
698         (setFontScalingFactor): use lyxrc variable preview_scale_factor
699         rather than hard-coding this.
700
701 2002-07-09  Angus Leeming  <leeming@lyx.org>
702
703         * PreviewLoader.C: Further refactoring of the code. Should now be
704         pretty clean.
705
706         * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
707         past its sell-by date. The code to read the metrics file is now found
708         as a helper function in PreviewLoader.C.
709
710         * GraphicsImageXPM.C (scale): use boost::tie.
711
712 2002-07-08  Herbert Voss  <voss@lyx.org>
713
714         * PreviewLoader.C: use of preview_size_factor to get the right
715         font-size! 0.9 is the default.
716
717 2002-07-08  Angus Leeming  <leeming@lyx.org>
718
719         * PreviewLoader.C: Add "delayed" and "showlabels" options to the
720         invocation of preview.sty.
721         Perform something of an internal clean-up.
722
723 2002-07-06  Angus Leeming  <leeming@lyx.org>
724
725         * PreviewLoader.C: ensure that the metrics data is used by the
726         correct image!
727
728         * PreviewLoader.C:
729         * PreviewImage.C: (Impl d-tor): remove all generated files that still
730         exist (perhaps because the process was curtailed before the images
731         were loaded.)
732
733         * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
734
735 2002-07-05  Angus Leeming  <leeming@lyx.org>
736
737         * PreviewImage.h:
738         * PreviewImage.C:
739         * PreviewLoader.h:
740         * PreviewLoader.C:
741         * PreviewMetrics.h:
742         * PreviewMetrics.C:
743         * Previews.h:
744         * Previews.C: new files. The previewed LaTeX snippet stuff.
745
746         * Makefile.am: add these files.
747
748 2002-07-05  Angus Leeming  <leeming@lyx.org>
749
750         * GraphicsLoader.h: whitespace.
751
752 2002-07-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
753
754         * GraphicsImage.[Ch]: newImage and loadableFormats changed to
755         boost::function from boost::signal.
756
757 2002-07-01  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
758
759         * GraphicsConverter.C (convert): do not use ChangeExtension
760         because to_file_base may contain a dot.
761
762 2002-06-28  Angus Leeming  <leeming@lyx.org>
763
764         * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
765         by moving those SignalPtrs into the grfx::Image and grfx::Converter
766         classes where they really belong.
767         Use the Pimpl idiom to hide the class internals from public view.
768
769         * GraphicsTypes: remove the typedefs, leaving only the enums.
770
771         * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
772         passed a reference to one in the load() method.
773
774         * GraphicsConverter.[Ch]: totally refactored. An instance of
775         grfx::Converter now represents a single conversion process.
776         Thus grfx::CachItem now has a grfx::Converter * that is set when the
777         conversion is initiated and destroyed on completion.
778
779         * GraphicsCache.[Ch]:
780         * GraphicsCacheItem.[Ch]:
781         * GraphicsConverter.[Ch]:
782         * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
783         from public view.
784         Note that I have done this only after making the above changes,
785         so not only should we have a clean, minimal and well documented
786         interface to these classes in the header files, but the class internals
787         should be much clearer too.
788
789         * Renamed classes
790         grfx::GCache -> grfx::Cache,
791         grfx::GCacheItem -> grfx::CacheItem,
792         grfx::GConverter -> grfx::Converter,
793         grfx::GImage -> grfx::Image,
794         grfx::GImageXPM -> grfx::ImageXPM,
795         grfx::GParams -> grfx::Params.
796
797 2002-06-26  Angus Leeming  <leeming@lyx.org>
798
799         * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
800         std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
801         compiles.
802
803 2002-06-26  Angus Leeming  <leeming@lyx.org>
804
805         * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
806         move the DisplayType enum out of grfx::GParams to here.
807
808         * GraphicsCacheItem.h: re-write preliminary description to reflect
809         current reality.
810
811         * GraphicsParams.[Ch]:
812         * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
813         grfx::DisplayType out of grfx::GParams.
814
815         * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
816         that was in frontends/screen.C and insets/insetgraphics.C into a
817         single, easy-to-use class.
818
819         * Makefile.am: add these files.
820
821 2002-06-25  Angus Leeming  <leeming@lyx.org>
822
823         * GraphicsCache.[Ch]:
824         * GraphicsCacheItem.[Ch]:
825         * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
826         file into memory. The cache no longer controls the generation of the
827         pixmap. Instead, it just emits a signal when the loading status of an
828         image changes.
829         The cache no longer stores InsetGraphics pointers and nor does it
830         assume responsibility for modifying an image (scaling, rotating etc).
831         Instead, that must now be performed elsewhere.
832
833 2002-06-19  Angus Leeming  <leeming@lyx.org>
834
835         * GraphicsConverter.C: add using std::endl directive.
836
837 2002-06-17  Herbert Voss  <voss@lyx.org>
838
839         * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
840         default when nothing different was found
841         (convertToDisplayFormat): handle zipped files in the right way and
842         choose always convert as a default converter when no other
843         userdefined was found
844
845         * GraphicsConverter.C: add more lyxerr comments and choose
846         convert when no other userdefined converter was found
847
848 2002-06-10  Herbert Voss  <voss@lyx.org>
849
850         * GraphicsImageXPM.C (convertTo7chars): get another special color
851         format from convert work in the right way
852
853 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
854
855         * GraphicsCache.C: use right colormap incantation
856
857 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
858
859         * GraphicsCache.C: use lyx_gui namespace
860
861         * GraphicsImageXPM.C: back down to using xforms
862           directly again
863
864 2002-06-07  Angus Leeming  <leeming@lyx.org>
865
866         Fixes needed to compile with Compaq cxx 6.5.
867         * GraphicsConverter.h: forward declare class ConvProcess.
868
869         * GraphicsImageXPM.C:
870         all c-library variables have been moved into namespace std.
871         Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
872
873 2002-06-06  Angus Leeming  <a.leeming@ic.ac.uk>
874
875         * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
876
877 2002-05-30  Lars Gullik Bjønnes  <larsbj@birdstep.com>
878
879         * GraphicsImageXPM.C: SigC to boot::signals changes.
880         (newImage): fix () bug when using new.
881
882 2002-05-29  Lars Gullik Bjønnes  <larsbj@birdstep.com>
883
884         * switch from SigC signals to boost::signals.
885
886 2002-05-29  André Pönitz <poenitz@gmx.net>
887
888         * GraphicsParam.C: remove unneeded #include, move vomment
889
890 2002-05-28  André Pönitz <poenitz@gmx.net>
891
892         * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
893
894 2002-05-24  John Levon  <moz@compsoc.man.ac.uk>
895
896         * GraphicsImageXPM.C: ColorHandler moved
897
898 2002-05-24  Juergen Vigna  <jug@sad.it>
899
900         * GraphicsCache.h:
901         * GraphicsImage.h: include LString.h first.
902
903 2002-05-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
904
905         * GraphicsCacheItem.h: use more specific smart_ptr header.
906         * GraphicsTypes.h: ditto
907         * GraphicsImage.h: ditto
908         * GraphicsConverter.h: ditto
909
910 2002-04-28  John Levon  <moz@compsoc.man.ac.uk>
911
912         * GraphicsImageXPM.C: understand convert's use of "opaque"
913           as a colour name
914
915 2002-04-19  Marco Morandini <morandini@aero.polimi.it>
916
917         * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
918         GImage::loadableFormats() that ensures that the signal is connected
919         to the derived class' method.
920
921 2002-04-18  Lars Gullik Bjønnes  <larsbj@birdstep.com>
922
923         * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
924         only work on the string.
925
926 2002-04-17  Angus Leeming  <a.leeming@ic.ac.uk>
927
928         * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
929         the simple image loader when it encounters colour strings like
930         #rrrrggggbbbb.
931
932 2002-04-16  Angus Leeming  <a.leeming@ic.ac.uk>
933
934         * GraphicsCacheItem.C (convertToDisplayFormat):
935         * GraphicsConverter.C (build_script): remove the Alerts when things go
936         wrong as the inset displays the message anyway. Moreover, Alert seems
937         pretty temperamemtal at the moment.
938
939 2002-04-16  Rob Lahaye  <lahaye@users.sourceforge.net>
940
941         * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
942
943 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
944
945         * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
946         a reference to a temp object that's going out of scope...
947
948 2002-04-09  Herbert Voss  <voss@lyx.org>
949
950         * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
951         LyXLength::inBP instead of inPixels.
952
953 2002-04-10  Herbert Voss  <voss@perce.de>
954
955         * GraphicsCache.[Ch]:
956         * GraphicsCacheItem.[Ch]: add width/height functions from Angus
957         to read the "Bounding Box" from non (e)ps files.
958
959 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
960
961         * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
962         the EPS file too, to ensure that the clipped Bounding Box is relative
963         to the original. (From Herbert.)
964
965 2002-04-04  Angus Leeming  <a.leeming@ic.ac.uk>
966
967         * GraphicsParams.C (BoundingBox c-tor): ensure that the member
968         variables are initialised. Clean-up parsing of the string (with thanks
969         to Herbert.)
970
971 2002-03-26  Angus Leeming  <a.leeming@ic.ac.uk>
972
973         * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
974         if the file can't be found.
975
976         * GraphicsParams.h (c-tor): remove string() as default argument.
977
978         * GraphicsCacheItem.C: a couple of changes as a result.
979
980 2002-03-22  Angus Leeming  <a.leeming@ic.ac.uk>
981
982         * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
983         path to graphics file.
984
985         * GraphicsParams.[Ch] (c-tor): now passed filepath.
986
987 2002-03-21  Lars Gullik Bjønnes  <larsbj@birdstep.com>
988
989         * most files: ws cleanup
990
991         * Makefile.am: remove ld -r stuff
992
993 2002-03-20  Lars Gullik Bjønnes  <larsbj@birdstep.com>
994
995         * Makefile.am: special rules if partial linking
996
997 2002-03-14  Angus Leeming  <a.leeming@ic.ac.uk>
998
999         * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
1000
1001 2002-03-11  Lars Gullik Bjønnes  <larsbj@birdstep.com>
1002
1003         * GraphicsConverter.[Ch] (converted): make first arg const ref.
1004
1005         * GraphicsCacheItem.h: doxy change
1006
1007         * GraphicsCacheItem.C: ws change
1008
1009 2002-03-05  Angus Leeming  <a.leeming@ic.ac.uk>
1010
1011         * Makefile.am: if there is no image loading class leveraging the power
1012         of the appropriate gui library, then compile the basic alternative
1013         found in GraphicsImageXPM.[Ch].
1014
1015 2002-03-04  Angus Leeming  <a.leeming@ic.ac.uk>
1016
1017         * GraphicsCache.C: change associated with move of initialiseGraphics
1018         to GUIRuntime.
1019
1020 2002-02-28  Angus Leeming  <a.leeming@ic.ac.uk>
1021
1022         * GraphicsParams.[Ch]:
1023         * GraphicsImage.C:
1024         * GraphicsImageXPM.C: properly resolve more warnings about comparison
1025         between signed and unsigned integer expressions.
1026
1027         * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
1028
1029         * GraphicsCache.C: move connections to the GImage-derived classes to
1030         the frontends.
1031
1032         * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
1033
1034         * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
1035         conversion, then do that.
1036
1037 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
1038
1039         * GraphicsCache.C: improve commentary to graphicsInit and where it
1040         should really go.
1041
1042         * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
1043         that became a memory leak properly. (Let the shared_c_ptr free the
1044         color table.)
1045         (reset, mapcolor): tidy up and introduce a work around for XPM files
1046         with crappy color entries. Print out a nice friendly message on what's
1047         gone wrong and how to resolve it properly.
1048
1049 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
1050
1051         * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
1052         (Data d-tor): introduce memory leak temporarily, to "fix" a crash
1053         in free_color_table.
1054         (unique_color_string): use the correct string c-tor.
1055
1056 2002-02-15  Angus Leeming  <a.leeming@ic.ac.uk>
1057
1058         * ImageLoader.[Ch]:
1059         * ImageLoaderXPM.[Ch]: removed.
1060
1061         * GraphicsConverter.[Ch]:
1062         * GraphicsImage.[Ch]:
1063         * GraphicsImageXPM.[Ch]:
1064         * GraphicsParams.[Ch]:
1065         * GraphicsTypes.h: new files.
1066
1067         * All files. A total re-write of the graphics cache. The cache now
1068         supports asynchronous file conversion and file loading. Images
1069         can be cropped, rotated and scaled for display on the LyX screen.
1070         The old LyXImage and ImageLoader have been combined in a new class
1071         GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1072         GImageXPM.
1073
1074 2002-02-07  Herbert Voss  <voss@lyx.org>
1075
1076         * GraphicsCacheItem.C: use unzipFile() from support/filetools
1077
1078 2002-01-31  Herbert Voss  <voss@lyx.org>
1079
1080         * GraphicsCacheItem.h: handle filetype without the file extension;
1081         getting type from contents; handle zipped files
1082
1083 2002-01-27  Herbert Voss  <voss@lyx.org>
1084
1085         * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1086
1087 2002-01-17  John Levon  <moz@compsoc.man.ac.uk>
1088
1089         * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1090
1091 2001-12-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
1092
1093         * GraphicsCacheItem.h: do not include <config.h> in header files
1094
1095 2001-09-21  Angus Leeming  <a.leeming@ic.ac.uk>
1096
1097         * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1098         transparent colour, then set it to the colour of the background.
1099         Also take account of the monochrome, grayscale of color
1100         preferences option.
1101
1102 2001-09-20  Angus Leeming  <a.leeming@ic.ac.uk>
1103
1104         * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1105         are different. Thus, don't delete the "to" if it's the original!
1106
1107 2001-09-01  John Levon  <moz@compsoc.man.ac.uk>
1108
1109         * ImageLoadXPM.C: remove setting of alloc colour mask,
1110           led to crash as we don't define a callback
1111
1112 2001-07-29  Baruch Even  <baruch@lyx.org>
1113
1114         * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1115         colors with closeness of 10000.
1116
1117         * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1118
1119 2001-07-29  Baruch Even  <baruch@lyx.org>
1120
1121         * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1122         too annoying.
1123
1124 2001-07-23  Baruch Even  <baruch@lyx.org>
1125
1126         * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1127         the image after conversion.
1128
1129 2001-07-17  Baruch Even  <baruch@lyx.org>
1130
1131         * GraphicsCacheItem.h:
1132         * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1133         from synchronous to asynchronous and to ease the coming changes.
1134
1135 2001-07-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1136
1137         * ImageLoaderXPM.C (runImageLoader): get display information from
1138         GUIRunTime.
1139
1140 2001-06-14  Angus Leeming  <a.leeming@ic.ac.uk>
1141
1142         * GraphicsCache.C:
1143         * GraphicsCacheItem.C:
1144         * ImageLoader.C:
1145         * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1146
1147 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
1148
1149         * GraphicsCache.h: inherit privately from noncopyable
1150         * ImageLoader.h: ditto
1151         * GraphicsCacheItem.h: ditto
1152
1153 2001-04-16  Allan Rae  <rae@lyx.org>
1154
1155         * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1156         CC 6.0 as an unrecognised preprocessor directive.  So ensure they're
1157         wrapped.
1158
1159 2001-04-02  Baruch Even  <baruch@lyx.org>
1160
1161         * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1162         of hard coding ImageMagick.
1163
1164 2001-03-10  Baruch Even  <baruch@lyx.org>
1165
1166         * GraphicsCache.C: Style change from (*it).field to it->field
1167
1168 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
1169
1170         * GraphicsCache.h: noncopyable is in namespace boost
1171         * ImageLoader.h: ditto
1172         * GraphicsCacheItem.h: ditto
1173
1174 2001-03-07  Baruch Even  <baruch@lyx.org>
1175
1176         * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1177         was false and it's not needed anyhow since the shared_ptr's in the cache
1178         will destroy everything on exit.
1179
1180 2001-02-28  Baruch Even  <baruch@ev-en.org>
1181
1182         * GraphicsCache.h:
1183         * GraphicsCache.C: Changed the singleton pattern implementation, the
1184         former version "leaked" in the sense that it was not deallocated at
1185         program end.
1186
1187 2001-02-20  Baruch Even  <baruch@ev-en.org>
1188
1189         * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1190         instead of a pure pointer.
1191
1192         * GraphicsCacheItem.[Ch]:
1193         * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1194         removed the reference counting that was inside. Also fixed a bug where
1195         a temporary file wouldn't get erased.
1196
1197         * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1198         Ownership is now dropped when the caller requests the image_ pointer.
1199
1200 2001-02-20  Baruch Even  <baruch@ev-en.org>
1201
1202         * GraphicsCache.C: Cleared up the confusion on when and how it is
1203         emptied.
1204
1205         * GraphicsCacheItem.C: Indentation change.
1206
1207         * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1208         figure correctly when the image has been loaded successfully.
1209
1210 2001-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1211
1212         * ImageLoader.C: add a "using" directive.
1213
1214         * ImageLoader.h: remove extra comma at the end of enum; add an
1215         std:: qualifier for vector.
1216
1217 2001-01-21  Baruch Even  <baruch@ev-en.org>
1218
1219         * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1220         height in the image itself and minor cleanups.
1221
1222         * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1223         new ImageLoader class instead of the older Renderer class. This
1224         means change of responsibilities.