mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
c265d16ed0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4998 a592a061-630c-0410-9148-cb99ea01b6c8
73 lines
1.4 KiB
C++
73 lines
1.4 KiB
C++
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 2001 The LyX Team.
|
|
*
|
|
* ======================================================
|
|
*
|
|
* \file character.h
|
|
* \author Angus Leeming <leeming@lyx.org>
|
|
*/
|
|
|
|
#ifndef CHARACTERHELPERS_H
|
|
#define CHARACTERHELPERS_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "lyxfont.h"
|
|
#include "LColor.h"
|
|
|
|
#include <utility>
|
|
#include <vector>
|
|
|
|
/** Functions of use to the character GUI controller and view */
|
|
namespace frnt {
|
|
///
|
|
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;
|
|
|
|
///
|
|
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();
|
|
|
|
} // namespace frnt
|
|
|
|
#endif // CHARACTERHELPERS
|