+2001-07-12 Kayvan A. Sylvan <kayvan@camel.internal.sylvan.com>
+
+ * layouts/literate-scrap.inc: Added PassThru tag
+
2001-07-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* bind/*.bind: do the same correctly for all files :)
Align Left
AlignPossible Block,Left
FreeSpacing 1
+ PassThru 1
LabelType Static
LabelFont
Color magenta
EndFont
TextFont
- Latex Latex
+ Color latex
Family Typewriter
EndFont
src/CutAndPaste.C
src/debug.C
src/exporter.C
-src/ext_l10n.h
src/figure_form.C
src/figureForm.C
src/FontLoader.C
* sp_form.[Ch]: removed
* spellchecker.[Ch]: removed
+2001-07-12 Kayvan A. Sylvan <kayvan@camel.internal.sylvan.com>
+
+ * paragraph_pimpl.C (simpleTeXBlanks): Simply return if pass_thru
+ is set.
+ (simpleTeXSpecialChars): Simply print the input character without
+ any special translation if pass_thru is set.
+
+ * layout.h: Added bool pass_thru to layout class for being able to
+ implement pass through of a paragraph for Literate Programming.
+
+ * layout.C: add LT_PASS_THRU to LayoutTags enum.
+ * layout.C (LyXLayout): set pass_thru to flase in constructor.
+ * layout.C (Read): add "passthru" to list of layout tags and add
+ code to set the pass_thru boolean when it is read.
+
2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
* trans_decl.h: remove allowed from KmodInfo
//LT_FIRST_COUNTER,
LT_FONT,
LT_FREE_SPACING,
+ LT_PASS_THRU,
//LT_HEADINGS,
LT_ITEMSEP,
LT_KEEPEMPTY,
fill_bottom = false;
newline_allowed = true;
free_spacing = false;
+ pass_thru = false;
}
{ "parindent", LT_PARINDENT },
{ "parsep", LT_PARSEP },
{ "parskip", LT_PARSKIP },
+ { "passthru", LT_PASS_THRU },
{ "preamble", LT_PREAMBLE },
{ "rightmargin", LT_RIGHTMARGIN },
{ "spacing", LT_SPACING },
free_spacing = lexrc.GetInteger();
break;
+ case LT_PASS_THRU: // Allow for pass thru.
+ if (lexrc.next())
+ pass_thru = lexrc.GetInteger();
+ break;
+
case LT_SPACING: // setspace.sty
readSpacing(lexrc);
break;
///
bool free_spacing;
+
+ ///
+ bool pass_thru;
+
/** true when the fragile commands in the paragraph need to be
\protect'ed. */
bool needprotect;
default:
if ((action == -1 || action == LFUN_SELFINSERT) && !arg.empty()) {
unsigned char c = arg[0];
- //lyxerr << "char: '" << c << "' int: " << int(c) << endl;
+
+ lyxerr << "Action: " << action << endl;
+
+ lyxerr << "char: '" << c << "' int: " << int(c) << endl;
//owner_->getIntl()->getTrans().TranslateAndInsert(c, lt);
//lyxerr << "trans: '" << c << "' int: " << int(c) << endl;
bv->lockedInsetStoreUndo(Undo::INSERT);
int & column, LyXFont const & font,
LyXLayout const & style)
{
+ if (style.pass_thru) return;
if (column > tex_code_break_column
&& i
&& getChar(i - 1) != ' '
int & column,
Paragraph::value_type const c)
{
+ if (style.pass_thru) {
+ if (c != '\0') os << c;
+ return;
+ }
// Two major modes: LaTeX or plain
// Handle here those cases common to both modes
// and then split to handle the two modes separately.