Richard Heck
f401ce5d29
Changes LayoutList from a vector<LayoutPtr> to a vector<Layout>.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23519 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 20:01:30 +00:00
Abdelrazak Younes
a4d5b78430
Transfer and bug fix LFUN_BUFFER_BEGIN/END_SELECT to BufferView.cpp
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23512 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 15:39:30 +00:00
Abdelrazak Younes
5a9653203f
Fix PageUp/Down select when at the top/bottom of a document.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23510 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 12:41:38 +00:00
Abdelrazak Younes
3ba3389ede
Fix http://bugzilla.lyx.org/show_bug.cgi?id=4494
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23509 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 10:14:36 +00:00
Abdelrazak Younes
a837d22ab9
Fix multipar selection drawing. The problem was that the row selection status was only updated for full metrics update. A simple transfer of the relevant code from TextMetrics::redoParagraph() to TextMetrics::drawParagraph() solved the problem.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23408 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-03 11:03:47 +00:00
Stefan Schimanski
0cdf6c006b
* corner cases for RTL completions: RTL<->LTR boundaries
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23318 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 12:44:42 +00:00
Richard Heck
d8a6b5bfd0
Remove TextClassPtr without losing the type safety it provided.
...
See these threads:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg136112.html
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg136062.html
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg135997.html
for some background.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23299 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 01:42:02 +00:00
André Pönitz
1cca0a86bd
API cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23295 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 23:03:26 +00:00
André Pönitz
db8c16d554
progress on buffer-reference-in-insets. beware of instabilities...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23289 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 20:43:16 +00:00
Richard Heck
0362c6aae7
Andre's s/getTextClass/textClass/ cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23190 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 15:06:35 +00:00
Richard Heck
2e7d1199df
Revert 23154.
...
Sorry, Andre, but this broke not only the modules stuff but the general handling of TextClasses. I'm not opposed to doing this sort of thing, but it's going to be a little more complicated. I'll do it when I get a bit of time, or I can explain what the issue is here if you want to do it.
I'll separately re-commit some of the cleanup here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23189 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 14:59:23 +00:00
André Pönitz
0fb8f3fba1
mostly s/Paragraph::layout(...)/Paragraph::setLayout(...)/
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23159 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 16:45:38 +00:00
André Pönitz
b306e9a2e1
Replace the text class shared ptr by good old index-into-global-list.
...
Also a few cosmetical changes where I xould not resist.
Would be nice if the 'modules people' could verify that their baby
is strill alive...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23154 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 11:36:15 +00:00
Stefan Schimanski
919e9a80eb
* proper cursor position RTL text with inline completion
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23150 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 03:14:33 +00:00
Stefan Schimanski
1bf7b59d60
* completion infrastructure
...
* completion support for mathed
* experimental completion support for text
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23104 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:42:34 +00:00
Abdelrazak Younes
2bf1c09376
header cleanup
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23049 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 07:14:42 +00:00
Richard Heck
040f3431e7
Fix bug 4037 and related problems. The patch has been cleaned up a bit
...
from the one posted to the list.
The basic idea has two parts. First, we hard code an "empty layout"
(called PlainLayout, for want of a better name) in TextClass and read it
before doing anything else. It can therefore be customized by classes,
if they want---say, to make it left-aligned. Second, InsetText's are
divided into three types: (i) normal ones, that use the "default" layout
defined by the text class; (ii) highly restrictive ones, such as ERT and
(not quite an inset) table cells, which demand the empty layout; (iii)
middling ones, which default to an empty layout and use the empty layout
in place of the default. (This is so we don't get the same problem we
had with ERT in e.g. footnotes.) The type of inset is signaled by new
methods InsetText::forceEmptyLayout() and InsetText::useEmptyLayout().
(The latter might better be called: useEmptyLayoutInsteadOfDefault(),
but that's silly.) The old InsetText::forceDefaultParagraphs() has been
split into these, plus a new method InsetText::allowParagraphCustomization().
A lot of the changes just adapt to this change.
The other big change is in GuiToolbar: We want to show LyXDefault and
the "default" layout only when they're active.
There are a handful of places where I'm not entirely sure whether we
should be using forceEmptyLayout or !allowParagraphCustomization() or
both. The InsetCaption is one of these. These places, and some others,
are marked with FIXMEs, so I'd appreciate it if people would search
through the patch and let me know whether these need changing. If they
don't, the FIXMEs can be deleted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 17:31:07 +00:00
Abdelrazak Younes
6cdf6bd6ab
Support full screen in BufferView
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22899 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 17:20:23 +00:00
André Pönitz
225bf49cf9
some refactoring.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22890 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 10:41:49 +00:00
Stefan Schimanski
fae0a30802
* first check if empty, then set the pit. Otherwise we have a segfault before the assert
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22808 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 11:26:46 +00:00
Stefan Schimanski
08d9375572
* There are cases where updateLabels is not called because no
...
paragraph relayout happens (e.g. when inserting a InsetBranch, the
InsetText inside was not processed by any updateLabels call), and
hence the macrocontext is not always set. This should not happen often
in fact. So we update the labels in that case explicitely when we see
an empty macrocontext.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22807 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 11:21:42 +00:00
Bo Peng
4f16565f2e
Improve cursor movement around lines ending with break-lines
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22742 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 17:29:31 +00:00
Abdelrazak Younes
f643441cf2
Better fix than revision 22553. Transfer the backup to RowPainter::paintInset().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22554 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 16:24:01 +00:00
Abdelrazak Younes
cb83883583
TextMetrics::drawParagraph(): Fix drawing bug reported by Richard by backing up the full repaint flag.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22553 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 16:15:40 +00:00
André Pönitz
e69b723bf9
There was a bit too much copying of dociterators gpoing on leading to an
...
avoidable ~5% overhead when loading the UserGuide. This is an attempt on
rectifying the situation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22532 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 21:38:51 +00:00
Stefan Schimanski
36dbec4506
* Lazy MathData to avoid unneeded interpretation of macro definitions
...
* DocIterator as MacroPosition
* Iterative search for macro in scope until a visible one is found.
This include the ability to resolve macro inside nested text insets.
* Speed up macro lookups by factor 2: only getMacro(name) call, no
further hasMacro(name) call before
* Both way child/master support
* Correct macro scope for multi-paragraph environments
* Correct macro scope for multi-depth-paragraphs
* Buffer::updateMacros made const
* Update macros when loaded (of master and child)
* Do not remove too many braces when unfolding a macro. This could
lead to a data loss because the relationship between arguments of
macros can be mixed up if nested macros are unfold at once.
* Reduce dependencies to MetricsInfo in MathMacro
* Update macros when needed. Normally it's done just before doing
metrics. But in cases without a brace around some constructs (like
\left(bla\right)) there is some help needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22241 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 20:42:46 +00:00
Abdelrazak Younes
cb2538a52e
correctly position new paragraph on up and down movement.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22220 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 07:16:50 +00:00
Abdelrazak Younes
9abb7db468
getting rid of superfluous std:: statements.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22104 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 19:28:07 +00:00
Abdelrazak Younes
9383f4c3c6
'using namespace std' instead of 'using std::xxx'
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22097 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 10:16:00 +00:00
Abdelrazak Younes
2356bc13ee
Partly revert r21987 which caused alignment problems.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22004 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-07 21:57:56 +00:00
Abdelrazak Younes
6fef639091
* InsetHFill: small drawing tweaks and fix the cursor positionning and selection of the inset.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21988 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 08:51:56 +00:00
Abdelrazak Younes
eb96d94ce7
Code simplification. We don't need to memorize the current Row hfill anymore.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21987 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 08:39:42 +00:00
Abdelrazak Younes
920c3c3e36
InsetHFill drawing: some other tweaks. There's still a problem with cursor positionning and selection when the hfill is not expanded.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21985 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 23:10:11 +00:00
Abdelrazak Younes
9536a8a651
InsetHFill drawing: some tweaks.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21984 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 22:47:14 +00:00
Abdelrazak Younes
55a9524e99
Cleanup Hfill metrics and painting. InsetHFill is now treated almost like any other inset.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21980 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 22:25:07 +00:00
André Pönitz
2506e0d643
assimilate BOOST_CURRENT_FUNCTION
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21867 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 21:10:35 +00:00
André Pönitz
9d0ea8aeff
Move debug.{cpp,h}, Messages.{cpp,h} and gettext.{cpp,h} to support/.
...
Now support/* should have no dependencies on src/* anymore.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21851 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 07:04:28 +00:00
André Pönitz
150cf11651
hand-crafted LyXErr
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21849 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-28 22:12:03 +00:00
Abdelrazak Younes
de8ce17784
* TextMetrics::getPitNearY(): Fix crash when navigating with up and down arrow keys. The problem was that the passed y coordinates was not necessarily out of screen. Also the paragraph position was not correctly updated.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21798 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 15:29:54 +00:00
Abdelrazak Younes
14dbb6ca3d
correct comment. Thanks Martin.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21678 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 14:13:06 +00:00
Abdelrazak Younes
926abae753
Simplify single par drawing:
...
* ParagraphMetrics::computeRowSignature(): Integrate row's dimensions and selection status in the row signature.
* TextMetrics::drawParagraph(): compute the row signature here and rely on that to decide if a redraw is needed or not.
* BufferView::Private: get rid of the ViewMetricsInfo member. Just keep the ScreenUpdateStrategy.
* BufferView::draw(): full screen update even for singlePar case because the row signature will detect if something needs to be redrawn.
* Text3.cpp: get rid of hack following architecture update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21650 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 11:27:03 +00:00
Abdelrazak Younes
fd34bd3914
Cosmetics and cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21649 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 23:00:57 +00:00
Abdelrazak Younes
7a4c9a258e
row selection tweaks.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21648 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 22:52:15 +00:00
André Pönitz
e1ce2f92db
reduce line noise
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21631 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 20:04:51 +00:00
Abdelrazak Younes
8c1f803b83
simplify text selection drawing.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21628 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 17:01:38 +00:00
Abdelrazak Younes
cdf1378200
Introducing TextClassPtr.h to minimize header dependencies.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21506 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 23:25:08 +00:00
Abdelrazak Younes
0b0c27ef59
* BufferView: Make use of ScreenUpdateStrategy::NoScreenUpdate, avoid a screen redraw when it is not really needed.
...
* Painter.h: move isDrawingEnabled() to public Area.
* TextMetrics::drawParagraph(): backup and restore original drawing state of the Painter.
* InsetTabular::draw(): ditto.
* InsetMathNest::drawSelection(): ditto.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21471 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 14:07:49 +00:00
André Pönitz
9cca7a0c1a
remove unneeded Cursor.h include;
...
use strfwd
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21456 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 22:54:53 +00:00
Dov Feldstern
ddd82f7aa4
Getting rid of LTR bias --- part 3/4
...
This is a continuation of r21128, r21244
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21448 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 19:41:16 +00:00
André Pönitz
f8f78fe59d
de-tuple-fication; cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21389 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 20:41:04 +00:00
Stefan Schimanski
1231489798
* dynamic macros as described in http://1stein.org/download/dynmacro.pdf
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21328 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 11:13:07 +00:00
Abdelrazak Younes
c3452835a8
* MetricsInfo::background_color: int -> ColorCode
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21255 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 10:36:20 +00:00
Abdelrazak Younes
d2bfe05827
Forbid implicit conversion from FontInfo to Font.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21250 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 23:32:18 +00:00
Abdelrazak Younes
5ddc612b73
Splitup Font in saner bits:
...
* Font::FontBits -> FontInfo
* Font::FONT_XXX -> all enums transfered to FontEnums.h and renamed to FontXxx
I've replaced Font uses with FontInfo were the language() member was not needed, basically all draw() and metrics methods. There's one problematic cases with InsetQuotes which I solved by taking the Buffer main language.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21240 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 18:51:54 +00:00
Abdelrazak Younes
eea79637c7
Move Color::color enum to ColorCode.h
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21198 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 12:41:02 +00:00
Dov Feldstern
662b58497e
Getting rid of LTR bias --- part 1/?
...
This is the first patch in a series meant to remove LTR bias from the code.
Currently, there are many places in the code where "right" and "left" are used,
but where we actually mean "forward" and "backwards" --- which is the same
thing in LTR text, but not in RTL/Bidi text.
See full details in http://permalink.gmane.org/gmane.editors.lyx.devel/97550 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21128 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 22:18:52 +00:00
Abdelrazak Younes
6725b2db59
Reduce header dependencies in Paragraph.h
...
- Move Changes.h out of Paragraph.h
- pimpl the inset list.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21033 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 15:29:51 +00:00
Abdelrazak Younes
55beda376a
Refactor Undo/Redo framework into an Undo class owned by a Buffer. This reduces header dependencies from Undo.h which was including lots of stuff previously. This also solves the bug where undo/redo were reset upon buffer switching. Now, each buffer has a truly independant undo/redo architecture.
...
In the future, when Cursor has been fixed to work correctly with multiple views of the same Buffer, we could transfer the Undo owner from Buffer to Cursor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21031 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 11:51:17 +00:00
Abdelrazak Younes
f7b1c86393
Move Inset::Code to InsetCode.h
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20936 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-13 09:04:52 +00:00
André Pönitz
b847b8c7df
the delegate patch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20667 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-02 18:27:20 +00:00
André Pönitz
cd72af583f
cosmetics
...
(maily move layout related enums into a header of there own to remov
include dependencies, alos rename a few things)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20598 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-29 20:02:32 +00:00
André Pönitz
5aaf4dce20
move font related stuff from bufferview_funcs to Font
...
delete bufferview_funcs, since it's now empty
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20579 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-29 11:00:18 +00:00
André Pönitz
122f32ea29
cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20578 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-29 09:22:17 +00:00
André Pönitz
f1687373b1
cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20577 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-29 08:02:37 +00:00
Abdelrazak Younes
aff5bdbc34
* TextMetrics::drawParagraph(): add 'inside' information to '-dbg painting'.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20561 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-28 07:44:02 +00:00
Abdelrazak Younes
5e8d4df0a5
Temporarily fix jumpy cursor.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20526 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-26 21:27:17 +00:00
Abdelrazak Younes
f93367f9e6
Fix RTL inset painting.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20449 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-23 15:35:06 +00:00
Abdelrazak Younes
0dc4a1fa97
Fix Cut&Paste bug.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20445 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-23 08:59:50 +00:00
Abdelrazak Younes
237c132c1e
* Inset:
...
- get rid of the cached Dimension. Text inset dimensions are saved in ParagraphMetrics and mathed maintain their own dimension where needed.
- width(), ascent(), descent(): deleted.
- dimension(): now needs a valid BufferView.
- metrics(): now void.
* BufferView::getCoveringInset(): simplify.
* ParagraphMetrics(): now cache inset dimensions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20420 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-21 20:39:47 +00:00
André Pönitz
82309f0c2d
Remove a few includes from Text.h
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20386 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-20 20:44:08 +00:00
Abdelrazak Younes
ae7c588552
* TextMetrics:
...
- first() and last(): change return type because std::pair of reference didn't work (i.e. bug)
* BufferView::workAreaDispatch(): re-enable and fix 'mouse hover' feature.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20372 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-20 08:48:28 +00:00
Abdelrazak Younes
516ff470d8
Fix InsetBox drawing and remove remnant of the wide() hack.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20334 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-18 08:52:38 +00:00
Abdelrazak Younes
8d52aa5638
Give PageDown/Up scrolling a sane behaviour. Does not work with selection yet...
...
* BufferView:
- new scroll(), scrollDown() and scrollUp() method for pixel scrolling.
- new LFUN_SCREEN_UP/DOWN handling.
* TextMetrics: new helper and access methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20283 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-15 12:28:41 +00:00
Abdelrazak Younes
e6854f527f
* bufferview_funcs.cpp:status(): use new TextMetrics::parPosition().
...
* TextMetrics::cursorNext(): compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20239 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-12 12:07:45 +00:00
Abdelrazak Younes
8319910995
Fix PageDown/Up temporarily.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20237 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-12 08:15:56 +00:00
Abdelrazak Younes
6ce171eec8
Transfer the Paragraph position cache from CoordCache to ParagraphMetrics and TextMetrics.
...
* ParagraphMetrics::position_: new private member (and associated access method).
* TextMetrics:
- origin_: new screen position cache.
- use origin_ and ParagraphMetrics::position() instead of the parPos cache.
* Cursor:
- comment out buggy bruteFind() method, will work on that later.
* BufferView::updateMetrics(): refactor and simplify to use new cache and to gather everything SinglePar related.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20214 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-11 16:04:10 +00:00
Abdelrazak Younes
c3e3534148
* TextMetrics::draw(): withdraw first row ascent before drawing because the convention is that the baseline of a multirow text is the baseline of the first row.
...
All other files: adapt to above change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20177 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-09 20:21:43 +00:00
Abdelrazak Younes
d4bf8e0a21
* TextMetrics::drawSelection(): use parMetrics() instead of direct access just in case. Should fix crash on selection with PageUp.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20081 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-05 21:26:17 +00:00
Abdelrazak Younes
d1813ca269
* TextMetrics::draw(): get rid of the first par ascent offset.
...
* BufferView::draw(): adapt to above change.
* InsetCollapsable::draw(): ditto -> get rid of textdim_ member.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20068 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-05 13:45:58 +00:00
Abdelrazak Younes
eed6514dd0
Move selection painting closer to row painting. Single row painting is now possible for selection.
...
* Row:
- setSelection(): set selection begin and end for this row.
- sel_beg, sel_end: new public members.
* BufferView::draw()
- do not trigger a full repaint for selection.
- use TextMetrics::draw() instead of hand calling TextMetrics::drawParagraph().
* InsetText::draw(): don't call TextMetrics::drawSelection().
* InsetMathMBox::drawSelection(): remove.
* TextMetrics:
- drawSelection(): simplify a bit. Now private.
- redoParagraph(): memorize Row selection status.
- x2pos(): fix crash when selecting with PageDown.
- draw(): fill-in the ParPos cache before everything else and not in drawParagraph().
- drawParagraph(): take care of row selection painting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20066 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-05 13:04:05 +00:00
Alfredo Braunstein
a8ed1add4d
rename Paragraph::isRightToLeftPar -> isRTL for the sake of consistence
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20031 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-04 10:27:55 +00:00
Alfredo Braunstein
cdd5c1bb17
fix multi-cell selection
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20026 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-03 22:16:54 +00:00
Alfredo Braunstein
3b6eb864d5
enable some non-rtl optimization
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20021 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-03 13:34:26 +00:00
Alfredo Braunstein
15dc381ce9
optimization: save some font copying
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20016 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 23:37:11 +00:00
Abdelrazak Younes
2ea432bab1
* TextMetrics: getDisplayFont() and isRTLBoundary() takes pit instead of Paragraph.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20015 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 22:28:49 +00:00
Abdelrazak Younes
d35d25460b
* Text: Move some more stuff from Text to TextMetrics:
...
- getFont() becomes TextMetrics::getDisplayFont()
- setCharFont() now needs a display font.
- setInsetFont() and setFont() now needs a BufferView, will be transferred to TextMetrics too.
- isRTL(): moved to TextMetrics
- isRTLBoundary(): ditto
- font_: ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20014 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 21:48:49 +00:00
Alfredo Braunstein
052e9071e9
fix crash + shut up warning
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20011 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 18:05:37 +00:00
Abdelrazak Younes
bc6304d760
Don't save background color in Text. Hand it down at drawing time.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20002 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 14:34:15 +00:00
Abdelrazak Younes
af06ed5ff1
Transfer current_font and real_current_font from Text to Cursor.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19999 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 13:35:48 +00:00
Abdelrazak Younes
cb796d31b0
Transfer metrics and screen related methods from Text to TextMetrics.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19995 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 11:27:19 +00:00
Abdelrazak Younes
502b048246
Transfer metrics and screen related methods from Text to TextMetrics.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19994 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 11:21:33 +00:00
Abdelrazak Younes
8695368e29
Fix crash when selection begins or ends outside the visible screen.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19992 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 10:23:28 +00:00
Abdelrazak Younes
4048448236
Transfer metrics and screen related methods from Text to TextMetrics.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19991 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 09:44:08 +00:00
Alfredo Braunstein
aa670e90c8
metrics fix: reset some Row values to default in top of computeRowMetrics as the code there assumes it
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19990 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 09:07:07 +00:00
Abdelrazak Younes
d166ee8699
Temporarily remove the assertion because it doesn't work on new doc.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19983 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-01 22:01:34 +00:00
Abdelrazak Younes
53299d06f8
Re-implement the wide() hack in a clean way (at metrics level): an InsetText will have automatically occupy the full allowable width if there is more than one paragraph or more more than one row.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19975 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-01 14:49:08 +00:00
Abdelrazak Younes
087fc75a9d
Fix wrapping bug within inset. dim_.wid was not set!
...
Add some commented out debug info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19972 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-01 10:30:44 +00:00
Abdelrazak Younes
5aefefe0cf
Improve painting debug info.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19971 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-01 09:36:53 +00:00
Abdelrazak Younes
4ed011dbd1
Improve painting debug info.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19970 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-01 09:33:57 +00:00
Abdelrazak Younes
fb74d5a476
* InsetCollapsable::metrics(): it seems we don't need to refit anymore. Saves an InsetText::metrics() call and enable single Row painting within opened inline insets.
...
* TextMetrics::drawParagraph(): force full repaint on Insets that are within the current repainting row.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19968 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-01 09:24:20 +00:00
Abdelrazak Younes
7d97e555fc
Transfer Paragraph::hfillExpansion() to ParagraphMetrics. This also reduce the dependency to Row.h which is probably going to change in the near future.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19951 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-31 14:46:13 +00:00
Abdelrazak Younes
2bff0157b6
Transfer Text::drawSelection() to TextMetrics.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19940 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-31 10:05:12 +00:00
Abdelrazak Younes
a088c6754a
Finally enable single row repainting within insets! The inset width needs to stay fixed of course.
...
* BufferView::draw(): makes use of PainterInfo::full_repaint
* TextMetrics::drawParagraph(): ditto.
* InsetText::drawSelection(): don't fillRectangle() if there's no selection.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19918 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-30 15:17:38 +00:00
Abdelrazak Younes
97f66c07f6
* RowPainter:
...
- paintOnlyInsets(): new public method for inset painting only in case the inset dimension didn't change within a Row.
- paintInset(): put out everything not strictly related to the inset painting itself.
- paintHfill(): new private method to cut the reduce code in paintText().
* TextMetrics::drawParagraph(): use paintOnlyInsets() when the Row text nor it's dimension changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19912 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-30 13:19:24 +00:00
Abdelrazak Younes
79ba8fe22a
Bug fixes. changed_ was always true...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19901 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-29 23:06:14 +00:00
Abdelrazak Younes
8239945aa7
Enable use of Row::changed()
...
* TextMetrics::redoParagraph(): crop the RowList if it is too big.
* ParagraphMetrics::reset(): don't clear its RowList.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19897 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-29 21:33:11 +00:00
Abdelrazak Younes
8175971041
Transfer ParagraphMetrics::rowChangeStatus() to Row::changed(). Prepare for fine grained row redrawing.
...
^ Row:
- changed_: new boolean to inform change status at draw time.
- crc_: new crc_ signature
- inline pos() and endpos()
- replace width(), ascent() and descent() direct access with dimension().
* ParagraphMetrics
- do not maintain row_signature_ anymore
- rename calculateRowSignature() to computeRowSignature() and make it public
* TextMetrics
- redoParagraph(): don't clear the ParagraphMetrics row list, reuse and update it.
- rowHeight(), rowWidth(), rowBreakPoint(): take first/end positions instead of Row.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19895 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-29 21:03:41 +00:00
Abdelrazak Younes
a40d6cd7bc
Take Track-Change into account when calculating row signature.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19876 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 22:44:09 +00:00
Abdelrazak Younes
34aba4a42b
Update comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19870 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 18:30:15 +00:00
Abdelrazak Younes
3f54edc200
* TextMetrics::redoParagraph(): we need to check the returned value of Inset::metrics() nevertheless because some changes don't involves a dimension change (especially in multiline InsetText).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19868 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 18:25:28 +00:00
Abdelrazak Younes
0e7ef480f7
Don't draw if there's nothing to draw.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19866 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 18:05:55 +00:00
Abdelrazak Younes
5440aad928
We are not forced to redraw the row each time the cursor is moved.
...
* TextMetrics.cpp: CursorOnRow() removed.
* TextMetrics::drawParagraph() do not check cursor position.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19859 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 16:39:46 +00:00
Abdelrazak Younes
be8de62ae2
Merge the Row and RowMetrics class. Those classes were separated in the 1.4 code base because the Row list was part of Paragraph. As it is now in ParagraphMetrics, there is no need to separate them. Also, only compute the rowmetrics once when the containing paragraph is redone.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19858 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 15:47:53 +00:00
Abdelrazak Younes
971c543b34
- Transfer rowpainter.cpp:paintPar() to TextMetrics::drawParagraph()
...
- move RowPainter class out of the anonymous namespace so that it can be used by TextMetrics::drawParagraph().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19848 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 08:57:13 +00:00
Abdelrazak Younes
55f184563e
- Transfer rowpainter.cpp:paintTextInset() to TextMetrics::draw()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19842 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-27 22:36:20 +00:00
Abdelrazak Younes
b52c339cce
Bug fix: correctly redraw a Row containing and inset which Dimension slightly changed. This replace the need for the former leftEdgeFixed boolean in rowpainter.C:paintPar() before the removal of the wide() hack in revision 19834.
...
* Inset::dimension(): access to dim_
* TextMetrics::redoParagraph(): don't trust Inset::metrics() returned boolean as the internal dimension is changed down in the inheritance chain for InsetFoot->InsetCollapsable->InsetText.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19838 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-27 16:30:57 +00:00
Abdelrazak Younes
b3b6f44755
Gather ParagraphMetrics initialization in ParagraphMetrics::reset().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19833 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-27 14:04:46 +00:00
André Pönitz
39c7e2faf0
rename Layout_ptr into LayoutPtr
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19758 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-23 19:59:07 +00:00
Abdelrazak Younes
0fcae6cc10
* BufferView::buffer() returns a reference instead of a pointer.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19691 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 13:03:55 +00:00
Abdelrazak Younes
f91f682ef9
* Text:
...
- singleWidth(Buffer...): transfered to TextMetrics.
- singleWidth(Paragraph...): transfered to ParagraphMetrics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19639 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-18 21:17:10 +00:00
Abdelrazak Younes
861e1e4dc5
* TextMetrics.cpp
...
- access par_metrics_ directly instead of parMetrics()
- redoParagraph() simplify the changed calculation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19638 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-18 21:10:45 +00:00
Abdelrazak Younes
98008dc568
* Layout.h
...
- leftMargin, rightMargin, labelsep, labelindent, parindent are now docstring.
* TextClass.h:
- leftMargin() and rightMargin(): now return a docstring.
All other files: adapt to change above.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19633 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-18 13:21:12 +00:00
Lars Gullik Bjønnes
5ae54ddafb
Get rid of a few warnings.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19409 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-10 20:14:54 +00:00
Stefan Schimanski
a8c4376ae3
* Font are lightweight, so better do not change the other font, but a copy
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18733 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-10 15:34:00 +00:00
Stefan Schimanski
d43c859cd4
* Changing the font does not change the fontmetrics variable,
...
hence we have to set it manually.
(bug #3787 : Huge fonts do not set the row height)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18731 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-10 14:54:45 +00:00
Stefan Schimanski
6daaf5388b
* local_bidi.patch: The bidi object in the class Text is only used in
...
places now where a ParagraphMetrics::computeRowMetrics call comes
before. And this function the Bidi object is updated. So it is a
little step now to remove the Text::bidi completely and use local
Bidi objects instead without more work to do.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18706 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 20:39:14 +00:00
Stefan Schimanski
ff8fcc268a
* no_bidi_isboundary.patch: added isRTLBoundary as a replacement to several references to the Text::bidi object.
...
(fixes #3790 , #3801 , #3809 )
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18704 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 19:50:02 +00:00
Stefan Schimanski
6bb98d076f
* removed the "dirty trick" to append a row with wrong start and
...
end (but start and end inside of the buffer limits) for the last
empty row behind a newline.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18576 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-30 06:44:18 +00:00
Lars Gullik Bjønnes
897436efbb
Whitespace cleanup
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18550 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-28 22:27:45 +00:00
Richard Heck
dfd9a1d53d
Fix for bug 3650. Made changes to the Paragraph::checkBiblio() routine,
...
which now returns 1 if an InsetBibitem was inserted (and the cursor needs
to be incremented) or -POS if an InsetBibitem was deleted at position POS
(and the cursor needs to be decremented if it was past POS). Otherwise, it
returns 0. Made the corresponding changes in TextMetrics.cpp.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18424 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-19 19:29:50 +00:00
Bo Peng
73849af5df
InsetListings: change the interface of diaplay function and allow AlignLeft. Applied to InsetListings. Fixes bug 3617, 3618
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18404 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-18 14:32:29 +00:00
Jürgen Spitzmüller
d17b7b3221
* src/Cursor.cpp (parbreak):
...
- do not insert blank line for listings content.
* src/TextMetrics.cpp (setHeightOfRow):
- don't use parkip in Listings insets (bug 3624)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18399 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-18 09:21:07 +00:00
Jürgen Spitzmüller
71d75896e0
* src/TextMetrics.cpp (setHeightOfRow):
...
- don't use parkip in ERT insets (bug 3146)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18205 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-05 12:06:37 +00:00
André Pönitz
e0d54dd3b4
LyXText -> Text
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18103 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-29 23:33:02 +00:00
André Pönitz
0bf9ac02a8
rename LyXLayout into Layout
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18096 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-29 18:58:28 +00:00
André Pönitz
fc6ce7cd08
rename LyXFont to Font except in tex2lyx
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18095 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-29 18:17:15 +00:00
André Pönitz
32871c1284
rename InsetBase to Inset
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18089 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-29 13:39:47 +00:00
André Pönitz
8c622e4ff0
rename/merge LyXLength related stuff
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18067 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-28 12:58:49 +00:00
André Pönitz
5008ee540f
rename LColor into Color
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18046 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-26 17:34:20 +00:00
André Pönitz
42123ab8a7
rename LCursor->Cursor
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18040 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-26 14:56:30 +00:00
Bo Peng
f630be8904
Rename .C ==> .cpp for files in src/
...
Oldname, newname, classes
src/pspell.C src/PSpell.cpp PSpell
src/ParagraphMetrics.h src/ParagraphMetrics.h ParagraphMetrics
src/author.C src/Author.cpp ['Author', 'AuthorList']
src/Floating.C src/Floating.cpp Floating
src/lyxvc.C src/LyXVC.cpp LyXVC
src/intl.C src/Intl.cpp Intl
src/paragraph.h src/Paragraph.h ['FontSpan', 'Paragraph']
src/LyXAction.C src/LyXAction.cpp LyXAction
src/SpellBase.C src/SpellBase.cpp SpellBase
src/TextMetrics.C src/TextMetrics.cpp TextMetrics
src/LaTeXFeatures.C src/LaTeXFeatures.cpp LaTeXFeatures
src/buffer_funcs.h src/buffer_funcs.h NOCLASSES
src/Variables.h src/Variables.h Variables
src/cursor.C src/LCursor.cpp LCursor
src/lyx_cb.C src/lyx_cb.cpp NOCLASSES
src/DepTable.C src/DepTable.cpp ['DepTable', 'dep_info']
src/vspace.C src/VSpace.cpp VSpace
src/Thesaurus.C src/Thesaurus.cpp Thesaurus
src/Color.h src/color.h NOCLASSES
src/Spacing.C src/Spacing.cpp Spacing
src/dociterator.h src/DocIterator.h ['DocIterator', 'StableDocIterator']
src/trans.C src/Trans.cpp Trans
src/metricsinfo.h src/MetricsInfo.h ['MetricsBase', 'MetricsInfo', 'PainterInfo', 'TextMetricsInfo', 'ViewMetricsInfo', 'Changer', 'FontChanger', 'FontSetChanger', 'StyleChanger', 'ScriptChanger', 'FracChanger', 'ArrayChanger', 'ShapeChanger', 'WidthChanger', 'ColorChanger']
src/box.C src/Box.cpp Box
src/language.h src/Language.h ['Language', 'Languages']
src/output_plaintext.C src/output_plaintext.cpp NOCLASSES
src/coordcache.C src/CoordCache.cpp ['Point', 'CoordCache']
src/lyxlex.h src/LyXLex.h ['LyXLex', 'pushpophelper']
src/encoding.h src/Encoding.h ['Encoding', 'Encodings', 'const_iterator']
src/debug.h src/debug.h lyx_debug_trait
src/Chktex.h src/Chktex.h Chktex
src/output.C src/output.cpp NOCLASSES
src/output_latex.h src/output_latex.h NOCLASSES
src/sgml.C src/sgml.cpp NOCLASSES
src/pspell.h src/PSpell.h PSpell
src/bufferlist.C src/BufferList.cpp BufferList
src/author.h src/Author.h ['Author', 'AuthorList']
src/Bidi.C src/Bidi.cpp Bidi
src/exporter.C src/Exporter.cpp ['Exporter', 'ExportedFile', 'ExportData']
src/Floating.h src/Floating.h Floating
src/lyxvc.h src/LyXVC.h LyXVC
src/intl.h src/Intl.h Intl
src/lyxlength.C src/LyXLength.cpp LyXLength
src/LyXAction.h src/LyXAction.h LyXAction
src/SpellBase.h src/SpellBase.h SpellBase
src/TextMetrics.h src/TextMetrics.h TextMetrics
src/LaTeXFeatures.h src/LaTeXFeatures.h LaTeXFeatures
src/cursor.h src/LCursor.h LCursor
src/layout.h src/layout.h NOCLASSES
src/DepTable.h src/DepTable.h ['DepTable', 'dep_info']
src/lyx_cb.h src/lyx_cb.h NOCLASSES
src/vspace.h src/VSpace.h VSpace
src/PrinterParams.C src/PrinterParams.cpp PrinterParams
src/tex-strings.C src/tex-strings.cpp NOCLASSES
src/Thesaurus.h src/Thesaurus.h Thesaurus
src/Spacing.h src/Spacing.h Spacing
src/BranchList.C src/BranchList.cpp ['Branch', 'BranchList', 'BranchNamesEqual']
src/trans.h src/Trans.h Trans
src/output_plaintext.h src/output_plaintext.h NOCLASSES
src/box.h src/Box.h Box
src/coordcache.h src/CoordCache.h ['Point', 'CoordCache']
src/graph.C src/Graph.cpp ['Graph', 'Vertex']
src/lyxserver.C src/LyXServer.cpp ['LyXComm', 'LyXServer']
src/undo.C src/Undo.cpp Undo
src/output.h src/output.h NOCLASSES
src/text2.C src/text2.cpp NOCLASSES
src/ParagraphList_fwd.h src/ParagraphList_fwd.h NOCLASSES
src/sgml.h src/sgml.h NOCLASSES
src/converter.C src/Converter.cpp ['Converter', 'Converters']
src/factory.C src/factory.cpp NOCLASSES
src/RowList_fwd.h src/RowList_fwd.h NOCLASSES
src/buffer.C src/Buffer.cpp Buffer
src/bufferlist.h src/BufferList.h BufferList
src/CutAndPaste.C src/CutAndPaste.cpp NOCLASSES
src/Bidi.h src/Bidi.h Bidi
src/exporter.h src/Exporter.h ['Exporter', 'ExportedFile', 'ExportData']
src/InsetList.C src/InsetList.cpp ['InsetList', 'InsetTable']
src/FontIterator.C src/FontIterator.cpp FontIterator
src/session.C src/Session.cpp ['SessionSection', 'LastFilesSection', 'LastOpenedSection', 'LastFilePosSection', 'BookmarksSection', 'Bookmark', 'ToolbarSection', 'ToolbarInfo', 'SessionInfoSection', 'Session']
src/lyxlength.h src/LyXLength.h LyXLength
src/main.C src/main.cpp LyXLength
src/lyxsocket.C src/LyXServerSocket.cpp ['LyXServerSocket', 'LyXDataSocket']
src/errorlist.C src/ErrorList.cpp ['ErrorItem', 'ErrorList']
src/lyxtext.h src/LyXText.h LyXText
src/lyxfunc.C src/LyXFunc.cpp LyXFunc
src/format.C src/Format.cpp ['Format', 'Formats']
src/lengthcommon.C src/lengthcommon.cpp NOCLASSES
src/tex-strings.h src/tex-strings.h NOCLASSES
src/PrinterParams.h src/PrinterParams.h PrinterParams
src/insetiterator.C src/InsetIterator.cpp InsetIterator
src/vc-backend.C src/VCBackend.cpp ['VCS', 'RCS', 'CVS']
src/TocBackend.C src/TocBackend.cpp ['TocItem', 'TocList', 'TocBackend']
src/BranchList.h src/BranchList.h ['Branch', 'BranchList', 'BranchNamesEqual']
src/FuncStatus.C src/FuncStatus.cpp FuncStatus
src/Sectioning.C src/Section.cpp ['Section', 'SectioningList']
src/counters.C src/Counters.cpp ['Counter', 'Counters']
src/graph.h src/Graph.h ['Graph', 'Vertex']
src/lyxserver.h src/LyXServer.h ['LyXComm', 'LyXServer']
src/undo.h src/Undo.h Undo
src/paper.h src/paper.h NOCLASSES
src/converter.h src/Converter.h ['Converter', 'Converters']
src/factory.h src/factory.h NOCLASSES
src/LaTeX.C src/LaTeX.cpp ['TeXErrors', 'Error', 'Aux_Info', 'LaTeX']
src/bufferparams.C src/BufferParams.cpp ['BufferParams', 'MemoryTraits']
src/buffer.h src/Buffer.h Buffer
src/CutAndPaste.h src/CutAndPaste.h NOCLASSES
src/InsetList.h src/InsetList.h ['InsetList', 'InsetTable']
src/kbsequence.C src/kb_sequence.cpp kb_sequence
src/FontIterator.h src/FontIterator.h FontIterator
src/dimension.C src/Dimension.cpp Dimension
src/Bullet.C src/Bullet.cpp Bullet
src/texrow.C src/TexRow.cpp ['TexRow', 'RowItem']
src/session.h src/Session.h ['SessionSection', 'LastFilesSection', 'LastOpenedSection', 'LastFilePosSection', 'BookmarksSection', 'Bookmark', 'ToolbarSection', 'ToolbarInfo', 'SessionInfoSection', 'Session']
src/ParagraphParameters.C src/ParagraphParameters.cpp ParagraphParameters
src/lyxsocket.h src/LyXServerSocket.h ['LyXServerSocket', 'LyXDataSocket']
src/errorlist.h src/ErrorList.h ['ErrorItem', 'ErrorList']
src/tabular.C src/LyXTabular.cpp ['LyXTabular', 'ltType', 'cellstruct', 'rowstruct', 'columnstruct']
src/pariterator.C src/ParIterator.cpp ['ParIterator', 'ParConstIterator']
src/lyxfunc.h src/LyXFunc.h LyXFunc
src/format.h src/Format.h ['Format', 'Formats']
src/aspell_local.h src/ASpell_local.h ASpell
src/lengthcommon.h src/lengthcommon.h NOCLASSES
src/insetiterator.h src/InsetIterator.h InsetIterator
src/lyxrc.C src/LyXRC.cpp ['LyXRC', 'LyXRC_PreviewStatus']
src/TocBackend.h src/TocBackend.h ['TocItem', 'TocList', 'TocBackend']
src/vc-backend.h src/VCBackend.h ['VCS', 'RCS', 'CVS']
src/dispatchresult.h src/DispatchResult.h DispatchResult
src/lyxtextclasslist.C src/LyXTextClassList.cpp LyXTextClassList
src/paragraph_funcs.C src/paragraph_funcs.cpp NOCLASSES
src/funcrequest.C src/FuncRequest.cpp FuncRequest
src/FuncStatus.h src/FuncStatus.h FuncStatus
src/UpdateFlags.h src/UpdateFlags.h NOCLASSES
src/lyxrow.C src/Row.cpp ['Row', 'RowMetrics']
src/outputparams.C src/OutputParams.cpp OutputParams
src/counters.h src/Counters.h ['Counter', 'Counters']
src/Sectioning.h src/Section.h ['Section', 'SectioningList']
src/text3.C src/text3.cpp ['Section', 'SectioningList']
src/lyxlayout.C src/LyXLayout.cpp LyXLayout
src/lyxfind.C src/lyxfind.cpp NOCLASSES
src/bufferparams.h src/BufferParams.h ['BufferParams', 'MemoryTraits']
src/LaTeX.h src/LaTeX.h ['TeXErrors', 'Error', 'Aux_Info', 'LaTeX']
src/trans_decl.h src/KmodInfo.h KmodInfo
src/gettext.C src/gettext.cpp NOCLASSES
src/dimension.h src/Dimension.h Dimension
src/kbmap.C src/kb_keymap.cpp kb_keymap
src/kbsequence.h src/kb_sequence.h kb_sequence
src/rowpainter.C src/rowpainter.cpp NOCLASSES
src/ConverterCache.C src/ConverterCache.cpp ConverterCache
src/lyxgluelength.C src/LyXGlueLength.cpp LyXGlueLength
src/tex-accent.C src/tex-accent.cpp NOCLASSES
src/Bullet.h src/Bullet.h Bullet
src/texrow.h src/TexRow.h ['TexRow', 'RowItem']
src/ParagraphParameters.h src/ParagraphParameters.h ParagraphParameters
src/tabular.h src/LyXTabular.h ['LyXTabular', 'ltType', 'cellstruct', 'rowstruct', 'columnstruct']
src/importer.C src/Importer.cpp Importer
src/pariterator.h src/ParIterator.h ['ParIterator', 'ParConstIterator']
src/lyxfont.C src/LyXFont.cpp ['LyXFont', 'LyXFont_size']
src/BufferView.C src/BufferView.cpp BufferView
src/ParagraphList.h src/ParagraphList.h NOCLASSES
src/lyxrc.h src/LyXRC.h ['LyXRC', 'LyXRC_PreviewStatus']
src/lyxtextclass.C src/LyXTextClass.cpp ['CharStyle', 'LyXTextClass']
src/changes.C src/Changes.cpp ['Change', 'Changes', 'Range', 'ChangeRange']
src/lyxtextclasslist.h src/LyXTextClassList.h LyXTextClassList
src/paragraph_funcs.h src/paragraph_funcs.h NOCLASSES
src/funcrequest.h src/FuncRequest.h FuncRequest
src/lyxrow.h src/Row.h ['Row', 'RowMetrics']
src/outputparams.h src/OutputParams.h OutputParams
src/MenuBackend.C src/MenuBackend.cpp ['MenuItem', 'Menu', 'MenuBackend']
src/lyxlayout.h src/LyXLayout.h LyXLayout
src/lyxfind.h src/lyxfind.h NOCLASSES
src/gettext.h src/gettext.h NOCLASSES
src/LColor.C src/LColor.cpp ['LColor', 'LColor_color']
src/version.h src/version.h NOCLASSES
src/cursor_slice.C src/CursorSlice.cpp CursorSlice
src/WordLangTuple.h src/WordLangTuple.h WordLangTuple
src/lfuns.h src/lfuns.h NOCLASSES
src/trans_mgr.C src/TransState.cpp ['TransState', 'TransFSMData', 'TransInitState', 'TransDeadkeyState', 'TransCombinedState', 'TransFSM', 'TransManager']
src/kbmap.h src/kb_keymap.h kb_keymap
src/rowpainter.h src/rowpainter.h NOCLASSES
src/ConverterCache.h src/ConverterCache.h ConverterCache
src/lyxgluelength.h src/LyXGlueLength.h LyXGlueLength
src/output_docbook.C src/output_docbook.cpp NOCLASSES
src/tex-accent.h src/tex-accent.h NOCLASSES
src/FloatList.C src/FloatList.cpp FloatList
src/bufferview_funcs.C src/bufferview_funcs.cpp NOCLASSES
src/importer.h src/Importer.h Importer
src/messages.C src/Messages.cpp Messages
src/lyxfont.h src/LyXFont.h ['LyXFont', 'LyXFont_size']
src/BufferView.h src/BufferView.h BufferView
src/ToolbarBackend.C src/ToolbarBackend.cpp ['ToolbarItem', 'ToolbarInfo', 'ToolbarBackend']
src/lyx_sty.C src/lyx_sty.cpp NOCLASSES
src/lyxtextclass.h src/LyXTextClass.h ['CharStyle', 'LyXTextClass']
src/changes.h src/Changes.h ['Change', 'Changes', 'Range', 'ChangeRange']
src/aspell.C src/ASpell.cpp
src/lyx_main.C src/LyX.cpp LyX
src/MenuBackend.h src/MenuBackend.h ['MenuItem', 'Menu', 'MenuBackend']
src/toc.C src/toc.cpp NOCLASSES
src/boost.C src/boost.cpp NOCLASSES
src/ispell.C src/ISpell.cpp ISpell
src/mover.C src/Mover.cpp ['Mover', 'SpecialisedMover', 'Movers']
src/ParagraphMetrics.C src/ParagraphMetrics.cpp ParagraphMetrics
src/LColor.h src/LColor.h ['LColor', 'LColor_color']
src/cursor_slice.h src/CursorSlice.h CursorSlice
src/trans_mgr.h src/TransState.h ['TransState', 'TransFSMData', 'TransInitState', 'TransDeadkeyState', 'TransCombinedState', 'TransFSM', 'TransManager']
src/lyxlayout_ptr_fwd.h src/lyxlayout_ptr_fwd.h NOCLASSES
src/output_docbook.h src/output_docbook.h NOCLASSES
src/paragraph.C src/Paragraph.cpp ['FontSpan', 'Paragraph']
src/FloatList.h src/FloatList.h FloatList
src/bufferview_funcs.h src/bufferview_funcs.h NOCLASSES
src/buffer_funcs.C src/buffer_funcs.cpp NOCLASSES
src/Variables.C src/Variables.cpp Variables
src/messages.h src/Messages.h Messages
src/Color.C src/color.cpp NOCLASSES
src/dociterator.C src/DocIterator.cpp ['DocIterator', 'StableDocIterator']
src/ToolbarBackend.h src/ToolbarBackend.h ['ToolbarItem', 'ToolbarInfo', 'ToolbarBackend']
src/lyx_sty.h src/lyx_sty.h NOCLASSES
src/metricsinfo.C src/MetricsInfo.cpp ['MetricsBase', 'MetricsInfo', 'PainterInfo', 'TextMetricsInfo', 'ViewMetricsInfo', 'Changer', 'FontChanger', 'FontSetChanger', 'StyleChanger', 'ScriptChanger', 'FracChanger', 'ArrayChanger', 'ShapeChanger', 'WidthChanger', 'ColorChanger']
src/language.C src/Language.cpp ['Language', 'Languages']
src/text.C src/text.cpp ['Language', 'Languages']
src/lyx_main.h src/LyX.h LyX
src/lyxlex.C src/LyXLex.cpp ['LyXLex', 'pushpophelper']
src/encoding.C src/Encoding.cpp ['Encoding', 'Encodings', 'const_iterator']
src/debug.C src/debug.cpp lyx_debug_trait
src/Chktex.C src/Chktex.cpp Chktex
src/toc.h src/toc.h NOCLASSES
src/ispell.h src/ISpell.h ISpell
src/mover.h src/Mover.h ['Mover', 'SpecialisedMover', 'Movers']
src/output_latex.C src/output_latex.cpp NOCLASSES
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18019 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-26 04:46:45 +00:00