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