]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/tcolorbox.module
Update branch inset inversion explanation
[lyx.git] / lib / layouts / tcolorbox.module
index 4dfed77ede7182c98a68cbe9fa6826e3cfda1cd2..a18cbe4f46d94d725a62dfc5a0cbf8cd067e580d 100644 (file)
@@ -1,12 +1,13 @@
 #\DeclareLyXModule[tcolorbox.sty,environ.sty,etoolbox.sty,pgf.sty]{Fancy Colored Boxes}
+#\DeclareCategory{Boxes}
 #DescriptionBegin
 #Adds custom insets that support colored boxes via the tcolorbox package.
 #See the tcolorbox documentation for details.
 #DescriptionEnd
-#Author: Jürgen Spitzmüller
-#        Uwe Stöhr <uwestoehr@lyx.org>
+#Authors: Jürgen Spitzmüller
+#         Uwe Stöhr <uwestoehr@lyx.org>
 
-Format 54
+Format 95
 
 InsetLayout Flex:Color_Box
   LyXType               custom
@@ -18,38 +19,47 @@ InsetLayout Flex:Color_Box
   Argument 1
     LabelString         "Color Box Options"
     Tooltip             "Insert the color box options here (see tcolorbox manual)"
-    PassThruChars              "\[]{}"
+    PassThruChars       "\[]{}"
+       DocBookTag          IGNORE
   EndArgument
   ResetsFont            true
+  DocBookTag            phrase
+  DocBookAttr           role='color-box'
 End
 
 InsetLayout Flex:Dynamic_Color_Box
-  CopyStyle                        Flex:Color_Box
+  CopyStyle             Flex:Color_Box
   LatexType             command
   LabelString           "Color Box (Dynamic)"
   LatexName             tcbox
+  DocBookTag            phrase
+  DocBookAttr           role='dynamic-color-box'
 End
 
 InsetLayout Flex:Fit_Color_Box
-  CopyStyle                        Flex:Dynamic_Color_Box
+  CopyStyle             Flex:Dynamic_Color_Box
   LabelString           "Color Box (Fit Contents)"
   LatexName             tcboxfit
+  DocBookTag            phrase
+  DocBookAttr           role='fit-color-box'
 End
 
 InsetLayout Flex:Raster_Color_Box
-  CopyStyle                        Flex:Color_Box
+  CopyStyle             Flex:Color_Box
   LabelString           "Raster Color Box"
   LatexName             tcbraster
+  DocBookTag            phrase
+  DocBookAttr           role='raster-color-box'
 End
 
 InsetLayout Flex:Subtitle
-  CopyStyle                    Flex:Dynamic_Color_Box
-  LatexName                    tcbsubtitle
-  LabelString          "Subtitle"
+  CopyStyle            Flex:Dynamic_Color_Box
+  LatexName            tcbsubtitle
+  LabelString          "Subtitle"
   Argument 1
-    LabelString                "Subtitle Options"
-    ToolTip                    "Insert the options here"
-    PassThruChars      "\[]{}"
+    LabelString        "Subtitle Options"
+    ToolTip            "Insert the options here"
+    PassThruChars      "\[]{}"
   EndArgument
 End
 
@@ -82,7 +92,7 @@ Style Color_Box_Line
   CopyStyle        Color_Box_Separator
   LatexName        tcbline
   LabelFont 
-    Color          blue
+    Color          textlabel1
   EndFont
   Requires         tcolorbox
 End
@@ -108,7 +118,7 @@ Style Color_Box_Setup
     Family         typewriter
   EndFont
   LabelFont
-    Color          green
+    Color          textlabel2
     Family         roman
   EndFont
   Requires         tcolorbox
@@ -123,7 +133,7 @@ Style New_Color_Box_Type
     Family         roman
   EndFont
   LabelFont
-    Color          green
+    Color          textlabel2
   EndFont
   Argument 1
     LabelString    "New Box Options"
@@ -134,18 +144,20 @@ Style New_Color_Box_Type
     LabelString    "Name"
     Tooltip        "Name of the new box type"
     Mandatory      1
-    AutoInsert     1    
+    AutoInsert     1
   EndArgument
   Argument 3
     LabelString    "Arguments"
     Tooltip        "Number of arguments (remove this inset if none!)"
     Requires       4
+    PassThru       1
   EndArgument
   Argument 4
     LabelString    "Default Value"
     Tooltip        "Default value for argument (keep empty!)"
     Requires       3
   EndArgument
+  DocBookTag       IGNORE
 End
 
 # define 5 different box environments that can be customized by the user
@@ -159,28 +171,38 @@ InsetLayout Flex:Custom_Color_Box_1
     Tooltip        "Insert more color box options here"
     Mandatory      1
   EndArgument
+  DocBookTag       phrase
+  DocBookAttr      role='color-box-1'
 End
 
 InsetLayout Flex:Custom_Color_Box_2
   CopyStyle        Flex:Custom_Color_Box_1
   LabelString      "Custom Color Box 2"
   LatexName        cBoxB
+  DocBookTag       phrase
+  DocBookAttr      role='color-box-2'
 End
 
 InsetLayout Flex:Custom_Color_Box_3
   CopyStyle        Flex:Custom_Color_Box_1
   LabelString      "Custom Color Box 3"
   LatexName        cBoxC
+  DocBookTag       phrase
+  DocBookAttr      role='color-box-3'
 End
 
 InsetLayout Flex:Custom_Color_Box_4
   CopyStyle        Flex:Custom_Color_Box_1
   LabelString      "Custom Color Box 4"
   LatexName        cBoxD
+  DocBookTag       phrase
+  DocBookAttr      role='color-box-4'
 End
 
 InsetLayout Flex:Custom_Color_Box_5
   CopyStyle        Flex:Custom_Color_Box_1
   LabelString      "Custom Color Box 5"
   LatexName        cBoxE
+  DocBookTag       phrase
+  DocBookAttr      role='color-box-5'
 End