Commit Graph

625 Commits

Author SHA1 Message Date
André Pönitz
02ebc072b0 remove per-inset position cahce, use new external map instead.
this allows us to bomb early on uninitialized cache values.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8923 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-14 14:03:42 +00:00
Jean-Marc Lasgouttes
6b89c145fd fix toggling of collapsable insets with the mouse (bug 1558)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8901 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-13 14:56:06 +00:00
Jean-Marc Lasgouttes
6ce3792cd7 fix cursor when loading/creating document ; implement LFUN_SAVE_AS_DEFAULT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8874 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-08 22:36:34 +00:00
Lars Gullik Bjønnes
7c15014ec2 change "support/std_sstream.h" to <sstream>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8849 a592a061-630c-0410-9148-cb99ea01b6c8
2004-07-24 10:55:30 +00:00
Jean-Marc Lasgouttes
025f30b361 cleanup reading of lfun bindings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8832 a592a061-630c-0410-9148-cb99ea01b6c8
2004-07-02 10:03:22 +00:00
Jean-Marc Lasgouttes
3dceaedfa2 Qt/Mac disappearing menu syndrom, part II
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8821 a592a061-630c-0410-9148-cb99ea01b6c8
2004-06-23 14:04:09 +00:00
Angus Leeming
2a31934f38 Wrap most of the frontend code up inside namespace lyx::frontend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8766 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-19 15:11:37 +00:00
Angus Leeming
3ea4eeb8a5 Citation labels now update immediately if the citation engine is changed
from the document dialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8756 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-17 08:52:21 +00:00
Jean-Marc Lasgouttes
37b93beec5 fix command-sequence handling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8734 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-04 14:12:50 +00:00
Angus Leeming
5009d66e16 * Positionable and dynamically visible toolbars for the XForms frontend.
* General Toolbars code clean-up.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8707 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-29 09:54:59 +00:00
John Levon
3bcf40e96d Make M-x show the minibuffer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8686 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-21 00:19:27 +00:00
Angus Leeming
c4762f9452 Whitespace, only whitespace...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8682 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-20 08:51:15 +00:00
Angus Leeming
da61af2b8e Georg's add an editor to Formats / safe external_templates patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8645 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-13 10:36:09 +00:00
Alfredo Braunstein
db2c1d5917 the 'fitCursor fix'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8624 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-07 20:20:15 +00:00
André Pönitz
6c9b23105c fix table crash;
selection by mouse


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8617 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-07 08:07:26 +00:00
Angus Leeming
ceff8c17ef Realize Allan Rae's PreferencesPolicy correctly and return the
preferences dialogs of all three frontends to it. The 'Save' button
should now behave as expected when the dialog is closed and reopened.
Squashes bug 1274 for the 1.4.x tree.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8612 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-05 18:34:36 +00:00
Angus Leeming
9f4d9b92b9 Bug fix: enable the frontend to ignore the contents of system_lyxrc
when posting the user's changes to lyxrc back to the core.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8611 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-05 18:21:25 +00:00
Angus Leeming
0424a53b20 Wrap all #warning calls inside #ifdef WITH_WARNINGS blocks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8598 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-05 09:36:28 +00:00
Lars Gullik Bjønnes
68b7ef25fb simple ws changes only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8594 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-03 08:37:12 +00:00
Alfredo Braunstein
e4025acc32 revert last commits. I've detected problems with it (i.e. it is not complete as is)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8593 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-02 22:43:14 +00:00
Alfredo Braunstein
0d47b55a84 fitcursor work
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8591 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-02 22:06:21 +00:00
Alfredo Braunstein
d34600cd3e add BufferView::getStatus and use it + some lyx::find fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8582 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-01 08:58:45 +00:00
Alfredo Braunstein
ab5ef14827 enable search & replace in LyXFunc::getStatus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8579 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-31 22:10:23 +00:00
Angus Leeming
b518346bbd Convert the preamble dialog to the Dialog-based scheme.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8576 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-31 20:55:59 +00:00
Angus Leeming
2bff4a6c86 Convert the spellchecker dialog to the Dialog-based scheme.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8575 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-31 19:51:55 +00:00
Alfredo Braunstein
303a6c126c s/DocumentIterator/DocIterator/g a.k.a showing off my sed abilities. Sorry for the cvs spam.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8574 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-31 19:11:56 +00:00
Angus Leeming
2f10d02e30 Convert the prefs dialog to the Dialog-based scheme.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8573 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-31 18:51:11 +00:00
Angus Leeming
931a49cc87 A new LFUN_LYXRC_APPLY lfun, together with a bit of a clean-up of the
preferences dialog code.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8570 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-31 16:50:59 +00:00
Angus Leeming
2baeac64ff Fix crash when changing text class.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8569 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-31 09:44:40 +00:00
Angus Leeming
3666618138 Use Alfredo's getOutOfInset suggestion, but use it in the inset::dispatch
functions as suggested by Andre. Squashes the bug beautifully.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8567 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-31 08:43:47 +00:00
Angus Leeming
7ae6332b03 Move the document dialog over to the Dialog-based scheme.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8566 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-30 19:18:14 +00:00
Angus Leeming
eddeb13d2d 5 new lfuns, move all apply code out of ControlDocument and into the core.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8565 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-30 16:19:50 +00:00
Angus Leeming
991b0ec589 A slightly buggy lfun all-insets-toggle.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8564 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-30 12:36:33 +00:00
Alfredo Braunstein
3e80b0b318 the pariterator stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8554 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-28 22:00:22 +00:00
Angus Leeming
39ec3d0eb8 Introduce LFUN_PRINT.
Convert the printer dialog to the Dialog-based scheme.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8552 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-28 14:12:33 +00:00
Angus Leeming
71a40af134 New LFUN_EXPORT_CUSTOM.
Convert the Sendto dialog to the Dialog-based scheme.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8551 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-27 23:11:46 +00:00
Angus Leeming
53ec3603e7 Remove test code in the LFUN_QUIT handler as it leads to a crash when no
buffer is present.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8530 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-25 17:24:13 +00:00
Martin Vermeer
31c24b4002 New LColor::setColor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8529 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-25 15:51:21 +00:00
André Pönitz
0d43ba149a the stuff from the sneak preview:
For one, it still contains a few things that are already in CVS (the
'brown paperbag' changes).

