Peter Kümmel
b6a7dd3aa7
src/frontends/qt4/GuiWorkArea.C:
...
use position returned by BufferView
src/bufferview_funcs.C:
adjust cursor x-position by hand
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15555 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-26 11:01:34 +00:00
André Pönitz
6c300f72a2
move everything into namespace lyx
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15422 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-21 00:16:43 +00:00
Abdelrazak Younes
4cc7a7708e
This commit fixes a crash when accessing a math inset. This was due to an invalid CursorSlice::text() null pointer accessed in InsetMathNest::cursorPos():
...
CoordCache & coord_cache = sl.text()->bv()->coordCache();
As you can see, I used this indirection to access the BufferView::CoordCache(). Bad luck, the passed CursorSlice was not completely valid inside a mathed inset, hence the crash. My solution is to pass BufferView to InsetBase::cursorPos() and all its derivative.
* InsetBase::cursorPos(): pass BufferView const &
* bufferview_funcs::coordOffset(): ditto.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15356 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-17 16:23:27 +00:00
Abdelrazak Younes
562d55989a
MacOSX compile fix: The class Point conflicted with a struct defined in MacTypes.h.
...
* coordcache.[Ch]: put everything in the LyX namespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15340 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-15 22:32:56 +00:00
Abdelrazak Younes
d37fae169c
In order to support multiple LyXView each BufferView needs its own CoordCache. This is what's implemented in this commit.
...
theCoords is now a thing of the past and all CoordCache accesses are done via BufferView::coordCache() now. I had to modify a number of methods to pass BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15324 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-13 16:44:44 +00:00
Enrico Forestieri
12a6d46370
Small fixes for STLPort compliance
...
* src/cursor.C: add using std::for_each;
* src/graphics/GraphicsTypes.h: add #include <string>
* src/graph.C: add using std::fill;
* src/frontends/controllers/helper_funcs.h: add #include <algorithm>
* src/bufferview_funcs.C: add using std::find;
* src/lyx_main.C: add using std::for_each;
* configure.ac: don't use boost format on cygwin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15176 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-28 00:42:47 +00:00
Abdelrazak Younes
b171e5f150
Free BufferView from LyXView!
...
* BufferView
- layoutChanged: new boost signal.
- LyXView owner(), owner_: deleted
* text3.C
- emit BufferView::layoutChanged instead of calling LyXView::setLayout directly
- LFUN_MOUSE_RELEASE: delete LyXView updateMenubar() and updateToolbars() direct calls.
The update is of both bars is done in WorkArea::dispatch().
* WorkArea.C
- dispatch(): add LyXView updateMenubar() call.
* LyXView
- connects to BufferView::layoutChanged directly to Toolbars::setLayout()
- setLayout(): deleted.
* qt4/GuiImplementation: modify BufferView construction (without LyXView).
All other files: cleanup header declaration of LyXView.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15153 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-26 10:06:46 +00:00
Abdelrazak Younes
a6444784dc
A bunch of conversion to docstring.
...
- bformat(): contributed by Georg Beaum
- Alert::XXX
- error(): in SpellBase, ispell, psell, aspell, buffer, etc.
- message(), message signal
- displayMessage(), setMessage,
- ErrorItems
- prettyName()
- makeDisplayPath()
and maybe some more...
- etc...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14970 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 08:54:10 +00:00
Lars Gullik Bjønnes
43b77ba2d7
Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14952 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-09 15:27:44 +00:00
Jean-Marc Lasgouttes
bc6cf52e9f
* src/BufferView_pimpl.C (getStatus, dispatch): do not handle
...
LFUN_GOTOERROR.
* src/bufferview_funcs.C (findInset): exit early when at end of
document (and avoid a crash).
* src/insets/insetbase.[Ch]: remove ERROR_CODE
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14706 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 21:06:40 +00:00
Abdelrazak Younes
7cca51ed18
Fix potential crashes related to element presence in a given map.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14377 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 14:40:22 +00:00
Lars Gullik Bjønnes
3b9338a3a8
Whitespace cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13565 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-05 23:56:29 +00:00
Jürgen Spitzmüller
02127298e7
Implement a dociterator::forwardPos() variant that skips collapsed insets and use that in bruteFind() (fixes bug 2241 and bug 2094)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10782 a592a061-630c-0410-9148-cb99ea01b6c8
2006-01-28 09:46:58 +00:00
Jürgen Spitzmüller
3f1d516ac9
fix cursor coordinates in math insets [bug 2124]
...
(which is a fix-the-fix for bug 2094)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10598 a592a061-630c-0410-9148-cb99ea01b6c8
2005-11-10 08:28:06 +00:00
Jürgen Spitzmüller
20417e1859
fix bug 2094 (assertion in collapsables)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10592 a592a061-630c-0410-9148-cb99ea01b6c8
2005-11-07 12:15:26 +00:00
Jürgen Vigna
88d9527776
Handle cursor position after last char in row before a inset which uses a whole row
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10233 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-16 00:04:54 +00:00
André Pönitz
41ecabf519
make boundary property an iterator property instead of a CursorSlice property
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10214 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-15 15:49:40 +00:00
Jürgen Spitzmüller
361de37399
reintroduce LFUN_BIBDB_ADD and LFUN BIBDB_DEL (bug 961)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10104 a592a061-630c-0410-9148-cb99ea01b6c8
2005-06-25 15:57:15 +00:00
Jean-Marc Lasgouttes
e80090a13e
fix bug 1891: assertions with triggered by bad gotoInset code
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9985 a592a061-630c-0410-9148-cb99ea01b6c8
2005-05-31 10:20:42 +00:00
Angus Leeming
fb70c52b05
Whitespace, only whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9877 a592a061-630c-0410-9148-cb99ea01b6c8
2005-04-26 11:12:20 +00:00
Jean-Marc Lasgouttes
3f4d173edf
fix several GOTO lfuns (bug 1787, bug 616, bug 781 and bug 835)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9663 a592a061-630c-0410-9148-cb99ea01b6c8
2005-02-22 11:41:22 +00:00
Georg Baum
0cb92344f7
fix bug 1798 (from Andr�)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9640 a592a061-630c-0410-9148-cb99ea01b6c8
2005-02-15 19:53:42 +00:00
Lars Gullik Bjønnes
aa491cdb98
dociterator dont inherit from std::vector and updates
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9602 a592a061-630c-0410-9148-cb99ea01b6c8
2005-02-08 13:18:05 +00:00
Angus Leeming
e22c5f4d97
Asger's commentary, const-correct and bug-squashing little beauty.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9558 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-31 16:29:48 +00:00
Lars Gullik Bjønnes
9c2ba3c4ff
rename tostr.[Ch] to convert.[Ch]
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9448 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-06 16:39:35 +00:00
Lars Gullik Bjønnes
6a55be9506
tostr -> convert and some bformat work
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9446 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-06 15:40:49 +00:00
Lars Gullik Bjønnes
46756fd9e4
the const patch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9443 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-05 20:21:27 +00:00
Alfredo Braunstein
a2cd656e25
CoordBranch merge
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9325 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-30 01:59:49 +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
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
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
4bcfc43c29
IU stuff + shuffling things from BV::dispatch to LyXText::dispatch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8427 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-13 07:30:59 +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
ccc5d55764
Part of IU.
...
####################################################################
1.4.0cvs is now NOT fit for any serious use
####################################################################
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8363 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-20 14:25:24 +00:00
André Pönitz
ea53de7c85
and some mathed de-uglyfication
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8359 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-16 12:36:23 +00:00
André Pönitz
69bee02a89
mathed uglyfication
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8358 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-16 10:55:19 +00:00
André Pönitz
691594432d
more shuffling...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8347 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-14 17:21:39 +00:00
André Pönitz
4eb75f09eb
move the Selection structure from LyXText to BufferView
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8342 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-14 14:16:11 +00:00
André Pönitz
25bafa2772
Anchor globalization
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8340 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-13 18:08:13 +00:00
André Pönitz
d8f81752eb
replace LyXCursor by CursorSlice
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8338 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-13 14:13:51 +00:00
André Pönitz
97901b5d51
hide cursor and selection anchor behind accessor function
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8333 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-13 10:37:38 +00:00
Alfredo Braunstein
7da68795a5
selection patch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8243 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-12 15:19:35 +00:00
André Pönitz
153ac7500c
* inset.h:
...
* insetert.[Ch]:
* insettabular.[Ch]:
* insettext.[Ch]: remove unused insetInset()
* insetert.C: disable some LFUNs
* insettoc.[Ch]: metrics() and draw() of InsetButton is enough.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8221 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-10 09:45:32 +00:00
André Pönitz
4b2c271e23
* buffer.[Ch]:
...
* lyxtext.h: move ParagraphList member to LyXText
rename LyXText::ownerParagraphs to LyXText::paragraph
* CutAndPaste.C:
* bufferview_funcs.C:
* iterators.[Ch]:
* lyx_cb.C:
* paragraph.C:
* rowpainter.C:
* tabular.C:
* text.C:
* text2.C:
* text3.C: adjust
* lyxfunc.C: move LFUN_INSET_TOGGLE handling to insets.
* undo.C: fix cursor positioning
* insetbase.h: whitespace
* inset.[Ch]: remove latexTextWidth
make setBackgroundColor virtual
* insettext.[Ch]: move ParagraphList member to LyXText
* insetcollapsable.[Ch]: handle LFUN_INSET_TOGGLE
* insetcharstyle.C:
* insetenv.C:
* insetert.[Ch]:
* insetfloat.[Ch]:
* insetminipage.[Ch]:
* insettabular.C:
* insetwrap.[Ch]: adjust paragraphs and background color handling,
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8166 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-01 13:35:49 +00:00
Alfredo Braunstein
2a6106ff5f
updateCounters fix + changeDepth simplification
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8138 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-26 09:48:21 +00:00
Alfredo Braunstein
faa37a30d4
removing update calls
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8076 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-11 13:17:28 +00:00
André Pönitz
de49e02934
the update/updateInset merge
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8069 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-10 13:23:14 +00:00
André Pönitz
b0cffd9fc0
The deed is done.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8064 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-10 09:06:48 +00:00
Alfredo Braunstein
18b2090a3f
a PosIterator-based ParIterator ctor and 1 user
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8051 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-06 09:51:08 +00:00
Alfredo Braunstein
267a040d10
require BufferView argument in ParIterator::text
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8045 a592a061-630c-0410-9148-cb99ea01b6c8
2003-11-05 11:17:11 +00:00