* text.C:
* sp_pspell.h:
+ * textclasslist.[Ch]:
* sp_ispell.h: whitespace change
2002-05-29 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
lyxerr[Debug::TCLASS] << "Fname: " << fname << endl;
if (lex.next()) {
string const clname = lex.getString();
- lyxerr[Debug::TCLASS]
- << "Clname: " << clname << endl;
+ lyxerr[Debug::TCLASS] << "Clname: " << clname << endl;
if (lex.next()) {
- string const desc = lex.getString();
- lyxerr[Debug::TCLASS]
- << "Desc: " << desc << endl;
- // This code is run when we have
- // fname, clname and desc
- LyXTextClass tmpl(fname,
- clname,
- desc);
- if (lyxerr.
- debugging(Debug::TCLASS)) {
- tmpl.load();
- }
- Add (tmpl);
+ string const desc = lex.getString();
+ lyxerr[Debug::TCLASS] << "Desc: " << desc << endl;
+ // This code is run when we have
+ // fname, clname and desc
+ LyXTextClass tmpl(fname, clname, desc);
+ if (lyxerr.debugging(Debug::TCLASS)) {
+ tmpl.load();
+ }
+ Add(tmpl);
}
}
}
///
const_iterator end() const { return classlist.end(); }
- /** Gets textclass number from name.
- Returns -1 if textclass name does not exist
- */
+ /// Gets textclass number from name, -1 if textclass name does not exist
std::pair<bool, lyx::textclass_type> const
NumberOfClass(string const & textclass) const;
///
LyXTextClass const & operator[](lyx::textclass_type textclass) const;
- /** Read textclass list.
- Returns false if this fails
- */
+ /// Read textclass list. Returns false if this fails.
bool Read();
private:
///
bool rtl0 = false;
pos_type const main_body = beginningOfMainBody(buf, row->par());
- for (pos_type lpos = bidi_start;
- lpos <= bidi_end; ++lpos) {
+ for (pos_type lpos = bidi_start; lpos <= bidi_end; ++lpos) {
bool is_space = row->par()->isLineSeparator(lpos);
pos_type const pos =
(is_space && lpos + 1 <= bidi_end &&
return rtl != rtl2;
}
+
void LyXText::drawNewline(DrawRowParams & p, pos_type const pos)
{
// Draw end-of-line marker
// important for the screen
-/* the cursor set functions have a special mechanism. When they
- * realize, that you left an empty paragraph, they will delete it.
- * They also delete the corresponding row */
+// the cursor set functions have a special mechanism. When they
+// realize, that you left an empty paragraph, they will delete it.
+// They also delete the corresponding row
// need the selection cursor:
void LyXText::setSelection(BufferView * bview)
}
-/* the DTP switches for paragraphs. LyX will store them in the
-* first physicla paragraph. When a paragraph is broken, the top settings
-* rest, the bottom settings are given to the new one. So I can make shure,
-* they do not duplicate themself and you cannnot make dirty things with
-* them! */
+// the DTP switches for paragraphs. LyX will store them in the first
+// physicla paragraph. When a paragraph is broken, the top settings rest,
+// the bottom settings are given to the new one. So I can make shure,
+// they do not duplicate themself and you cannnot make dirty things with
+// them!
void LyXText::setParagraph(BufferView * bview,
bool line_top, bool line_bottom,
par->enumdepth = par->depthHook(par->getDepth())->enumdepth;
par->setCounter(6 + par->enumdepth,
par->depthHook(par->getDepth())->getCounter(6 + par->enumdepth));
- /* reset the counters.
- * A depth change is like a breaking layout
- */
+ // reset the counters.A depth change is like a breaking layout
for (int i = 6 + par->enumdepth + 1; i < 10; ++i)
par->setCounter(i, 0);
}