]> git.lyx.org Git - lyx.git/blob - development/FORMAT
fix crash with "save as"
[lyx.git] / development / FORMAT
1 Changes to the LyX format since version 220 (LyX 1.2.0) was released.
2 =====================================================================
3
4 2002-10-24  Rob Lahaye  <lahaye@snu.ac.kr>
5
6         * insetgraphicsParams.h (scale): is now a float, not an unsigned int.
7
8 2002-08-22  Rob Lahaye <lahaye@snu.ac.kr>
9
10 New graphics dialog. With the removal of buttons in the dialog, also
11 keywords in the graphics inset went. The following keywords do not
12 exist anymore:
13         lyxsize_kind
14         lyxsize_type
15         lyxwidth
16         lyxheight
17         size_kind
18         size_type
19         rotate
20
21 Only non-default values are saved to the lyx files. The defaults of the remaining
22 keywords are;
23         filename <empty>
24         lyxscale 100
25         display default
26         scale 100
27         width <empty>
28         height <empty>
29         draft <off>
30         noUnzip <off>
31         BoundingBox <from file>
32         clip <off>
33         rotateAngle 0
34         rotateOrigin centerBaseline
35         subcaption <off>
36         subcaptionText <empty>
37         special <empty>
38
39 The remaining keywords have sufficient overlap with the old ones for a
40 smooth reading of the 1.2.x inset keywords in most common cases.
41
42 Compatibility is certainly broken for the old lyxwidth/lyxheight keywords.
43 They don't exist anymore and we can't translate them into a scaling value, while
44 we're reading the graphics inset. The old lyxwidth/lyxheight keyword and its
45 argument is ignored and lost.
46
47 Only few compatibility issues are left for lyx2lyx:
48
49 ------------------------------------------------------------------------------
50 old-token                                   new-token         remove
51 ------------------------------------------------------------------------------
52 size_kind original / size_type 0            scale 100         width <val>
53                                                               height <val>
54                                                               scale <val>
55
56 size_kind width_height / size_type 1            -             scale <val>
57
58 lyxsize_kind original / lyxsize_type 0      lyxscale 100      lyxscale <val>
59 ------------------------------------------------------------------------------
60 [replace old-token by new-token, and remove any of subsequent tokens as listed]
61
62 If "rotate" is absent, lyx2lyx should ignore "rotateAngle <val>":
63    if ( "rotateAngle <val>" is there WITHOUT being preceded by the keyword "rotate" )
64    then
65         replace "rotateAngle <val>" by "rotateAngle 0"
66
67
68 2002-08-12  Andre' Poenitz <poenitz@gmx.de>
69
70 Added \lyxlock for locked math inset when written to .lyx file.
71 When "downgrading" .lyx files this should simple be deleted but it
72 does not hurt at all if it stays in. It does not have to be added
73 when "upgrading".
74
75
76 2002-08-02  Angus Leeming  <leeming@lyx.org>
77
78 Added a boolean "preview" flag to InsetCommandParams.
79 Currently it is written only by InsetInclude, because only this
80 class can generate a preview of its contents.
81
82 The LyX file now contains:
83
84  \begin_inset Include \input{snapshot_t=40.tex}
85 +preview true
86
87  \end_inset 
88
89 Earlier versions of LyX just swallow this extra token silently.
90
91 2002-08-12  Angus Leeming  <leeming@lyx.org>
92
93 The 1.2.0 InsetGraphicsParams "size_type" and "lyxsize_type" have been
94 renamed as "size_kind" and "lyxsize_kind" respectively.
95
96  \begin_inset Graphics FormatVersion 1
97         filename file.eps
98         display default
99 -       size_kind original
100 +       size_type original
101         width 7cm
102         rotateOrigin center
103 -       lyxsize_kind original
104 +       lyxsize_type original
105         lyxwidth 4cm
106
107  \end_inset 
108