#\DeclareLyXModule{PDF Form}
+#\DeclareCategory{Annotation & Revision}
#DescriptionBegin
-#Provides various kinds of annotations for the PDF output. The module uses
-#the hyperref package. Please consult LyX example file PDF-form.lyx and the
-#package documentation for details.
+#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 54
+Format 85
#
# the form environment
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"
+ MenuString "PDF Form Parameters"
+ LabelString "Params"
+ Tooltip "Insert PDF form parameters here"
+ AutoInsert 1
EndArgument
LabelFont
Series Bold
Color Green
EndFont
- Requires hyperref
+ 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
#
LatexName TextField
LabelString "TextField"
Argument 1
- MenuString "PDF form parameters"
- LabelString "Params"
- Tooltip "Insert PDF form parameters here"
+ MenuString "PDF Form Parameters"
+ LabelString "Params"
+ Tooltip "Insert PDF form parameters here"
+ AutoInsert 1
+ PassThruChars "\[]{}"
EndArgument
- PassThru 1
LabelFont
Color magenta
Size Small
EndFont
- Requires hyperref
+ Requires hyperref
End
InsetLayout Flex:CheckBox
LatexName ChoiceMenu
LabelString "ChoiceMenu"
Argument 2
- LabelString "Label"
- Mandatory 1
- AutoInsert 1
- ToolTip "Insert the label here"
+ LabelString "Label"
+ Mandatory 1
+ AutoInsert 1
+ ToolTip "Insert the label here"
EndArgument
End
LatexName Acrobatmenu
LabelString "PDFAction"
Argument 1
- LabelString "Action"
- Mandatory 1
- AutoInsert 1
- ToolTip "the name of the PDF action"
+ LabelString "Action"
+ Mandatory 1
+ AutoInsert 1
+ ToolTip "The name of the PDF action"
EndArgument
End