From 98656dd15b705405a6b69ea9c43f4b2b15dd0bfe Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 10 Oct 2012 13:22:54 -0400 Subject: [PATCH] Bump layout format to 40, in preparation for conversion of layout categories. --- lib/scripts/layout2layout.py | 10 +++++++--- src/TextClass.cpp | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/scripts/layout2layout.py b/lib/scripts/layout2layout.py index 585538d2ed..a9b5ba35bc 100644 --- a/lib/scripts/layout2layout.py +++ b/lib/scripts/layout2layout.py @@ -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 diff --git a/src/TextClass.cpp b/src/TextClass.cpp index d19c08b924..93eae96b9c 100644 --- a/src/TextClass.cpp +++ b/src/TextClass.cpp @@ -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 { -- 2.39.2