Commit Graph

11477 Commits

Author SHA1 Message Date
Bo Peng
1d9cfe4b9f save HyperlinkUi.ui in qt 422 format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21362 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 04:36:25 +00:00
Stefan Schimanski
cc1b8dbe2b * change the fold/unfold behaviour a bit: if we are just in front of a macro with wrong state after we went one level up, we look further left. This feels more natural in cases nullary macros appear as parameters of other macros.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21361 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 00:11:51 +00:00
André Pönitz
a8cd9a4b8f cosmetics. mainly replace #include "dostring.h" by #include "strfwd.h"
in header files when possible. Adjust .cpp files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21358 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 22:17:22 +00:00
Stefan Schimanski
f8147509ac * 1 off error, leading to a crash with only one optional parameter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21357 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 22:15:00 +00:00
Uwe Stöhr
80c4d82e97 InsetHyperlink.cpp: add FIXME for the docstring issue
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21352 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 17:54:17 +00:00
Jürgen Spitzmüller
41880f4282 * src/frontends/qt4/GuiErrorList.cpp:
- do not close the dialog on double click (bug 4090).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21351 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 17:52:52 +00:00
Uwe Stöhr
2749683873 GuiHyperlink.cpp /HyperlinkUi.ui: follow the LyX naming conventions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21350 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 17:49:17 +00:00
Uwe Stöhr
0a7567ce3b - add entry to FORMATS file for Stefan's format change (Richards to 296 change is still not correctly listed)
- add support for hyerlink targets - fileformat changed
  (For Hyperlink.cpp I still need help to get rid of the strings and chars and use docstrings and char_type instead!)

