Commit Graph

1647 Commits

Author SHA1 Message Date
Alfredo Braunstein
a370d413af take the bidi stuff out of lyxtext.h to its own file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7966 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-23 13:28:49 +00:00
André Pönitz
fd48fefe0e * lyxtext.h:
* text.C (isLastRow, isFirstRow): new functions

	* paragraph.h: new width cache member

	* rowpainter.C: replace RowList::iterator with Row & where possible

	* lyxfunc.C: replace several view()->text with a single call

	* toc.C: fix 'unused' warning


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7960 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-23 08:15:57 +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
André Pönitz
aec5a388c8 rename row.end into row.endpos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7956 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-22 16:30:57 +00:00
Angus Leeming
78d3fbdac3 Set 'fully_loaded' when starting a new file too...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7954 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-22 14:40:24 +00:00
Angus Leeming
78046794cc Add a Buffer::fully_loaded member function, returning true only when
the file has been loaded fully. Used to prevent the premature generation
of previews and by the citation inset to prevent computation of
the natbib-style label.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7953 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-22 13:15:18 +00:00
Martin Vermeer
c7c37bee5e This should fix the "oops" in the "is a bit silly" bug fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7947 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-22 06:02:55 +00:00
André Pönitz
ddb689a429 ChangeLog & re-add the {} for "long" blocks..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7943 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-21 16:19:05 +00:00
Martin Vermeer
de039bb341 Final touch 'inset display()'; fix 'is a bit silly' bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7941 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-21 13:04:14 +00:00
Martin Vermeer
50bbb55cb0 Re-introduce display() for insets, fixing various bugs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7940 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-20 18:56:48 +00:00
Jean-Marc Lasgouttes
173be73b27 fix bug 1415; fix annoying typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7938 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-20 13:55:51 +00:00
Martin Vermeer
b0650a1e5f Crash fix (wrong cursor def)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7935 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-18 14:43:54 +00:00
Lars Gullik Bjønnes
d0c18f8c60 forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7934 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-17 23:45:32 +00:00
Lars Gullik Bjønnes
87ca6fbbeb the dispatch patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7931 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-17 18:01:15 +00:00
Jean-Marc Lasgouttes
dab52aa183 compile fixes for stlport
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7930 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-17 14:30:33 +00:00
Lars Gullik Bjønnes
1684282f8a Get rid of the TextCache.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7928 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-17 09:32:41 +00:00
André Pönitz
9ed14b41fa make updateRowPositions() a bit faster.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7926 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-16 16:19:56 +00:00
Lars Gullik Bjønnes
506844eca2 Fix a crashing problem with unknown actions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7925 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-16 11:16:15 +00:00
André Pönitz
18ce60e3c6 undo per inset. still a few crashes...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7923 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-15 08:49:44 +00:00
Angus Leeming
50257b8690 Turn LyX into a singleton class. Kill the BufferView cache.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7922 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-14 21:30:23 +00:00
André Pönitz
5c2f0c5c46 In insets:
2003-10-14  Andr� P�nitz  <poenitz@gmx.net>

  * insetcollapsable.[Ch]:
  * insettabular.[Ch]:
  * insettext.[Ch]:
  * inset.h: getText() as alternative to getParagraphs()

In src:

2003-10-14  Andr� P�nitz  <poenitz@gmx.net>

	* iterators.[Ch]: new direct access to innermost LyXText and Inset

	* undo.[Ch]: restoring part of 'undo in insets'

	* Makefile.am:
	* undo_funcs.[Ch]: merge with undo.[Ch]

	* tabular.C: small cleansing stuff


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7919 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-14 13:01:49 +00:00
Alfredo Braunstein
5705714920 Fix bug 1323
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7918 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-14 12:49:15 +00:00
Angus Leeming
4e136e6f41 (Jo�o Assirati): add the ability to inverse-search a dvi file.
To use, you'll need either to run 'latex --src-specials' or, if your version
of latex isn't up to the task, to use the srcltx package. Further, your
vi viewer must be up to the task. xdvi 22.38 or the kde 3 version of kdvi.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7917 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-14 11:35:50 +00:00
Angus Leeming
e9e4ffb1d1 displayTranslator is now a function. No need to invoke setDisplayTranslator
explicitly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7915 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-13 21:50:33 +00:00
Angus Leeming
45a8d5a93a Jo�o Assirati's lyxsocket patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7910 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-13 12:25:11 +00:00
André Pönitz
a316a54e60 * BufferView_pimpl.C:
* lyxtext.h:
	* text.C:
	* text2.C:
	* text3.C:
	* undo_funcs.[Ch]: use paroffset_type instead of
	  ParagraphList::iterators to prevent multiple conversion
	  (and get a more robust interface)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7909 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-13 10:59:31 +00:00
