#region Copyright (C) 2003-2009 Stimulsoft
/*
{*******************************************************************}
{ }
{ Stimulsoft Reports }
{ }
{ }
{ Copyright (C) 2003-2009 Stimulsoft }
{ ALL RIGHTS RESERVED }
{ }
{ The entire contents of this file is protected by U.S. and }
{ International Copyright Laws. Unauthorized reproduction, }
{ reverse-engineering, and distribution of all or any portion of }
{ the code contained in this file is strictly prohibited and may }
{ result in severe civil and criminal penalties and will be }
{ prosecuted to the maximum extent possible under the law. }
{ }
{ RESTRICTIONS }
{ }
{ THIS SOURCE CODE AND ALL RESULTING INTERMEDIATE FILES }
{ ARE CONFIDENTIAL AND PROPRIETARY }
{ TRADE SECRETS OF Stimulsoft }
{ }
{ CONSULT THE END USER LICENSE AGREEMENT FOR INFORMATION ON }
{ ADDITIONAL RESTRICTIONS. }
{ }
{*******************************************************************}
*/
#endregion Copyright (C) 2003-2009 Stimulsoft
using System;
using System.Reflection;
using System.ComponentModel;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Design;
using System.Windows.Forms;
using System.Windows.Forms.Design;
using Stimulsoft.Base;
using Stimulsoft.Report.Dictionary;
using Stimulsoft.Base.Localization;
using Stimulsoft.Base.Services;
namespace Stimulsoft.Report.Components.TextFormats
{
///
/// Describes a service for the text formatting done as customized.
///
[TypeConverter(typeof(Stimulsoft.Report.Components.TextFormats.Design.StiCustomFormatConverter))]
[StiFormatEditor("Stimulsoft.Report.Components.TextFormats.Design.StiCustomEditor, Stimulsoft.Report.Design, " + StiVersion.VersionInfo)]
[StiWpfFormatEditor("Stimulsoft.Report.WpfDesign.StiCustomEditor, Stimulsoft.Report.WpfDesign, " + StiVersion.VersionInfo)]
[StiServiceBitmap(typeof(StiCurrencyFormatService), "Stimulsoft.Report.Images.TextFormats.FormatCustom.png")]
public class StiCustomFormatService : StiFormatService
{
///
/// Gets a service name.
///
public override string ServiceName
{
get
{
return StiLocalization.Get("FormFormatEditor", "Custom");
}
}
public override int Position
{
get
{
return 100;
}
}
///
/// Gets value to show a sample of formatting.
///
public override object Sample
{
get
{
return string.Empty;
}
}
///
/// Gets or sets string of formatting.
///
[DefaultValue("")]
public override string StringFormat
{
get
{
return base.StringFormat;
}
set
{
base.StringFormat = value;
}
}
///
/// Creates a new format of the type StiCustomFormatService.
///
public StiCustomFormatService() : this(string.Empty)
{
}
///
/// Creates a new format of the type StiCustomFormatService.
///
/// String of formatting
public StiCustomFormatService(string stringFormat)
{
this.StringFormat = stringFormat;
}
}
}