Angus Leeming wrote:
 >
> That should get you started.

Yep, thanks for your help.

Attached is the new Xforms Graphics dialog. The dialog itself is slightly improved
from last prepatch and I've done the implementation of the new input fields.

Many buttons have disappeared in the dialog, so a lot in the LyX graphics fileformat
will also have to go. I have tried to leave enough compatibility, but that is
not always possible. E.g. what to do with lyxwidth and lyxheight, which do not exist
anymore? These values cannot simply be translated into the new input fields!
Consequently, lots of more stuff can probably go, such as all the sizekind things
and all the variables that refer to the removed input fields.

The following is an excerpt from the LyX output file that has two graphics insets, the
first simply with the graphics default values, the second with everthing non-default.

--------------------------------------------------------------------------
\layout Standard


\begin_inset Graphics FormatVersion 1
        filename /home/lahaye/myGraph.xpm
        lyxscale 100
        width 100page%

\end_inset


\layout Standard


\begin_inset Graphics FormatVersion 1
        filename /home/lahaye/myGraph.xpm
        lyxscale 100
        lyxdisplay color
        width 100page%
        height 70mm
        keepAspectRatio
        draft
        noUnzip
        BoundingBox 100bp 100bp 305bp 252bp
        clip
        rotateAngle 60
        rotateOrigin rightBottom
        subcaption
        subcaptionText "My own subfigure caption"
        special -my_latex_option

\end_inset
--------------------------------------------------------------------------

Is the patch okay for applying? If so, I send it again tomorrow with a decent
ChangLog. Next, I would like to do a clean up of all the stuff that's not
necessary anymore, with so many buttons gone.

Cheers,
Rob.

Attachment: NewGraphicsDialog2.diff.gz
Description: application/gzip

Reply via email to