//*********************************************************************
// //
// SQL Power Injector 1.2 Copyright (c) 2006-2007 Francois Larouche //
// //
// Author : francois.larouche@sqlpowerinjector.com //
// Web Site: www.sqlpowerinjector.com //
// //
//*******************************************************************//
using System;
namespace SQLPowerInjector.SyntaxHighlighter{
/// <summary>
/// Summary description for RTFFontState.
/// </summary>
public class RTFFontState
{
private string _color;
private bool _isBold;
private bool _isItalic;
private bool _isRegular;
public RTFFontState()
{
_color = "\\cf0";
_isBold = false;
_isItalic = false;
_isRegular = false;
}
public RTFFontState(string color, bool isItalic, bool isBold, bool isRegular)
{
_color = color;
_isBold = isItalic;
_isItalic = isBold;
_isRegular = isRegular;
}
public string Color
{
get { return _color; }
set { _color = value; }
}
public bool IsBold
{
get { return _isBold; }
set
{
_isBold = value;
if(_isBold)
_isRegular = false;
}
}
public bool IsItalic
{
get { return _isItalic; }
set
{
_isItalic = value;
if(_isItalic)
_isRegular = false;
}
}
public bool IsRegular
{
get { return _isRegular; }
set
{
_isRegular = value;
if(_isRegular)
{
_isBold = false;
_isItalic = false;
}
}
}
}
}
|