Commit Graph

277 Commits

Author SHA1 Message Date
Richard Heck
2287446d04 Minor cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36069 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 16:01:47 +00:00
Richard Heck
b04159cf21 My thinko, this time.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36068 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 16:00:33 +00:00
Richard Heck
540802f717 Move generally useful routines out of lyx_2_0.py and into modules. We
keep copying these from one file to another each new release.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36067 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 15:59:38 +00:00
Richard Heck
5e4493d97b Move generally useful parser routines to parser_tools.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36065 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 15:44:32 +00:00
Richard Heck
5d0a284ea9 Clean up remove_option routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36064 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 15:42:28 +00:00
Richard Heck
3fae2dee95 Clean up greyed out notes reversion.
Also, fix up the insert_to_preamble routine.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36063 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 15:39:32 +00:00
Richard Heck
f9f0c57da2 OK, so that version of revert_inset_preview wasn't so good. Restore the
complicated code, but note its issues.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36061 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 15:33:19 +00:00
Richard Heck
49a2a04963 Minor fixups to xymatrix reversion routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36060 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 15:05:42 +00:00
Richard Heck
69cd79b7e7 Clean up revert_inset_preview, and disable some of the more complex
code. As noted in the comment, it does not work as intended.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36059 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 14:53:55 +00:00
Richard Heck
adedac675b Fix earlier mistake.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36057 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 14:23:47 +00:00
Richard Heck
2ad71f22ce Fix multirow reversion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36056 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 14:20:10 +00:00
Richard Heck
4091078fb4 Add warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36055 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 14:00:56 +00:00
Richard Heck
3215a451dd Fix revert_mhchem routine.
Please remember that find_token only looks at the beginning of the line!


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36054 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 13:56:46 +00:00
Richard Heck
bbacb7c5be Simplify revert_suppress_date.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36051 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 13:43:33 +00:00
Richard Heck
1bc5f3cb2b Clean up author id reversion routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36050 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 13:42:19 +00:00
Richard Heck
e49676094d Clean up author id conversion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36049 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 13:34:56 +00:00
Richard Heck
4f04086c97 Fix up revert_hspace_glue_lengths.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36048 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 13:22:00 +00:00
Richard Heck
04157a2820 Remove comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36047 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 13:06:16 +00:00
Richard Heck
fd62002d1b Let latex_length return a tuple. Saves splitting, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36046 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 13:05:19 +00:00
Richard Heck
5d6f9b620d Fix up hspace reversion routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36045 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:59:44 +00:00
Richard Heck
53f88eea18 Simplify vspace reversion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36044 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:51:57 +00:00
Richard Heck
d423df4366 Forgot these.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36043 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:47:18 +00:00
Richard Heck
fbfdef21f1 Reduce indentation. Also, it is probably not a good idea to use "string"
as a variable name here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36042 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:46:38 +00:00
Richard Heck
dcc164407a Slightly simplify revert_percent_skip_lengths.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36041 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:43:19 +00:00
Richard Heck
4a1558855c Simplify revert_paragraph_indentation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36040 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:38:56 +00:00
Richard Heck
bd11f5a78c Fix up revert_longtable_align routine. Also, fix a couple thinkos in an
earlier tabular routine.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36039 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:32:09 +00:00
Richard Heck
c2a9361960 Slight simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36037 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:24:33 +00:00
Richard Heck
248bd19a72 Add warning, save cycles.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36036 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:23:36 +00:00
Richard Heck
18a30566cb Save a few cycles.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36035 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:20:55 +00:00
Richard Heck
155b339d84 Don't return yet! We need to check the other one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36034 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:20:03 +00:00
Richard Heck
3ac94820db Comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36033 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:19:14 +00:00
Richard Heck
03efa930c6 Remove unnecessary argument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36032 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:15:49 +00:00
Richard Heck
a678ee4bdf Renaming.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36031 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:11:26 +00:00
Richard Heck
b98dcee860 Minor cleanup for additional index reversion routines.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36027 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 01:07:42 +00:00
Richard Heck
3bb4bbd8b8 Clean up split index reversion routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36026 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 01:04:39 +00:00
Richard Heck
ab80a57edd One more minor thing....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36025 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 23:35:40 +00:00
Richard Heck
ce7c1afc34 Simplify revert_backgroundcolor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36024 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 23:34:45 +00:00
Richard Heck
dfad3972db Clean up other phantom reversions, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36023 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 23:14:32 +00:00
Richard Heck
e3a577ba15 Clean up the revert_phantom routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36022 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 23:11:01 +00:00
Richard Heck
838adc69aa Try to fix revert_tabularvalign.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36021 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 22:53:15 +00:00
Richard Heck
40ad4b4d63 Just a restructuring, with early continue.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36020 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 22:22:00 +00:00
Richard Heck
7dad1e1c5d Fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36019 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 22:19:09 +00:00
Richard Heck
c5fb71f2c1 Fix comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36018 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 22:18:17 +00:00
Richard Heck
488a07752f Simplify a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36017 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 22:16:01 +00:00
Richard Heck
5a83d1444f Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36016 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 22:14:36 +00:00
Richard Heck
04024c1265 Clarify convert_rule routine. A bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36015 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 22:06:43 +00:00
Richard Heck
b6a6520118 Clean up revert_rule routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36014 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 22:01:30 +00:00
Richard Heck
48ffa78c9a Fix another thinko of mine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36000 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 15:37:53 +00:00
Richard Heck
580a984e2c Fix lyx2lyx problem related to bug #1881.
It is dangerous (i.e., foolish) to rely upon assumptions about exactly
how many lines there will be between one structure and another structure
in a LyX file. No such things should be hardcoded into lyx2lyx. You must
ALWAYS search for what you want, e.g., the beginning of the layout in 
which some particular inset is contained. 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35998 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 15:24:49 +00:00
Richard Heck
e37525b0ba Fix typo/thinko here. It's the match result we want to check, of course.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35994 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 14:47:28 +00:00
Uwe Stöhr
76a76635aa lyx_2_0.py: correct comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35935 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 19:11:46 +00:00
Uwe Stöhr
e7f16c2a3b lyx2lyx/lyx_2_0.py: remove another unused debug warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35644 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 01:36:15 +00:00
Richard Heck
01013c0785 Refstyle support. The user can now choose between prettyref and restyle
for formatted references. Fixes #2295, in so far as it makes it possible
to translate formatted references.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35623 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 12:36:53 +00:00
Uwe Stöhr
cde054cc6b lyx_2_0.py: remove a debug warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35619 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 02:29:00 +00:00
Richard Heck
d4634167cc Get rid of "CharStyle:", "Custom:", and "Element:" prefixes, per a
suggestion of JMarc's. Docs to follow.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35608 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-12 14:46:17 +00:00
Uwe Stöhr
e8a1fed47c InsetBibtex.cpp:
- fix #1881, fileformat change
- fix #6470

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35590 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-11 01:05:20 +00:00
Richard Heck
7192937ab5 Revert the beamer changes from a while ago. They work with some documents,
but not with all. There's a general problem here that will take more work.
I've got most of it licked, but the lyx2lyx issue is difficult. 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35495 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 22:34:52 +00:00
Uwe Stöhr
4580296b8f lyx2lyx/lyx_2_0.py:
- fix mathdots conversion routine
- fix typo in feyn reversion routine

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35462 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-20 02:24:03 +00:00
Uwe Stöhr
1787e837e7 lyx2lyx/lyx_2_0.py: fix bug in the feyn reversion routine
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35461 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-20 01:55:34 +00:00
Pavel Sanda
65962da47b Add support for feyn package and Diagram inset.
Patch from Ronen Abravanel.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161952.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35455 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-19 22:12:06 +00:00
Uwe Stöhr
0e7ab29f49 InsetLine: support for the LaTeX command \rule; kick out the hardcoded \lyxline; fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35299 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 00:41:00 +00:00
Uwe Stöhr
35846ee63a lyx_2_0.py: fixes for the mathdots conversion/reversion routines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35287 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 00:31:45 +00:00
Uwe Stöhr
c1a97abe37 lyx_2_0.py:
- add missing conversion routine for latest fileformat change
- fix reversion of latest fileformat change

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35249 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-31 23:31:32 +00:00
Uwe Stöhr
1712e4f35e support to load the mathdots package via the document settings; fixes #5373; fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35241 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-31 02:04:46 +00:00
Uwe Stöhr
457466bb18 lyx_2_0.py: fix comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34948 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 19:29:13 +00:00
Richard Heck
9eaefc1eb6 Uwe's use_makebox conversion routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34947 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 18:10:37 +00:00
Uwe Stöhr
72292b98a6 support for formal math script
- fileformat change
- fixes #2340

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34941 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 15:51:11 +00:00
Uwe Stöhr
f06e7dcedf lyx_2_0.py: whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34939 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 15:23:21 +00:00
Richard Heck
7d4c560f87 Remove Nameref support. Too many issues involving translation, quotes,
etc.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34920 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-16 15:19:04 +00:00
Richard Heck
af93776127 Slight improvement and a comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34892 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 21:10:26 +00:00
Richard Heck
92f1fe3f1f Fix the nameref reversion routine per a suggestion of Uwe's: We just
revert to ERT.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34891 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 21:07:26 +00:00
Richard Heck
f27ea2457d These didn't get committed with r34884 because I forgot to "svn
resolved" them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34888 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 14:02:57 +00:00
Uwe Stöhr
e2e63b4b1b support for the ISO C-series paper formats; fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34883 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 01:06:20 +00:00
Uwe Stöhr
af6de17818 lyx_2_0.py: fix reversion routine for \makebox support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34807 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-08 02:24:13 +00:00
Enrico Forestieri
63511e17f8 Improve the lyx2latex function.
- Avoid processing lines of a note inset, as we are going to discard them
- Translate the horizontal space inset
- Correct translation of \backslash
- Correct translation of ^ (\^ is an accent in latex)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34799 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-07 10:16:53 +00:00
Uwe Stöhr
bcd8b9a1f1 lyx_2_0.py: coding style fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34794 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 23:56:47 +00:00
Enrico Forestieri
7fd69c63a7 Fix reversion of IEEEtran layout documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34789 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 19:20:19 +00:00
Richard Heck
1a3629d720 Don't rely upon there being a certain number of argumnets to the box inset.
Some later LyX version might omit defaults without lyx2lyx to replace them.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34787 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 14:50:59 +00:00
Richard Heck
673e65cc15 Off by one here. Left an extra \begin_layout line.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34786 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 14:38:10 +00:00
Richard Heck
87a93a35e6 Fix up the put_cmd_in_ert routine so that it accepts either a list
or a string as input, and does the right thing either way. Previously,
when it saw a string "test" it would convert it to "t\ne\ns\nt", since
it was quite happy to call join() on the string.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34785 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 14:24:17 +00:00
Richard Heck
8d18af0309 More elses after returns.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34784 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 14:00:30 +00:00
Richard Heck
2909e6450b Return here unless the doc class is correct.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34783 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 13:50:23 +00:00
Richard Heck
9defda7c32 Style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34782 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 13:38:27 +00:00
Richard Heck
ec6ae81572 No else after return.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34781 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 13:36:33 +00:00
Uwe Stöhr
27f9f5b0c3 lyx_2_0.py: revert unwanted changes from r34773
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34776 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 03:30:35 +00:00
Uwe Stöhr
887343ca05 lyx2lyx/lyx_2_0.py:
- add routine to revert command environments specified in layout files
- finish routine for the new IEEEtran layout file (part 2/2)
  (very nasty but the only working solution)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34774 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 03:22:36 +00:00