Can anyone please open the changed Hyperlink.ui with a Qt 4.2 designer or below, save it and commit? Thanks. (Otherwise you cannot compile it.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21347 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 17:37:43 +00:00
Abdelrazak Younes
36e14ceb10 Fix bug 4147.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21344 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 16:59:40 +00:00
Stefan Schimanski
565475a439 * replace int type by the correct custom type for pos, idx and size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21336 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 15:36:27 +00:00
Stefan Schimanski
b5a640d1cc * one coercion is enough
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21335 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 14:45:14 +00:00
Stefan Schimanski
6aa5467320 * added non-greedy init mode for macros. If you enter a macro with the cursor, you don't want that it eats the insets on the right.
* split up the MathData::updateMacro method into the optional and normal parameter part


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21334 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 14:40:15 +00:00
Edwin Leuven
7e9ec4cdbd correct case
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21333 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 14:30:48 +00:00
Stefan Schimanski
95cb72f747 * removed MathMacro:: from declaration.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21332 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 14:06:58 +00:00
Stefan Schimanski
0e201c8c22 * cosmetic: alphabetic order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21331 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 11:27:02 +00:00
Stefan Schimanski
e43dc9d38c * Added conversion of latex macros with optional parameters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21330 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 11:15:05 +00:00
Stefan Schimanski
dbbf47ab14 * LFUN handler for folding/unfolding of math macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21329 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 11:14:14 +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
Stefan Schimanski
2ad61c0366 * LFUNs for math macros and menu integration
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21327 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 11:08:04 +00:00
Stefan Schimanski
9d9c5959f3 * file format 298 to convert macro definitions with optional parameters into ERT. This is still just an empty convertion, waiting for Uwe to find time to implement it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21326 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 11:03:51 +00:00
Stefan Schimanski
1315e5f026 * non-const coercion for math braces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21325 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 10:58:59 +00:00
Stefan Schimanski
5a7a53e346 * color definitions for math macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21324 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 10:57:20 +00:00
Stefan Schimanski
6fa7710506 * methods to cut off DocIterators and to append vectors of CursorSlices. This is used to keep the visual cursor position when folding/unfolding macros with the cursor in a parameter.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21323 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 10:56:18 +00:00
Stefan Schimanski
6408f99b31 * monochrome rendering support. You can set two color, the min and max. Every painting operation later on will map every color into this interval. By calling enterMonochrome and leaveMonochrome you can nest this process.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21322 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 10:52:51 +00:00
Edwin Leuven
3b07f0f851 get rid of clear button
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21321 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 10:39:20 +00:00
Stefan Schimanski
6e043a9c22 * reverting previous workarounds. With Martin's commit 21319 there are not needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21320 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 09:57:38 +00:00
Martin Vermeer
225d92ba43 Fix tex2lyx for inset font inheritance changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21319 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 09:47:02 +00:00
Stefan Schimanski
1b4345ac31 * and another one. Trying to compile before committing would make sense sometimes :-/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21318 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 09:16:23 +00:00
Stefan Schimanski
ee17120d5b * yet another compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21317 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 09:14:25 +00:00
Martin Vermeer
1d894fd5e3 Fix inset font inheritance mechanism; smaller clean-ups
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21315 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 06:25:47 +00:00
Stefan Schimanski
aa9bb01f27 * make it compile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21314 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 00:04:13 +00:00
Stefan Schimanski
ffa57bea4d * gcc does not like missing characters in keywords
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21313 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 23:41:22 +00:00
André Pönitz
a5263e0f92 introduce a header to forward declare std::string.
hope there are only conforming implementaions out there ;-}


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21312 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 22:40:34 +00:00
Bo Peng
e91114cdcb PrefShortcuts: remove color, remove third column, use bold and cross-out font for new and removed items respectively
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21311 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 18:46:03 +00:00
Bo Peng
6cf20c52b7 PrefShortcuts: use KeySequence::ForGui to display shortcuts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21309 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 17:15:10 +00:00
Martin Vermeer
ae76ba2362 LFUN_LANGUAGE enabled wrong way around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21308 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 08:54:44 +00:00
Abdelrazak Younes
036a507c6d Move to_local8bit_failure class to docstring.cpp and restore std::bad_cast inheritance.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21307 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 08:05:37 +00:00
Abdelrazak Younes
13a85fe0c0 Fix some gcc warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21306 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 07:48:13 +00:00
Dov Feldstern
3e2af36af1 Fix LFUN_LANGUAGE bug due to Font/Language separation (r21240):
the LFUN had stopped working, because since language is no longer part of the
font, changes to the language were no longer being registered in the fontInfo, 
and so we were wrongly under the impression that nothing had been changed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21305 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 22:55:33 +00:00
Bo Peng
773e3d475f Clean up EmbeddedFiles.h/cpp because the valid_ field is no longer needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21304 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 22:21:48 +00:00
Uwe Stöhr
7e62189e7e GuiErrorList.cpp: whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21297 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 20:22:50 +00:00
Bo Peng
c2440d06d1 Cosmetic changes to how shortcuts are printed: S-C-S => C-S-s because S-S can be confusion, and Ctrl-Shift is more natural than Shift-Ctrl
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21296 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 16:34:35 +00:00
Martin Vermeer
fa2bec7440 const, sorry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21295 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 16:27:31 +00:00
Martin Vermeer
abf5d0c1c3 Fix thinko: we need to apply the default font here, not the inset's font commands
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21294 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 16:24:52 +00:00
Martin Vermeer
af84c0957d Fix line count off-by-one for single-par verbatims
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21293 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 16:22:56 +00:00
Bo Peng
bc86ac1804 Fix the shortcut input dialog bug (can not input Ctrl-blah)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21291 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 16:04:48 +00:00
Bo Peng
de8492cd1c To reduce confusion, stop displaying UserExtraUnbind items in the shortcut customization dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21290 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 15:25:30 +00:00
Bo Peng
a9519bda94 Document->settings: update embedded file list properly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21289 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 15:20:59 +00:00
Jürgen Spitzmüller
8c908a56f1 * src/frontends/qt4/GuiSearch.cpp:
- use selectAll function instead of home-brewn method.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21287 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 13:16:45 +00:00
Martin Vermeer
3d443b4c9d Implement ForceLtR; cleanup of collapsable insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21285 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 12:30:46 +00:00
Bo Peng
eabe6081c9 Document->Settings: add currently embedded files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21284 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 02:59:24 +00:00
Uwe Stöhr
e7768ff98e InsetMathDelim.cpp: remove doubled include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21282 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 01:19:21 +00:00
André Pönitz
70c1f22999 remove unneeded include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21277 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 23:05:18 +00:00
André Pönitz
6616c59385 make unused exception less expensive
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21276 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 22:58:08 +00:00
Uwe Stöhr
bb46fe5f0e fileformat change for my previous commit: Albanian and lower Sorbian support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21273 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 22:38:36 +00:00
André Pönitz
41f6e7ee54 unbreak font panel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21272 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 22:03:59 +00:00
Bo Peng
7fb4a57ab9 Put bindings in defaultKeyBindings() to site.bind
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21268 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 19:45:43 +00:00
Martin Vermeer
325da0a915 Update current font when moving cursor by clicking mouse
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21267 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 18:57:56 +00:00
Bo Peng
3f6c8981ed Use proper label in the shortcut panel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21266 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 17:09:50 +00:00
Richard Heck
a0a04e4886 Make GuiRef and GuiInclude subclasses of GuiCommand.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21264 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 16:51:07 +00:00
Martin Vermeer
50e5d51038 Commit the new parameter ForceLtR before Abdel moves things around again :-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21261 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 14:39:29 +00:00
Abdelrazak Younes
ca0fd16ef7 Fix copy&paste bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21260 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 12:29:06 +00:00
Abdelrazak Younes
aeebc6565c * FontList:
- clear(): new
- set(): simplify a bit.

