/usr/share/lyx/layouts/pdfform.module is in lyx-common 2.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | #\DeclareLyXModule{PDF Form}
#DescriptionBegin
#Provides fields and buttons for PDF forms. The module uses
#the LaTeX package hyperref. Please consult the LyX example file PDF-form.lyx
#and the documentation of hyperref for details.
#DescriptionEnd
# Author: Uwe Stöhr <uwestoehr@lyx.org>
Format 60
#
# the form environment
#
Style "Begin PDF Form"
Margin Dynamic
LatexType Command
LatexName begin{Form}
Category "PDF form"
KeepEmpty 1
PassThru 1
ParSkip 0.4
Align Block
LabelSep xx
LabelType Static
LabelString "Begin PDF Form"
Argument 1
MenuString "PDF Form Parameters"
LabelString "Params"
Tooltip "Insert PDF form parameters here"
AutoInsert 1
EndArgument
LabelFont
Series Bold
Color Green
EndFont
Requires hyperref
End
Style "End PDF Form"
CopyStyle "Begin PDF Form"
LatexName end{Form}
LabelString "End PDF Form"
ResetArgs 1
End
Style "PDF Link Setup"
CopyStyle "Begin PDF Form"
LatexName hypersetup
LabelString "PDF link setup"
KeepEmpty 0
End
#
# form fields
#
InsetLayout Flex:TextField
LyXType custom
LatexType command
Decoration classic
LatexName TextField
LabelString "TextField"
Argument 1
MenuString "PDF Form Parameters"
LabelString "Params"
Tooltip "Insert PDF form parameters here"
AutoInsert 1
PassThruChars "\[]{}"
EndArgument
LabelFont
Color magenta
Size Small
EndFont
Requires hyperref
End
InsetLayout Flex:CheckBox
CopyStyle Flex:TextField
LatexName CheckBox
LabelString "CheckBox"
End
InsetLayout Flex:ChoiceMenu
CopyStyle Flex:TextField
LatexName ChoiceMenu
LabelString "ChoiceMenu"
Argument 2
LabelString "Label"
Mandatory 1
AutoInsert 1
ToolTip "Insert the label here"
EndArgument
End
InsetLayout Flex:PushButton
CopyStyle Flex:TextField
LatexName PushButton
LabelString "PushButton"
End
InsetLayout Flex:SubmitButton
CopyStyle Flex:TextField
LatexName Submit
LabelString "SubmitButton"
End
InsetLayout Flex:ResetButton
CopyStyle Flex:TextField
LatexName Reset
LabelString "ResetButton"
End
#
# PDF viewer-specific insets
#
InsetLayout Flex:PDFAction
CopyStyle Flex:TextField
LatexName Acrobatmenu
LabelString "PDFAction"
Argument 1
LabelString "Action"
Mandatory 1
AutoInsert 1
ToolTip "The name of the PDF action"
EndArgument
End
#
# Form style layouts
#
Style "Text Field Style"
CopyStyle "Begin PDF Form"
LatexName renewcommand*{\DefaultOptionsofText}
LabelString "Default text field style"
PassThru 1
End
Style "Submit Button Style"
CopyStyle "Text Field Style"
LatexName renewcommand*{\DefaultOptionsofSubmit}
LabelString "Default submit button style"
End
Style "Push Button Style"
CopyStyle "Text Field Style"
LatexName renewcommand*{\DefaultOptionsofPushButton}
LabelString "Default push button style"
End
Style "Check Box Style"
CopyStyle "Text Field Style"
LatexName renewcommand*{\DefaultOptionsofCheckBox}
LabelString "Default check box style"
End
Style "Reset Button Style"
CopyStyle "Text Field Style"
LatexName renewcommand*{\DefaultOptionsofReset}
LabelString "Default reset button style"
End
Style "List Box Style"
CopyStyle "Text Field Style"
LatexName renewcommand*{\DefaultOptionsofListBox}
LabelString "Default list box style"
End
Style "Combo Box Style"
CopyStyle "Text Field Style"
LatexName renewcommand*{\DefaultOptionsofComboBox}
LabelString "Default combo box style"
End
Style "Popdown Box Style"
CopyStyle "Text Field Style"
LatexName renewcommand*{\DefaultOptionsofPopdownBox}
LabelString "Default popdown box style"
End
Style "Radio Box Style"
CopyStyle "Text Field Style"
LatexName renewcommand*{\DefaultOptionsofRadio}
LabelString "Default radio box style"
End
|