]> git.lyx.org Git - lyx.git/log
lyx.git
13 years agosr.po:
Uwe Stöhr [Sun, 7 Nov 2010 15:28:21 +0000 (15:28 +0000)]
sr.po:
- add missing EOL style
- update SCons

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36188 a592a061-630c-0410-9148-cb99ea01b6c8

13 years ago* sk.po
Kornel Benko [Sun, 7 Nov 2010 12:29:00 +0000 (12:29 +0000)]
* sk.po

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36186 a592a061-630c-0410-9148-cb99ea01b6c8

13 years ago* sr.po: new po file (for Serbian) by Zoran T. Filipovic. Not in LINGUAS since it...
Jürgen Spitzmüller [Sun, 7 Nov 2010 11:12:09 +0000 (11:12 +0000)]
* sr.po: new po file (for Serbian) by Zoran T. Filipovic. Not in LINGUAS since it's still rudimentary.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36184 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoGuiTabular: support for multirow offset; fileformat change
Uwe Stöhr [Sun, 7 Nov 2010 05:32:28 +0000 (05:32 +0000)]
GuiTabular: support for multirow offset; fileformat change

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36182 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFORMAT: add missing entry from r36163 - JMarc, Richard?
Uwe Stöhr [Sun, 7 Nov 2010 04:49:29 +0000 (04:49 +0000)]
FORMAT: add missing entry from r36163 - JMarc, Richard?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36181 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoGuiTabular.cpp:
Uwe Stöhr [Sun, 7 Nov 2010 03:01:26 +0000 (03:01 +0000)]
GuiTabular.cpp:
- apply our naming scheme to unit comboboxes
- set default units

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36180 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoNew gettext, new habits
Pavel Sanda [Sun, 7 Nov 2010 01:54:47 +0000 (01:54 +0000)]
New gettext, new habits

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36179 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoNext rescues from r33594, r29337
Pavel Sanda [Sun, 7 Nov 2010 01:49:53 +0000 (01:49 +0000)]
Next rescues from r33594, r29337

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36178 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoRescue proper value from r29337
Pavel Sanda [Sun, 7 Nov 2010 01:49:48 +0000 (01:49 +0000)]
Rescue proper value from r29337

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36177 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoRescue proper value for bg.po from r33594
Pavel Sanda [Sun, 7 Nov 2010 01:49:44 +0000 (01:49 +0000)]
Rescue proper value for bg.po from r33594

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36176 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoRemerge files which are currently denied by LINGUAS
Pavel Sanda [Sun, 7 Nov 2010 01:49:30 +0000 (01:49 +0000)]
Remerge files which are currently denied by LINGUAS

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36175 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoRemerge strings.
Pavel Sanda [Sun, 7 Nov 2010 00:55:26 +0000 (00:55 +0000)]
Remerge strings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36174 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMovement of .po files which were newer in branch,
Pavel Sanda [Sun, 7 Nov 2010 00:33:54 +0000 (00:33 +0000)]
Movement of .po files which were newer in branch,
more comments on dev-list.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36173 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoReported by BH
Pavel Sanda [Sun, 7 Nov 2010 00:25:06 +0000 (00:25 +0000)]
Reported by BH

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36172 a592a061-630c-0410-9148-cb99ea01b6c8

13 years ago* UPGRADING
Pavel Sanda [Sat, 6 Nov 2010 23:27:01 +0000 (23:27 +0000)]
* UPGRADING