* Paragraph(): optimize appendString() and resetFonts().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21259 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 12:21:58 +00:00
Abdelrazak Younes
3a7509a901 * InsetERT::resetParagraphsFont(): use Paragraph::resetFonts().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21258 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 11:02:13 +00:00
Abdelrazak Younes
5e418fb660 put back the const.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21257 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 10:47:41 +00:00
Abdelrazak Younes
0e87c91115 * InsetText::frame_color_: int -> ColorCode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21256 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 10:46:13 +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
Edwin Leuven
608236c0db - add label and remove subclassed SearchLineEdit
- put ShortcutLineEdit in namespace lyx::frontend
- additional dialog layout tweaks

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21254 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 08:56:30 +00:00
Abdelrazak Younes
cff2f03285 RowPainter::paintForeignMark(): take a Language instead of a Font.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21253 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 08:52:13 +00:00
Abdelrazak Younes
d58f8cf7f6 Add some const and avoid implicit constructions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21252 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 08:47:19 +00:00
Bo Peng
97db33209f Add initial embedding files panel in the Document->Settings dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21251 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 04:07:38 +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
d6f380eac1 Undo some Font -> FontInfo moves.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21248 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 22:49:49 +00:00
Uwe Stöhr
256638827a InsetMathFrac: add support for \tbinom and \dbinom, fixes bug 4305
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21247 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 21:48:51 +00:00
Dov Feldstern
b4372a37d9 Getting rid of LTR bias --- part 2/?
This is a continuation of r21128. This round fixes the "Word" movement
functions and LFUNS.

