* file format 298 to convert macro definitions with optional parameters into ERT. This is still just an empty convertion, waiting for Uwe to find time to implement it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21326 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2007-11-01 11:03:51 +00:00
parent 1315e5f026
commit 9d9c5959f3
3 changed files with 12 additions and 4 deletions

View File

@ -80,7 +80,7 @@ format_relation = [("0_06", [200], minor_versions("0.6" , 4)),
("1_3", [221], minor_versions("1.3" , 7)),
("1_4", range(222,246), minor_versions("1.4" , 5)),
("1_5", range(246,277), minor_versions("1.5" , 2)),
("1_6", range(277,298), minor_versions("1.6" , 0))] # Uwe: Albanian, lower Sorbian
("1_6", range(277,299), minor_versions("1.6" , 0))] # Schimmi: Optional parameters for macros
def formats_list():

View File

@ -689,6 +689,12 @@ def revert_lowersorbian(document):
j = j + 1
def revert_macro_optional_params(document):
"Convert macro definitions with optional parameters into ERTs"
# Stub to convert macro definitions with one or more optional parameters
# into uninterpreted ERT insets
def revert_uppersorbian(document):
"Set language uppersorbian to usorbian as this was used in LyX 1.5"
# Set document language from uppersorbian to usorbian
@ -750,10 +756,12 @@ convert = [[277, [fix_wrong_tables]],
[294, [convert_pdf_options]],
[295, [convert_htmlurl, convert_url]],
[296, [convert_include]],
[297, [convert_usorbian]]
[297, [convert_usorbian]],
[298, []]
]
revert = [[296, [revert_albanian, revert_lowersorbian, revert_uppersorbian]],
revert = [[297, [revert_macro_optional_params]],
[296, [revert_albanian, revert_lowersorbian, revert_uppersorbian]],
[295, [revert_include]],
[294, [revert_href]],
[293, [revert_pdf_options_2]],

View File

@ -156,7 +156,7 @@ namespace fs = boost::filesystem;
namespace {
int const LYX_FORMAT = 297; //Uwe: Albanian, lower Sorbian
int const LYX_FORMAT = 298; //Schimmi: Optional parameters in macros
} // namespace anon