Richard, there is probably one paragraph about
refstyle changes and our intensions in future to
be added at the end of this file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36171 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoUpdate docs
Pavel Sanda [Sat, 6 Nov 2010 23:24:50 +0000 (23:24 +0000)]
Update docs

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36170 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFeel free to add items if you miss something
Pavel Sanda [Sat, 6 Nov 2010 23:07:19 +0000 (23:07 +0000)]
Feel free to add items if you miss something

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36169 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoAiksaurus has been killed
Pavel Sanda [Sat, 6 Nov 2010 22:55:00 +0000 (22:55 +0000)]
Aiksaurus has been killed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36168 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFrom what I read Qt 4.2 is dead because of new threads code
Pavel Sanda [Sat, 6 Nov 2010 22:53:12 +0000 (22:53 +0000)]
From what I read Qt 4.2 is dead because of new threads code

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36167 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoRemove one FIXME.
Richard Heck [Sat, 6 Nov 2010 18:42:19 +0000 (18:42 +0000)]
Remove one FIXME.
Remove "added by lyx2lyx"-type comment. This is now added automatically
by add_to_preamble (and insert_to_preamble, too).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36166 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agolyx_2_0.py:
Uwe Stöhr [Sat, 6 Nov 2010 17:42:26 +0000 (17:42 +0000)]
lyx_2_0.py:
- remove 2 fixmes; we can be sure that there is space between the table entries
- add comment for the preamble that got lost the last days

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36165 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoThis patch implements proper ERT behaviour for normal layouts.
Jean-Marc Lasgouttes [Sat, 6 Nov 2010 15:06:19 +0000 (15:06 +0000)]
This patch implements proper ERT behaviour for normal layouts.
In particular, it makes paragraph breaks generate single \n in latex output
when ParbreakIsNewline is true

This means that it is not necessary anymore to use newlines to break lines.
Plain paragraph breaks can be used instead, like is done now in ERT/Listings.
This is mainly aimed at sweave support.

lyx2lyx support courtesy of Richard Heck

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36163 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoComment
Pavel Sanda [Sat, 6 Nov 2010 12:32:47 +0000 (12:32 +0000)]
Comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36162 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoimplementation for "Compare with older revision" for CVS, correct return value of...
Stephan Witt [Sat, 6 Nov 2010 12:18:09 +0000 (12:18 +0000)]
implementation for "Compare with older revision" for CVS, correct return value of SVN::prepareFileRevision for failure to create tmp file

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36161 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agocheck for user cancel or errors on vcs revert before reload of buffer in LFUN_VC_REVERT
Stephan Witt [Sat, 6 Nov 2010 11:54:08 +0000 (11:54 +0000)]
check for user cancel or errors on vcs revert before reload of buffer in LFUN_VC_REVERT

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36160 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoSquash warning.
Richard Heck [Sat, 6 Nov 2010 03:17:23 +0000 (03:17 +0000)]
Squash warning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36159 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMove the lyx2lyx guide to coding/.
Richard Heck [Sat, 6 Nov 2010 03:08:02 +0000 (03:08 +0000)]
Move the lyx2lyx guide to coding/.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36158 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMore lyx2lyx documentation.
Richard Heck [Sat, 6 Nov 2010 03:07:34 +0000 (03:07 +0000)]
More lyx2lyx documentation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36157 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFix bug #7019 (Math labels should not be escaped on saving)
Enrico Forestieri [Sat, 6 Nov 2010 02:53:29 +0000 (02:53 +0000)]
Fix bug #7019 (Math labels should not be escaped on saving)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36156 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoQuickfix closing #6396.
Pavel Sanda [Sat, 6 Nov 2010 02:38:35 +0000 (02:38 +0000)]
Quickfix closing #6396.
sleep sleep

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36154 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFix RCS part of #6396. Btw revert is slightly broken now...
Pavel Sanda [Sat, 6 Nov 2010 02:21:04 +0000 (02:21 +0000)]
Fix RCS part of #6396. Btw revert is slightly broken now...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36153 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoThe beginnings of a "Programming lyx2lyx" manual, probably to be
Richard Heck [Sat, 6 Nov 2010 00:48:00 +0000 (00:48 +0000)]
The beginnings of a "Programming lyx2lyx" manual, probably to be
extended to prefs2prefs, once that's working.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36152 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoReadd the conversion/reversion for format 405.
Vincent van Ravesteijn [Sat, 6 Nov 2010 00:39:06 +0000 (00:39 +0000)]
Readd the conversion/reversion for format 405.

