File: graphicboxes.module

package info (click to toggle)
lyx 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 138,444 kB
  • sloc: cpp: 244,268; ansic: 106,398; xml: 72,791; python: 39,384; sh: 7,666; makefile: 6,584; pascal: 2,143; perl: 2,101; objc: 1,084; tcl: 163; sed: 16
file content (79 lines) | stat: -rw-r--r-- 1,606 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#\DeclareLyXModule{GraphicBoxes}
#\DeclareCategory{Boxes}
#DescriptionBegin
#Boxes to scale and rotate its contents
#DescriptionEnd
#
#Author: Jürgen Spitzmüller <spitz@lyx.org>
#        Uwe Stöhr <uwestoehr@lyx.org>

Format 111

InsetLayout Flex:Reflectbox
	LyXType		custom
	Decoration	classic
	LabelString	Reflectbox
	LatexType	command
	LatexName	reflectbox
	LabelFont
	  Family	Roman
	  Color		textlabel3
	EndFont
	ResetsFont	0
	Requires	graphicx
	MultiPar	0
End

InsetLayout Flex:Scalebox
	CopyStyle	Flex:Reflectbox
	LabelString	Scalebox
	LatexName	scalebox
	Argument 1
	  LabelString	"H-Factor"
	  Tooltip	"Insert horizontal scale factor (1 = 100%)"
	  Mandatory	1
	  DefaultArg	"1"
	  AutoInsert	1
	EndArgument
	Argument 2
	  LabelString	"V-Factor"
	  Tooltip	"Insert vertical scale factor (1 = 100%)"
	EndArgument
End

InsetLayout Flex:Resizebox
	CopyStyle	Flex:Reflectbox
	LabelString	Resizebox
	LatexName	resizebox
	Argument 1
	  LabelString	"Width"
	  Tooltip	"Width of the box"
	  Mandatory	1
	  DefaultArg	"1cm"
	  AutoInsert	1
	EndArgument
	Argument 2
	  LabelString	"Height"
	  Tooltip	"Height of the box, can also be '!' to keep aspect ratio"
	  Mandatory	1
	  DefaultArg	"!"
	  AutoInsert	1
	EndArgument
End

InsetLayout Flex:Rotatebox
	CopyStyle	Flex:Reflectbox
	LabelString	Rotatebox
	LatexName	rotatebox
	Argument 1
	  LabelString	"Origin"
	  Tooltip	"Rotation origin; syntax: 'origin=lt' (for top left corner)"
	EndArgument
	Argument 2
	  LabelString	"Angle"
	  Tooltip	"Rotation angle in degrees (counterclockwise)"
	  DefaultArg	"0"
	  AutoInsert	1
	  Mandatory	1
	EndArgument
End