mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
* 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:
parent
1315e5f026
commit
9d9c5959f3
@ -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():
|
||||
|
@ -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]],
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user