This was accidentally removed in r36136.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36151 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoCompil fix
Pavel Sanda [Sat, 6 Nov 2010 00:34:03 +0000 (00:34 +0000)]
Compil fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36150 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agosrc/support/debug.h/cpp:
Vincent van Ravesteijn [Sat, 6 Nov 2010 00:22:47 +0000 (00:22 +0000)]
src/support/debug.h/cpp:

- rename the private member dt to dt_,
- rename second_ and second_used_ to second_stream and second_enabled_ to have the same terminology as the stream_ and enabled_ member,
- remove FIXME because now we have a Qt pane showing the messages,
- adjust some comments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36149 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoCVS implementation for buffer-info vcs-author, cvs-date and cvs-time
Stephan Witt [Sat, 6 Nov 2010 00:20:42 +0000 (00:20 +0000)]
CVS implementation for buffer-info vcs-author, cvs-date and cvs-time

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36148 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoCompil fix
Pavel Sanda [Sat, 6 Nov 2010 00:04:21 +0000 (00:04 +0000)]
Compil fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36147 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoClarify comment.
Vincent van Ravesteijn [Fri, 5 Nov 2010 21:23:26 +0000 (21:23 +0000)]
Clarify comment.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36146 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoRemove the FileName parameter of Buffer::loadLyXFile and friends. Now, getAutosaveFil...
Vincent van Ravesteijn [Fri, 5 Nov 2010 21:21:01 +0000 (21:21 +0000)]
Remove the FileName parameter of Buffer::loadLyXFile and friends. Now, getAutosaveFileNameFor and getEmergencyFileNamefor can be removed too. Last, the call to lyxvc.file_found_hook can now be centralized and can be given the correct parameter (d->filename instead of the name of the emergency/autosave file).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36145 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoA couple more comments.
Richard Heck [Fri, 5 Nov 2010 21:14:49 +0000 (21:14 +0000)]
A couple more comments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36144 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoComment out some unused code to save a little load time. It also helps
Richard Heck [Fri, 5 Nov 2010 21:13:33 +0000 (21:13 +0000)]
Comment out some unused code to save a little load time. It also helps
readers of the class to know what's used and what's not.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36143 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoWhitespace.
Richard Heck [Fri, 5 Nov 2010 21:12:44 +0000 (21:12 +0000)]
Whitespace.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36142 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoAllow for nested setBusy calls.
Vincent van Ravesteijn [Fri, 5 Nov 2010 20:24:58 +0000 (20:24 +0000)]
Allow for nested setBusy calls.

Before, LyX could crash when calling setBusy(false) while LyX is still in a busy state due to a surrounding setBusy(true)/setBusy(false) construction.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36140 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMake sure we delete this line.
Richard Heck [Fri, 5 Nov 2010 20:13:58 +0000 (20:13 +0000)]
Make sure we delete this line.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36139 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFind the end of this layout, not the first end_layout tag we see!
Richard Heck [Fri, 5 Nov 2010 20:11:51 +0000 (20:11 +0000)]
Find the end of this layout, not the first end_layout tag we see!
Math manual now exports right.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36138 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMake sure we extend with a list.
Richard Heck [Fri, 5 Nov 2010 20:11:19 +0000 (20:11 +0000)]
Make sure we extend with a list.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36137 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoUse find_token_exact so that we do not also find hspace*.
Richard Heck [Fri, 5 Nov 2010 19:59:24 +0000 (19:59 +0000)]
Use find_token_exact so that we do not also find hspace*.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36136 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoRemove use_makebox option from other boxes, too.
Richard Heck [Fri, 5 Nov 2010 19:51:06 +0000 (19:51 +0000)]
Remove use_makebox option from other boxes, too.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36135 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFix bug #6058: Change tracking and versioning.
Vincent van Ravesteijn [Fri, 5 Nov 2010 18:25:29 +0000 (18:25 +0000)]
Fix bug #6058: Change tracking and versioning.

Computes a hash value for the authors when using change tracking.

