lyx_mirror/lib
Enrico Forestieri 1ef605f625 Introduce a wrapper class for odocstream to help ensuring that no
blank lines may be inadvertently output. This is achieved by using two
special iomanip-like variables (breakln and safebreakln) in the lyx::
namespace. When they are inserted in the stream, a newline is output
only if not already at the beginning of a line. The difference between
breakln and safebreakln is that, if needed, the former outputs '\n'
and the latter "%\n".
In future, the new class will also be used for counting the number of
newlines issued. Even if the infractrure for doing that is already in
place, the counting is essentially still done the old way.
There are still places in the code where the functionality of the
class could be used, most probably. ATM, it is used for InsetTabular,
InsetListings, InsetFloat, and InsetText.
The Comment and GreyedOut insets required a special treatment and a
new InsetLayout parameter (Display) has been introduced. The default
for Display is "true", meaning that the corresponding latex
environment is of "display" type, i.e., it stands on its own, whereas
"false" means that the contents appear inline with the text. The
latter is the case for both Comment and GreyedOut insets.
Mostly, the only visible effects on latex exports should be the
disappearing of some redundant % chars and the appearing/disappearing
of null {} latex groups after a comment or lyxgreyedout environments
(they are related to the presence or absence of a space immediately
after those environments), as well as the fact that math environments
are now started on their own lines.
As a last thing, only the latex code between \begin{document} and
\end{document} goes through the new class, the preamble being directly
output through odocstream, as usual.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37360 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-29 02:41:13 +00:00
..
bind Update all of our bind and ui files to format 1. 2011-01-18 15:42:27 +00:00
commands
doc Another glitch 2011-01-28 10:04:59 +00:00
examples Make sweave example working. Patch from Liviu. 2011-01-15 20:30:02 +00:00
fonts Prepare for Math Formal Script Family. 2010-07-17 15:00:12 +00:00
images add busy spinner to status bar when threads are running in the background 2011-01-23 09:17:52 +00:00
kbd
layouts Introduce a wrapper class for odocstream to help ensuring that no 2011-01-29 02:41:13 +00:00
lyx2lyx Fix lyx2lyx problem with sweave files and ParBreakIsNewline. 2011-01-28 19:48:03 +00:00
scripts Extend instant-preview error handling to the lilypond-book format. 2011-01-21 22:52:03 +00:00
templates * thesis.lyx: revert unintended changes. 2010-12-08 19:32:56 +00:00
tex
ui Update all of our bind and ui files to format 1. 2011-01-18 15:42:27 +00:00
autocorrect Remove bogus line from lib/autocorrect. Fixes bug #6261. 2010-12-07 20:10:41 +00:00
build-listerrors
chkconfig.ltx Bug #7095: Support fix-cm.sty 2011-01-28 10:04:52 +00:00
configure.py Finish fixing bug #6623 (Sweave cannot read local files) 2011-01-27 11:14:32 +00:00
CREDITS update totem correctly (and revert r37349) 2011-01-28 14:28:11 +00:00
encodings add "ansinew" as a synonym of LaTeX encoding "cp1252" (second part of #6142) 2009-09-22 13:05:43 +00:00
external_templates After more attempts add gnumeric support. 2010-12-09 01:19:13 +00:00
generate_contributions.py Add Tommaso to credits 2011-01-28 23:06:05 +00:00
languages Fix language handling in tex2lyx: 2011-01-12 21:04:39 +00:00
Makefile.am Bug #7095: Support fix-cm.sty 2011-01-28 10:04:52 +00:00
symbols Fix bug #4606 (\varPhi and similar characters not known by the LyX GUI) 2010-11-17 19:42:36 +00:00
syntax.default The roundtrip of the math manual produces a compilable document now: 2011-01-22 12:00:33 +00:00
unicodesymbols Recognize the COMBINING GREEK PERISPOMENI character, part of bug #6463. 2010-12-10 16:33:41 +00:00