]> git.lyx.org Git - lyx.git/blob - lib/layouts/graphicboxes.module
Grammar
[lyx.git] / lib / layouts / graphicboxes.module
1 #\DeclareLyXModule{GraphicBoxes}
2 #\DeclareCategory{Boxes}
3 #DescriptionBegin
4 #Boxes to scale and rotate its contents
5 #DescriptionEnd
6 #
7 #Author: Jürgen Spitzmüller <spitz@lyx.org>
8 #        Uwe Stöhr <uwestoehr@lyx.org>
9
10 Format 104
11
12 InsetLayout Flex:Reflectbox
13         LyXType         custom
14         Decoration      classic
15         LabelString     Reflectbox
16         LatexType       command
17         LatexName       reflectbox
18         LabelFont
19           Family        Roman
20           Color         textlabel3
21         EndFont
22         ResetsFont      0
23         Requires        graphicx
24         MultiPar        0
25 End
26
27 InsetLayout Flex:Scalebox
28         CopyStyle       Flex:Reflectbox
29         LabelString     Scalebox
30         LatexName       scalebox
31         Argument 1
32           LabelString   "H-Factor"
33           Tooltip       "Insert horizontal scale factor (1 = 100%)"
34           Mandatory     1
35           DefaultArg    "1"
36           AutoInsert    1
37         EndArgument
38         Argument 2
39           LabelString   "V-Factor"
40           Tooltip       "Insert vertical scale factor (1 = 100%)"
41         EndArgument
42 End
43
44 InsetLayout Flex:Resizebox
45         CopyStyle       Flex:Reflectbox
46         LabelString     Resizebox
47         LatexName       resizebox
48         Argument 1
49           LabelString   "Width"
50           Tooltip       "Width of the box"
51           Mandatory     1
52           DefaultArg    "1cm"
53           AutoInsert    1
54         EndArgument
55         Argument 2
56           LabelString   "Height"
57           Tooltip       "Height of the box, can also be '!' to keep aspect ratio"
58           Mandatory     1
59           DefaultArg    "!"
60           AutoInsert    1
61         EndArgument
62 End
63
64 InsetLayout Flex:Rotatebox
65         CopyStyle       Flex:Reflectbox
66         LabelString     Rotatebox
67         LatexName       rotatebox
68         Argument 1
69           LabelString   "Origin"
70           Tooltip       "Rotation origin; syntax: 'origin=lt' (for top left corner)"
71         EndArgument
72         Argument 2
73           LabelString   "Angle"
74           Tooltip       "Rotation angle in degrees (counterclockwise)"
75           DefaultArg    "0"
76           AutoInsert    1
77           Mandatory     1
78         EndArgument
79 End