Text.cpp, BufferParams.h, Author.h:
  Change unsigned int to int because the hash values can be negative.

lyx2lyx:
  Allow to convert negative author_ids.

See also: r30756.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36134 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoImprove how add_to_preamble and insert_to_preamble work, and audit the
Richard Heck [Fri, 5 Nov 2010 17:54:57 +0000 (17:54 +0000)]
Improve how add_to_preamble and insert_to_preamble work, and audit the
various calls to each.

This should more or less complete the lyx2lyx orgy. Some things probably
will have been broken by accident. Hopefully not too many, and more
things that were broken got fixed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36133 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoinsert_to_preamble likes lists of lines.
Richard Heck [Fri, 5 Nov 2010 17:39:21 +0000 (17:39 +0000)]
insert_to_preamble likes lists of lines.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36132 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoThese commands should just take some lines.
Richard Heck [Fri, 5 Nov 2010 17:35:53 +0000 (17:35 +0000)]
These commands should just take some lines.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36131 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoSome documentation for lyx2lyx_tools.
Richard Heck [Fri, 5 Nov 2010 17:27:28 +0000 (17:27 +0000)]
Some documentation for lyx2lyx_tools.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36130 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoSo I now understand why find_token_exact is called what it is, but it
Richard Heck [Fri, 5 Nov 2010 17:09:43 +0000 (17:09 +0000)]
So I now understand why find_token_exact is called what it is, but it
does not do what it is supposed to do, in general. Still, I guess it is
best left as it is.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36129 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoAt least rename this argument to something that makes sense.
Richard Heck [Fri, 5 Nov 2010 17:02:26 +0000 (17:02 +0000)]
At least rename this argument to something that makes sense.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36128 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMore documentation.
Richard Heck [Fri, 5 Nov 2010 16:59:27 +0000 (16:59 +0000)]
More documentation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36127 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoAdd a static assert to prevent compilation on platforms where int/usigned int are...
Vincent van Ravesteijn [Fri, 5 Nov 2010 16:51:09 +0000 (16:51 +0000)]
Add a static assert to prevent compilation on platforms where int/usigned int are not 32-bits/4-bytes.

This is added to be sure that the to-be-added author hash is always 32-bit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36126 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoJust a bit of safety here.
Richard Heck [Fri, 5 Nov 2010 16:43:30 +0000 (16:43 +0000)]
Just a bit of safety here.

This 0 default for end is wrong. You should be able to do:
  find_token(lines, token, 0, 0)
and have that return -1. As it is, this is equivalent to:
  find_token(lines, token, 0, len(lines))
But I am afraid to change the default, in case something in lyx_1.2.py
relies upon it somehow.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36125 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoUse del_token where it makes sense to do so.
Richard Heck [Fri, 5 Nov 2010 16:33:29 +0000 (16:33 +0000)]
Use del_token where it makes sense to do so.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36124 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoThis is the del_token that would be helpful.
Richard Heck [Fri, 5 Nov 2010 16:22:26 +0000 (16:22 +0000)]
This is the del_token that would be helpful.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36123 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMove del_token into the files where it is used. We could use such a
Richard Heck [Fri, 5 Nov 2010 16:20:32 +0000 (16:20 +0000)]
Move del_token into the files where it is used. We could use such a
thing, but not one that returns what this does.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36122 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoBegin a bunch of comments on the parser tools. You can look through the
Richard Heck [Fri, 5 Nov 2010 16:18:20 +0000 (16:18 +0000)]
Begin a bunch of comments on the parser tools. You can look through the
file, but it is more helpful to have them summarized here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36121 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoAdd two new routines to parser_tools. Somewhere along the way, I wished
Richard Heck [Fri, 5 Nov 2010 16:04:17 +0000 (16:04 +0000)]
Add two new routines to parser_tools. Somewhere along the way, I wished
I had these. I'm not going to go back and change more code, but these
will be worth having later.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36120 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoRemove FIXME.
Richard Heck [Fri, 5 Nov 2010 15:48:45 +0000 (15:48 +0000)]
Remove FIXME.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36119 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoRename and restructure get_containing_inset.
Richard Heck [Fri, 5 Nov 2010 15:18:47 +0000 (15:18 +0000)]
Rename and restructure get_containing_inset.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36117 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoSimplify this complicated routine of mine now.
Richard Heck [Fri, 5 Nov 2010 15:13:42 +0000 (15:13 +0000)]
Simplify this complicated routine of mine now.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36116 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFix bug #7016: Cannot read theorems-ams-bytype.inc.
Vincent van Ravesteijn [Fri, 5 Nov 2010 15:12:04 +0000 (15:12 +0000)]
Fix bug #7016: Cannot read theorems-ams-bytype.inc.

