#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 376
+\lyxformat 378
\begin_document
\begin_header
\textclass scrbook
status collapsed
\begin_layout Plain Layout
-Requires
+Requires
\end_layout
\end_inset
).
\end_layout
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+Spellcheck
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+0
+\end_layout
+
+\end_inset
+
+,
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\emph on
+1
+\end_layout
+
+\end_inset
+
+] Spellcheck the contents of this inset.
+ Default is true.
+\end_layout
+
\begin_layout Subsection
Counters
\begin_inset CommandInset label
# Incremented to format 21, 12 January 2010 by rgh
# Added HTMLTocLayout and HTMLTitle tags.
-
+
# Incremented to format 22, 20 January 2010 by rgh
# Added HTMLFormat tag to Counters.
+# Incremented to format 23, 13 February 2010 by spitz
+# Added Spellcheck tag.
+
# Do not forget to document format change in Customization
# Manual (section "Declaring a new text class").
# development/tools/updatelayouts.sh script to update all
# layout files to the new format.
-currentFormat = 22
+currentFormat = 23
def usage(prog_name):
continue
# This just involved new features, not any changes to old ones
- if format >= 14 and format <= 21:
+ if format >= 14 and format <= 22:
i += 1
continue
if (!speller)
return false;
+ if (!inInset().allowSpellCheck())
+ return false;
+
locateWord(from, to, WHOLE_WORD);
if (from == to || from >= pos_type(d->text_.size()))
return false;
};
// Keep the changes documented in the Customization manual.
-int const FORMAT = 22;
+int const FORMAT = 23;
bool layout2layout(FileName const & filename, FileName const & tempfile)
htmlforcecss_ (false), htmlisblock_(true),
multipar_(true), custompars_(true), forceplain_(false),
passthru_(false), needprotect_(false), freespacing_(false),
- keepempty_(false), forceltr_(false), intoc_(false)
+ keepempty_(false), forceltr_(false), intoc_(false), spellcheck_(true)
{
labelfont_.setColor(Color_error);
}
IL_PASSTHRU,
IL_PREAMBLE,
IL_REQUIRES,
+ IL_SPELLCHECK,
IL_END
};
{ "needprotect", IL_NEEDPROTECT },
{ "passthru", IL_PASSTHRU },
{ "preamble", IL_PREAMBLE },
- { "requires", IL_REQUIRES }
+ { "requires", IL_REQUIRES },
+ { "spellcheck", IL_SPELLCHECK }
};
lex.pushTable(elementTags);
requires_.insert(req.begin(), req.end());
break;
}
+ case IL_SPELLCHECK:
+ lex >> spellcheck_;
+ break;
case IL_END:
getout = true;
break;
///
bool isInToc() const { return intoc_; }
///
+ bool spellcheck() const { return spellcheck_; }
private:
///
void makeDefaultCSS() const;
bool forceltr_;
/// should the contents be written to TOC strings?
bool intoc_;
+ /// check spelling of this inset?
+ bool spellcheck_;
};
///
ParagraphList const & paragraphs() const;
///
bool insetAllowed(InsetCode) const { return !getLayout().isPassThru(); }
- /// Allow spellchecking, except for insets with latex_language
- bool allowSpellCheck() const { return !getLayout().isPassThru(); }
+ ///
+ bool allowSpellCheck() const { return getLayout().spellcheck() && !getLayout().isPassThru(); }
///
virtual bool isMacroScope() const { return false; }
///