Secondly, this changes the ParagraphList to a std::vector but does not
yet take full advantage of it except removing LyXText::parOffset() and
similar.

I had an extensive talk with my profiler and we are happy nevertheless.

This also moves almost all Cut&Paste specific stuff from text.C to
CutAndPaste.C. Much smaller interface now... Namespace CutAndPaste is
now  lyx::cap::. Was inconsistent with the rest....

Make ParagraphList a proper class. We'll need this later for a
specialized erase/insert.

Remove some unneeded prototypes and function declarations

Use ParameterStruct directly instead of ShareContainer<ParameterStruct>

Inline a few accesses to CursorSlice members as suggested by the profiler.

Fix commandline conversion crash reported by Kayvan.

Replace PosIterator by DocumentIterator. The latter can also iterate
through math and nested text in math...

Remove math specific hack from Documentiterator

Derive InsetCollapsable from InsetText instead of using an InsetText
member. This give us the opportunity to get rid of the InsetOld::owner_
backpointer.

Cosmetics in CutAndPaste.C and cursor.C. Fix nasty crash (popping slices
off an empty selection anchor). Add a few asserts.

Remove all 'manual' update calls. We do now one per user interaction which
is completely sufficient.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8527 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-25 09:16:36 +00:00
Jean-Marc Lasgouttes
5a59ab2c37 fix handling of read-only in getStatus; fix handling of LFUN_FILE_INSERT_*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8516 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-23 11:22:11 +00:00
André Pönitz
bddfd8ff66 more privacy for CursorSlice members
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8505 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-18 16:41:45 +00:00
André Pönitz
7892c861f9 more 'value' semantics for paragraphs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8504 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-18 16:12:51 +00:00
André Pönitz
7688a62d7e the forks compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8503 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-18 16:08:02 +00:00
André Pönitz
b634b3eb3b split LyXFunc::getStatus() into inset specific chunks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8500 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-18 13:57:20 +00:00
André Pönitz
5198e1d9a3 The Buffer::LyXText -> Buffer::InsetText patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8498 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-18 12:53:43 +00:00
Angus Leeming
5394e9acc5 Remove the Forks dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8497 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-17 21:21:47 +00:00
André Pönitz
ec4ab8ce18 revert Buffer LyxText->InsetText commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8489 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-11 17:16:38 +00:00
André Pönitz
1b3f5ee46f the Buffer::text -> inset change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8488 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-11 16:09:42 +00:00
André Pönitz
4c8d536692 redo undo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8481 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-08 21:14:45 +00:00
André Pönitz
fc52df8243 the DocIterator stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8472 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-01 17:12:09 +00:00