lyx_mirror/lib/layouts
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
..
aa.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
aapaper.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
aapaper.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
aastex.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
achemso.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
acmsiggraph.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
AEA.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00
agu_stdclass.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
agu_stdcounters.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
agu_stdlists.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
agu_stdsections.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
agu_stdtitle.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
agu-dtd.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
agums.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
aguplus.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
agutex.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
amsart.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
amsbook.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
amsdefs.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
apa.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
arab-article.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
armenian-article.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
article-beamer.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
article.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
beamer.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
book.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
braille.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
broadway.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
chess.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
cl2emult.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00
customHeadersFooters.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
db_lyxmacros.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
db_stdcharstyles.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
db_stdclass.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
db_stdcounters.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
db_stdlayouts.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
db_stdlists.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
db_stdsections.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
db_stdstarsections.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
db_stdstruct.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
db_stdtitle.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
dinbrief.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
docbook-book.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
docbook-chapter.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
docbook-section.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
docbook.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
doublecol-new.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
dtk.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00
ectaart.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00
egs.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
elsart.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
elsarticle.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
endnotes.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
entcs.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00
enumitem.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
eqs-within-sections.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
europecv.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
extarticle.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
extbook.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
extletter.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
extreport.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
figs-within-sections.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
fix-cm.module Bug #7095: Support fix-cm.sty 2011-01-28 10:04:52 +00:00
fixltx2e.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
foils.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
foottoend.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
frletter.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
g-brief2.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
g-brief.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
hanging.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
heb-article.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
heb-letter.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
hollywood.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
IEEEtran.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
ijmpc.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00
ijmpd.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00
initials.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
iopart.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
isprs.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
jarticle.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
jbook.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
jgrga.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
jreport.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
jsarticle.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
jsbook.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
jss.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
kluwer.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
latex8.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
letter.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
lettre.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
lilypond.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
linguistics.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
literate-article.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
literate-book.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
literate-report.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
literate-scrap.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
llncs.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00
logicalmkup.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
ltugboat.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
lyxmacros.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
memoir.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
minimalistic.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
moderncv.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
mwart.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
mwbk.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
mwrep.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
noweb.module forbid spellchecking in code layouts 2011-01-25 14:17:07 +00:00
numarticle.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
numreport.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
numrevtex.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
paper.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
powerdot.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
recipebook.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
report.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
revtex4.layout Don't need these. 2011-01-14 18:25:00 +00:00
revtex.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00
scrartcl.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
scrarticle-beamer.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
scrbook.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
scrclass.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
scrlettr.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
scrlttr2.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
scrreprt.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
seminar.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
siamltex.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
sigplanconf.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
simplecv.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
singlecol-new.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
singlecol.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
slides.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
spie.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdcharstyles.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdciteformats.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdclass.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdcounters.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdcustom.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdfloats.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdinsets.inc Introduce a wrapper class for odocstream to help ensuring that no 2011-01-29 02:41:13 +00:00
stdlayouts.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdletter.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdlists.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdrefprefix.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdsections.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdstarsections.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdstruct.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
stdtitle.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
svglobal3.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
svglobal.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
svjog.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
svjour.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
svmono.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00
svmult.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00
svprobth.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
sweave.module forbid spellchecking in code layouts 2011-01-25 14:17:07 +00:00
tabs-within-sections.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
tarticle.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
tbook.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-ams-bytype.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-ams-bytype.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-ams-extended-bytype.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-ams-extended.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-ams.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-ams.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-bytype.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-bytype.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-chap-bytype.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-chap.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-named.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-order.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-proof-std.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-proof.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-refprefix.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-sec-bytype.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-sec.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-starred-equivalents.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-starred.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-starred.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems-std.module Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
theorems.inc Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
treport.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
tufte-book.layout Update all layouts to format 31. 2011-01-12 23:20:07 +00:00
tufte-handout.layout Fix several layout related problems revealed by -dbg tclass. 2011-01-20 16:28:42 +00:00