The old format tag was never deleted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36115 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoUse get_quoted_value.
Richard Heck [Fri, 5 Nov 2010 15:11:46 +0000 (15:11 +0000)]
Use get_quoted_value.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36114 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoNew routine: get_quoted_value.
Richard Heck [Fri, 5 Nov 2010 15:11:37 +0000 (15:11 +0000)]
New routine: get_quoted_value.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36113 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMove get_value_string to lyx_1_6, since it is only used there. A more
Richard Heck [Fri, 5 Nov 2010 15:07:32 +0000 (15:07 +0000)]
Move get_value_string to lyx_1_6, since it is only used there. A more
suitable replacement is forthcoming.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36112 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoUse str2bool.
Richard Heck [Fri, 5 Nov 2010 15:01:42 +0000 (15:01 +0000)]
Use str2bool.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36111 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoImprove the add_to_preamble routine. Now we really check all the lines.
Richard Heck [Fri, 5 Nov 2010 14:59:11 +0000 (14:59 +0000)]
Improve the add_to_preamble routine. Now we really check all the lines.
This is crucial, because people often do put the same sort of comment as
the first line.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36110 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMinor fixups for revert_splitindex.
Richard Heck [Fri, 5 Nov 2010 14:58:32 +0000 (14:58 +0000)]
Minor fixups for revert_splitindex.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36109 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoI forgot that the single line case is really OK.
Richard Heck [Fri, 5 Nov 2010 14:50:27 +0000 (14:50 +0000)]
I forgot that the single line case is really OK.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36108 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoReminders.
Richard Heck [Fri, 5 Nov 2010 14:48:45 +0000 (14:48 +0000)]
Reminders.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36107 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoClean up revert_xetex. So that wasn't the last one.
Richard Heck [Fri, 5 Nov 2010 14:44:19 +0000 (14:44 +0000)]
Clean up revert_xetex. So that wasn't the last one.

Minor changes after this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36106 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFix up convert_bibtex_clearpage. The last one!
Richard Heck [Fri, 5 Nov 2010 14:39:58 +0000 (14:39 +0000)]
Fix up convert_bibtex_clearpage. The last one!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36105 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoNew str2bool() utility. Python's own bool() returns True for any but an
Richard Heck [Fri, 5 Nov 2010 14:27:30 +0000 (14:27 +0000)]
New str2bool() utility. Python's own bool() returns True for any but an
empty string....

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36104 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoSimplify the get_value routines a bit.
Richard Heck [Fri, 5 Nov 2010 14:26:14 +0000 (14:26 +0000)]
Simplify the get_value routines a bit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36103 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoupdate SCons
Uwe Stöhr [Fri, 5 Nov 2010 03:15:34 +0000 (03:15 +0000)]
update SCons

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36102 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoComments.
Richard Heck [Fri, 5 Nov 2010 01:24:38 +0000 (01:24 +0000)]
Comments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36100 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoThis routine simply does not do what it claims to do in the comment. And
Richard Heck [Fri, 5 Nov 2010 01:20:50 +0000 (01:20 +0000)]
This routine simply does not do what it claims to do in the comment. And
I cannot see why one would want to do what it actually does. The way it
is used in the code assumes it behaves as it now does, so far as I can
see. In particular, if we find:
option "some string"
with the call:
get_value(document.body, "option", i)
then this will return '"some'.

