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