Commit Graph

45 Commits

Author SHA1 Message Date
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
Angus Leeming
1cad117882 Overhaul the branches code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8247 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-14 16:33:56 +00:00
André Pönitz
6ff15cc813 Michael's open-close-patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8119 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-21 17:26:11 +00:00
Jürgen Spitzmüller
4c3beeee65 qt branches: color fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7981 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-27 07:05:07 +00:00
Lars Gullik Bjønnes
44cd0fc9a1 The std::string mammoth path.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7862 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-06 15:43:21 +00:00
Lars Gullik Bjønnes
08265598c5 some configure output changes, fix a new bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7798 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-21 16:02:54 +00:00
Angus Leeming
57a24ea912 Replace 'using namespace abc;' with 'using abc::xyz;'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7725 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 22:13:45 +00:00
Lars Gullik Bjønnes
fcdb71906b Change Assert to BOOST_ASSERT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7722 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 17:25:35 +00:00
Angus Leeming
e835c9477b Pimpl Buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7719 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 11:24:33 +00:00
Angus Leeming
fd36f5ad76 Make buffer's member variables private; use accessor functions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7717 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 09:47:59 +00:00
Angus Leeming
4c6e0fe422 Removed all redundant using directives from the source.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7704 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-08 00:33:41 +00:00
Angus Leeming
462eca7d1a Remove a couple of #includes from buffer.h
Reorder #includes in lots of files into some semblence of a coherent order.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7695 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-06 18:38:02 +00:00
Angus Leeming
f3bff9d5d8 Move depth_type to support/types.h.
Remove paragraph.h from buffer.h, paragraph_funcs.h.
Add paragraph.h to a heap of .C files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7694 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-06 17:23:08 +00:00
Angus Leeming
97035ea00a Another 49 #includes bite the dust.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7681 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 15:31:19 +00:00
Angus Leeming
1dffc5cfe4 Move #includes out of header files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7659 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-04 03:54:04 +00:00
Angus Leeming
0be0fcfd59 If I ever see another licence blurb again, it'll be too soon...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7598 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-23 00:17:00 +00:00
Martin Vermeer
fd6cd728a3 The 'Branches' mega-patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7560 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-17 11:28:23 +00:00
Angus Leeming
cd16abc0fd Flying high and free...
The user_lyxdir is also now a function.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7399 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-27 22:13:29 +00:00
Alfredo Braunstein
e3fc822783 Added new signals to Buffer, connect/disconnect to them in BufferView, added BufferView::newFile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7242 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-07 08:37:02 +00:00
Lars Gullik Bjønnes
92d522b7f1 introduce namespace lyx::support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7224 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-30 23:56:22 +00:00
Alfredo Braunstein
3508b30871 More errorlist adjustements.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7209 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-24 20:42:15 +00:00
John Levon
387d1c6416 lang apply fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7126 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-06 14:47:43 +00:00
Lars Gullik Bjønnes
297b40c725 make ParagraphList::push_back take a reference instead of a pointer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7036 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-24 11:54:10 +00:00
Alfredo Braunstein
2a882902eb get rid of InsetError users
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6986 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-20 16:51:31 +00:00
André Pönitz
723ee136ba the ascent/descent/width -> dimensions() change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6979 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-19 17:03:12 +00:00
André Pönitz
d31244b5e2 The 'bformat' introduction
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6953 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-13 09:48:57 +00:00
Lars Gullik Bjønnes
bb4f477fe3 parlist cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6945 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-07 09:26:33 +00:00
John Levon
d2179e4e65 fix buggy boost format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6941 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-06 18:34:46 +00:00
Lars Gullik Bjønnes
525259940d Some cleanup, and prepare for new feature.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6937 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-06 09:34:56 +00:00
Lars Gullik Bjønnes
7eec4960de make the message stuff work better
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6853 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-25 01:54:04 +00:00
John Levon
315e07fabc kill Alert::alert()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6653 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-31 01:15:44 +00:00
John Levon
17c8764e0a move BoostFormat and boost-inst
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6651 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-30 20:25:44 +00:00
John Levon
37a1ffccb9 Big shake up of all Alert::askQuestion/Confirmation into something
hopefully a lot better.

Warning: this may negatively affect your muscle memory :(


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6622 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-29 07:09:13 +00:00
Angus Leeming
ba9cdda813 Flatten the ButtonController tree by splitting it into a Controller and
a View.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6410 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-10 03:13:28 +00:00
Dekel Tsur
dc75a0e178 Fix language changing (the language of the text was not updated).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6266 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-25 18:52:13 +00:00
Lars Gullik Bjønnes
99d1627a47 dont use pragma impementation and interface anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6138 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-13 16:53:15 +00:00
Lars Gullik Bjønnes
2e36b1b652 fix some BoostFormat mistakes, cast the 0u par to string::isnert
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5760 a592a061-630c-0410-9148-cb99ea01b6c8
2002-12-02 09:59:43 +00:00
Lars Gullik Bjønnes
271b807e8b fix the switch layout bug, add some more boost.format, some additional cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5757 a592a061-630c-0410-9148-cb99ea01b6c8
2002-12-01 21:10:37 +00:00
Angus Leeming
784af7b916 Use a control-view split for the xforms document dialog.
Clean up reporting of errors loading class templates by the controller.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5699 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-22 10:47:56 +00:00
Edwin Leuven
e1b2b64272 new tabular dialog + new widget. more bullet stuff (not finished yet though).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5601 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-08 00:09:00 +00:00
Edwin Leuven
b8008acbf1 apply Juergen Spitzmueller's changes to qt document dialog. save doc defaults and buffer update on apply now work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5596 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-07 15:48:38 +00:00
Lars Gullik Bjønnes
ce708d095c ws fixes, formatting and some other small changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5463 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-21 17:38:09 +00:00
Lars Gullik Bjønnes
814b819451 the qtclean-2 patch with some very small changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5447 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-20 01:48:28 +00:00
André Pönitz
c7b1647c97 fix lockup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5389 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-14 13:25:15 +00:00
Edwin Leuven
3995f53261 Brand new qt document dialog. Not finished yet though. TODO is updated and lists
what is left to do...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5370 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-09 08:59:02 +00:00