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
|
|
|
|
|
|
|
///
|
|
|
|
extern void Emph(BufferView *);
|
|
|
|
///
|
|
|
|
extern void Bold(BufferView *);
|
|
|
|
///
|
|
|
|
extern void Noun(BufferView *);
|
|
|
|
///
|
|
|
|
extern void Figure();
|
|
|
|
///
|
|
|
|
extern void Table();
|
|
|
|
///
|
|
|
|
extern void Lang(BufferView *, string const &);
|
2000-10-09 12:30:52 +00:00
|
|
|
///
|
|
|
|
extern void Number(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
|
|
|
extern void Tex(BufferView *);
|
|
|
|
///
|
2000-12-22 14:44:29 +00:00
|
|
|
extern void changeDepth(BufferView *, LyXText *, int);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
|
|
|
extern void Code(BufferView *);
|
|
|
|
///
|
|
|
|
extern void Sans(BufferView *);
|
|
|
|
///
|
|
|
|
extern void Roman(BufferView *);
|
|
|
|
///
|
|
|
|
extern void StyleReset(BufferView *);
|
|
|
|
///
|
|
|
|
extern void Underline(BufferView *);
|
|
|
|
///
|
|
|
|
extern void FontSize(BufferView *, string const &);
|
2000-07-20 13:07:12 +00:00
|
|
|
/// Returns the current font and depth as a message.
|
2000-09-14 17:53:12 +00:00
|
|
|
extern string const CurrentState(BufferView *);
|
2000-04-12 15:11:29 +00:00
|
|
|
///
|
2001-02-26 15:17:19 +00:00
|
|
|
extern void ToggleAndShow(BufferView *, LyXFont const &, bool toggleall=true);
|
2000-04-12 15:11:29 +00:00
|
|
|
#endif
|