Someone please tell me if I am wrong.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36099 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoSimplify revert_diagram routine.
Richard Heck [Fri, 5 Nov 2010 01:06:08 +0000 (01:06 +0000)]
Simplify revert_diagram routine.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36098 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFix up revert_rule routine.
Richard Heck [Fri, 5 Nov 2010 01:03:46 +0000 (01:03 +0000)]
Fix up revert_rule routine.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36097 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMake sure we don't go beyond the end of the lines.
Richard Heck [Fri, 5 Nov 2010 01:03:30 +0000 (01:03 +0000)]
Make sure we don't go beyond the end of the lines.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36096 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoRe-write convert_rule. Existing version failed in several cases.
Richard Heck [Fri, 5 Nov 2010 00:55:52 +0000 (00:55 +0000)]
Re-write convert_rule. Existing version failed in several cases.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36095 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFix mchem routine: Typo.
Richard Heck [Thu, 4 Nov 2010 21:47:47 +0000 (21:47 +0000)]
Fix mchem routine: Typo.

Fix dots routine: Get value, then delete.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36094 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMinor structural improvement.
Richard Heck [Thu, 4 Nov 2010 21:42:24 +0000 (21:42 +0000)]
Minor structural improvement.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36093 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoTypos? Thinkos?
Richard Heck [Thu, 4 Nov 2010 21:40:01 +0000 (21:40 +0000)]
Typos? Thinkos?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36092 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFix up the revert_mathdots routine. I think this is right, but I could
Richard Heck [Thu, 4 Nov 2010 21:38:32 +0000 (21:38 +0000)]
Fix up the revert_mathdots routine. I think this is right, but I could
not really follow the logic of the original routine and don't know why
we would load mathdots for \ddots when we do not load it in 2.0 for the
same command.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36091 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoImprove hex2ratio.
Richard Heck [Thu, 4 Nov 2010 21:32:11 +0000 (21:32 +0000)]
Improve hex2ratio.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36090 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFix revert_align_decimal routine.
Richard Heck [Thu, 4 Nov 2010 20:54:58 +0000 (20:54 +0000)]
Fix revert_align_decimal routine.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36089 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoSimplify convert_mathdots.
Richard Heck [Thu, 4 Nov 2010 19:42:03 +0000 (19:42 +0000)]
Simplify convert_mathdots.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36088 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoForgot to svn add these.
Richard Heck [Thu, 4 Nov 2010 19:07:30 +0000 (19:07 +0000)]
Forgot to svn add these.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36087 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMake revert_flexnames more pythonic.
Richard Heck [Thu, 4 Nov 2010 17:48:53 +0000 (17:48 +0000)]
Make revert_flexnames more pythonic.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36086 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMake this routine more pythonic.
Richard Heck [Thu, 4 Nov 2010 17:42:47 +0000 (17:42 +0000)]
Make this routine more pythonic.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36085 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoFactor out some common code.
Richard Heck [Thu, 4 Nov 2010 17:39:36 +0000 (17:39 +0000)]
Factor out some common code.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36084 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoImprove the nameref reversion routine. We don't need Nameref anymore,
Richard Heck [Thu, 4 Nov 2010 17:31:24 +0000 (17:31 +0000)]
Improve the nameref reversion routine. We don't need Nameref anymore,
since that was removed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36083 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMinor improvements to prettyref routines.
Richard Heck [Thu, 4 Nov 2010 17:19:19 +0000 (17:19 +0000)]
Minor improvements to prettyref routines.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36082 a592a061-630c-0410-9148-cb99ea01b6c8

13 years agoMinor cleanup for IEEETran reversion.
Richard Heck [Thu, 4 Nov 2010 17:16:23 +0000 (17:16 +0000)]
Minor cleanup for IEEETran reversion.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36081 a592a061-630c-0410-9148-cb99ea01b6c8