Uwe Stöhr
6fd3bfd092 lyx_2_0.py:
- fix a bug
 - some coding style fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34773 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 03:16:49 +00:00
Richard Heck
d250f9a7c2 Don't need else after return.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34772 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-05 22:30:54 +00:00
Richard Heck
9211fe72c1 Fix spacing problem and thereby fix 6802.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34771 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-05 22:22:48 +00:00
Uwe Stöhr
8cc770423d lyx2lyx/lyx_2_0.py:
- add routine to revert character styles
- revert character styles to TeX code instead of deleting them - fixes #6803

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34754 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-05 03:19:54 +00:00
Uwe Stöhr
8adb1e690a lyx2lyx/lyx_2_0.py:
- add routine to revert flex insets to TeX code
- add routine for the new IEEEtran layout file (part 1/2)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34753 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-05 02:01:10 +00:00
Uwe Stöhr
ebcef496a5 - new support for makebox; fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34748 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-03 13:14:15 +00:00
Uwe Stöhr
b77c2213cb lyx2lyx/lyx_2_0.py: correct LateX units - there are no units named \pagexxxx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34747 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-03 13:05:24 +00:00
Richard Heck
0345bef67b Renaming: \\begin_inset OptArg to \\begin_inset Argument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34619 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-07 21:58:27 +00:00
Richard Heck
c43de0dd4b This was missing from a previous commit: Didn't go because I'd forgotten
to `svn resolve' it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34617 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-07 21:29:31 +00:00
Edwin Leuven
0ebe0ff37e add support for decimal alignment in tables
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34598 a592a061-630c-0410-9148-cb99ea01b6c8
2010-06-05 07:44:44 +00:00
Pavel Sanda
245e58fe13 Finish the leftover spotted by Uwe
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34547 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-31 09:07:03 +00:00
Uwe Stöhr
468f219f77 lyx_2_0.py: add missing lxy2lyx routine after r34498
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34545 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-31 00:50:43 +00:00
Pavel Sanda
9f9104d9c4 Introduce output_sync ui for forward/reverse search
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34498 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-25 11:36:00 +00:00
Richard Heck
b174e5616e Simplify storage of html_latex_* info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34491 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-24 19:34:43 +00:00
Uwe Stöhr
b4e99d6396 lyx_2_0.py: fix paper size conversion routine
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34448 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-22 01:42:14 +00:00
Uwe Stöhr
d4d073c667 lyx_2_0.py: fix Python error due to uninitialized variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34447 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-22 01:15:50 +00:00
Uwe Stöhr
700447301c support for all page sizes that are supported by the geometry package; fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34427 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-18 01:22:08 +00:00
Richard Heck
5678dc566f New XHTML math options. Format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34250 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 15:18:25 +00:00
Richard Heck
f608e878f3 Just do the best we can here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34211 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 22:24:14 +00:00
Richard Heck
4dd12f4dc6 Something weird is happening here, as reported by Enrico.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34198 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-18 00:57:57 +00:00
Richard Heck
49945d3fac LyX version info for InsetInfo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34186 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-17 13:04:41 +00:00
Uwe Stöhr
84a2af2edb fileformat change: support to specify the background color of shaded boxes
- new buffer parameter \boxbgcolor

(I'm still working on the remaining issue #6626 as this affect not only this feature.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34083 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 00:14:08 +00:00
Uwe Stöhr
4e2cd30657 fileformat change: support to specify a document-wide font color
- new buffer parameter \fontcolor
- the default color is internally black because we have to set a color
- the font color is only used when the user explicitly specified a color

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34042 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 23:39:36 +00:00
Uwe Stöhr
879ed8e2ed fileformat change:
- support for Turkmen

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34000 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-01 00:40:19 +00:00
Uwe Stöhr
33978c0b1b fileformat change:
- support to change the greyed-out note font color (fixes #3865)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33962 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 00:46:50 +00:00
Richard Heck
3cc5a2e800 Use the new put_cmd_in_ert routine in the xymatrix reversion routine.
Vincent, can you check (again) that I didn't break this wiht an off by
one error or something?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33916 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 17:05:21 +00:00
Richard Heck
205feb0704 Introduce a proper form of the put_cmd_in_ert function.
Even if this doesn't get used in 2.0, we'll at least have it for later.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33915 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 17:01:41 +00:00
Richard Heck
9f3253a34e Rename a routine. The new one comes next.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33914 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 16:37:30 +00:00
Richard Heck
7ba836548f Fix a minor bug in the xymatrix lyx2lyx stuff and make it a bit more
pythonic.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33913 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 16:29:57 +00:00
Vincent van Ravesteijn
81dc517306 Fix bug #6341: Can't set equal spacing in xymatrix.
Fix the file format change that was introduced in r32518.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33893 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-28 16:29:25 +00:00
Vincent van Ravesteijn
a4ec2fc8fe New file format for InsetPreview introduced in r38890.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33891 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-28 14:52:47 +00:00
Richard Heck
6b8532784b Fix thinko.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33829 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-21 21:05:14 +00:00
Richard Heck
72d110bb6e Add a math-as-LaTeX option, and fix some issues with lyx2lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33801 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-19 15:02:12 +00:00
Richard Heck
d8a1720d56 Give ourselves a little more flexibility about math output under XHTML.
I think it will be worth implementing a version of pure HTML output, for
some uses, a la eLyXer.

Note that at present none of this does anything, and there is no UI to
set it. I just want to make sure it's in the file format, in case I do
not get to this before 2.0.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33794 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-18 20:35:08 +00:00
Vincent van Ravesteijn
36c1de09a7 Do not output a warning about missing the width of a nomencl_print. The width will not be outputted if it's empty and this is the case when the nomencl_print has "set_width" set to auto or none.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33559 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-24 18:14:23 +00:00
Pavel Sanda
5942071ccb Fileformat++ as a safety measure.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33430 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-12 01:57:49 +00:00
Uwe Stöhr
59d0045a72 lyx_2_0.py: fix routine to revert multirows so that it works in all cases (independent if a table cell includes further insets)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33423 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-12 01:10:45 +00:00
Uwe Stöhr
34012e0bee lyx_2_0.py:
- fix the "revert_tabularvalign" routine (avoid endless loop when a cell contains ERT)
- add a command in routine "revert_nomencl_cwidth"
- routine to revert multirow table cells

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33419 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-11 04:10:57 +00:00
Uwe Stöhr
8bb69f24b6 support for multirows in tables:
- fileformat change (lyx2lyx code follows the next days)
- the patch is a joint work of Edwin and me

The patch is huge but the major parts work already. I put it in now as the minor known issues can be solved step by step the next days. I think this is the best solution because collaborating with such large patches already lead to copy/paste bugs.

The known issues are listed here:
http://wiki.lyx.org/Devel/Multirow

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33414 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-11 01:07:54 +00:00
Jürgen Spitzmüller
7a7ab8f14b Add an option to assure that all aux files are maintained when using the includeonly feature, so that the
page numbering and the references of the master file are maintained in the included children (bug 1005).

I made this optional since some people use \includeonly to save compilation time, but a proper aux file update
needs a full compilation of the complete master prior to the compilation of the \includeonly master.

Hence, a new buffer param is introduced (file format change). 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32936 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-10 13:25:41 +00:00
Jürgen Spitzmüller
1ccfe14914 * Add native support for \includeonly (bug 5360).
File format change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32826 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 10:01:26 +00:00
Richard Heck
28e9474f7a Some BufferParams for XHTML output.
These are not actually implemented yet, but I wanted to make sure to get
them into the format now, so even if I can't implement them before the
1.7 release, I can do so during the release cycle, without a format
change. I don't expect that to happen, but you never know....


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32683 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-30 22:22:33 +00:00
Jürgen Spitzmüller
123a589bf8 * Fix bug #2144: Merge the two identical classes g-brief-de and g-brief-en into one class g-brief.
The German layouts are replaced by the English ones.
German localization is now done as it is supposed to be: via gettext.

A file format change was needed to do this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32406 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-07 11:53:25 +00:00
Jürgen Spitzmüller
48168a92b4 * Forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32229 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-29 14:43:17 +00:00
Uwe Stöhr
d5099c8605 - introduce option to suppress the LaTeX package mhchem, fileformat change
The fileformat change is also needed because of our mistake that we load mhchem since LyX 1.6.4 automatically so that files created with LyX 1.6.4 won't compile under LyX 1.6.3. Now at least all files created or opened with LyX 1.7 can be reverted to the fileformat of LyX 1.6.x and can therefore be read by all LyX 1.6.x versions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31941 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-11 01:48:07 +00:00
Uwe Stöhr
33eec90086 new document option to suppress the default date, fileformat change, fixes #5823
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31028 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-14 00:52:33 +00:00
Vincent van Ravesteijn
716143d3d4 Fix wrong lyx2lyx routines for r30756.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30764 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-24 20:48:49 +00:00
Vincent van Ravesteijn
966687d98b Fix bug #6058: Change tracking not usable in version control.
This patch makes sure that there are minimal changes when loading and saving a file with change tracking.

- the authors are assigned a buffer_id, such that when the file is saved, they get the same id,
- the authorlist is sorted according to the buffer_id,
- the buffer_id is written to the file in the author list (file format change)
- the ids start with 1, because 0 is internally reserved for the current Author,
- when writing the file, the current author is assigned an id if he didn't already have it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30756 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-23 20:08:05 +00:00
Jürgen Spitzmüller
d2bba0b048 * lyx_2_0.py (latex_length):
- simplify.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30745 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-22 07:39:57 +00:00
Jürgen Spitzmüller
42218ca7b1 * lyx_2_0.py:
- further code simplifications.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30744 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-22 06:34:34 +00:00
Jürgen Spitzmüller
8d898ad5b7 * lyx_2_0.py (revert_hspace_glue_lengths):
- proceed after non-glue hspace.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30739 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 17:48:03 +00:00
Jürgen Spitzmüller
9a594992d2 * lyx_2_0.py (revert_percent_hspace_lengths, revert_hspace_glue_lengths):
- further simplifications of the code.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30738 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 17:41:00 +00:00
Jürgen Spitzmüller
21c5e4633d * lyx_2_0.py (revert_percent_hspace_lengths, revert_hspace_glue_lengths):
- fix bug where a \hspace*{} was not reverted if it was followed by a \hspace{}.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30737 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 17:19:33 +00:00
Jürgen Spitzmüller
e59b0d2c28 * lyx_2_0.py:
- use predefined methods for getting length values.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30736 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 17:02:26 +00:00
Uwe Stöhr
e09862ec15 lyx_2_0.py: fix glue length reversion routine again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30733 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 15:51:36 +00:00
Uwe Stöhr
34ab111257 lyx_2_0.py: re-add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30729 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 13:19:51 +00:00
Uwe Stöhr
e65445a650 lyx_2_0.py: fix glue length reversion routine
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30728 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 13:14:02 +00:00
Uwe Stöhr
1016353a5e lyx_2_0.py: add comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30725 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 12:02:48 +00:00
Uwe Stöhr
0b33b9d090 allow to use glue lengths in the HSpace dialog; file format change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30724 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-21 11:51:43 +00:00
Uwe Stöhr
efd4f71fbd allow the usage of relative lengths in the HSpace and the VSpace dialog; file format change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30710 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 11:22:51 +00:00
Uwe Stöhr
da35be8a07 lyx_2_0.py: remove unnecessary initializations
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30697 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 22:24:42 +00:00
Uwe Stöhr
6b970c0339 GuiDocument.cpp: allow to use percent lengths for the paragraph skip separation; file format change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30696 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 22:08:58 +00:00
Uwe Stöhr
d7e6c2a539 lyx_2_0.py: correct comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30695 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 21:18:31 +00:00
Uwe Stöhr
53e7a92494 support to specify the paragraph indentation in the document settings dialog; introduces the new class HSpace; - file format change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30694 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 21:13:27 +00:00