Commit Graph

12195 Commits

Author SHA1 Message Date
Pavel Sanda
8b6415f308 Fix bug 4493 - countChars assert.
(No need to backport for 1.5, originated in 'polishing readability' in
http://www.lyx.org/trac/changeset/22519)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22591 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 22:30:19 +00:00
Richard Heck
1741c87a4e Fix bug 4463. The crash was due to a call to X from inside a child process.
The main change is to support/ForkedCalls.{h,cpp}. We introduce a static variable IAmAChild and a corresponding accessor. This is set to true in a new fork() method, in the branch taken by the child. (Note: fork() is safe cross-platform, as it just returns -1 if we don't have fork().) This ForkedProcess::iAmAChild() method is then used to protect GuiView::message().

As Abdel has pointed out, there may be other such calls to be protected, e.g., the emission of the Buffer::changed() signal. Those are not addressed here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22587 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 18:26:53 +00:00
Pavel Sanda
2baffdb590 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22586 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 14:16:23 +00:00
Jürgen Spitzmüller
1acedf11da * src/frontends/GuiDocument.{cpp,h}:
- do not update dialog when clicking in the main window without buffer change
	  (bug 4302).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22583 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 10:38:19 +00:00
Abdelrazak Younes
00ef1af08f header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22579 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:45:47 +00:00
Uwe Stöhr
ecde9d6a0f revert r22574 to be able to compile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22578 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:45:04 +00:00
Abdelrazak Younes
12ce8e82cf simplify ucs4 to utf8 conversion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22577 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:44:05 +00:00
Abdelrazak Younes
11f36d2d72 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22574 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:19:55 +00:00
Abdelrazak Younes
537481ebe5 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22573 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:18:52 +00:00
Abdelrazak Younes
d7d41ee59d header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22572 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:17:24 +00:00
Abdelrazak Younes
5e7c21490d header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22571 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:16:58 +00:00
Pavel Sanda
57587d80d6 * Doxy: fix \vars
(Beware: syntax needs \var lyx::kb_action lyx::LFUN_ after move to .cpp)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22570 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:01:36 +00:00
Pavel Sanda
be309904a8 * Doxy: lets generate hyperlinks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22569 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 22:45:03 +00:00
Richard Heck
821ef81154 A little more lfun doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22568 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 22:43:05 +00:00
Richard Heck
1583929922 A little more easy lfun doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22565 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 22:22:07 +00:00
Bernhard Roider
2714d1b8b9 Doxy for LFUN_CALL again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22564 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 22:20:35 +00:00
Richard Heck
ab6fcd9be5 Some easy lfun doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22563 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 22:02:59 +00:00
Stefan Schimanski
49daeaec29 * fix for buggy cursor logic due to multi bufferview support in MathMacros. It's much simpler now, even for simple single bufferview cases.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 21:53:49 +00:00
Stefan Schimanski
e0538043e4 * Nearly a proof that there are useful compiler warnings that a variable is not used,
though in this case the warning was "fixed" before it did its job.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22561 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 21:52:57 +00:00
Richard Heck
afa6389644 A little more explanation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22560 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 21:49:01 +00:00
Pavel Sanda
73f97fa124 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22559 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 21:46:20 +00:00
Richard Heck
f03329a19c I18n for modules. This would seem to complete the module implementation. Test away.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22558 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 21:44:06 +00:00
Peter Kümmel
421fa672a7 remove duplicated code, (fix cmake merge)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22557 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 19:52:16 +00:00
Bernhard Roider
29d74c47a8 Add lfuns doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22556 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 19:37:52 +00:00
Pavel Sanda
25c7910e87 Add lfuns doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22555 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 18:53:10 +00:00
Abdelrazak Younes
f643441cf2 Better fix than revision 22553. Transfer the backup to RowPainter::paintInset().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22554 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 16:24:01 +00:00
Abdelrazak Younes
cb83883583 TextMetrics::drawParagraph(): Fix drawing bug reported by Richard by backing up the full repaint flag.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22553 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 16:15:40 +00:00
Jean-Marc Lasgouttes
3d8828fa14 * src/Spacing.cpp (writeBeginEnv, writeEndEnv): add a bool parameter
directing to use memoir's capitalized latex macros.
	* src/LaTeXFeatures.cpp (getPackages): act on feature "SetSpace".
	* src/output_latex.cpp (TeXOnePar): ditto

	* lib/layouts/memoir.layout: provide feature SetSpace, indicating that
	memoir provides the setspace functionality, but with a different syntax.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22551 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 14:53:29 +00:00
Abdelrazak Younes
c15b2f6e1a * Buffer::doExport(): return early.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22550 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 14:09:20 +00:00
Jürgen Spitzmüller
59c8ede0a3 * src/LaTeXFeatures.cpp:
- load xcolor.sty the same way than color.sty, and only load one of them
	  (xcolor, if requested, else color).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22548 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 10:08:08 +00:00
Abdelrazak Younes
c81f5add99 * AutoSaveBuffer::generateChild(): return early.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22546 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 09:04:14 +00:00
Abdelrazak Younes
2c1b8bc472 * AutoSaveBuffer::generateChild(): FileName::moveTo() already tries to remove the file if any so no need to do that again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22545 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 09:00:32 +00:00
Enrico Forestieri
58a0626e80 Use the currentItemChanged() signal instead of itemSelectionChanged()
because in Qt 4.2 the current item has not been updated yet when
itemSelectionChanged() is emitted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22544 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 21:35:48 +00:00
Uwe Stöhr
a3dfd2f10b InsetBox.cpp: fix the LaTeX-output, fixes bug 2492 http://bugzilla.lyx.org/show_bug.cgi?id=2492
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22540 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 14:41:49 +00:00
Jürgen Spitzmüller
9275f580ef * src/LaTeXFeatures.cpp:
- the package "pdfcolmk" must be loaded after [x]color.sty
	  (see package documentation).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22537 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 11:49:36 +00:00
Abdelrazak Younes
cf2656e026 fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22536 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 10:48:10 +00:00
Abdelrazak Younes
0ea17620dc fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22535 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 10:44:16 +00:00
André Pönitz
57d2f9c0ad Five more percent.
I'd really prefer if people would not add unused code to critical
paths..


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22534 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 23:08:21 +00:00
André Pönitz
f7e4d591dc cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22533 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 21:49:48 +00:00
André Pönitz
e69b723bf9 There was a bit too much copying of dociterators gpoing on leading to an
avoidable ~5% overhead when loading the UserGuide. This is an attempt on
rectifying the situation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22532 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 21:38:51 +00:00
André Pönitz
96c21a6ca3 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22527 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 16:44:35 +00:00
André Pönitz
560f4336fa cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22526 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 16:40:25 +00:00
André Pönitz
f925113312 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22525 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 16:34:02 +00:00
Richard Heck
a60b6d90d9 Help from Andre.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22524 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 16:11:55 +00:00
Jürgen Spitzmüller
e3699e1a47 * GuiBibtex.cpp:
- some more tweaks.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22522 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 15:41:40 +00:00
Pavel Sanda
eb0f59a816 Add temp vars to countChar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22519 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 13:34:10 +00:00
Jürgen Spitzmüller
445bf425a1 * GuiBibtex.cpp:
- nor _really_: yet another tweak to button enabling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22516 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 12:00:11 +00:00
Pavel Sanda
ddff76fd8b Let doxygen recognize us
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22513 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 11:50:33 +00:00
Jürgen Spitzmüller
709960ff66 * GuiBibtex.cpp:
- yet another tweak to button enabling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22512 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 11:49:49 +00:00
Pavel Sanda
f78f28f4fc Move all doxy stuff to LyXAction.cpp, so that touching dox won't imply full recompile.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22511 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 11:33:03 +00:00
Jürgen Spitzmüller
e94d6b3958 * GuiBibtex.cpp:
- addition to rev. 22507: handle ReadOnly of new buttons.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22510 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 11:22:20 +00:00
Jürgen Spitzmüller
fcf47395c5 * src/frontends/qt4/GuiBibtex.{cpp,h}:
* src/frontends/qt4/ui/BibtexUi.ui:
	- add buttons to move databases up and down.
	  Patch from Horst Schirmeier (permission: http://marc.info/?l=lyx-devel&m=120009631506298&w=2)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22507 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 09:30:21 +00:00
Bo Peng
efbbf7a31f Fix r22486, which causes an infinite loop when a bibtex file is not available. Reported by Horst
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22505 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 06:17:37 +00:00
Richard Heck
d5d665482e This commit changes the way individual LyXModule's are represented, both internally and in the .lyx files. The earlier version represented them by their `descriptive name', e.g., "Endnote" or "Theorems (AMS)", these being the same names used in the UI. This was a mistake, as becomes readily apparent when one starts to think about translating these strings. The modules ought to be represented by their filename, without the extension, just as TextClass's are.
The changes that accomplish this part are in ModuleList.{h,cpp}, configure.py, and the *.module files themselves. This is a format change, and the lyx2lyx is in those files.

By itself, that change would not be major, except for the fact that we do not want the module to be represented in the UI by its filename---e.g., theorems-std---but rather by a descriptive name, such as "Theorems". But that change turns out to be wholly non-trivial. The mechanism for choosing modules was the same as---indeed, was borrowed from---that in GuiCitation: You get a list of modules, and choosing them involves moving strings from one QListView to another. The models underlying these views are just QStringListModels, which means that, when you want to know what modules have been selected, you see what strings are in the "selected" QListView. But these are just the descriptive names, and we can't look up a module by its descriptive name if it's been translated. That, indeed, was the whole point of the change to the new representation.

So, we need a more complicated model underlying the QListView, one that will pair an identifying string---the filename minus the extension, in this case---with each item. This turns out not to be terribly difficult, though it took rather a while for me to understand why it's not difficult. There are two parts:
(i)  GuiSelectionManger gets re-written to use any QAbstractListModel, not just a QStringListModel. This actually seems to improve the code, independently.
(ii) We then subclass QAbstractListModel to get the associated ID string, using the Qt::UserRole slot associated with each item to store its ID. This would be almost completely trivial if QAbstractListItem::itemData() included the QVariant associated with this role, but it doesn't, so there are some additional hoops through which to jump.

The new model, a GuiIdListModel, is defined in the files by that name. The changes in GuiSelectionManger.{h,cpp} make it more abstract; the changes in GuiDocument.{h,cpp} adapt it to the new framework. 

I've also updated the module documenation to accord with this change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22501 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 04:28:12 +00:00
Richard Heck
471cf26b11 New files, anticipating a later commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22500 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 02:31:32 +00:00
Pavel Sanda
4adf77cf7d Synchronize lfun thematical ordering and func_type.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22499 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 00:22:15 +00:00
Uwe Stöhr
33c95fc07b rename LFUNs math-nonumber and math-number to what they really do,
fixes bug 2608

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22496 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 22:45:19 +00:00
Jürgen Spitzmüller
4b799833e7 *** Support for generic sideways floats ***
* src/Buffer.cpp:
	- format is up to 312.
* src/LaTeXFeatures.cpp:
	- add rotfloat.
* src/Insets/InsetFloat.cpp:
	- handle starred and generic sideways floats.
* src/frontends/qt4/FloatPlacement.{cpp,h}:
	- adjust GUI to the new features.
* lib/chkconfig.ltx:
	- add rotfloat
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- add reversion methods for new floats
* lib/lyx2lyx/lyx_1_4.py:
	- add proper reversion method for sideways floats (this was missing).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22495 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 18:56:53 +00:00
Pavel Sanda
ac4b0dd692 Start of lfun reordering
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22493 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 12:46:12 +00:00
Pavel Sanda
871b6a7245 Preparing for lfun doxy movement
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22492 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 12:43:50 +00:00
Pavel Sanda
60c53dcd1e Renaming leftovers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22491 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 12:40:26 +00:00
Richard Heck
d226da1559 Fix comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22488 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 04:44:56 +00:00
Bo Peng
b2278c0736 Make bibtex works with embedded bib file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22487 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 03:57:22 +00:00
Bo Peng
f52b73747f Embedding: saving inzip name to .lyx file so that embedded files can always be found under different operating systems (even lyx versions). yet to be tested under windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22486 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 23:39:58 +00:00
Jürgen Spitzmüller
63c45ec226 * src/insets/InsetCitation.{cpp,h}:
* src/insets/InsetHyperlink.{cpp,h}:
* src/insets/InsetRef.{cpp,h}:
* src/insets/InsetSpace.{cpp,h}:
* src/insets/InsetSpecialChar.{cpp,h}:
	- fix textString member (bug 4472).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22480 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 16:09:01 +00:00
Abdelrazak Younes
a84fa1ce00 Transfer Tab and Shift-Tab keys special handling from GuiView::event() to GuiWorkArea::event(). Add some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22477 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 09:04:30 +00:00
Abdelrazak Younes
1406a54420 * CursorSlice::lastpos(): check for text emptiness (should fix a crash when releasing an empty buffer).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22474 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 08:46:04 +00:00
Abdelrazak Younes
50b994b08f * GuiWorkArea::event():
- case ToolTip: don't forget to accept the event!
- Clean up the method in order to extend to other events.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22473 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 08:19:54 +00:00
Richard Heck
9f8bf4c9da Dummy format change for AMS modularization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22470 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 07:22:43 +00:00
Richard Heck
5f91f39309 We do not need to update just because the class has been changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22466 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 06:22:42 +00:00
Richard Heck
34bce8b33e amsthm support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22460 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 04:14:22 +00:00
Richard Heck
5faad9ca68 Additional UI logic related to module requires and excludes.
The logic here is really kind of a mess. If anyone can make it
simpler, I'd be thrilled.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22458 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 01:33:24 +00:00
Richard Heck
78cc57cd5a Fix copy-paste errors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22457 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 23:06:16 +00:00
Richard Heck
7c28905b17 This commit adds some new functionality to the modules stuff. In particular, it introduces the concept of "required" and "excluded" modules: A given module may require one of some list of modules, or it may be incompatible with some other modules. (Complex Boolean combinations are not supported!!) These facts can be noted in the module file, and the UI responds appropriately: Required and excluded modules are noted in the description, and the "Add" button is enabled only if at least one of the required modules has already been selected and no excluded module is selected. Getting this to work involved a fair bit of cleanup of the existing code---including ways Angus, I think, had already pointed out were required---and also involved changing the syntax of the headers of the module files, but in ways that are probably best anyway.
None of the extant modules require any other modules, but the Theorem modules all exclude one another. (See the screenshot.) When I modularize the AMS classes---that is the next task---we'll have requires.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22456 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 18:51:02 +00:00
Pavel Sanda
6be5a0cf52 Add ParIterator FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22453 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 13:14:14 +00:00
Abdelrazak Younes
a82d158e0c Remove archaeological work around scrollbar insanity.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22452 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 09:54:39 +00:00
Richard Heck
85ac3f0dc4 More whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22451 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 07:19:26 +00:00
Richard Heck
b84e210719 What happened to the whitespace?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22450 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 07:18:41 +00:00
Bo Peng
7ecfcc9108 Embedding: fix a crash when extracting InsetInclude
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22449 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-09 05:11:16 +00:00
Bo Peng
b5153b3d26 Embedding: merge lyx::EmbeddedFiles to lyx::support::EmbeddedFileList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22448 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 18:55:34 +00:00
Bo Peng
c20f5a64d9 Embedding: simplify the interface of EmbeddedFiles, which will be later merged to EmbeddedFileList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22444 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 18:33:43 +00:00
Bo Peng
52cd35cd5f Embedding: add embedding support for InsetBibtex. (params["embed"] is added, use EmbeddedFileList instead of FileNameList for bibtex handling, use checkable items in GuiBibtex)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22443 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 17:02:09 +00:00
Bo Peng
09a6f725d0 Embedding: add embedding support for InsetExternal. (params["embed"] is added)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22442 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:42:28 +00:00
Bo Peng
c81fd7337d Embedding: add embedding support for InsetInclude. (params["embed"] is added)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22441 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:35:43 +00:00
Pavel Sanda
569a82cb86 Remove todo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22440 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:26:25 +00:00
Bo Peng
06254d11df Embedding: display a pin at the top left corner of embedded figures
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22439 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:22:05 +00:00
Abdelrazak Younes
e40499d5df BufferView::showCursor(): better fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22438 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 15:49:03 +00:00
Pavel Sanda
d5f47dc6f7 polish
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22437 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 15:48:23 +00:00
Jürgen Spitzmüller
275d05942d hmpf.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22436 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 15:41:56 +00:00
Jürgen Spitzmüller
3e539a3a40 * src/lfuns.h:
- minor correction in the doxy comment.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22434 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 15:34:09 +00:00
Pavel Sanda
922aa7b1e8 Add characters counting.
Introduce LFUN_STATISTICS.
see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg134033.html .


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22433 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 15:18:00 +00:00
Abdelrazak Younes
8379c2b70f Fix anchor bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22432 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 14:55:11 +00:00
Stefan Schimanski
c4d85b3f1d * fix a crash during undo: cloned MathMacroTemplates need updated child insets which point back to the correct (cloned) template.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22430 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 10:29:47 +00:00
Jürgen Spitzmüller
926e115e6a * src/TextClass.cpp:
- remove superfluous condition.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22429 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 09:14:44 +00:00
Jürgen Spitzmüller
2c0eaab164 * src/TextClass.cpp:
- allow for multiple subsequent Requires class tags.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22428 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 07:29:47 +00:00
Bo Peng
474979d32d Embedding: simplify code in the handling of embedCB in GuiGraphics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22427 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 02:34:17 +00:00
Pavel Sanda
00fcadb88b Add lfuns doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22422 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 18:54:23 +00:00
Jürgen Spitzmüller
a5d5a633d9 some more uses of Requires.
The package ifthen needs to be added to LaTeXConfig.lyx. I'll do this when that file can be opened again.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22419 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 17:32:47 +00:00
Jean-Marc Lasgouttes
585ba16d62 * src/MenuBackend.cpp (expandFormats): do not add shortcut for
plaintext if it is not correct.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22415 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 17:13:38 +00:00
Jürgen Spitzmüller
9e5eebc14c *** Requires tag for classes, layouts and custom insets ***
* src/TextClass{cpp,h}:
	- implement Requires tag for class and InsetLayout.
* src/Layout.{cpp,h}:
	- implement Requires tag for layouts.
	- increase layouts format to 6.
* src/Paragraph.cpp:
	- request required features for paragraph layouts.
* src/LaTeXFeatures.cpp:
	- add some packages needed by modules.
	- remove Preamble method for InsetLayout. This is now done
	  in InsetFlex::validate.
* src/BufferParams.cpp (validate):
	- request required features for the class.
* src/insets/InsetLayout.h:
	- new member "requires".
* src/insets/InsetFlex.{cpp,h}:
	- implement validate method and request required features and preamble snippets.

* lib/layouts/*.{layout,module,inc}:
	- increase layouts format to 6.
	- use Requires tags in some modules (more can be done later).

* lib/doc/Customization.lyx:
	- document Requires tag.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22414 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 16:59:10 +00:00