*
* LyX, The Document Processor
*
- * Copyright (C) 1997 Asger Alstrup
+ * Copyright 1997 Asger Alstrup
*
* ====================================================== */
/// End of sentence punctuation (\@)
END_OF_SENTENCE,
/// Menu separator
- MENU_SEPARATOR
+ MENU_SEPARATOR,
+ /// Protected Separator
+ PROTECTED_SEPARATOR
};
///
InsetSpecialChar() {}
///
+ explicit
InsetSpecialChar(Kind k);
-#ifdef USE_PAINTER
///
- int ascent(Painter &, LyXFont const &) const;
+ int ascent(BufferView *, LyXFont const &) const;
///
- int descent(Painter &, LyXFont const &) const;
+ int descent(BufferView *, LyXFont const &) const;
///
- int width(Painter &, LyXFont const &) const;
+ int width(BufferView *, LyXFont const &) const;
///
- void draw(Painter &, LyXFont const &, int baseline, float & x) const;
-#else
+ void draw(BufferView *, LyXFont const &, int, float &, bool) const;
///
- int Ascent(LyXFont const & font) const;
- ///
- int Descent(LyXFont const & font) const;
- ///
- int Width(LyXFont const & font) const;
- ///
- void Draw(LyXFont, LyXScreen & scr, int baseline, float & x);
-#endif
- ///
- void Write(ostream &);
+ void Write(Buffer const *, std::ostream &) const;
/// Will not be used when lyxf3
- void Read(LyXLex & lex);
+ void Read(Buffer const *, LyXLex & lex);
///
- int Latex(ostream &, signed char fragile);
+ int Latex(Buffer const *, std::ostream &,
+ bool fragile, bool free_spc) const;
///
- int Latex(string & file, signed char fragile);
+ int Ascii(Buffer const *, std::ostream &, int linelen) const;
///
- int Linuxdoc(string & file);
+ int Linuxdoc(Buffer const *, std::ostream &) const;
///
- int DocBook(string & file);
+ int DocBook(Buffer const *, std::ostream &) const;
///
- Inset * Clone() const;
+ Inset * Clone(Buffer const &) const;
///
Inset::Code LyxCode() const
{
- return Inset::NO_CODE;
+ return Inset::SPECIALCHAR_CODE;
}
/// We don't need \begin_inset and \end_inset
bool DirectWrite() const