Commit Graph

11314 Commits

Author SHA1 Message Date
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