2000-04-12 15:11:29 +00:00
|
|
|
// -*- C++ -*-
|
2000-07-24 13:53:19 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
2001-05-30 13:53:44 +00:00
|
|
|
* Copyright 1995-2001 The LyX Team.
|
2000-07-24 13:53:19 +00:00
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
2000-04-12 15:11:29 +00:00
|
|
|
#ifndef BUFFERVIEW_FUNCS_H
|
|
|
|
#define BUFFERVIEW_FUNCS_H
|
|
|
|
|
2000-07-24 13:53:19 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2000-04-12 15:11:29 +00:00
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
class BufferView;
|
|
|
|
class LyXFont;
|
2000-12-22 14:44:29 +00:00
|
|
|
class LyXText;
|
2000-04-12 15:11:29 +00:00
|
|
|
|
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void emph(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void bold(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void noun(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void table();
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void lang(BufferView *, string const &);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void number(BufferView *);
|
2000-10-09 12:30:52 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void tex(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2000-12-22 14:44:29 +00:00
|
|
|
extern void changeDepth(BufferView *, LyXText *, int);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void code(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void sans(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void roman(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void styleReset(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void underline(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void fontSize(BufferView *, string const &);
|
2000-07-20 13:07:12 +00:00
|
|
|
/// Returns the current font and depth as a message.
|
2001-08-02 18:46:53 +00:00
|
|
|
extern string const currentState(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-08-02 18:46:53 +00:00
|
|
|
extern void toggleAndShow(BufferView *, LyXFont const &,
|
|
|
|
bool toggleall = true);
|
2000-04-12 15:11:29 +00:00
|
|
|
#endif
|