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