Abdelrazak Younes
b1d94940ee
delete unused code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21182 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 16:00:25 +00:00
Abdelrazak Younes
1026a87b72
* InsetList: introducing find() and count()
...
* Paragraph:
- erase numberOfOptArgs() and bibitem()
- move onlyText() to Private.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21180 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 15:32:43 +00:00
Abdelrazak Younes
4c4299d1a5
bug fix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21177 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 11:24:53 +00:00
Abdelrazak Younes
a003a0da8b
get rid of useless Paragraph::Private::size().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21175 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 09:46:38 +00:00
Abdelrazak Younes
75febee877
Paragraph::appendString(): use docstring::append().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21173 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 09:01:51 +00:00
Abdelrazak Younes
23f89b8d35
Paragraph::Private: change TextContainer to docstring; this will enable to use advance algorithms for string searching/splitting/merging without useless data copying etc.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21171 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 08:50:58 +00:00
Abdelrazak Younes
372e605c2f
Introducing Paragraph::find().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21168 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 08:22:26 +00:00
Abdelrazak Younes
1297114b73
Introducing Paragraph::changeCase().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21167 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 07:49:24 +00:00
Abdelrazak Younes
d7c3ab3203
* Paragraph: Move more things to Paragraph::Private
...
- remove META_INSET from Paragraph.h
- move text_ container to Private. I know this put there for performance reason but I don't see any penalty with this move. I guess this is because Buffer loading doesn't use Paragraph::getChar() anymore. I will move performance critical code to Paragraph::Private when/if we detect them.
- replace Paragraph::value_type with straight char_type: this was more noise than anything.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21163 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 07:08:55 +00:00
Richard Heck
2f4d0ae27e
Remove methods marked for removal from InsetCommandParams. Yeah, we can do that now. ;-)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21154 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 18:51:04 +00:00
Martin Vermeer
6da13bd888
Improve verbatim for RTL
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21153 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 18:23:03 +00:00
Abdelrazak Younes
e6f3d34556
* Paragraph: erase unused some method and move some members to Paragraph::Private.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21148 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 13:25:05 +00:00
Abdelrazak Younes
5ead1beb71
* Paragraph:latex(): de-spaghettization step 2: split out T1 encoding, Typewriter font and 'special phrases' special cases.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21147 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 09:53:06 +00:00
Abdelrazak Younes
3911d72568
* Paragraph: reserve memory by chunks of 100 chars. This improve the loading of big document of about 15% (12s instead of 14s for the UserGuide copied and pasted 10 times). There is zero penalty memory wise; quite weirdly, there is a benefit actually: 58 Megs instead 60 Megs, I don't understand why. For comparison, 1.5 needs 78 Megs for the same document.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21127 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 20:05:41 +00:00
Abdelrazak Younes
c86e632afa
Introducing FontList::setRange()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21126 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 19:18:51 +00:00
Abdelrazak Younes
e6f059a132
* Paragraph:
...
- simpleTeXOnePar(): renamed to latex(), beginning of de-spaghettization by truly splitting inset and character cases.
- appendChar(), appendString(): new method for buffer reading.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21117 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 13:09:16 +00:00
André Pönitz
f934b86850
cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21097 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 10:50:56 +00:00
Martin Vermeer
ccacb487f2
Verbatim for URL inset, \protect for special phrases (index inset)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21083 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 17:05:28 +00:00
Bo Peng
f997b92ece
make trunk compile with gcc4
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21081 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 14:10:49 +00:00
Abdelrazak Younes
eac9884b0e
cleanups: split Paragraph::Private::simpleTeXSpecialChars() in two. Remove two or level of indentation...
...
What a mess...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21076 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 08:09:55 +00:00
Richard Heck
e158e07c29
InsetCommandParams() now takes an InsetCode rather than a string.
...
These changes are just adaptations to the new signature.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21072 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 17:22:55 +00:00
Abdelrazak Younes
3372738c6d
Introducing FontList::validate()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21069 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 16:01:32 +00:00
Abdelrazak Younes
0905c4e3c2
small simplification (and optimization).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21068 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 15:42:53 +00:00
Abdelrazak Younes
65b3790153
Introducing FontList::hasChangeInRange()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21067 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 15:30:54 +00:00
Abdelrazak Younes
0077782724
* Paragraph::highestFontInRange(): Transfer some more code from Paragraph to FontList.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21064 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 14:55:44 +00:00
Abdelrazak Younes
2f72a0a721
incremental cleanup
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21063 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 14:47:32 +00:00
Abdelrazak Younes
4d9007bd61
Introducing FontList.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21062 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 14:35:05 +00:00
Jean-Marc Lasgouttes
ca495a7d36
compilation and warning fix
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21056 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 12:51:32 +00:00
Abdelrazak Younes
b4ef7c9968
* Paragraph: Cosmetics and cleanups, remove uneeded redirection and uniformize Private members naming. Still a lot of cleanup needed.
...
* InsetList: remove clone() and create a copy ctor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21052 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 08:57:22 +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
Enrico Forestieri
51e1520090
Better safe than sorry...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20972 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-15 13:48:44 +00:00
Uwe Stöhr
7075eaadef
The huge URL patch:
...
- rename the lfun to href-insert.png
- rename the files to Hyperlink...
- the former URLUi produces now \href commands (hyperref)
Only missing thing is the lyx2lyx conversion routine - this will be done by Richard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20950 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-13 19:06:09 +00:00
Enrico Forestieri
dde506924c
Clarify comments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20946 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-13 14:07:04 +00:00
Abdelrazak Younes
87b112496c
Use InsetCode.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20940 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-13 09:48:18 +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
Enrico Forestieri
d88aac0e1f
Add support for greek and cyrillic chars such that it is not
...
necessary to mark them in the proper language for typesetting.
* src/Paragraph.cpp
(Paragraph::Pimpl::knownLangChars): new method.
(Paragraph::Pimpl::simpleTeXSpecialChars): output proper
latex code for greek and cyrillic chars.
* src/LaTeXFeatures.cpp: add textgreek and textcyr features.
* src/Encoding.{cpp,h}
(Encodings::isKnownLangChar): new method.
* lib/unicodesymbols: add greek and cyrillic alphabetic chars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20931 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-12 18:21:51 +00:00
Richard Heck
453bc40033
XXXX --> ??
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20701 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-03 16:57:01 +00:00
Richard Heck
9b223c494e
Fix bug 4232: Crash on bad counter name.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20679 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-03 02:39:11 +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
Jürgen Spitzmüller
7e1861b41e
* src/Paragraph.cpp (getLabelWidthString):
...
- don't judge possibility of configurable label string by the existence of such,
but rather by the margintype (bug 4127)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20189 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-10 13:45:48 +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
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
2706bb5247
header cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19998 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-02 11:49:05 +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
André Pönitz
ed858d73e5
use bald pointers in clone()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19920 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-30 18:03:17 +00:00
Abdelrazak Younes
598e5ecb9a
header cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19857 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-28 15:34:55 +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
2f751fe117
cosmetics.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19632 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-18 13:08:36 +00:00
Abdelrazak Younes
ba379f05d7
* Paragraph::getFontSettings(): small optimisation: avoid a Font copy
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19631 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-18 13:00:07 +00:00
Jean-Marc Lasgouttes
f756c02329
The counters labelstring patch. Part 2: Use the new code.
...
* src/Paragraph.cpp (expandLabel): if the labelstring is empty,
use \thecounter instead; when processing @layout@ tokens, pass the
process_appendix boolean.
* src/buffer_funcs.cpp (setLabel):
* src/insets/InsetFoot.cpp (updateLabels):
* src/insets/InsetCaption.cpp (updateLabels): use
Counters::theCounter.
* src/insets/InsetBibitem.cpp: remove the ad-hoc numbering code
and replace it with a proper updateLabels-based solution.
* src/insets/InsetCommands.cpp (refresh): new method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19603 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-16 11:12:56 +00:00