Behavior should remain unchanged by this fix.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21244 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 20:35:57 +00:00
Abdelrazak Younes
725f07728b white space.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21243 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 20:31:19 +00:00
Abdelrazak Younes
869a66f59f GCC Compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21242 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 20:30:41 +00:00
Abdelrazak Younes
e194158259 Remove unneeded code and comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21241 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 19:27:12 +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
André Pönitz
053e705779 move stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21239 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 16:42:18 +00:00
André Pönitz
9be03a87f9 start some work on file dialogs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21238 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 16:32:20 +00:00
Uwe Stöhr
9c20e03c76 InsetMathFrac.cpp: fix bug 4308 by using the metrics change method of the fraction inset also for the binom inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21235 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 13:15:35 +00:00
Bo Peng
4973ea12c0 simplify code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21231 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-28 04:13:40 +00:00
Martin Vermeer
9bc5e190d4 ERT simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21224 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-27 14:05:05 +00:00
Bo Peng
0a554a5216 add a missing header file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21223 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-26 23:49:16 +00:00
Bernhard Roider
0886d316d4 complete fix of bug 3172: add binary mode open to the part where istreambuf_iterator is used.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21222 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-26 21:47:44 +00:00
Bo Peng
e6dd868635 PrefShortcuts: improve the Shortcut input dialog
* src/KeyMap.h|cpp: change interface and allow bind(KeySequence, FuncRequest)
	* src/frontends/qt4/CustomizedWidgets.h|cpp: use KeySequence, add event filter from Edwin
	* src/frontends/qt4/GuiPrefs.cpp: add another column, get KeySequence from the shortcut edit dialog directly


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21220 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-26 20:43:22 +00:00
Martin Vermeer
4018d432de Fix ERT blanks doubling bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21214 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-26 10:55:49 +00:00
Bernhard Roider
74d22c2ce4 fix bug 3172: open file in binary mode, otherwise iteration of a binary file with for_each stops early.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21211 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 22:36:59 +00:00
Richard Heck
4ca3a3d59c InsetIndex is no longer an InsetCommand.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21210 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 22:29:45 +00:00
André Pönitz
ed7a07e007 put \frac style stuff into a single unit. -161477.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21208 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 21:53:06 +00:00
Richard Heck
dc45268132 Fix compilation problem due to same static variable in different files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21207 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 21:39:47 +00:00
André Pönitz
aece85ea30 188094 lines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21206 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 20:36:17 +00:00
André Pönitz
ee120bd808 172725 lines down
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21205 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 19:41:06 +00:00
André Pönitz
3fa21d5b43 remove broken promises
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21204 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 18:27:08 +00:00
Bo Peng
6981d14f80 Fix spaces to please Andre
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21203 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 15:56:32 +00:00
Richard Heck
8f2a8c7267 Revert inadvertent commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21200 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 13:38:42 +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
Martin Vermeer
1f07a7f929 Introduce inset parameters keepempty, freespacing, needprotect and rename verbatim->passthru
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21197 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 09:19:26 +00:00
André Pönitz
93bd28f040 dissolve Importer 'class' to LyXFunc/Converter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21195 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 06:09:38 +00:00
Richard Heck
07b6198f4c Move the findInfo() and defaultCommand() routines out of InsetCommand and into its subclasses, so that the subclasses know what parameters they want, etc. Also, introduce an "isCompatibleCommand()" routine, so the subclasses can tell us which commands they are prepared to accept.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21194 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 04:13:56 +00:00
Bo Peng
e52c1ed1f9 Properly extend qt standard widgets, remove the search button in PrefShortcuts.
*  src/frontends/qt4/ui/ShortcutUi.ui: use ShortcutLineEdit
	*  src/frontends/qt4/ui/PrefShortcutsUi.ui: remove searchPB
	*  src/frontends/qt4/CustomizedWidgets.h|cpp: define ShortcutLineEdit and SearchLineEdit.
	*  src/frontends/qt4/GuiPrefs.h|cpp: remove ShortcutEdit
	*  src/frontends/qt4/Makefile.am: build system changes
	*  development/scons/scons_manifest.py


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21193 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 03:08:22 +00:00
André Pönitz
f4cc71b7dd remove unneded code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21192 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 23:03:40 +00:00
André Pönitz
e7aa8ce683 cosmetics... less than intented
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21190 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 22:55:02 +00:00
Uwe Stöhr
35240f328d EmbeddedFiles.cpp, GuiPrefs.cpp, PDFSupportUi.ui: fix some typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21188 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 22:02:48 +00:00
Enrico Forestieri
f48d7caee3 Small tweaks
* src/Paragraph.cpp (knownLangChars): renamed as writeScriptChars.
	Now only deals with characters that cannot be encoded using the
	current latex encoding.
	(latexSpecialChars): only call writeScriptChars if the character
	cannot be encoded.

	* src/Encoding.{cpp,h} (isKnownLangChar): renamed as isKnownScriptChar.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21183 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 17:22:57 +00:00
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
Martin Vermeer
9e6aa60d0f Move disabling LFUNS from ERT to Collapsable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21178 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 11:30:47 +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
92908b6ecf I forgot to commit this in 21167.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21170 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 08:40:38 +00:00
Abdelrazak Younes
604bf56374 small simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21169 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 08:32:20 +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
ce1ec3edd2 small optimization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21166 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 07:32:25 +00:00
Abdelrazak Younes
5ebafb3ba7 fix warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21165 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 07:13:20 +00:00
Abdelrazak Younes
8d19223eba compil fix, sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21164 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 07:10:26 +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
André Pönitz
b99433e73b cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21157 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 21:41:17 +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
Richard Heck
85bad159fe Some comments and cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21151 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 15:58:10 +00:00
Richard Heck
4064d2c468 InsetInclude becomes an InsetCommand.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21149 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 15:02:15 +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
Jürgen Spitzmüller
72801c16e2 * src/frontends/qt4/ui/ParagraphUi.ui:
- fix several duplicated accelerators (bug 4277)
* src/frontends/qt4/GuiParagraph{.cpp, h}:
	- reintroduce labelMap; the current implementation
	  displays wrong accelerators.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21144 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 08:10:55 +00:00