Lars Gullik Bjønnes
32d1460f26 missed this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7902 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-13 01:58:25 +00:00
Lars Gullik Bjønnes
75b485d110 DISPATCH -> dispatch_result
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7900 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-13 01:35:47 +00:00
Lars Gullik Bjønnes
6cebb34085 Get rid of LyXFunc::dispatch that takes a string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7898 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-13 00:38:09 +00:00
Lars Gullik Bjønnes
c57b67f24f Bug: 820
2003-10-11  Lars Gullik Bj�nnes  <larsbj@gullik.net>

* LaTeX.C (deplog): move found file handlig from here...
(handleFoundFile): .. to new function here.
(deplog): make sure to discover several files mentioned on the
same log line.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7896 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-11 01:21:26 +00:00
André Pönitz
839576adbc fix a few of the tabular crashes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7889 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-10 09:01:23 +00:00
Lars Gullik Bjønnes
b5b225c657 remove some more debug noise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7885 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-09 13:33:19 +00:00
Lars Gullik Bjønnes
bae961184e remove some debug noise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7884 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-09 13:27:51 +00:00
André Pönitz
dcd8fb0428 replace ParagraphList::iterator by lyx::paroffset_type to prevent cursor
invalidation if the paragraphlist is changed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7883 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-09 10:52:12 +00:00
Lars Gullik Bjønnes
fc1437e74e Bug: 1025
2003-10-08  Lars Gullik Bj�nnes  <larsbj@gullik.net>

* text2.C (incrementItemDepth): new function, use a backtracking
algorithm to discover the correct item depth.
(resetEnumCounterIfNeeded): new function, use a backtracking
algorithm to discover if counter reset is needed.
(setCounter): use them. Simplify a bit. Add different labels for
different item depths for itemize.

* paragraph.C (Paragraph): remove initialization of enumdepth
(operator=): ditto

* paragraph.h: get rid of enumdepth, and use itemdepth both for
enumerate and itemize. Change the type of itemdepth to signed char.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7882 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-08 17:44:32 +00:00
André Pönitz
6810aa2ab8 * lyxtext.h: make the paragraphs_ a pointer instead a ref to make the
thing assignable.
	* text.C:
	* text2.C: adjust

	* tabular.[Ch]: fix crash after 'row-insert'

insets:

 * insetcollapsable.C:
  * insettext.[Ch]: saner 'init' structure

  * updatableinset.[Ch]: remove unneeded code


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7880 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-08 14:29:16 +00:00
Angus Leeming
627f2c70fa Fix a bunch of doxygen warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7879 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-08 11:31:51 +00:00
Angus Leeming
fbd9df3dbb Forgotten ChangeLogs, whitespace and some unnecessary namespace stuff removed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7875 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-07 21:44:59 +00:00
Jürgen Spitzmüller
35c0c230d7 std::string fixes and small typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7871 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-07 13:32:17 +00:00
Martin Vermeer
800c0dfc38 The Box patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7865 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-07 07:42:15 +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
Angus Leeming
7519dcc6ca Qt compilation fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7863 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-06 19:57:16 +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
André Pönitz
3bb63924d5 * metricsinfo.C: initialize LyXFont before changiging attribute.
(fixes the 'math in \emph is upright' bug)

	* tabular.[Ch]: saner reinitialization, ret rid of LyXTabular::owner_


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7860 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-06 14:10:59 +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
b9a8b8f4b6 fix #1360
* lyxfunc.C:
	* text3.C: move handling of LFUN_DEPTH *;


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7853 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-02 14:42:31 +00:00
André Pönitz
25d50ae7f9 assert on unknown insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7847 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-01 16:27:36 +00:00
Lars Gullik Bjønnes
8d098dcb56 New debugstream.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7832 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-26 14:27:20 +00:00
Angus Leeming
d5f7b7dec2 Fix compile problems with Martin's antiquated compiler ;-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7811 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-22 20:02:32 +00:00
Martin Vermeer
100e323d04 Bug fix in branches (was earlier fixed wrongly)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7803 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-22 07:46:27 +00:00