#define INSETCHARSTYLE_H
#include "InsetCollapsable.h"
-#include "LyXTextClass.h"
+#include "TextClass.h"
namespace lyx {
///
std::string latexparam;
///
- LyXFont font;
+ Font font;
///
- LyXFont labelfont;
+ Font labelfont;
///
bool show_label;
};
InsetCharStyle(BufferParams const &, std::string const);
///
InsetCharStyle(BufferParams const &, CharStyles::iterator);
+ ///
+ docstring name() const { return from_ascii("CharStyle"); }
/// Is this character style defined in the document's textclass?
/// May be wrong after textclass change or paste from another document
bool undefined() const;
///
virtual docstring const editMessage() const;
///
- InsetBase::Code lyxCode() const { return InsetBase::CHARSTYLE_CODE; }
+ Inset::Code lyxCode() const { return Inset::CHARSTYLE_CODE; }
///
void write(Buffer const &, std::ostream &) const;
///
///
void draw(PainterInfo &, int, int) const;
///
- void getDrawFont(LyXFont &) const;
+ void getDrawFont(Font &) const;
///
bool forceDefaultParagraphs(idx_type) const { return true; }
///
int latex(Buffer const &, odocstream &,
- OutputParams const &) const;
+ OutputParams const &) const;
///
int plaintext(Buffer const &, odocstream &,
- OutputParams const &) const;
+ OutputParams const &) const;
///
int docbook(Buffer const &, odocstream &,
- OutputParams const &) const;
+ OutputParams const &) const;
/// the string that is passed to the TOC
virtual void textString(Buffer const &, odocstream &) const;
///
private:
friend class InsetCharStyleParams;
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual std::auto_ptr<Inset> doClone() const;
/// used by the constructors
void init();