Commit Graph

9492 Commits

Author SHA1 Message Date
Michael Schmitt
597d0e2146 * src/mathed/InsetMath.C: plaintext(): assert that this
method is never invoked (and tell why)
	* src/mathed/InsetMathFormulaMacro.C:
	* src/mathed/InsetMathHull.C: plaintext(): fix return value
	(= number of output characters)
	* src/mathed/InsetMathFormulaMacro.h
	* src/mathed/InsetMathHull.h: WS changes
	* src/mathed/InsetMathDim.C: implement plaintext() for math macros
	and add a FIXME that this code shouldn't needed!


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17319 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 15:06:04 +00:00
Michael Schmitt
6ab7047f3a * insets/*.C: constify docstring in plaintext()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17317 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 14:35:38 +00:00
Uwe Stöhr
1761cccf91 fix wrong tooltip, bug 3273:
http://bugzilla.lyx.org/show_bug.cgi?id=3273

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17315 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 01:40:59 +00:00
Georg Baum
0c26507890 * lib/encodings: Explain that only single byte encodings can be
added easily

	* src/encoding.C
	(Encoding::Encoding): Better test for utf8


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17313 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-23 20:13:06 +00:00
Georg Baum
3a64f157b7 * src/insets/insetbox.C
(InsetBox::validate): Don't require the calc package anymore for
	pure minipages (as it was done in 1.3.x)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17312 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-23 18:39:54 +00:00
Abdelrazak Younes
48ab3bd01e * InsetMathMBox.h:
- encapsulate within MATH_MBOX macro.
  - implement default constructor.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17309 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-23 08:27:03 +00:00
Abdelrazak Younes
36f6966af7 * InsetMathMBox: cleanup in order to avoid Buffer and BufferView dependencies.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17308 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-23 08:10:13 +00:00
Abdelrazak Younes
986786c1c1 * mathed/CMakeLists.txt: do not exclude InsetMathMBox.C
* InsetMathMBox.C: Make it compile.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17307 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-22 21:17:34 +00:00
Bo Peng
e8c63241d7 Fix bug 3238. Table cells should be treated differently because of separate table selection buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17306 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-22 17:55:22 +00:00
Georg Baum
cd732b489a make Jean-Marc happy:-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17299 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-22 10:04:49 +00:00
Georg Baum
e73b61f0d3 make Lars happy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17298 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-22 08:18:59 +00:00
Georg Baum
33a9bb161e Fix bug 3255
* src/frontends/Clipboard.h
	(empty): Clarify documentation

	* src/frontends/qt4/GuiClipboard.C
	(GuiClipboard::empty): Consider also the LyX version, since the text
	version is empty if there is only one inset in the clipboard.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17297 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-21 21:47:44 +00:00
Georg Baum
6287c95854 fix forgotten rename from the persistent selection patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17296 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-21 21:40:14 +00:00
Georg Baum
21d1457c8d * src/CutAndPaste.C
(copySelectionToStack): whitespace
	(copySelection): Avoid possibly expensive conversion if we are not
	debugging


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17295 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-21 21:17:39 +00:00
Georg Baum
4bbddb06e6 fix compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17294 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-21 21:09:43 +00:00
Georg Baum
69da7e8d3a Add some FIXMEs because there are some differences to std::stream
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17293 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-21 21:08:26 +00:00
Jürgen Spitzmüller
6965a879b5 * src/LaTeX.C: whitespace & add author
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17292 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-21 16:25:37 +00:00
Jürgen Spitzmüller
a6a4029f0d * src/LaTeX.C
-  (insertIfExists): new helper function.
	- (handleFoundFile): minor refactoring.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17289 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-21 09:53:50 +00:00
Michael Schmitt
dc402e30fb * src/mathed/InsetMathRef.*: remove plaintext()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17287 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 21:04:29 +00:00
Georg Baum
56ce8aa9e0 fix compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17285 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 20:53:37 +00:00
Georg Baum
2d85046fd7 Fix crash after inset-insert ert, from Bernhard Roider
Extend this to some other cases by me.

	* src/insets/insetert.C
	(void InsetERTMailer::string2params): Test for lex.isOK rather than
	lex, since the latter is also true if there was nothing to read.

	* src/insets/insetvspace.C
	(InsetVSpace::read): ditto
	(InsetVSpaceMailer::string2params): ditto

	* src/insets/insetnote.C
	(InsetNoteParams::read): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17284 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 20:48:23 +00:00
Georg Baum
73a6922d8e From John C. McCabe-Dansted:
* src/lyxtextclasslist.C
	(LyXTextClassList::addTextClass): Use addName rather than manual
	path construction.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17282 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 19:38:15 +00:00
Michael Schmitt
d8fd1b7a24 * src/insets/insetinclude.[Ch]: fix plaintext(); code formatting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17281 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 19:14:55 +00:00
Georg Baum
f5aaddc122 * src/buffer_funcs.C
(setLabel): Only use the name of float and wide insets to set the label


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17280 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 19:12:06 +00:00
Michael Schmitt
4ab1692eec * src/mathed/InsetMath.[Ch]: implement plaintext() in a smarter way by
outputting "[math]" rather than nothing 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17278 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 18:19:31 +00:00
Michael Schmitt
80328d2053 * src/insets/insetcommand.C: fix plaintext() output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17277 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 18:02:46 +00:00
Michael Schmitt
e8084b3109 * src/output_plaintext.C: use InsetBase::PLAINTEXT_NEWLINE; refactor
some common code; remove obsolete comments


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17276 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 17:56:55 +00:00
Michael Schmitt
3157f17825 * inset*.C:
* insetbase.h: introduce new enum PLAINTEXT_NEWLINE and use
	it instead of runparams.linelen for plaintex() return values


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17275 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 17:52:41 +00:00
Michael Schmitt
67528d1b3b * src/text.C: turn another C-style cast into a static cast
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17274 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 17:27:06 +00:00
Jürgen Spitzmüller
6c5db3bdb8 * src/LaTeX.C: whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17270 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 08:49:01 +00:00
Michael Schmitt
35ce135f97 * src/paragraph.C: stripLeadingSpaces(): make return statements
more meaningful


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17269 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 08:34:04 +00:00
Michael Schmitt
56cef9e559 * src/text.C: use static_cast rather than C-style cast
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17268 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 08:30:20 +00:00
Jürgen Spitzmüller
cd4033aef3 * src/LaTeX.C
-  (deplog): don't check strings longer than MAX_PATH, 
	    preventing boost exception.
	- (handleFoundFile): don't insert directories in DepTable


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17267 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 06:55:25 +00:00
José Matox
fc64045420 Patch from Georg to fix support of gcc 3.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17256 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-19 20:08:11 +00:00
Georg Baum
5db7753f7b Don't use an uninitialized variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17255 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-19 12:38:31 +00:00
Georg Baum
13fa26d4f7 Don't include files inside the lyx namespace (compile fix for gcc 3.2)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17254 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-19 12:21:56 +00:00
Jürgen Spitzmüller
ba9462c492 * src/LaTeX.C (deplog):
- refine linebreak check further.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17252 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-19 09:02:44 +00:00
Jürgen Spitzmüller
c251034241 * src/LaTeX.C (deplog):
- refine linebreak check.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17251 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-19 06:51:45 +00:00
Georg Baum
5e4c02c88b fix another problem with paths with spaces: Quote filenames correctly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17245 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 19:38:05 +00:00
Michael Schmitt
2148e75116 * src/insets/insetert.C:
* src/insets/insetoptarg.C: add comment that we do not output anything
	for plaintext output INTENTIONALLY


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17244 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 18:55:11 +00:00
Michael Schmitt
e7f4618bcc * src/tabular.[Ch]: simplify plaintext methods, because there
is no longer a need to count the number of lines


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17243 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 18:50:08 +00:00
Georg Baum
af239344a7 Fix bugs 3240 and 3241
* src/insets/ExternalSupport.C
	(doSubstitution): redo the substitution with use_latex_path == false
	for the filename argument of $$Contents, since the original
	substitution might have been done with use_latex_path == true, and
	that can lead to escaped filenames that are only valid for TeX.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17242 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 18:29:25 +00:00
Georg Baum
ba60aa858c prevent "caching" of directories
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17241 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 18:26:14 +00:00
Jürgen Spitzmüller
bfee5a107c Fix dependency checking, This fixes bug 1027 and probably others.
* src/LaTeX.C: 
	- (deplog): fix and refine parsing of file names.
	- (handleFoundFile): handle files with spaces in their
	   name/path correctly
	- (checkLinebreak): new helper function for deplog. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17240 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 16:06:12 +00:00
Georg Baum
fff190773f Fix bug 845 (now really).
* src/encoding.C
	(Encoding::validate): Add the preamble stuff even if c can be encoded
	in this encoding, since the inputenc package only maps the code point
	c to a command, it does not make this command available.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17239 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 15:37:53 +00:00
Georg Baum
b85a2f4d75 remove dead code that is no longer needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17238 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 11:23:37 +00:00
Michael Schmitt
2d550da85b * src/insets/insetexternal.[Ch]: fix plaintext(); code formatting; header alignment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17237 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 10:57:23 +00:00
Michael Schmitt
f7d54f2afc * src/insets/insettabular.[Ch]: fix plaintext(); code formatting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17236 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 10:47:08 +00:00
Enrico Forestieri
9889abe3af Make Uwe happy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17235 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 00:01:32 +00:00
Michael Schmitt
16b2e76d1a * src/insets/insetbititem.C:
* src/insets/insetcite.C:
	* src/insets/insetcite.h: fix plaintext(); code formatting


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17234 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-17 16:36:45 +00:00
Michael Schmitt
6d396fc136 * src/output_plaintext.C: avoid empty line at the end of
a paragraph if the previous line exceeds runparams.linelen


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17233 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-17 15:43:11 +00:00
Michael Schmitt
1afeb2e34f * src/insets/insetfloatlist.C: fix plaintex()
* src/insets/insetfloatlist.h:
	* src/insets/insetcharstyle.[Ch]: code formatting


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17232 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-17 15:28:50 +00:00
Michael Schmitt
757d2bc963 * src/insets/insettoc.[Ch]:
* src/insets/insetspecialchar.[Ch]: fix plaintext(); WS changes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17231 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-17 11:59:42 +00:00
Michael Schmitt
6d2a778724 * insetgraphics.[Ch]:
* insetquotes.C: fix plaintext(); WS changes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17230 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-17 11:30:58 +00:00
Michael Schmitt
ac5f26744c * src/insets/insetnewline.C:
* src/insets/insetpagebreak.C:
	* src/insets/insetvspace.C: fix/comment on plaintext() return value
	* src/insets/insetvspace.h: WS changes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17229 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-17 11:18:15 +00:00
Georg Baum
6bf6c8453d add pure ASCII encoding for LaTeX export
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17224 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-16 18:29:48 +00:00
Enrico Forestieri
e04b3303a1 Give the "Note" text a better color
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17223 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-16 16:22:55 +00:00
Bo Peng
204f783bb1 Forget to set selection in r17213
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17222 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-16 15:38:34 +00:00
Michael Schmitt
85e92379ef * src/insets/insetbase.[Ch]: make plaintext() abstract to force subclasses to
implement it by themselves
	* src/insets/insetenv.[Ch]: fix plaintext()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17220 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-16 10:05:30 +00:00
Michael Schmitt
bcb5133e54 * src/insets/insetcaption.*: fix plaintext(); add private computeFullLabel() to
refactor code used at two places


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17219 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-16 09:53:51 +00:00
Michael Schmitt
26054c940e * src/insets/insetbranch.[Ch]:
* src/insets/inseturl.[Ch]:
	* src/insets/insetfoot.[Ch]: fix plaintext() & WS changes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17218 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-16 09:28:25 +00:00
Michael Schmitt
6c9e07b2da * src/insets/insetcollapsable.[Ch]: constify floatName()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17217 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-16 09:11:19 +00:00
Michael Schmitt
0703d88b00 * src/mathed/InsetMath.h: "implement" plaintext() which will become
a virtual method soon in InsetBase


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17216 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-16 09:08:38 +00:00
Michael Schmitt
c2407338d0 * src/insets/insetfloat.[Ch]:
* src/insets/insetwrap.[Ch]:
	* src/insets/insetmarginal.[Ch]: fix plaintext(); code formatting


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17215 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-16 08:15:16 +00:00
Georg Baum
b619dbfedf forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17214 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-16 07:50:15 +00:00
Bo Peng
9448169466 Fix of bug 3238. Disable persistent selection for selections in tablemode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17213 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-16 03:49:19 +00:00
Michael Schmitt
922dbdb1db * src/insets/insetspace.[Ch]:
* src/insets/insetoptarg.[Ch]:
	* src/insets/insetlabel.C: fix plaintext()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17210 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 23:44:33 +00:00
Michael Schmitt
bfef2cba5e * insetref.C:
* insetcommand.[Ch]:
	* insetpagebreak.[Ch]: fix plaintext(); some header cleanup


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17209 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 23:28:31 +00:00
Michael Schmitt
517fdc10c3 * src/insets/insetnewline.C: plaintext(): fix line length
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17208 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 23:24:15 +00:00
Michael Schmitt
2ca15c641a * src/insets/insetbox.[Ch]:
* src/insets/insetnote.[Ch]: fix plaintext()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17207 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 22:59:06 +00:00
Michael Schmitt
5caa8e2c6d * insetert.[Ch]:
* insetnewline.[Ch]:
	* insetline.[Ch]: fix plaintext()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17206 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 22:27:45 +00:00
Michael Schmitt
e5dab3fc94 * src/insettext.C: fix line lengths and par breaks in plaintext()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17205 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 22:04:33 +00:00
Georg Baum
e1efef8a60 Fix bug 3240
* src/insets/ExternalSupport.C
	(updateExternal): Add new dryrun flag and only record updated files
	for the exporter if that flag is false
	(writeExternal): Call updateExternal also if dryrun is true and the
	product contains the $$Contents placeholder. In this case we need to
	run the conversion(s) even in dryrun mode, because we would not
	output the right stuff to the .tex file otherwise.

	* src/insets/ExternalSupport.[Ch]
	(writeExternal): rename external_in_comment flag to dryrun


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17204 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 21:22:40 +00:00
Georg Baum
4b449892e1 Fix import of \={\i}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17203 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 20:49:29 +00:00
Georg Baum
3ccb9d8af9 * src/exporter.C
(Exporter::Export): Remove hardcoded check for lyx backend.
	Use the shortest converter path instead, that is more flexible and
	always correct.

	* lib/configure.py: Add new formats and converters for importing and
	exporting files from CJK LyX.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17202 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 20:14:12 +00:00
Michael Schmitt
1baa28f2bc * src/output_plaintext.C: check line length before outputting
a word in front of an inset; make sensible use of plaintext()
	return value (IMHO totally broken before)
	* insets/insetfoot.[Ch]: add plaintext()
	* insets/insethfill.[Ch]: adjust plaintext(); make the 
	number of characters determinitic; minor header cleanup
	* insets/insetbase.h: add comment on return value
	of plaintext() - before its meaning was unclear 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17200 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 16:07:36 +00:00
Abdelrazak Younes
018cb4905e It seems that commit 17167 was not enough to ensure that the proper hide/show/update methods are called.
* QDialogView.h:
  - QDialogView::forms() now requires a QWidget instead of a QDialog. This will allow us to use DockWidget in the future.
  - QView class code simplification: implement inline instead of repeating in the same file.
  - QView::forms() now returns the real object.
  - QController class code simplification: implement inline instead of repeating in the same file.

* QDocumentDialog::update(): renamed to updateParams() to avoid clash with QWidget::update()

* QPrefsDialog::update(): renamed to updateRc() to avoid clash with QWidget::update()

* QTexinfoDialog::update(): now public so that it can be used in QDialogView.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17195 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 10:16:35 +00:00
Georg Baum
a47f5f168e Revert revision 15019 and use translateIfPossible instead.
This brings back some untranslated strings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17189 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-14 19:11:09 +00:00
Georg Baum
a69aaf5685 file format change due to new change tracking behaviour
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17187 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-14 16:10:50 +00:00
Abdelrazak Younes
0a36347897 Fix bug 3231 (hopefully).
http://bugzilla.lyx.org/show_bug.cgi?id=3231

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17184 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-14 14:51:47 +00:00
Abdelrazak Younes
2ab3247df4 Fix bug 3236 and 3237.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17182 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-14 13:39:11 +00:00
Abdelrazak Younes
aaf4cf6f9f Fix bug 3225.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17181 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-14 11:21:39 +00:00
Enrico Forestieri
1b21743511 Fix bug 3220
* src/insets/ExternalSupport.C
	(updateExternal): Avoid computing crc of a directory as this leads
	to a crash on Cygwin.

	* lib/configure.py:
	Use a python script to get the current date in order to avoid
	a stalling condition with the date command on Win32.

	* lib/scripts/date.py:
	New python script.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17168 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 19:09:54 +00:00
Abdelrazak Younes
a4f3aa748e While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17167 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 18:27:46 +00:00
Abdelrazak Younes
9313c6c39a Fix bug 3225 and maybe others as well.
http://bugzilla.lyx.org/show_bug.cgi?id=3225

* QIndexDialog:
  - QIndexDialog(): setFocusProxy() to the QLineEdit
  - show(): deleted.

* QDialogView::show(): also setFocus() when raising or showing a window.
  
 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17166 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 18:20:07 +00:00
Georg Baum
9fd8a86961 Allow utf8x \inputencoding
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17164 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 17:36:55 +00:00
Jürgen Spitzmüller
65b1b08a5c * src/LaTeX.C (deplog): fix the regex to parse filenames in the log file
(fixes bug 3224)
*src/support/filename.C: limit asserts to windows platform
	(fixes bug 3132)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17163 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 17:31:43 +00:00
Abdelrazak Younes
46839bd500 Tentatively fix bug 3225, the inset width and the outer text width should stay in sync.
http://bugzilla.lyx.org/show_bug.cgi?id=3225

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17159 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 10:37:22 +00:00
Georg Baum
6b98d4747e fix misleading comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17157 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-12 20:51:00 +00:00
Uwe Stöhr
9652acee93 small fix to changeset 17143
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17156 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-12 20:03:41 +00:00
Peter Kümmel
e5035aaa8a enable size grip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17155 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-12 19:34:14 +00:00
Georg Baum
19240e9827 zero-byte files don't make sense...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17151 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-12 08:02:17 +00:00
Georg Baum
b42547ac13 missing bit of InsetLatexAccent patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17150 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-12 08:01:21 +00:00
Uwe Stöhr
9492044ef7 rename label for prettyref inset to fix bug 1134
http://bugzilla.lyx.org/show_bug.cgi?id=1134

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17149 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-12 02:15:04 +00:00
José Matox
76c3d964df Convert lyxaccents to unicode (most of the work comes from Georg)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17144 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-11 23:52:07 +00:00
Uwe Stöhr
c9008ed3d8 adjust caption metrics to fix bug 3217
http://bugzilla.lyx.org/show_bug.cgi?id=3217

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17143 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-11 23:35:12 +00:00
Jürgen Spitzmüller
c4551768a3 * src/frontends/qt4/ui/QNomenclUi.ui:
- fix bug 3147: Incorrect input field order in glossary dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17136 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-11 13:29:53 +00:00
Abdelrazak Younes
996dc43578 Minimal support for systems with input method (CJK).
* GuiWorkArea::inputMethodEvent(): process a keyPressEvent() for each character of the commitString().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17134 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-10 16:30:11 +00:00
Georg Baum
365cc69f82 whitespace only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17128 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-10 11:08:05 +00:00
Georg Baum
a405fc2708 * src/insets/insetexternal.C
(InsetExternal::latex): Handle the dryrun flag correctly: Only
	create the LaTeX output, do not do any file conversions.
	(InsetExternal::plaintext): ditto
	(InsetExternal::docbook): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17127 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-10 11:03:26 +00:00
Michael Schmitt
7485d9f552 * src/paragraph.C: simplify another occurrence of LaTeXFeatures::isAvailable();
fix LaTeX output wrt change tracking - a file with changes and CT output disabled
	should result in the same TeX file as a file with all changes accepted


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17126 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-09 23:52:22 +00:00
Michael Schmitt
5e5420be30 * src/BufferView.C: call LaTeXFeatures::isAvailable() without an object
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17124 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-09 11:09:04 +00:00
Michael Schmitt
63023c18e5 * src/text3.C: fix float inset insertion in case the
user has selected some text


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17123 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-09 10:57:23 +00:00
Michael Schmitt
bc13b0e095 * src/CutAndPaste.C: copySelectionHelper(): fix bug #2306 (deleted text should
not be copied); rename paragraphs to copy_pars for better readability; add
	comment on the required order of delete operations


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17122 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-09 10:27:41 +00:00
Georg Baum
30c57da67b Never strip the extension for non-nice latex export, since pdflatex might
otherwise use wrong images (png instead of png).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17118 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 21:14:40 +00:00
Georg Baum
3515584551 * src/insets/insetgraphics.C
(InsetGraphics::prepareFile): Use correct extension if it cannot be
	stripped. I overlooked this when I did the
	stripExtension -> stripExtensionIfPossible change in revision 10093.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17117 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 21:12:33 +00:00
Michael Schmitt
ea53fcb86a * src/paragraph.[Ch]: remove Paragraph::clearContents(); this
method is unused and would make LyX crash (no CT support etc)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17113 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 17:47:51 +00:00
Enrico Forestieri
a894faa25e Fix bug 3150
* src/frontends/qt4/GuiWorkArea.C
	(GuiWorkArea::GuiWorkArea): initialize pixmap.
	(GuiWorkArea::doGreyOut): remove unneeded setVerticalScrollBarPolicy.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17112 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 16:41:06 +00:00
Michael Schmitt
744c35a6b4 * src/bufferparams.[Ch]: remove more unneeded LaTeXFeatures objects
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17111 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 15:18:36 +00:00
Michael Schmitt
54e3044232 * src/lyxtext.h: deleteEmptyParagraphMechanism(LCursor &, LCursor &, bool &),
fixCursorAfterDelete(CursorSlice &, CursorSlice const &): declare both methods
	as static. Note: I kept the methods in this file deliberately, because it makes
	it easier to keep both depm methods in sync


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17110 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 15:01:58 +00:00
Michael Schmitt
21ce544b9c * src/frontends/controllers/ControlDocument.C: remove workaround now that
LaTeXFeatures::isAvailabe has become static


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17109 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 14:44:13 +00:00
Michael Schmitt
02c1c7df6d * src/LaTeXFeatures.C: remove const-ness from static method
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17108 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 13:35:04 +00:00
Jean-Marc Lasgouttes
2a62933ce5 fix description of replaceSelection and cutSelection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17107 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 10:40:46 +00:00
Michael Schmitt
1bcf8c6747 * src/LaTeXFeatures.h: isAvailable() becomes a static method
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17106 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 10:40:33 +00:00
Abdelrazak Younes
0fcd28f006 Revert unrelated change from rev. 17104.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17105 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 08:53:29 +00:00
Abdelrazak Younes
a780e25d38 Preliminary safeguard code to fix bug 3189.
* DocIterator::prevInset(): return 0 if the mathed cell() is empty.

* LCursor::info(): use prevInset() only if different from zero.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17104 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 08:44:45 +00:00
Abdelrazak Younes
bf3f30c478 Fix bug 3023 (Clicking into a math inset resets the position of the TOC dialog):
http://bugzilla.lyx.org/show_bug.cgi?id=3023

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17102 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 22:24:17 +00:00
Abdelrazak Younes
643c360f0d Comment out unimplemented method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17099 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 21:49:00 +00:00
Peter Kümmel
be4be30532 disable scrollbar context menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17093 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 18:50:58 +00:00
Abdelrazak Younes
e8aae76ec5 Fix bug 3187 (second round) by Martin V.:
http://bugzilla.lyx.org/show_bug.cgi?id=3187

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17089 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 17:08:24 +00:00
Abdelrazak Younes
d5669d9087 Fix bug 3176 ( Focus not set to edit box for inset->label):
http://bugzilla.lyx.org/show_bug.cgi?id=3176

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17088 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 17:00:37 +00:00
Jean-Marc Lasgouttes
ff1ebed78f From John McCabe-Dansted:
* src/bufferlist.C (updateIncludedTeXfiles): use addName instead of
	hardcoding '/'.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17083 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 10:51:48 +00:00
Abdelrazak Younes
e2c8e359c0 Properly adjust space after collapsable inset (the (int) cast there was applied to 1.5 only).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17082 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 10:39:38 +00:00
Uwe Stöhr
666572dc19 only whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17080 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 01:14:36 +00:00
Uwe Stöhr
24e75cb711 add missing changed signals
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17079 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 01:13:17 +00:00
Abdelrazak Younes
3b8a3f91bc Fix bug 3187 from Martin Vermeer:
http://bugzilla.lyx.org/show_bug.cgi?id=3187


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17069 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-06 14:23:06 +00:00
Abdelrazak Younes
ea06ca9265 * QLyXKeySym::getUCSEncoded(): properly handle the QString (UTF16) to ucs4 conversion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17068 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-06 14:13:02 +00:00
Edwin Leuven
a6c58db0f6 * Add comment that clarifies toggled() vs clicked()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17061 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-05 19:41:58 +00:00
Abdelrazak Younes
96512e74cb Preliminary longtable caption support. If there is a caption in the first cell of the table it will be labeled as a table.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17060 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-05 18:04:03 +00:00
Abdelrazak Younes
52b5a2c5e1 Fix bug 3192 and 3193
http://bugzilla.lyx.org/show_bug.cgi?id=3192
http://bugzilla.lyx.org/show_bug.cgi?id=3193


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17059 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-05 17:39:42 +00:00
Abdelrazak Younes
c81094bef0 * Fix bug 3202 (http://bugzilla.lyx.org/show_bug.cgi?id=3202)
* Augment a bit the space between nested insets.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17058 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-05 17:07:44 +00:00
Abdelrazak Younes
40d7cf1478 This inset does not have to be wide. This property does not fit well inside captions and longtables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17055 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-05 16:38:51 +00:00
Abdelrazak Younes
e1caf60408 Prepare for longtable caption support.
* setCaptionLabels(): Pass type and label instead of Floating object.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17054 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-05 14:09:53 +00:00
Jürgen Spitzmüller
1c945497fb * src/frontends/qt4/QGraphicsDialog.C:
- fix r17050: use signals that are known to Qt 4.0 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17053 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-05 10:11:16 +00:00
Jürgen Spitzmüller
f90b39698e * src/frontends/qt4/QGraphicsDialog.C:
- use signals that are known to Qt 4.0

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17050 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-05 10:04:56 +00:00
Jean-Marc Lasgouttes
57498fc643 * GuiView.C (setGeometry): whitespace and warning.
(updateTab,currentTabChanged): simplify code further.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17044 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-04 21:19:20 +00:00
Georg Baum
bbc3a0f0c4 * src/MenuBackend.C
(expandFormats): Document hack

	* lib/configure.py
	(checkFormatEntries): s/Plain text (paragraphs)/Plain Text, Join Lines/
	since this is the term we use elsewhere and it shows up in the file
	filter.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17039 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-04 15:16:44 +00:00
Abdelrazak Younes
b36dd63921 For each operation, stop the blinking cursor before acting and restart it _after_ redrawing. This latter fixes the spurious cursor jumps in mathed. This was due to the fact that MathArray are filled-in at draw time (as opposed to text positions in the CoordCache which are filled in at metrics calculation time.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17033 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-03 06:53:22 +00:00
Georg Baum
1c5815ed31 Bug fix of the day: 3200 (Not possible to insert short title to captions)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17029 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-02 21:08:44 +00:00
Abdelrazak Younes
8842f9a009 A better fix for bug 3194 (see rev. 17027).
* BufferView::mouseSetCursor(): do not call setTargetX() here because this needs the mathed coordcache which is not ensured to be up to date. Because of this, cursor movement might need some adjustment.

* InsetMathNest::lfunMousePress(): revert commit 17027.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17028 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-02 20:23:56 +00:00
Abdelrazak Younes
0405bfcf04 Fix bug 3194:
http://bugzilla.lyx.org/show_bug.cgi?id=3194

This also seems to fix the annoying mouse cursor movement bug 3023:

http://bugzilla.lyx.org/show_bug.cgi?id=3023


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17027 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-02 15:14:43 +00:00
Jean-Marc Lasgouttes
8615d0a6fa * insetbase.h: add new enum PAGEBREAK_CODE
* insetpagebreak.h: use it

	* insetcaption.C (insetAllowed): new method. Reduce the list of 
	forbidden insets
	(dispatch): remove code handled above; re-allow some LFUNs.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17026 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-02 13:55:14 +00:00
Abdelrazak Younes
475232ed47 Revert commit 17010.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17025 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-02 10:31:22 +00:00
Bo Peng
8b56166641 Persistent-selection (and fix bug 3162)
* src/CutAndPaste.h/C: add selectionBuffer to save selected text
	* src/text3.C: proper handling of paste
	* src/lyxfind.C: save selection
	* src/BufferView.C: save selection
	* src/text.C: save selection
	* src/cursor.C: save selection
	* src/insets/insettabular.C: save selection
	* src/mathed/InsetMathGrid.C: save selection
	* src/mathed/InsetMathHull.C: save selection
	* src/mathed/InsetMathNest.C: save selection


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17022 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-02 03:10:15 +00:00
Michael Schmitt
bbc332f234 * frontends/qt4/QChanges.C:
* frontends/controllers/ControlChanges.C:
	* frontends/controllers/ControlChanges.h: fix merge-changes dialog;
	remove old cruft; strip interface down to what is really needed


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17019 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-01 20:48:43 +00:00
Michael Schmitt
2cf58651ed * src/mathed/InsetMathNest.C: simplify call to innerText()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17018 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-01 20:05:59 +00:00
Michael Schmitt
5d41611407 * BufferView.C:
* BufferView.h:
	* lyxfunc.C:
	* factory.C:
	* mathed/InsetMathNest.C:
	* mathed/InsetMathHull.C:
	* lyx_cb.C:
	* frontends/WorkArea.C: remove BufferView::getLyXText() methods, because their
	names were absolutely misleading; resolve indirection where needed


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17016 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-01 19:27:37 +00:00
Peter Kümmel
c9ff277e1f simpilfy tabbar code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17014 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-01 18:48:58 +00:00
Abdelrazak Younes
35bb5af289 linux compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17013 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-01 17:36:56 +00:00
Georg Baum
53bc1cca58 remove stupid error message
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17012 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-01 17:30:35 +00:00