Richard Heck
82d27555cd Licensing info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21141 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 05:07:45 +00:00
Bo Peng
9c17666dd3 PrefShortcuts: ShortcutEdit, adapted from Edwin's patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21140 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 03:48:02 +00:00
Uwe Stöhr
8bdcbb56a5 PDFOptions.cpp: whitespace fix to please André
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21138 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 01:01:05 +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
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
Dov Feldstern
3d33cd8bd3 Compilation fix for Qt 4.2.1 in GuiPrefs.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21125 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 18:49:55 +00:00
Martin Vermeer
5ab6d5bf65 Simplify ERT by using verbatim
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21121 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 18:01:21 +00:00
Jean-Marc Lasgouttes
31df080af2 * qt4/Makefile.am: make sure that Resource-related files are deleted by make clean
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21119 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 13:58:13 +00:00
Jean-Marc Lasgouttes
e044946f23 * GuiPrefs.cpp (PrefShortcuts::setItemType): compilation fix for
qt 4.1 and some simplification.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21118 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 13:56:59 +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
Abdelrazak Younes
e820c448a0 Fix a warning that is potentially a bug (!= used instead of |=).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21116 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 07:49:30 +00:00
Abdelrazak Younes
9ec9f70df5 fix MSVC warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21107 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 22:12:12 +00:00
Bo Peng
b89d3f2cc2 Embedding: add LFUN_BUFFER_TOGGLE_EMBEDDING
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21106 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 20:06:44 +00:00
Bo Peng
f8836d8b12 Embedding: remove the embeddingChanged signal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21105 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 19:08:53 +00:00
Bo Peng
7063b33b1b Remove the manifest section of the .lyx file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21104 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 18:06:00 +00:00
Enrico Forestieri
eb9b8ef0cc Fix bug 4287
* src/Buffer.cpp (Buffer::save): also replace the ':' character
	in the mangled filename as this it is illegal on Windows.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21102 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 17:57:13 +00:00
Bo Peng
97c59d6e6d Remove the embedding dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21101 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 17:56:22 +00:00
Stefan Schimanski
8a301ccc16 * make it compile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21100 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 17:15:02 +00:00
Bernhard Roider
f914298c49 remove unused includes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21099 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 11:56:27 +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