2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
/**
|
|
|
|
* \file character.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-03-28 12:59:29 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Angus Leeming
|
2001-03-28 12:59:29 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-28 12:59:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CHARACTERHELPERS_H
|
|
|
|
#define CHARACTERHELPERS_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "lyxfont.h"
|
|
|
|
#include "LColor.h"
|
|
|
|
|
2002-08-12 14:28:43 +00:00
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
|
|
|
|
2001-03-28 12:59:29 +00:00
|
|
|
/** 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
|
|
|
|
2002-10-21 17:38:09 +00:00
|
|
|
///
|
|
|
|
enum FONT_STATE {
|
2001-03-28 12:59:29 +00:00
|
|
|
///
|
2002-10-21 17:38:09 +00:00
|
|
|
IGNORE,
|
2001-03-28 12:59:29 +00:00
|
|
|
///
|
2002-10-21 17:38:09 +00:00
|
|
|
EMPH_TOGGLE,
|
2001-03-28 12:59:29 +00:00
|
|
|
///
|
2002-10-21 17:38:09 +00:00
|
|
|
UNDERBAR_TOGGLE,
|
2001-03-28 12:59:29 +00:00
|
|
|
///
|
2002-10-21 17:38:09 +00:00
|
|
|
NOUN_TOGGLE,
|
2001-03-28 12:59:29 +00:00
|
|
|
///
|
2002-10-21 17:38:09 +00:00
|
|
|
INHERIT
|
|
|
|
};
|
2001-03-28 12:59:29 +00:00
|
|
|
|
2002-10-21 17:38:09 +00:00
|
|
|
///
|
|
|
|
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;
|
|
|
|
|
|
|
|
///
|
|
|
|
std::vector<FamilyPair> const getFamilyData();
|
|
|
|
///
|
|
|
|
std::vector<SeriesPair> const getSeriesData();
|
|
|
|
///
|
|
|
|
std::vector<ShapePair> const getShapeData();
|
|
|
|
///
|
|
|
|
std::vector<SizePair> const getSizeData();
|
|
|
|
///
|
|
|
|
std::vector<BarPair> const getBarData();
|
|
|
|
///
|
|
|
|
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
|