]> git.lyx.org Git - features.git/commitdiff
Bump layout format to 40, in preparation for conversion of layout
authorRichard Heck <rgheck@lyx.org>
Wed, 10 Oct 2012 17:22:54 +0000 (13:22 -0400)
committerRichard Heck <rgheck@lyx.org>
Wed, 10 Oct 2012 17:22:54 +0000 (13:22 -0400)
categories.

lib/scripts/layout2layout.py
src/TextClass.cpp

index 585538d2edaf62006897255a2071c0c6b0cf2fdf..a9b5ba35bc7dc94ee0d38e7608e04d7b9cdb1656 100644 (file)
@@ -135,6 +135,9 @@ import os, re, string, sys
 # Incremented to format 39, 15 April 2012 by sanda
 # Introduce styling of branches via "InsetLayout Branch:".
 
+# Incremented to format 40, 10 October 2012 by rgh
+# Re-do layout names for layout categories
+
 # Do not forget to document format change in Customization
 # Manual (section "Declaring a new text class").
 
@@ -142,7 +145,7 @@ import os, re, string, sys
 # development/tools/updatelayouts.sh script to update all
 # layout files to the new format.
 
-currentFormat = 39
+currentFormat = 40
 
 
 def usage(prog_name):
@@ -328,11 +331,12 @@ def convert(lines):
                 i += 1
             continue
 
-        if format == 38:
+        if format == 39:
+          # something more substantil will be inserted here shortly
           i += 1
           continue
 
-        if format == 37:
+        if format == 37 or format == 38:
           i += 1
           continue
 
index d19c08b9242aed71e1a3527d368f32af7fea9397..93eae96b9c2dfb24d86a56a8285002b0c761846b 100644 (file)
@@ -60,7 +60,7 @@ namespace lyx {
 // development/tools/updatelayouts.sh script, to update the format of
 // all of our layout files.
 //
-int const LAYOUT_FORMAT = 39; //sanda branch styling
+int const LAYOUT_FORMAT = 40; // rgh categorized layouts
 
 namespace {