Commit Graph

9382 Commits

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