]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/pdfform.module
Honor trailing spaces in LabelString and friends
[lyx.git] / lib / layouts / pdfform.module
index 2a9bccc63cbbd11334b59eb2616f631f1878c994..16c9bda09b9e82b470560351b1fe9cd7241f628d 100644 (file)
@@ -1,12 +1,12 @@
 #\DeclareLyXModule{PDF Form}
 #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 64
 
 #
 # the form environment
@@ -18,27 +18,37 @@ Style "Begin PDF Form"
        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
 
 #
@@ -52,16 +62,17 @@ InsetLayout Flex:TextField
        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
@@ -75,10 +86,10 @@ InsetLayout Flex:ChoiceMenu
        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
 
@@ -109,10 +120,10 @@ InsetLayout Flex:PDFAction
        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