]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/pdfcomment.module
DocBook: implement title for layouts that previously missed it.
[lyx.git] / lib / layouts / pdfcomment.module
index e7ea031642a3469c0cef32554856e27ba3991de1..ce672278881a98a20f66b376cc3786302b16cfcf 100644 (file)
@@ -1,4 +1,5 @@
 #\DeclareLyXModule[datetime.sty,fmtcount.sty]{PDF Comments}
+#\DeclareCategory{Annotation & Revision}
 #DescriptionBegin
 #Provides various kinds of annotations for the PDF output. The module uses
 #the pdfcomment package. Please consult the LyX example file PDF-comment.lyx
@@ -7,7 +8,7 @@
 # Author: Juergen Spitzmueller <spitz@lyx.org>
 #         Uwe Stöhr <uwestoehr@lyx.org>
 
-Format 54
+Format 85
 
 #
 # helper commands
@@ -35,7 +36,7 @@ Style Define_Avatar
          Color                 green
          Series                Bold
        EndFont
-       Requires                pdfcomment
+       Requires                pdfcomment
 End
 
 Style Define_PDF-Comment_Style
@@ -83,7 +84,7 @@ InsetLayout "Flex:PDF-Comment-Setup"
          LabelString           "Opts"
          ToolTip               "Insert PDF-Comment setup options here (see the pdfcomment manual)"
        EndArgument
-       Requires                pdfcomment
+       Requires                pdfcomment
 End
 
 #
@@ -101,12 +102,13 @@ InsetLayout "Flex:PDF-Annotation"
          Size                  Small
        EndFont
        MultiPar                false
+       NewlineCmd              textCR
        Argument 1
          MenuString            "PDFComment Options"
          LabelString           "Opts"
          ToolTip               "Insert PDFComment options here (see pdfcomment manual)"
        EndArgument
-       Requires                pdfcomment
+       Requires                pdfcomment
 End
 
 InsetLayout "Flex:PDF-Margin"
@@ -123,10 +125,13 @@ InsetLayout "Flex:PDF-Markup"
        CopyStyle               "Flex:PDF-Margin"
        LabelString             "PDF (Markup)"
        LatexName               pdfmarkupcomment
+       NeedMBoxProtect         1
+       NewlineCmd              ""
        Argument post:1
          LabelString           "Comment"
          Mandatory             1
          ToolTip               "Insert the comment to the marked-up text here"
+         NewlineCmd            textCR
        EndArgument
 End
 
@@ -134,24 +139,28 @@ InsetLayout "Flex:PDF-Freetext"
        CopyStyle               "Flex:PDF-Margin"
        LabelString             "PDF (Freetext)"
        LatexName               pdffreetextcomment
+       NewlineCmd              ""
 End
 
 InsetLayout "Flex:PDF-Square"
        CopyStyle               "Flex:PDF-Margin"
        LabelString             "PDF (Square)"
        LatexName               pdfsquarecomment
+       NewlineCmd              ""
 End
 
 InsetLayout "Flex:PDF-Circle"
        CopyStyle               "Flex:PDF-Margin"
        LabelString             "PDF (Circle)"
        LatexName               pdfcirclecomment
+       NewlineCmd              ""
 End
 
 InsetLayout "Flex:PDF-Line"
        CopyStyle               "Flex:PDF-Margin"
        LabelString             "PDF (Line)"
        LatexName               pdflinecomment
+       NewlineCmd              ""
 End
 
 InsetLayout "Flex:PDF-Sideline"
@@ -160,10 +169,12 @@ InsetLayout "Flex:PDF-Sideline"
        LatexType               environment
        LatexName               pdfsidelinecomment
        MultiPar                true
+       NewlineCmd              ""
        Argument 2
          LabelString           "Comment"
          Mandatory             1
          ToolTip               "Insert the comment here"
+         NewlineCmd            textCR
        EndArgument
 End
 
@@ -181,6 +192,8 @@ InsetLayout "Flex:PDF-Tooltip"
        CopyStyle               "Flex:PDF-Markup"
        LabelString             "PDF (Tooltip)"
        LatexName               pdftooltip
+       NeedMBoxProtect         0
+       NewlineCmd              ""
        LabelFont
          Color                 red
          Size                  Small
@@ -223,5 +236,5 @@ Style List_of_PDF_Comments
          MenuString            "List Options|s"
          Tooltip               "Insert list options here (see pdfcomment manual)"
        EndArgument
-       Requires                pdfcomment
+       Requires                pdfcomment
 End