2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-28 12:59:29 +00:00
|
|
|
/* This file is part of
|
2002-03-21 21:21:28 +00:00
|
|
|
* ======================================================
|
2001-03-28 12:59:29 +00:00
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* \file character.h
|
|
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CHARACTERHELPERS_H
|
|
|
|
#define CHARACTERHELPERS_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "lyxfont.h"
|
|
|
|
#include "LColor.h"
|
|
|
|
|
|
|
|
/** Functions of use to the character GUI controller and view */
|
2002-04-29 15:56:36 +00:00
|
|
|
namespace frnt {
|
2001-03-28 12:59:29 +00:00
|
|
|
///
|
|
|
|
enum FONT_STATE {
|
|
|
|
///
|
|
|
|
IGNORE,
|
|
|
|
///
|
|
|
|
EMPH_TOGGLE,
|
|
|
|
///
|
|
|
|
UNDERBAR_TOGGLE,
|
|
|
|
///
|
|
|
|
NOUN_TOGGLE,
|
|
|
|
///
|
|
|
|
INHERIT
|
|
|
|
};
|
|
|
|
|
|
|
|
///
|
|
|
|
typedef std::pair<string, LyXFont::FONT_FAMILY> FamilyPair;
|
|
|
|
///
|
|
|
|
typedef std::pair<string, LyXFont::FONT_SERIES> SeriesPair;
|
|
|
|
///
|
|
|
|
typedef std::pair<string, LyXFont::FONT_SHAPE> ShapePair;
|
|
|
|
///
|
|
|
|
typedef std::pair<string, LyXFont::FONT_SIZE> SizePair;
|
|
|
|
///
|
|
|
|
typedef std::pair<string, FONT_STATE> BarPair;
|
|
|
|
///
|
|
|
|
typedef std::pair<string, LColor::color> ColorPair;
|
|
|
|
|
|
|
|
///
|
2002-04-29 14:26:42 +00:00
|
|
|
std::vector<FamilyPair> const getFamilyData();
|
2001-03-28 12:59:29 +00:00
|
|
|
///
|
2002-04-29 14:26:42 +00:00
|
|
|
std::vector<SeriesPair> const getSeriesData();
|
2001-03-28 12:59:29 +00:00
|
|
|
///
|
2002-04-29 14:26:42 +00:00
|
|
|
std::vector<ShapePair> const getShapeData();
|
2001-03-28 12:59:29 +00:00
|
|
|
///
|
2002-04-29 14:26:42 +00:00
|
|
|
std::vector<SizePair> const getSizeData();
|
2001-03-28 12:59:29 +00:00
|
|
|
///
|
2002-04-29 14:26:42 +00:00
|
|
|
std::vector<BarPair> const getBarData();
|
2001-03-28 12:59:29 +00:00
|
|
|
///
|
2002-04-29 14:26:42 +00:00
|
|
|
std::vector<ColorPair> const getColorData();
|
2001-03-28 12:59:29 +00:00
|
|
|
|
2002-04-29 15:56:36 +00:00
|
|
|
} // namespace frnt
|
2001-03-28 12:59:29 +00:00
|
|
|
|
|
|
|
#endif // CHARACTERHELPERS
|