I finished the graphic inset, the diff is attached. Images of
the guis are here:
http://www.perce.de/lyx/graphic0.gif
http://www.perce.de/lyx/graphic1.gif
http://www.perce.de/lyx/graphic2.gif

the patch does:
- support of all important options froms package graphicx
- full support of old figinset
- all lengths as LyXLength

To get a clear structure of a dataformat it looks like

-------------------------------------------
\begin_inset Graphics FormatVersion 1
         filename WinWord.eps
         display color
         size_type 1
         width 70c%
         keepAspectRatio
         lyxwidth 208pt
         lyxheight 182pt
\end_inset
--------------------------------------------
this looks in latex like

--------------------------------------------
\includegraphics[%
   width=0.70\columnwidth,%
   keepaspectratio]{/tmp/WinWord.eps}
--------------------------------------------

I tried it with 1.1.6  and "old" 1.2.0 files. and it worked
well. The gui with all values is saved now and "size_type"
holds the actual type of view:
0 -> default
1 -> widht/height combination
2 -> scaling

So users can play around with all values and do not need
to enter all variables new.

there are only some things to finished:
- asynchronous loading of files -> Angus is on the way ...
   (the only important thing)
- take the lyx-width/height for displaying in lyx.
- complete the help-file (next week)
- remove old figinset code (when this patch works)


Herbert


-- 
http://www.lyx.org/help/

Attachment: graphic.diff.gz
Description: Binary data

Reply via email to