//
// System.Windows.Forms.DataFormats
//
// Author:
// stubbed out by Jaak Simm (jaaksimm@firm.ee)
// Dennis Hayes (dennish@Raytek.com)
//
// (C) Ximian, Inc., 2002/3
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Windows.Forms{
/// <summary>
/// Provides static (Shared in Visual Basic), predefined Clipboard format names.
/// Use them to identify the format of data that you store in an IDataObject.
/// </summary>
[MonoTODO]
public class DataFormats {
private DataFormats(){//For signiture compatablity. Prevents the auto creation of public constructor
}
#region Fields
public static readonly string Bitmap="Bitmap";
public static readonly string CommaSeparatedValue="Csv";
public static readonly string Dib="DeviceIndependentBitmap";
public static readonly string Dif="DataInterchangeFormat";
public static readonly string EnhancedMetafile="EnhancedMetafile";
public static readonly string FileDrop="FileDrop";
public static readonly string Html="HTML Format";
public static readonly string Locale="Locale";
public static readonly string MetafilePict="MetaFilePict";
public static readonly string OemText="OEMText";
public static readonly string Palette="Palette";
public static readonly string PenData="PenData";
public static readonly string Riff="RiffAudio";
public static readonly string Rtf="Rich Text Format";
public static readonly string Serializable="WindowsForms10PersistentObject";
public static readonly string StringFormat="System.String";
public static readonly string Text="Text";
public static readonly string Tiff="TaggedImageFileFormat";
public static readonly string UnicodeText="UnicodeText";
public static readonly string WaveAudio="WaveAudio";
public static readonly string SymbolicLink="SymbolicLink";
#endregion
#region Methods
/// <todo>
/// these methods will have to use Windows Registry to fetch the existing Format (id,name)
/// or create a new format with the given string/int
/// </todo>
[MonoTODO]
public static Format GetFormat(int id)
{
throw new NotImplementedException ();
}
[MonoTODO]
public static Format GetFormat(string format)
{
throw new NotImplementedException ();
}
#endregion
/// sub-class: DataFormats.Format
/// <summary>
/// Represents a clipboard format type.
/// </summary>
public class Format {
int id;
string name;
#region Constructors
/// <note>
/// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
/// </note>
public Format (string name,int id)
{
this.id=id;
this.name=name;
}
#endregion
#region Methods
public int Id {
get { return id; }
}
public string Name {
get { return name; }
}
#endregion
}
}
}
|