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
André Pönitz
1eaa3eb913
more IU
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8371 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-26 10:13:15 +00:00
André Pönitz
ce686f1803
the 'lots of small stuff' patch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8135 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-25 11:17:27 +00:00
José Matox
cd424d7853
Rename ascii to plaintext and LatexRunParams to OutputParams.
...
Create new files for each output format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8046 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-05 12:06:20 +00:00
José Matox
15c913fe5a
unify API for insets export
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8008 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-31 18:45:43 +00:00
André Pönitz
69fae0531d
* lfuns.h: new LFUN_REPEAT, LFUN_INSERT_LINE, LFUN_INSERT_PAGEBREAK
...
* factory.C: handle new InsetPagebreak, InsetLine
* ParagraphParameters.h: remove [line|pagebreak]_[above|below]
and move handling into new InsetPagebreak, InsetLine
* BufferView_pimpl.C:
* LyXAction.C:
* ParagraphParameters.C:
* ParameterStruct.h:
* lyxfunc.C:
* lyxtext.h:
* paragraph.C:
* paragraph.h:
* paragraph_funcs.C:
* paragraph_pimpl.C:
* rowpainter.C:
* text.C:
* text2.C:
* text3.C: adjust
etc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7985 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-27 12:41:26 +00:00
Lars Gullik Bjønnes
84a91f5ebf
Use correct types when working with stream::pos_type.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7958 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-22 22:22:55 +00:00
Martin Vermeer
eb36b71ce3
add <string> and other small fixes to make
...
Lars' std::string patch compile with STLport.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7864 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-07 06:45:25 +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
Martin Vermeer
f6b8ed1c32
Small fixes to allow building with STLport
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7858 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-06 09:35:38 +00:00
André Pönitz
034f172087
un-pimpl Paragraph::(Pimpl::)text for performance reasons
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7773 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-16 14:08:05 +00:00
Angus Leeming
0d54d6b74d
Remove #include "LColor.h" from inset.h.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7766 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-16 09:44:34 +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
f9c1cafbe6
Pragmatic pimpl-ing of BufferParams.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7721 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 17:00:19 +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
ecaf48dc26
Forward declare LatexRunParams in converter.h.
...
Remove #include "lyxrc.h" from encoding.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7700 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-06 23:36:02 +00:00
Angus Leeming
91de22ef34
Strip 320 #includes from the files in src.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7684 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 16:31:30 +00:00
Lars Gullik Bjønnes
b881ed2d5a
Use Buffer const reference in most placees possible.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7623 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-28 07:41:31 +00:00
André Pönitz
407c8f08bc
remove InsetOld::par_owner & handling
...
(const correct after Angus' comment)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7610 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-26 16:36:53 +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
Lars Gullik Bjønnes
2e57f2ff0a
rename Inset to InsetOld
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7360 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-25 21:20:24 +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
John Levon
13a21fe510
minimal ERT spacing patch (first patch sent to list plus a couple of fixes)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7134 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-07 17:45:43 +00:00
Lars Gullik Bjønnes
0d90321817
simplify InsetList a bit and constify a bit too
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7062 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-29 01:13:18 +00:00
Lars Gullik Bjønnes
9aee8a07b0
parlist-19-a.diff
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7042 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-25 08:49:48 +00:00
Angus Leeming
8f89b71dba
Rename LatexRunParams::fragile as moving_arg.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7020 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-23 09:23:03 +00:00
Angus Leeming
453f294074
The free_spacing patch and fix to the mess that Rob discovered.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7019 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-23 08:59:47 +00:00
Angus Leeming
e1940902fe
Purely mechanical: move fragile into LatexRunParams.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7016 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-22 22:44:30 +00:00
Angus Leeming
ccce6b9662
Pass struct LatexRunParams around a bit...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7008 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-22 18:59:10 +00:00
Lars Gullik Bjønnes
468560431f
Remove Paragraph dependency from texrow, use a id instead.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6949 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-07 21:27:29 +00:00
Lars Gullik Bjønnes
f5e07fb302
2003-05-01 Lars Gullik Bj�nnes <larsbj@gullik.net>
...
* paragraph.C (erase): return a bool
* paragraph_pimpl.C (erasePos): remove function, move contents...
(erase): ... here. Return a bool.
(erase): call erase instead of erasePos.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6905 a592a061-630c-0410-9148-cb99ea01b6c8
2003-05-01 09:15:15 +00:00
André Pönitz
263b9fc043
*** empty log message ***
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6878 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-29 10:39:08 +00:00
André Pönitz
76d84c61fd
Alfredo's CutAndPaste fixes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6877 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-29 09:40:49 +00:00
Lars Gullik Bjønnes
1dd8947242
parlist-12-a.diff
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6809 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-15 00:49:11 +00:00
Lars Gullik Bjønnes
b94ed208a5
parlist-10-a.diff + a bit more
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6805 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-14 18:35:29 +00:00
John Levon
d533ee3995
merge decDepth(), killing some non-parlist code
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6695 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-03 00:36:31 +00:00
Lars Gullik Bjønnes
19fb963cc8
supposedly fix some getchar problems, and reenable the stronger assert
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6532 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-18 23:23:28 +00:00
John Levon
b8802b4c58
Kayvan's pass_thru fix
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6512 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-15 15:56:07 +00:00
John Levon
c3fb8cffea
fix up the getChar() fixes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6490 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-13 17:50:39 +00:00
André Pönitz
f38cae2e9e
deactivate overly restrictive assert.
...
Lars, I believe pos() == size() is valid.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6488 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-13 15:12:40 +00:00
Lars Gullik Bjønnes
a915be94cb
never ask for one past last
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6479 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-13 10:30:28 +00:00
John Levon
47432f0259
The inset newline patch I sent plus the requisite fixes. I couldn't reproduce a problem.
...
JMarc, I haven't moved those latex bits into the ::latex method yet though.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6471 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-12 19:16:42 +00:00
John Levon
42464c437a
complain about bad getChar()s
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6467 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-12 18:06:49 +00:00
André Pönitz
ce3b1fa997
activate the new InsetHFill,
...
small ws
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6448 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-11 15:01:29 +00:00
Lars Gullik Bjønnes
60322bc9d7
move some functions around
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6328 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-03 21:15:49 +00:00
John Levon
d2b70ea0e6
Replace ugly getParFromID() code with ParIterator-based stuff. I think
...
we can do the same for getInsetFromID() but Juergen didn't answer my query.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6145 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-14 02:21:01 +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
John Levon
ae87b94515
The big change tracking patch. Changes from posted version :
...
1) abstract time_t into lyx::time_type
2) abstrace struct passwd into support/userinfo
3) make authorlist a per-buffer property instead of global
I will look at the paragraph breaking soon, in the meantime I opened a bug on bugzilla.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6074 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-08 19:18:01 +00:00
Jean-Marc Lasgouttes
2868b724d5
small bits
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5915 a592a061-630c-0410-9148-cb99ea01b6c8
2003-01-08 09:03:32 +00:00
Lars Gullik Bjønnes
53274e31ec
the string -> char patch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5725 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-27 10:30:28 +00:00